x2go domU

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=x2go
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:a0:b0:c0
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb
 
# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty
or
http://www.panticz.de/Ubuntu-Karmic-domU-under-Debian-Lenny-Dom0
 
# add to autostart (optional)
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
 
# start domU
xm create -c ${DOMAIN_NAME}
 
# old # apt-get install gnome-desktop-environment
apt-get install debconf-utils
 
 
 
apt-get -y install ubuntu-desktop
 
 
# new
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys C509840B96F89133
gpg -a --export C509840B96F89133 | apt-key add - 
 
cat <<EOF> /etc/apt/sources.list.d/x2go.list
deb http://x2go.obviously-nice.de/deb/ lenny main
EOF
 
apt-get update
 
apt-get install -y --force-yes x2goserver-home x2gognomebindings cups-x2go x2goprint
 
http://www.x2go.org/blog/
http://www.x2go.org/fileadmin/doc/en.installation.x2go.pdf
 
 
 
 
# old
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys C509840B96F89133
gpg -a --export C509840B96F89133 | apt-key add - 
 
cat <<EOF> /etc/apt/sources.list.d/x2go.list
deb http://x2go.obviously-nice.de/deb/ lenny main
EOF
 
apt-get update
 
apt-get install -y x2goserver sshfs
#x2gosessionadministration x2gokdebindings postgresql
 
echo "%users ALL=(ALL) NOPASSWD: /usr/bin/x2gopgwrapper " >> /etc/sudoers
 
cd /usr/lib/x2go/script/
./x2gocreatebase.sh
 
??? stat /dev/fuse
??? chown root:fuse /dev/fuse
??? chmod 660 /dev/fuse
 
??? updatelockbutton
 
# create user
useradd -m pako
passwd pako
usermod -a -G users pako
?? fuse
 
usermod -a -G x2gousers pako
 
# client apps
http://x2go.obviously-nice.de/deb/pool-lenny/pinentry-x2go-gtk/pinentry-x2go-gtk_0.7.5-1_i386.deb
http://x2go.obviously-nice.de/deb/pool-lenny/x2goclient-gtk/x2goclient-gtk_3.00-1_i386.deb
http://x2go.obviously-nice.de/deb/pool-lenny/pinentry-x2go/pinentry-x2go_0.7.5-2_i386.deb
dpkg -i x2goclient_3.00-1_i386.deb pinentry-x2go_0.7.5-2_i386.deb