Instal KVM (Kernel-based Virtual Machine)

script:
https://installit.googlecode.com/hg/install.kvm.sh
 
 
# configure locale
wget -q http://www.panticz.de/sites/default/files/scripts/configure_locale.sh -O - | bash -
 
# install on ubuntu
apt-get install -y qemu kvm ubuntu-vm-builder
 
# install on debian
apt-get install -y kvm
apt-get install -y libvirt-bin
apt-get install -y virtinst
 
/etc/init.d/libvirt-bin restart
 
# net
virsh net-start default
virsh net-autostart default
 
# vg
mkdir /etc/libvirt/storage
cat <<EOF> /etc/libvirt/storage/vg0.xml
<pool type='logical'>
  <name>vg0</name>
  <target>
    <path>/dev

memtest86+ PXE boot

apt-get install -y pxelinux
 
# check for current version
# http://www.memtest.org/#downiso
 
URL=http://www.memtest.org/download/5.01/memtest86+-5.01.bin
 
wget -q ${URL} -P /tmp/
 
mkdir /var/lib/tftpboot/memtest
mv /tmp/memtest86+-*.bin /var/lib/tftpboot/memtest
cd /var/lib/tftpboot/memtest
ln -s memtest86+-*.bin memtest86+
 
echo "confiure tftpboot..." 
mkdir -p /var/lib/tftpboot/pxelinux.cfg
cat <<EOF>   /var/lib/tftpboot/pxelinux.cfg/memtest86+.conf
LABEL linux
   MENU LABEL memtest86+
   KERNEL /memtest/memtest86+
EOF
 
echo "MENU INCLUDE pxelinux.cfg/memtest86+.conf" >

CUPS

# view all available printer
lpstat -p -d
 
# enable webadmin
vi /etc/cups/cupsd.conf
#Listen localhost:631
Listen 0.0.0.0:631
 
<Location />
  Allow From 192.168.1.0/24
</Location>
<Location /admin>
  Allow From 192.168.1.0/24
</Location>
 
# print file from command line
lpr -P DeskJet_695C YOUR_FILE.pdf
 
# parallel
# install DeskJet_695C
sudo lpadmin -p HP695C -v parallel:/dev/lp0 -E -P /tmp/DeskJet_695C.ppd 
 
# usb 
hp:/usb/hp_business_inkjet_2300?serial=CN39E130GB
 
# PDF printer
sudo apt-get install cups-pdf
lpadmin -p PDF -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf

Ekiga 3.0 snapshot

#!/bin/bash
 
sudo su
 
 
# add intrepid repository
cat <<EOF> /etc/apt/sources.list.d/jaunty.list
deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted
EOF
 
# run update
apt-get update
apt-get install ekiga
 
# remove repository
rm /etc/apt/sources.list.d/jaunty.list
apt-get update
 
 
# LINKS
http://snapshots.ekiga.net/
http://packages.ubuntu.com/jaunty/ekiga
 
 
### OLD ###
 
wget http://ge.archive.ubuntu.com/ubuntu/pool/main/e/evolution-data-server/libedataserver1.2-9_2.22.3-0ubuntu2_i386.deb -P /tm

connectToVPN.sh

#!/bin/bash
 
# get current dir
DIR=${0%/*}
 
# read host list from file
HOSTS=$(cd $DIR; ls) 
 
# get host ip
VPN=$(zenity --list --height 400 --column "Name" ${HOSTS})
 
# check if chosen dir exists
if [ !

Install osCommerce

wget http://www.oscommerce.com/ext/oscommerce-2.2rc2a.zip
 
unzip oscommerce-2.2rc2a.zip
 
cd oscommerce-2.2rc2a
 
chmod 777 catalog/includes/configure.php
chmod 777 catalog/admin/includes/configure.php
 
apt-get install php5-curl
 
# create db
mysql -u root -p 
create database oscommerce;
CREATE USER oscommerce IDENTIFIED BY 'PASS';
grant all on oscommerce.* to 'oscommerce'@'%' identified by "PASS";
commit;
quit;
 
http://YOUR_SERVER/oscommerce-2.2rc2a/catalog/install/install.php
 
rm -r catalog/install/
 
chmod a-wx catalog/includes/configure.php
 
http://YOUR_SERVER/oscommer

Install VLC player

wget https://raw.githubusercontent.com/panticz/installit/master/install.vlc.sh -O - | bash -

#!/bin/bash

if [ "$1" == "-n" ]; then
  sudo add-apt-repository -y ppa:videolan/stable-daily
  sudo apt-get update
fi

sudo apt-get install -y vlc
sudo apt-get install -y vlc-plugin-pulse
sudo apt-get install -y browser-plugin-vlc

# set vnc as default media player
sudo sed -i 's|totem.desktop|vlc.desktop|g' /etc/gnome/defaults.list

Etope-O-Mat.sh

#!/bin/bash
 
# get image name
if [ -z $1 ]; then
	# read from dialog
	INPUT=$(zenity --title  "Etope-O-Mat" --entry --text "Bildname:")
else
	# copy input from command line
	INPUT=$@
fi
 
for IMAGE in $INPUT; do
	# convert image name to lower case
	IMAGE=$(echo ${IMAGE} | tr "[:upper:]" "[:lower:]")
 
	# add .jpg file extension if not already exists
	IMAGE="${IMAGE/.jpg}.jpg"
 
	# set input and output
	PATH_IN=/media/bilder/300dpi
	PATH_OUT=/home/$USER/200px
	FILE_IN="${PATH_IN}/${IMAGE}"
	FILE_OUT="${PATH_OUT}/${IMAGE}"
 
	# check dirs
	[ !

GeeXbox USB boot (GeeXbox Live CD boot from USB)

#!/bin/bash
 
apt-get install syslinux mbr
 
# optionaly
# mkfs.vfat -n RALLY2 /dev/sdb1
 
install-mbr /dev/sdb
syslinux -f /dev/sdb1
 
sudo mount geexbox-devel-20080507-en.i386.iso /mnt/ -o loop
cp -a /mnt/GEEXBOX/ /media/RALLY2/
sudo umount /mnt
 
cat <<EOF>> /media/RALLY2/syslinux.cfg
LABEL geexbox_hdtv
MENU LABEL Start GeeXboX for HDTV ...
KERNEL /GEEXBOX/boot/vmlinuz
APPEND initrd=/GEEXBOX/boot/initrd.gz root=/dev/ram0 rw rdinit=linuxrc boot=sdb1 lang=en remote=atiusb receiver=atiusb keymap=qwerty splash=silent vga=789 video=vesafb:ywrap,mtrr hdtv
 
LABEL geexbox_hdtv_de

HP Evo T20 as LTSP client under Ubuntu Hardy

# configure LTSP
vi /var/lib/tftpboot/ltsp/i386/lts.conf
[default]
LDM_DIRECTX=True
SOUND=N
XSERVER=nsc
X_COLOR_DEPTH=16
X_HORZSYNC=48.4-60.5
X_VERTREFRESH=60-75
 
# configure boot parameter
vi /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default
DEFAULT vmlinuz ro initrd=initrd.img quiet splash pnpbios=off
 
# disable nic messages
cat <<EOF> /opt/ltsp/i386/etc/init.d/disableNicMsg
#!/bin/bash
/usr/sbin/ethtool -s eth0 msglvl 0
exit 0
EOF
 
chmod 755 /opt/ltsp/i386/etc/init.d/disableNicMsg
cd /opt/ltsp/i386/etc/rcS.d/
ln -s ../init.d/disableNicMsg S20disableNicMsg
 
# update
Syndicate content