个人工具

UbuntuHelp:UbuntuLTSP/LTSPLocalAppsJaunty

来自Ubuntu中文

跳转至: 导航, 搜索
This page is specific to Ubuntu versions 9.04

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


As announced there by Stéphane Grabber, http://www.linux-archive.org/edubuntu-development/267937-ltsp-testing-jaunty.html localapps in Jaunty have changed Here's a quick Howto to get local apps (applications that are running on the thin client directly instead of running in the servers desktop session) 1. Create a new chroot chroot

First, if you don't want to test on your i386 chroot, build a new chroot with the same sources.list as the server.

 
sudo ltsp-build-client --chroot i386_w_localapps --copy-sourceslist

2. Then install packages you want as localapps in the chroot

sudo chroot /opt/ltsp/i386_w_localapps apt-get install firefox openoffice.org openoffice.org-l10n-fr vlc flashplugin-installer mplayer language-pack-fr language-pack-gnome-fr language-support-fr gimp

As you can see, i'm a french user, so I installed language package... If you receive an error about keytool not being able to load libjli.so you should try doing the apt-get install with the /proc filesystem mounted:

$ sudo chroot /opt/ltsp/i386_w_localapps
$ mount -t proc proc /proc
$ apt-get install firefox openoffice.org openoffice.org-l10n-fr vlc flashplugin-installer mplayer language-pack-fr language-pack-gnome-fr language-support-fr gimp

If you want to run firefox as localapp, view this page https://help.ubuntu.com/community/UbuntuLTSP/LocalAppsResolvConf to correct the bug with resolv.conf 3. Then update your image

sudo ltsp-update-image -a i386_w_localapps

4. Then create ( or modify ) the lts.conf (Note--if you are creating this file, you need the top line of the file to say: [Default]. Yes, do put the square brackets but don't put the period.)

sudo gedit /var/lib/tftpboot/ltsp/i386_w_localapps/lts.conf 

and add these lines

[Default]
    LOCAL_APPS=True
    LOCAL_APPS_MENU = True
    LOCAL_APPS_MENU_ITEMS = firefox,mplayer,vlc,openoffice.org-calc,openoffice.org-draw,openoffice.org-impress,openoffice.org-math,openoffice.org-startcenter,openoffice.org-writer

Where the LOCAL_APPS_MENU_ITEMS list comes from

ls -1 /opt/ltsp/i386_w_localapps/usr/share/applications/| grep desktop | sed s/\.desktop/,/g | xargs | sed s/\ //g 

No space in list, only comma separated 5. Change your /etc/ltsp/dhcpd.conf to have your client using the new chroot with localapps 6. Restart the dhcp

sudo /etc/init.d/dhcp3-server restart

You will know that Firefox launched as a localapp on your client if the title bar of Firefox window says: "Name of Site (on ltsp20)" or something like that. If it doesn't work you may want to check out this blog post. NB: If you are using a 2-interface LTSP setup, your thin client will probably not be able to get to the internet at this point. The solution is to set your LTSP server up as a router so you can access the internet through it. Some instructions are UbuntuWiki:ThinClientHowtoNAT.