Part III LTSP Maintenance.
by Computothought in Circuits > Linux
2262 Views, 5 Favorites, 0 Comments
Part III LTSP Maintenance.
This instructible is mainly for keeping software installed via the standard repositories up to date. You definitely really need to be at least an intermediate linux user to accomplish this instructable. Ask for help for an expert if you fell uncomfortable with it. With ltsp you really have two separate file systems to update. One for the regular file system and one for the file system clients. Actually you could have several file systems to update if you are supporting more than one kind of thin client hardware. By now you should be handy enough with the command line that I do not have to put a picture of every result.
Quick hint: you can ssh into your sever and then cut and paste all thecommands from a file or ths web page. That is what I am doing now.
Quick hint: you can ssh into your sever and then cut and paste all thecommands from a file or ths web page. That is what I am doing now.
Server Update.
Update the sources (where the upgrade/update files will come from).
$ sudo apt-get update
Do the upgrade
$ sudo apt-get upgrade
In some cases if you did a system upgrade instead of a clean install, you might not get all packages upgraded.
$ sudo apt-get dist-upgrade will usually do the job.
Last of all some clean up.
$ sudo apt-get autoclean
$ sudo apt-get update
Do the upgrade
$ sudo apt-get upgrade
In some cases if you did a system upgrade instead of a clean install, you might not get all packages upgraded.
$ sudo apt-get dist-upgrade will usually do the job.
Last of all some clean up.
$ sudo apt-get autoclean
Client Update.
With the client directories, you want to make sure that the list of sources for the client file system is the same as the server or there will be some incompatibilities. (note: i386 is the architecture type.)
$ sudo cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt/.
$ export LTSP_FILE_DAEMONS=false
Now you need to temporarily need to change file systems so that the updates go to the proper file system.
$ sudo chroot /opt/ltsp/i386
$ mount -t proc proc /proc
Here we go:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get clean
$ exit
$ sudo ltsp-update-kernels
$ sudo umount /opt/ltsp/i386/proc
$ sudo ltsp-update-sshkeys
$ sudo ltsp-update-image
$ sudo cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt/.
$ export LTSP_FILE_DAEMONS=false
Now you need to temporarily need to change file systems so that the updates go to the proper file system.
$ sudo chroot /opt/ltsp/i386
$ mount -t proc proc /proc
Here we go:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get clean
$ exit
$ sudo ltsp-update-kernels
$ sudo umount /opt/ltsp/i386/proc
$ sudo ltsp-update-sshkeys
$ sudo ltsp-update-image
Refresh
One of the few times that rebooting the might be a good idea.
$ sudo chroot /
$ sudo reboot
So nice only to have to update just one computer instead of a whole lab full or more of computers. You would still work with user accounts and etc as you would with a standalone system.
$ sudo chroot /
$ sudo reboot
So nice only to have to update just one computer instead of a whole lab full or more of computers. You would still work with user accounts and etc as you would with a standalone system.