Xen на рабочей станции
Материал из Xgu.ru
- Короткий URL: xen/desktop
# less /home/rdesktop/login #!/bin/sh export HOME=/home/rdesktop while true ; do echo Please wait... echo '' | nc 192.168.15.103 3389 >& /dev/null && break sleep 5 done xinit
.xinitrc
rdesktop -f -u user -p password 192.168.15.103
1:2345:respawn:/sbin/rungetty tty1 --autologin rdesktop -u rdesktop /home/rdesktop/login
# less /etc/init.d/grub #! /bin/sh ### BEGIN INIT INFO # Provides: grub # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: udev devfsd # Should-Stop: # Default-Start: S 1 2 3 4 5 # Default-Stop: 0 6 # Short-Description: Restore GRUB configuration file ### END INIT INFO case "$1" in start) cp /boot/grub/menu.lst.WINXP /boot/grub/menu.lst sync ;; stop) cp /boot/grub/menu.lst.XEN /boot/grub/menu.lst ;; esac exit 0
Автоматический запуск X-ов с первым свободным номером:
if tty | grep -q dev/tty then n="$(ps waux | grep X | grep 'X :[0-9]' | awk '{print $2}' | tr -d : | sort -n | tail -1)" if [ -z "$n" ] then xinit else xinit -- :$[n+1] fi exit fi
|
---|