<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-forward-container">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <font size="-1">As I understand it, the Local Apps settings are
        enabled by default in Lubuntu 12.04.  Once LTSP is also
        installed, that means that one can run on the LTSP client
        hardware (instead of the LTSP server hardware) any app that is
        installed in the LTSP chroot image.  For instance, xterm can be
        run on the client via "ltsp-localapps xterm" (ltsp-localapps
        being the script command by which an app must be launched
        locally).<br>
      </font>
      <div class="moz-forward-container"><font size="-1"><font
            face="Arial"> <br>
            To run an additional app locally, just install it in the
            chroot and update the image:<br>
                sudo chroot /opt/ltsp/i386<br>
                sudo apt-get install <app-of-your-choice><br>
                sudo ltsp-update-image<br>
            <br>
            HOWEVER, Internet apps will launch but not work at this
            point due to Name Resolution failure.  So the LTSP server
            has to be set up as a NAT gateway.<br>
            <br>
            As far as I know, the most relevant instruction for doing
            that is here: <a moz-do-not-send="true"
              href="https://help.ubuntu.com/community/UbuntuLTSP/ThinClientHowtoNAT/">https://help.ubuntu.com/community/UbuntuLTSP/ThinClientHowtoNAT/</a><br>
            <br>
            But I have not gotten that working, so I want to summarize
            the steps of that instruction here and insert comments about
            my own implementation.  I trust someone will spot the
            problem.<br>
            <br>
            ** Edit /etc/ltsp/dhcpd.conf (sudo gedit
            /etc/ltsp/dhcpd.conf) setting the routers option to the ip
            address of the ltsp server on the ltsp network. eg<br>
               option routers 192.168.0.254;<br>
            and restart the dhcp server<br>
               sudo /etc/init.d/dhcp3-server restart<br>
            ON 11.10 restart the dhcp server<br>
               sudo /etc/init.d/ish-dhcp-server restart<br>
            Test: Reboot the test PC on the thin client network and
            check if it sees the new default gateway (on linux type ip
            route and look at the line beginning "default"; on windows
            type "route print" into a command prompt and look for
            default gateway).<br>
            <br>
            [COMMENT: I understand that LTSP servers have variously been
            set up with default 192.168.0.254 or 192.168.0.1, but that
            now people are pressing for a uniform default of
            192.168.0.1, which is the way mine is set up.  I found
            dhcpd.conf already had "option routers 192.168.0.1"
            enabled.  And my test PC did indeed show a default gateway
            of 192.168.0.1.]<br>
            <br>
            ** On the LTSP server edit /etc/sysctl.conf (sudo gedit
            /etc/sysctl.conf) and either add this line or uncomment if
            it's already there:<br>
               net.ipv4.ip_forward=1 <br>
            which will take effect at next server reboot. To make the
            setting effective immediately, now run the command<br>
               sudo sysctl -w net.ipv4.ip_forward=1 <br>
            <br>
            [COMMENT: I only had to un-comment the line.]<br>
            <br>
            ** Enable network address translation. By default the ltsp
            network address/mask is 192.168.0.0/24. Remember to change
            the example to fit your network setup. Use a command like:<br>
               sudo iptables --table nat --append POSTROUTING --jump
            MASQUERADE  --source 192.168.0.0/24<br>
            to enable NAT. To make this setting permanent run<br>
               sudo sh -c 'iptables-save > /etc/ltsp/nat'<br>
            and add the extra line up iptables-restore <
            /etc/ltsp/nat to the bottom of the eth0 (or whichever is
            your LTSP interface) stanza of /etc/network/interfaces so it
            looks something like<br>
                auto eth0<br>
                iface eth0 inet static<br>
                        address 192.168.0.254<br>
                        netmask 255.255.255.0<br>
                        broadcast 192.168.0.255<br>
                        network 192.168.0.0<br>
                        up iptables-restore < /etc/ltsp/nat<br>
            This creates a script called /etc/ltsp/nat which restores
            the NAT next time the eth0 network interface comes up. Test:
            ping the dns server on the main network from the test PC.<br>
            <br>
            [COMMENT: I used the first two commands as written.  My
            network is the default 192.168.0.0/24.  And since my LTSP
            interface it eth1, I added the following to interfaces:<br>
          </font></font><font size="-1"><font face="Arial">    auto eth1<br>
                iface eth1 inet static<br>
                        address 192.168.0.1<br>
                        netmask 255.255.255.0<br>
                        broadcast 192.168.0.255<br>
                        network 192.168.0.0<br>
                        up iptables-restore < /etc/ltsp/nat<br>
            But I thought it of interest that neither eth0 nor eth1 was
            initially configured via /etc/network/interfaces.  Lubuntu
            seems to prefer Preferences: Network Connections, a nice
            GUI, and that is what I used to set up eth1 for LTSP.  But
            here, I didn't know how to use Network Connections to add "</font></font><font
          size="-1"><font face="Arial">up iptables-restore <
            /etc/ltsp/nat."  So I hoped editing interfaces as instructed
            would do the job.]<br>
            <br>
            ** Again, edit /etc/ltsp/dhcpd.conf, as above, setting the
            dns option to the ip address of the main network DNS server
            (listed in /etc/resolv.conf on the LTSP server beside the
            word "nameserver"), e.g.<br>
               option domain-name-servers 192.168.1.1;<br>
            and again restart the dhcp server<br>
               sudo /etc/init.d/dhcp3-server restart<br>
            Test: Reboot the test PC again, to update its DNS server.
            Try pinging a real world server from the test PC by name, eg<br>
               ping <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="http://www.ubuntu.com">www.ubuntu.com</a><br>
          </font></font><br>
        <font size="-1"><font face="Arial">[COMMENT: /etc/resolv.conf
            showed 127.0.0.1 for the nameserver.  Given the
            instruction's example of 192.168.1.1, this address seems
            unexpected, but I tried it and it did not work.  I also
            tried 192.168.0.1.  Also 192.168.1.1, the address of the
            router, which I would have taken to be a good bet.  I also
            set the router to 10.0.0.1/255.255.255.0 and tried that for
            the dhcpd.conf domain-name-server.  (See more on that
            below.)  Finally I tried the openDNS servers that are set up
            in the router: 208.67.222.222; 208.67.220.220.  Most of my
            failures simply resulted in Name Resolution failures when
            local app chromium-browser was trying to find a site.  But
            at this point, something in my configuration seems to have
            disabled LTSP DHCP altogether -- the LTSP client does not
            boot.]<br>
            <br>
            -----------------------------------<br>
            <br>
            MORE GENERAL INFO: My DSL modem is an AT&T that uses a
            non-configurable LAN-side address of
            192.168.0.1/255.255.0.0.<br>
            <br>
            Initially I had the router set to 10.0.0.1/255.255.255.0,
            and computers on the main network can ping and open the
            configuration page for the modem.  I was concerned that this
            would conflict with the LTSP server at 192.168.0.1, but LTSP
            clients worked OK -- perhaps because of the differing
            netmasks of 255.255.255.0 vs. 255.255.0.0??<br>
            <br>
            I also tested setting the router at
            192.168.1.1/255.255.0.0.  In this configuration computers on
            the main network cannot see the modem at 192.168.0.1.<br>
          </font></font> <br>
        <br>
      </div>
      <br>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>