特殊:Badtitle/NS100:UbuntuLTSP/LaptopDemo:修订间差异
小 以内容'{{From|https://help.ubuntu.com/community/UbuntuLTSP/LaptopDemo}} {{Languages|UbuntuHelp:UbuntuLTSP/LaptopDemo}} {|border="1" cellspacing="0" |This page is specific to Ubunt…'创建新页面 |
(没有差异)
|
2010年5月20日 (四) 00:30的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/LaptopDemo }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Afrikaans| [[::UbuntuLTSP/LaptopDemo/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|العربية| [[::UbuntuLTSP/LaptopDemo/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|azərbaycanca| [[::UbuntuLTSP/LaptopDemo/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|جهلسری بلوچی| [[::UbuntuLTSP/LaptopDemo/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|български| [[::UbuntuLTSP/LaptopDemo/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|brezhoneg| [[::UbuntuLTSP/LaptopDemo/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|català| [[::UbuntuLTSP/LaptopDemo/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|čeština| [[::UbuntuLTSP/LaptopDemo/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Deutsch| [[::UbuntuLTSP/LaptopDemo/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Ελληνικά| [[::UbuntuLTSP/LaptopDemo/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|español| [[::UbuntuLTSP/LaptopDemo/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|فارسی| [[::UbuntuLTSP/LaptopDemo/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|suomi| [[::UbuntuLTSP/LaptopDemo/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|français| [[::UbuntuLTSP/LaptopDemo/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|ગુજરાતી| [[::UbuntuLTSP/LaptopDemo/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|עברית| [[::UbuntuLTSP/LaptopDemo/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|magyar| [[::UbuntuLTSP/LaptopDemo/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Bahasa Indonesia| [[::UbuntuLTSP/LaptopDemo/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|italiano| [[::UbuntuLTSP/LaptopDemo/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|日本語| [[::UbuntuLTSP/LaptopDemo/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|한국어| [[::UbuntuLTSP/LaptopDemo/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Ripoarisch| [[::UbuntuLTSP/LaptopDemo/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|मराठी| [[::UbuntuLTSP/LaptopDemo/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Bahasa Melayu| [[::UbuntuLTSP/LaptopDemo/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Nederlands| [[::UbuntuLTSP/LaptopDemo/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|norsk| [[::UbuntuLTSP/LaptopDemo/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|occitan| [[::UbuntuLTSP/LaptopDemo/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|polski| [[::UbuntuLTSP/LaptopDemo/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|português| [[::UbuntuLTSP/LaptopDemo/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|română| [[::UbuntuLTSP/LaptopDemo/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|русский| [[::UbuntuLTSP/LaptopDemo/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|සිංහල| [[::UbuntuLTSP/LaptopDemo/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|shqip| [[::UbuntuLTSP/LaptopDemo/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|српски / srpski| [[::UbuntuLTSP/LaptopDemo/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|svenska| [[::UbuntuLTSP/LaptopDemo/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|ไทย| [[::UbuntuLTSP/LaptopDemo/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Türkçe| [[::UbuntuLTSP/LaptopDemo/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|Tiếng Việt| [[::UbuntuLTSP/LaptopDemo/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|粵語| [[::UbuntuLTSP/LaptopDemo/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|中文| [[::UbuntuLTSP/LaptopDemo/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|中文(简体)| [[::UbuntuLTSP/LaptopDemo/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo | UbuntuHelp:UbuntuLTSP/LaptopDemo | {{#if: | :}}UbuntuLTSP/LaptopDemo}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/LaptopDemo|中文(繁體)| [[::UbuntuLTSP/LaptopDemo/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/LaptopDemo|:UbuntuLTSP/LaptopDemo|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/LaptopDemo/zh | | {{#ifexist: UbuntuLTSP/LaptopDemo/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/LaptopDemo|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/LaptopDemo|1|-1|}} | zh | | }}
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.
How to setup Laptop Demo
Here we do setup for laptop demo. We need working LTSP setup in laptop and ethernet crossover cable for thin client. Laptop as a LTSP server is connected to the Internet by WLAN, another laptop as a thin client is connected to the LTSP server by LAN (ethernet crossover cable). This way we can minimize needed hardware for demo session, we need just a laptop and ethernet crossover cable. Between WLAN (wlan0) and LAN (eth0) we need NAT. So our setup looks like this.
LAN (eth0) - Thin client | Laptop/LTSP server (NAT) | WLAN (wlan0) - Internet
NAT between WLAN and LAN
Be sure that your laptop can access to the Internet by WLAN. And be also sure that your thin client, for example another laptop can boot by PXE and act as a thin client. Here we get dynamic ip address from WLAN AP. We use networkmanager applet for that.
wlan0 Link encap:Ethernet HWaddr 00:1d:e0:67:09:a5 inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
But we use static ip address for LAN.
eth0 Link encap:Ethernet HWaddr 00:a0:d1:a3:81:55 inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
Real magic is here in these two lines. Run them as root (sudo).
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE iptables -A FORWARD -i eth0 -o wlan0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Permanent NAT setup
We can make this NAT setup permanent same way as in this howto. https://help.ubuntu.com/community/UbuntuLTSP/ThinClientHowtoNAT/ We create as root (sudo) file '/etc/network/wlan-nat.rules' after we have run those two commands above.
iptables-save > /etc/network/wlan-nat.rules
And we add that in file '/etc/network/interfaces' this way. This way we have NAT between WLAN and LAN in every boot.
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.105 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 192.168.1.1 up iptables-restore < /etc/network/wlan-nat.rules
Now we are ready to start demo session about LTSP with laptop and ethernet crossover cable. Here is an example screenshot - iTalc works very well with this kind of setup.