特殊:Badtitle/NS100:UbuntuLTSP/LocalAppsResolvConf
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/LocalAppsResolvConf }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Afrikaans| [[::UbuntuLTSP/LocalAppsResolvConf/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|العربية| [[::UbuntuLTSP/LocalAppsResolvConf/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|azərbaycanca| [[::UbuntuLTSP/LocalAppsResolvConf/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|جهلسری بلوچی| [[::UbuntuLTSP/LocalAppsResolvConf/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|български| [[::UbuntuLTSP/LocalAppsResolvConf/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|brezhoneg| [[::UbuntuLTSP/LocalAppsResolvConf/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|català| [[::UbuntuLTSP/LocalAppsResolvConf/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|čeština| [[::UbuntuLTSP/LocalAppsResolvConf/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Deutsch| [[::UbuntuLTSP/LocalAppsResolvConf/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Ελληνικά| [[::UbuntuLTSP/LocalAppsResolvConf/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|español| [[::UbuntuLTSP/LocalAppsResolvConf/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|فارسی| [[::UbuntuLTSP/LocalAppsResolvConf/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|suomi| [[::UbuntuLTSP/LocalAppsResolvConf/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|français| [[::UbuntuLTSP/LocalAppsResolvConf/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|ગુજરાતી| [[::UbuntuLTSP/LocalAppsResolvConf/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|עברית| [[::UbuntuLTSP/LocalAppsResolvConf/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|magyar| [[::UbuntuLTSP/LocalAppsResolvConf/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Bahasa Indonesia| [[::UbuntuLTSP/LocalAppsResolvConf/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|italiano| [[::UbuntuLTSP/LocalAppsResolvConf/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|日本語| [[::UbuntuLTSP/LocalAppsResolvConf/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|한국어| [[::UbuntuLTSP/LocalAppsResolvConf/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Ripoarisch| [[::UbuntuLTSP/LocalAppsResolvConf/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|मराठी| [[::UbuntuLTSP/LocalAppsResolvConf/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Bahasa Melayu| [[::UbuntuLTSP/LocalAppsResolvConf/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Nederlands| [[::UbuntuLTSP/LocalAppsResolvConf/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|norsk| [[::UbuntuLTSP/LocalAppsResolvConf/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|occitan| [[::UbuntuLTSP/LocalAppsResolvConf/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|polski| [[::UbuntuLTSP/LocalAppsResolvConf/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|português| [[::UbuntuLTSP/LocalAppsResolvConf/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|română| [[::UbuntuLTSP/LocalAppsResolvConf/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|русский| [[::UbuntuLTSP/LocalAppsResolvConf/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|සිංහල| [[::UbuntuLTSP/LocalAppsResolvConf/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|shqip| [[::UbuntuLTSP/LocalAppsResolvConf/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|српски / srpski| [[::UbuntuLTSP/LocalAppsResolvConf/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|svenska| [[::UbuntuLTSP/LocalAppsResolvConf/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|ไทย| [[::UbuntuLTSP/LocalAppsResolvConf/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Türkçe| [[::UbuntuLTSP/LocalAppsResolvConf/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|Tiếng Việt| [[::UbuntuLTSP/LocalAppsResolvConf/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|粵語| [[::UbuntuLTSP/LocalAppsResolvConf/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|中文| [[::UbuntuLTSP/LocalAppsResolvConf/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|中文(简体)| [[::UbuntuLTSP/LocalAppsResolvConf/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf | {{#if: | :}}UbuntuLTSP/LocalAppsResolvConf}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|中文(繁體)| [[::UbuntuLTSP/LocalAppsResolvConf/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/LocalAppsResolvConf|:UbuntuLTSP/LocalAppsResolvConf|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/LocalAppsResolvConf/zh | | {{#ifexist: UbuntuLTSP/LocalAppsResolvConf/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/LocalAppsResolvConf|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/LocalAppsResolvConf|1|-1|}} | zh | | }}
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.
Repairing permissions for /etc/resolv.conf file in chroot
There is a bug that affects name resolution from within the client chroot. This affects applications that are run locally on the thin client. The resolver configuration file /etc/resolv.conf is not created properly due to broken permissions. Bug: https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/347957 Here is a workaround for that bug that applies for both setup types - one or two network interfaces on the server. 1. Create a script that will set up the proper permissions
$ cat /opt/ltsp/i386/etc/init.d/chmod-resolv.sh #! /bin/sh chmod 644 /etc/resolv.conf
2. Add three lines to the lts.conf file
$ cat /var/lib/tftpboot/ltsp/i386/lts.conf SEARCH_DOMAIN = ubuntu-ltsp5 || Change this for your own network DNS_SERVER = 192.168.1.1 || Change this for your own network RCFILE_01=/etc/init.d/chmod-resolv.sh
3. Rebuild the client image
$ sudo ltsp-update-image
4. Boot a thin client, connect to its shell (ex: via SSH or from the unlocked root account), and verify that the mode and content are correct
# ls -al /etc/resolv.conf -rw-r--r-- 1 root root 43 2002-01-13 17:13 /etc/resolv.conf # cat /etc/resolv.conf search ubuntu-ltsp5 nameserver 192.168.1.1