updDebianPxeFiles.sh

#!/bin/bash
 
TARGET= /tftpboot/debian/i386
 
[ ! -d $TARGET ] && mkdir -p $TARGET
 
wget ftp://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz -O $TARGET/initrd.gz
wget ftp://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/netboot/debian-installer/i386/linux -O $TARGET/linux
wget ftp://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/netboot/mini.iso -O $TARGET/mini.iso
wget http://www.panticz.de/pxe/pxelinux.cfg/debian.i386.conf -0 /tftpboot/pxelinux.cfg/debian.i386.conf

Build GeeXboX from repository

#!/bin/bash
 
 
# install required packages
sudo apt-get install -y mercurial build-essential libncurses5-dev flex bison gawk \
gettext libreadline5 libreadline5-dev libunistring0 texinfo
 
# get source code
hg clone http://hg.openbricks.org/openbricks
 
# change into source code directory
cd openbricks/
 
# configure
make menuconfig
 
# compile
make
 
exit
 
 
 
# OLD
 
#
# PARAMETERS
#
GEEXBOX_PATH=~/gxdev
 
 
#
# FUNCTIONS
#
add_patch() {
	echo "-- add_path ---"
 
	# echo "http://www.uclibc.org/downloads/snapshots/uClibc-20070829.tar.bz2" > $GEEXBOX_PATH/geexbox/packa

instalNXClient.sh

#!/bin/bash
 
sudo su
 
cat << EOF > /etc/apt/sources.list.d/freenx-team.list
deb http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
EOF
 
apt-get install nxclient
 
# old #
wget http://64.34.161.181/download/3.2.0/Linux/nxclient_3.2.0-9_i386.deb -P /tmp
dpkg -i /tmp/nxclient_*.deb
rm /tmp/nxclient_*.deb
chmod 755 /usr/lib/cups/backend/ipp
 
# LINK
# http://www.nomachine.com/download-client-linux.php

instalFreeNxServer.sh

#!/bin/bash
 
sudo su
 
cat << EOF > /etc/apt/sources.list.d/freenx-team.list
deb http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
EOF
 
sudo apt-get update
sudo apt-get -y --force-yes install freenx-server
 
 
# LINKS
# https://launchpad.net/~freenx-team/+archive/
# https://launchpad.net/~marceloshima/+archive

instalFrozenBubble.sh

#!/bin/bash
 
sudo apt-get -y install frozen-bubble

installOpenVPN.sh

sudo apt-get install -y openvpn network-manager-openvpn

installVMWarePlayer.sh

#!/bin/bash
 
wget http://download3.vmware.com/software/vmplayer/VMware-player-2.0.1-55017.i386.tar.gz -P /tmp/
tar -xzf /tmp/VMware-player-2.0.1-55017.i386.tar.gz -C /tmp
/tmp/vmware-player-distrib/vmware-install.pl default
rm -r /tmp/vmware-player*

streamToInternet.sh

#!/bin/sh
 
VCODEC=mp4v
 
echo "--- $0 $@ ---"
 
if [ $1 == "-hq" ]; then
	VCODEC=h264
fi
 
vlc v4l:/dev/video0 --sout '#duplicate{dst=display,dst="transcode{vcodec=$VCODEC,vb=128}:standard{access=http,mux=ts,url=:8888}"}' --ttl 16 --noaudio

swapToFile.sh

#!/bin/bash
 
dd if=/dev/zero of=/swap.file bs=1G count=1
chmod 0600 /swap.file
mkswap /swap.file
 
cat <<EOF>> /etc/fstab
/swap.file      none    swap    sw              0       0
EOF

Create XEN Windows XP Domain

#### lvm ####
lvcreate --name xp-disk --size 8G vg1
dd if=/dev/zero of=/dev/vg1/xp-disk
 
# installation
cat <<EOF> /etc/xen/xp-inst
kernel='/usr/lib/xen-4.1/boot/hvmloader'
builder='hvm'
memory='2048'
name='xp-inst'
device_model='/usr/lib/xen-default/bin/qemu-dm'
boot='d'
disk=['phy:/dev/vg1/xp-disk,ioemu:hda,w', 'file:/mnt/winxp.iso,hdc:cdrom,r']
vnc=1
vncviewer=1
vncpasswd="xp"
vif=['type=ioemu, bridge=eth0, mac=00:00:00:55:00:00']
usbdevice='tablet'
vnclisten='0.0.0.0'
EOF
 
# start VM
xm create xp-inst
 
# connect to VM from client
vinagre YOUR_XEN_Dom0_IP
 
# xp
c
Syndicate content