Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Troubleshooting

Deepanshu Gajbhiye edited this page Jun 21, 2018 · 12 revisions

Most problems occur with ltsp setup when we miss some of the steps. Try to properly follow all the steps from whichever guide you are referring to install ltsp server. You won't face that problem with virtual ltsp server project as it is using a script to install ltsp to a vagrant box. So no steps would be missed. Still Here are some common types of problems and how to solve them -

1. Unable to log in with client

This was one of the error that I faced while setting up virtual LTSP server. First, it prompts permanently added the ECDSA host key for IP address to list of kwown host. Later prompts public key denied

A solution is to add public key the user to .ssh folder on users home directory. Other solution is changing password authentication no to yes and then restart the service. You can use this block of code to do that

sed -i /etc/ssh/sshd_config \
    -e "/Authentication no\$/ c PasswordAuthentication yes"
service ssh restart

I have a blog post with all the details - https://medium.com/@gajbhiyedeepanshu/solving-ltsp-client-not-able-to-login-issue

2. Troubleshooting with a local root shell

This is how a root shell from ltsp client looks like -

root_shell

It is very helpful for debugging the ltsp server from the client. The client boot from the images in /opt/ltsp/images/. One can check ssh key, change the root password, etc. There are two possible ways to get one -

  1. add this in /var/lib/tftpboot/ltsp/amd64/lts.conf
INIT_COMMAND_ROOT_HASH="sed 's!^root:[^:]*:!root:\$6\$p2LdWE6j\$PDd1TUzGvvIkj9SE8wbw1gA/MD66tHHlStqi1.qyv860oK47UnKcafSKqGp7cbgZUPlgyPv6giCVyCSCdJt1b0:!' -i /etc/shadow"

Then you will able to login with username as root and password qwer1234

  1. Other way is also mentioned in ltsp-pnp page ubuntu. Run this command to open lts.conf
sudo vim /var/lib/tftpboot/ltsp/amd64/lts.conf

Paste the following in it

SCREEN_02=shell
SCREEN_07=ldm

Then open the ltsp client. The official guide suggests on using CTRL+ALT+f2 to get to TTY to log in. But if you are on a VirtualBox that does not work. You have to use RT_CTRL+f2. Please note you don't need to reboot the client while following these steps.

Now that you have a root shell you can check connectivity with the server and other important details. First you should try to ping the ltsp server. You can do it by ping server. To test connectivity.

3. Blank screen when booted up and costantly reboot

To avoid bug one can put this in lts.conf

INIT_COMMAND_RM_NBD_CHECKUPDATE="rm -rf /usr/share/ldm/rc.d/I01-nbd-checkupdate"

This is caused because some code in nbd creates race condition. One can refer this for more details.

4. Getting low-resolution screen on client

low-resolution This is a common problem when using an old monitor. They tend to use 16-bit colors. This can be fixed by configuring lts.conf. It is located in /var/lib/tftpboot/ltsp/amd64/lts.conf . You can uncomment these line inside. It will force the client to use the resolution you set. XRANDR_MODE_0=1024x768 XRANDR_RATE_0=85