特殊:Badtitle/NS100:UbuntuLTSP/EnableNBDSWAP
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/EnableNBDSWAP }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Afrikaans| [[::UbuntuLTSP/EnableNBDSWAP/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|العربية| [[::UbuntuLTSP/EnableNBDSWAP/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|azərbaycanca| [[::UbuntuLTSP/EnableNBDSWAP/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|جهلسری بلوچی| [[::UbuntuLTSP/EnableNBDSWAP/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|български| [[::UbuntuLTSP/EnableNBDSWAP/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|brezhoneg| [[::UbuntuLTSP/EnableNBDSWAP/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|català| [[::UbuntuLTSP/EnableNBDSWAP/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|čeština| [[::UbuntuLTSP/EnableNBDSWAP/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Deutsch| [[::UbuntuLTSP/EnableNBDSWAP/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Ελληνικά| [[::UbuntuLTSP/EnableNBDSWAP/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|español| [[::UbuntuLTSP/EnableNBDSWAP/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|فارسی| [[::UbuntuLTSP/EnableNBDSWAP/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|suomi| [[::UbuntuLTSP/EnableNBDSWAP/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|français| [[::UbuntuLTSP/EnableNBDSWAP/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|ગુજરાતી| [[::UbuntuLTSP/EnableNBDSWAP/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|עברית| [[::UbuntuLTSP/EnableNBDSWAP/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|magyar| [[::UbuntuLTSP/EnableNBDSWAP/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Bahasa Indonesia| [[::UbuntuLTSP/EnableNBDSWAP/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|italiano| [[::UbuntuLTSP/EnableNBDSWAP/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|日本語| [[::UbuntuLTSP/EnableNBDSWAP/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|한국어| [[::UbuntuLTSP/EnableNBDSWAP/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Ripoarisch| [[::UbuntuLTSP/EnableNBDSWAP/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|मराठी| [[::UbuntuLTSP/EnableNBDSWAP/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Bahasa Melayu| [[::UbuntuLTSP/EnableNBDSWAP/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Nederlands| [[::UbuntuLTSP/EnableNBDSWAP/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|norsk| [[::UbuntuLTSP/EnableNBDSWAP/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|occitan| [[::UbuntuLTSP/EnableNBDSWAP/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|polski| [[::UbuntuLTSP/EnableNBDSWAP/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|português| [[::UbuntuLTSP/EnableNBDSWAP/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|română| [[::UbuntuLTSP/EnableNBDSWAP/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|русский| [[::UbuntuLTSP/EnableNBDSWAP/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|සිංහල| [[::UbuntuLTSP/EnableNBDSWAP/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|shqip| [[::UbuntuLTSP/EnableNBDSWAP/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|српски / srpski| [[::UbuntuLTSP/EnableNBDSWAP/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|svenska| [[::UbuntuLTSP/EnableNBDSWAP/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|ไทย| [[::UbuntuLTSP/EnableNBDSWAP/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Türkçe| [[::UbuntuLTSP/EnableNBDSWAP/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|Tiếng Việt| [[::UbuntuLTSP/EnableNBDSWAP/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|粵語| [[::UbuntuLTSP/EnableNBDSWAP/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|中文| [[::UbuntuLTSP/EnableNBDSWAP/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|中文(简体)| [[::UbuntuLTSP/EnableNBDSWAP/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | UbuntuHelp:UbuntuLTSP/EnableNBDSWAP | {{#if: | :}}UbuntuLTSP/EnableNBDSWAP}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|中文(繁體)| [[::UbuntuLTSP/EnableNBDSWAP/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/EnableNBDSWAP|:UbuntuLTSP/EnableNBDSWAP|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/EnableNBDSWAP/zh | | {{#ifexist: UbuntuLTSP/EnableNBDSWAP/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/EnableNBDSWAP|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/EnableNBDSWAP|1|-1|}} | zh | | }}
This wiki page is specific to Ubuntu Version(s): 8.04
To enable NBD Swap (Network swap for thin-clients) we must ensure the proper facilities are active and configured correctly.
- Edit /var/lib/tftpboot/ltsp/i386/lts.conf :
NBD_SWAP = True
The next lts.conf options, if used, will give you more control over where NBD Swap takes place:
SWAP_SERVER = IP_ADDRESS_OF_NBDSWAPD_SERVER # default is IP of LTSP server NBD_PORT = PORT # default is 9572 (after following instructions in https://help.ubuntu.com/community/UbuntuLTSP/UpdatingChroot )
- Create a /etc/ltsp/nbdswapd.conf file with the size of desired swapfile for each client. Keep in mind swapfiles live in /tmp, so make sure you have enough space in /tmp to facilitate CLIENTS x SIZE:
SIZE=256
- Make sure /etc/hosts.allow has the following line in it (it isn't in Hardy - only nbdrootd is as of 2008/10/10, so add nbdswapd line below. See https://bugs.launchpad.net/bugs/281501 ):
nbdswapd: ALL: keepalive
Reboot your thin-clients to activate their NBD Swap. You can verify swapfiles are being created in /tmp with the following to give you the number 256M files in /tmp starting with tmp. (which should be roughly accurate):
ls -lh /tmp/tmp.*|grep 256M|wc -l
This should be all you need to get swapfiles going in Ubuntu LTSP.