个人工具

UbuntuHelp:UbuntuLTSPKarmicLocalAppsFirefox

来自Ubuntu中文

跳转至: 导航, 搜索

Parent: UbuntuLTSP

This page is specific to Ubuntu versions 9.10

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.


Here's a quick Howto to get Firefox with the Adobe Flash Plugin running as a local app (running on the thin client directly instead of running in the server) in Ubuntu 9.10 (Karmic Koala) While this process has been successfully tested under both the GNOME and KDE desktop environments, this Howto assumes an operating 32-bit LTSP setup is already functioning with the GNOME desktop environment. If you are using a 2-interface LTSP setup (one NIC from the Internet, one NIC to the thin clients), your thin client will probably not be able to access the Internet on Firefox as a local app even after following this Howto. If this is true it is because your LTSP server is not set up as a gateway to allow direct Internet access through the LTSP server. Instructions for enabling this ability are available at UbuntuWiki:ThinClientHowtoNAT. You may follow the NAT Howto either before or after installing Firefox as a local app. 1. First you will need to update the ltsp chroot by opening a terminal window, copying the following code and pressing enter.

sudo chroot /opt/ltsp/i386 apt-get update

Then install the firefox and flash plugin packages you want as localapps in the ltsp chroot

sudo chroot /opt/ltsp/i386 apt-get install firefox flashplugin-installer

2. Now you need to add some lines of code to the lts.conf file located in the i386 folder at /var/lib/tftpboot/ltsp/i386/lts.conf

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

If you don't have an lts.conf file yet you can create one by first opening an instance of nautilus as root

sudo nautilus

then navigating to /var/lib/tftpboot/ltsp/i386. By right clicking in the folder and selecting "new file" you can create a blank file and name it "lts.conf" If you are creating your lts.conf you MUST make sure the first line of your lts.conf is

[Default]

or the code will NOT WORK Copy and paste the code below into your lts.conf file:

LOCAL_APPS=True
LOCAL_APPS_MENU = True
LOCAL_APPS_MENU_ITEMS = firefox
SEARCH_DOMAIN = ubuntu-ltsp5 || Change this for your own network
DNS_SERVER = 192.168.1.1  || Change this for your own network

If you don't know your Search Domain or your DNS Server you can find both listed in /etc/resolv.conf If you created your lts.conf it should now look something like:

[Default]
LOCAL_APPS=True
LOCAL_APPS_MENU = True
LOCAL_APPS_MENU_ITEMS = firefox
SEARCH_DOMAIN = ubuntu-ltsp5 || Change this for your own network
DNS_SERVER = 192.168.1.1  || Change this for your own network

You can always add menu items later (if you install additional local apps) by separating the items with a comma. For example, if you decided to install the vlc and mplayer in the future your local apps menu items line would look like:

LOCAL_APPS_MENU_ITEMS = firefox,vlc,mplayer

3. Now you need to rebuild the client image

sudo ltsp-update-image

4. Finally, restart the dhcp server

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

You can verify that Firefox is running a local app by testing the performance of any flash game. I suggest winterbells (http://www.ferryhalim.com/orisinal/g3/bells.htm) as a choice. If you run into trouble you may want to check out this blog post. Again, 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. Instructions are at UbuntuWiki:ThinClientHowtoNAT.