Robert Mavrinac
2016-06-30 15:41:27 UTC
I have several Debian 8 LTSP servers. For a summer program, I need to create an additional image for a kiosk option to load the VMWare View client.
These are the steps I used to create the image:
+++++++++++++++
On the ltsp server:
ltsp-build-client --arch=i386 --chroot=vdi --dist=jessie --mirror=http://httpredir.debian.org/debian --kiosk --prompt-rootpass --purge-chroot
Enter the chroot and perform the following tasks:
ltsp-chroot -p -d -a vdi
cat > /etc/apt/sources.list << EOF
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
EOF
apt-get update
apt-get -y install vim aptitude linux-image-686-pae libxss1 openssl openssh-server libudev1 libglibmm-2.4 firmware-linux-nonfree firmware-realtek less wget
ln -s /lib/i386-linux-gnu/libudev.so.1 /lib/i386-linux-gnu/libudev.so.0
apt-get -y purge linux-image-586 linux-image-3.16.0-4-586 linux-image-486
wget https://download3.vmware.com/software/view/viewclients/CART15Q3/VMware-Horizon-Client-3.5.0-2999900.x86.bundle
sh VMware-Horizon-Client-3.5.0-2999900.x86.bundle
rm VMware-Horizon-Client-3.5.0-2999900.x86.bundle
cat > /usr/share/applications/vmware-view-client.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Icon=vmware-view-client-vmware
Exec=vmware-view
Categories=Application;Network;
Name=VMware View Client
Comment=Deliver rich, personalized virtual desktops with VMware View 6
EOF
cat > /etc/vmware/view-mandatory-config << EOF
view.sslVerificationMode="3"
EOF
(You can ignore the next 4 lines - I have a custom a update-kernels.conf)
rm -r /boot/pxelinux.cfg
scp root@`hostname`:/etc/ltsp/update-kernels.conf /etc/ltsp/update-kernels.conf
sed -i 's|ltsp/i386|ltsp/vdi|g' /etc/ltsp/update-kernels.conf
scp root@`hostname`:/boot/lpxelinux.0 /boot
/usr/share/ltsp/update-kernels
adduser --no-create-home --disabled-password --gecos ",,," ltspkiosk
adduser ltspkiosk audio
adduser ltspkiosk pulse
adduser ltspkiosk pulse-access
Exit the chroot
On the ltsp server again:
ltsp=update-image vdi
rm -r /var/lib/tftpboot/lsp/vdi/pxelinux.cfg
ltsp-update-kernels
Edit /var/lib/tftpboot/ltsp/vdi/lts.conf (add to top of section [default]):
KIOSK_EXE=/usr/bin/vmware-view
KIOSK_OPTIONS="--fullscreen --protocol=PCOIP -s view.your.domain -l -d CSPC1"
SCREEN_07=kiosk
+++++++++++++++
Even if I comment out the KIOSK exe and options, the client still won't start in kiosk mode (e.g. Firefox) and just drops into the LTSP login screen.
Any suggestions?
These are the steps I used to create the image:
+++++++++++++++
On the ltsp server:
ltsp-build-client --arch=i386 --chroot=vdi --dist=jessie --mirror=http://httpredir.debian.org/debian --kiosk --prompt-rootpass --purge-chroot
Enter the chroot and perform the following tasks:
ltsp-chroot -p -d -a vdi
cat > /etc/apt/sources.list << EOF
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
EOF
apt-get update
apt-get -y install vim aptitude linux-image-686-pae libxss1 openssl openssh-server libudev1 libglibmm-2.4 firmware-linux-nonfree firmware-realtek less wget
ln -s /lib/i386-linux-gnu/libudev.so.1 /lib/i386-linux-gnu/libudev.so.0
apt-get -y purge linux-image-586 linux-image-3.16.0-4-586 linux-image-486
wget https://download3.vmware.com/software/view/viewclients/CART15Q3/VMware-Horizon-Client-3.5.0-2999900.x86.bundle
sh VMware-Horizon-Client-3.5.0-2999900.x86.bundle
rm VMware-Horizon-Client-3.5.0-2999900.x86.bundle
cat > /usr/share/applications/vmware-view-client.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Icon=vmware-view-client-vmware
Exec=vmware-view
Categories=Application;Network;
Name=VMware View Client
Comment=Deliver rich, personalized virtual desktops with VMware View 6
EOF
cat > /etc/vmware/view-mandatory-config << EOF
view.sslVerificationMode="3"
EOF
(You can ignore the next 4 lines - I have a custom a update-kernels.conf)
rm -r /boot/pxelinux.cfg
scp root@`hostname`:/etc/ltsp/update-kernels.conf /etc/ltsp/update-kernels.conf
sed -i 's|ltsp/i386|ltsp/vdi|g' /etc/ltsp/update-kernels.conf
scp root@`hostname`:/boot/lpxelinux.0 /boot
/usr/share/ltsp/update-kernels
adduser --no-create-home --disabled-password --gecos ",,," ltspkiosk
adduser ltspkiosk audio
adduser ltspkiosk pulse
adduser ltspkiosk pulse-access
Exit the chroot
On the ltsp server again:
ltsp=update-image vdi
rm -r /var/lib/tftpboot/lsp/vdi/pxelinux.cfg
ltsp-update-kernels
Edit /var/lib/tftpboot/ltsp/vdi/lts.conf (add to top of section [default]):
KIOSK_EXE=/usr/bin/vmware-view
KIOSK_OPTIONS="--fullscreen --protocol=PCOIP -s view.your.domain -l -d CSPC1"
SCREEN_07=kiosk
+++++++++++++++
Even if I comment out the KIOSK exe and options, the client still won't start in kiosk mode (e.g. Firefox) and just drops into the LTSP login screen.
Any suggestions?