特殊:Badtitle/NS100:UbuntuLTSP/GetMoreFromLocalApps:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/UbuntuLTSP/GetMoreFromLocalApps}} {{Languages|UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps}} {|border="1" cellspacing="0" |This page is sp...' |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps}} | {{Languages|UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps}} | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
|This page is specific to Ubuntu versions 8.10 | |This page is specific to Ubuntu versions 8.10 and 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.'' | ''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.'' | ||
---- | ---- | ||
'''This page describes how access Edubuntu server /home, /opt and /media directories from local applications with Edubuntu 8.10 and 9.04 thin clients'''. | |||
* [[UbuntuHelp:[8.10| Get more from Local Applications with Edubuntu 8.10]]] | |||
* [[UbuntuHelp:[9.04| Get more from Local Applications with Edubuntu 9.04]]] | |||
<<Anchor(8.10)>> | |||
== Get more from Local Applications with Edubuntu 8.10 == | |||
=== "Regular" local applications === | === "Regular" local applications === | ||
Local applications are enabled by default. You may set it explicitly in lts.conf with "'''LOCAL_APPS = True'''" (in the [default] section or any specific thin client section(s)). For more details, see | Local applications are enabled by default. You may set it explicitly in lts.conf with "'''LOCAL_APPS = True'''" (in the [default] section or any specific thin client section(s)). For more details, see [[UbuntuWiki:LTSPLocalAppSetup|LTSPLocalAppSetup]]. | ||
Before using "regular" local applications, you must: | Before using "regular" local applications, you must: | ||
* Install the applications you want to run locally in the thin client image, | * Install the applications you want to run locally in the thin client image, | ||
第32行: | 第35行: | ||
* control which of these directories you want your local applications to access, using new '''lts.conf''' keywords like '''"LOCAL_OPT"''', '''"LOCAL_MEDIA"''' and '''"LOCAL_REAL_HOME"'''. | * control which of these directories you want your local applications to access, using new '''lts.conf''' keywords like '''"LOCAL_OPT"''', '''"LOCAL_MEDIA"''' and '''"LOCAL_REAL_HOME"'''. | ||
* use the standard gnome icons and launchers to call the corresponding local apps. You won't need to create special icons or launchers to do so. Wherever you log in from (thin client, console, remote X station), you'll always use the same launchers/icons. | * use the standard gnome icons and launchers to call the corresponding local apps. You won't need to create special icons or launchers to do so. Wherever you log in from (thin client, console, remote X station), you'll always use the same launchers/icons. | ||
=== Installation === | === Installation for Edubuntu 8.10 === | ||
'''''Notes:''''' | '''''Notes:''''' | ||
* '''''First, you'll need to | * '''''First, you'll need to [[UbuntuWiki:LTSPLocalAppSetup|Install|Localapps]].''''' | ||
* '''''Installing the [[UbuntuHelp:UbuntuLTSP/GnomeWatchdog|gnome-watchdog]] package is also recommended.''''' | |||
* '''''For the rest of the document, we'll assume your current LTSP image is installed in /opt/ltsp/i386.''''' | * '''''For the rest of the document, we'll assume your current LTSP image is installed in /opt/ltsp/i386.''''' | ||
==== Download ==== | ==== Download ==== | ||
第49行: | 第53行: | ||
sudo mv S01-localapps rc.d/ | sudo mv S01-localapps rc.d/ | ||
</nowiki></pre> | </nowiki></pre> | ||
'''''Important: The original file must NOT begin with 'Sxx' ( | '''''Important: The original file must NOT begin with 'Sxx' (where 01 <= xx <= 99). ''''' | ||
==== Setup localapps contents ==== | ==== Setup localapps contents ==== | ||
The '''/opt/ltsp/i386/usr/share/ldm/localapps''' subdir contains one file called '''gnomerc.inc''' ('''don't delete it!''') and some other scripts used to call the local apps: | The '''/opt/ltsp/i386/usr/share/ldm/localapps''' subdir contains one file called '''gnomerc.inc''' ('''don't delete it!''') and some other scripts used to call the local apps: | ||
第115行: | 第119行: | ||
# Grant access to /home instead of /home/logged_in_user | # Grant access to /home instead of /home/logged_in_user | ||
LOCAL_REAL_HOME = True | LOCAL_REAL_HOME = True | ||
</nowiki></pre> | |||
<<Anchor(9.04)>> | |||
== Get more from Local Applications with Edubuntu 9.04 == | |||
Thanks to the LTSP-Edubuntu team, calling local applications is much easier with Edubuntu 9.04. Using '''LOCAL_APPS''', '''LOCAL_APPS_MENU''', '''LOCAL_APPS_MENU_ITEMS''' and '''LOCAL_APPS_WHITELIST''' keywords in the server '''lts.conf''', calling local applications is very easy (once you've installed the corresponding applications in the thin client image). | |||
Refer to https://help.ubuntu.com/community/UbuntuLTSP/LTSPLocalAppsJaunty for more details. | |||
However, in Edubuntu 9.04, local applications are still "chhomed" in the logged in user home directory. It is not possible to create or access files located elsewhere on the server. In order to access the server '''/home''', '''/opt''' and/or '''/media''' directories from a local application, you'll need to install 2 extra LDM scripts: | |||
* '''X02-localapps-addons''' | |||
* '''X98-localapps-addons-cleanup''' | |||
It is no longer necessary to patch existing LDM scripts. | |||
==== Installation for Edubuntu 9.04 ==== | |||
Assuming your current thin client image is in /opt/ltsp/i386: | |||
<pre><nowiki> | |||
cd /opt/ltsp/i386/usr/share/ldm/rc.d | |||
sudo wget http://www.carlit.net/upload/X02-localapps-addons | |||
sudo wget http://www.carlit.net/upload/X98-localapps-addons-cleanup | |||
</nowiki></pre> | |||
Refer to the scripts comments for more information. | |||
==== Update your image ==== | |||
Now update the image: | |||
<pre><nowiki> | |||
cd ~ | |||
sudo ltsp-update-image | |||
</nowiki></pre> | |||
==== Edit lts.conf ==== | |||
For Edubuntu 9.04, the additional lts.conf parameters are: | |||
* '''MOUNT_LOCAL_REAL_HOME''' (True/False): If True (AND '''LOCAL_APPS''' is True), the server /home will be mounted on the thin client local /home. | |||
* '''MOUNT_LOCAL_OPT''' (True/False): If True (AND '''LOCAL_APPS''' is True), the server /opt will be mounted on the thin client local /opt. | |||
* '''MOUNT_LOCAL_MEDIA''' (True/False): If True (AND '''LOCAL_APPS''' is True), the server /media will be mounted on the thin client local /media. | |||
These 3 new keywords may be declared anywhere in the lts.conf, i.e. in the [default] section or any other section. | |||
Example: | |||
<pre><nowiki> | |||
[default] | |||
LOCAL_APPS = True | |||
# Grant access to /opt from local apps for all thin clients | |||
MOUNT_LOCAL_OPT = True | |||
# Grant access to /media from local apps for all thin clients | |||
MOUNT_LOCAL_MEDIA = True | |||
[ab:3e:6d:44:6f:87] | |||
# Grant access to /home instead of /home/logged_in_user for this specific thin client | |||
MOUNT_LOCAL_REAL_HOME = True | |||
</nowiki></pre> | </nowiki></pre> | ||
==== Now try! ==== | ==== Now try! ==== | ||
第121行: | 第168行: | ||
That's all. Probably not bullet-proof, not very clean, but it works here. Comments, fixes and enhancements welcome... (pbaco at carlit.net). | That's all. Probably not bullet-proof, not very clean, but it works here. Comments, fixes and enhancements welcome... (pbaco at carlit.net). | ||
=== See Also === | === See Also === | ||
* https://wiki.ubuntu.com/LTSPLocalAppSetup | * https://wiki.ubuntu.com/LTSPLocalAppSetup (Edubuntu 8.10) | ||
* https://help.ubuntu.com/community/UbuntuLTSP/LTSPLocalAppsJaunty (Edubuntu 9.04) | |||
---- | ---- | ||
[[category:CategoryLtsp]] | [[category:CategoryLtsp]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 20:52的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UbuntuLTSP/GetMoreFromLocalApps }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/af | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Afrikaans| [[::UbuntuLTSP/GetMoreFromLocalApps/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ar | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|العربية| [[::UbuntuLTSP/GetMoreFromLocalApps/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/az | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|azərbaycanca| [[::UbuntuLTSP/GetMoreFromLocalApps/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/bcc | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|جهلسری بلوچی| [[::UbuntuLTSP/GetMoreFromLocalApps/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/bg | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|български| [[::UbuntuLTSP/GetMoreFromLocalApps/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/br | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|brezhoneg| [[::UbuntuLTSP/GetMoreFromLocalApps/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ca | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|català| [[::UbuntuLTSP/GetMoreFromLocalApps/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/cs | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|čeština| [[::UbuntuLTSP/GetMoreFromLocalApps/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/de | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Deutsch| [[::UbuntuLTSP/GetMoreFromLocalApps/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/el | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Ελληνικά| [[::UbuntuLTSP/GetMoreFromLocalApps/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/es | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|español| [[::UbuntuLTSP/GetMoreFromLocalApps/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/fa | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|فارسی| [[::UbuntuLTSP/GetMoreFromLocalApps/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/fi | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|suomi| [[::UbuntuLTSP/GetMoreFromLocalApps/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/fr | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|français| [[::UbuntuLTSP/GetMoreFromLocalApps/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/gu | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|ગુજરાતી| [[::UbuntuLTSP/GetMoreFromLocalApps/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/he | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|עברית| [[::UbuntuLTSP/GetMoreFromLocalApps/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/hu | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|magyar| [[::UbuntuLTSP/GetMoreFromLocalApps/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/id | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Bahasa Indonesia| [[::UbuntuLTSP/GetMoreFromLocalApps/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/it | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|italiano| [[::UbuntuLTSP/GetMoreFromLocalApps/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ja | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|日本語| [[::UbuntuLTSP/GetMoreFromLocalApps/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ko | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|한국어| [[::UbuntuLTSP/GetMoreFromLocalApps/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ksh | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Ripoarisch| [[::UbuntuLTSP/GetMoreFromLocalApps/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/mr | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|मराठी| [[::UbuntuLTSP/GetMoreFromLocalApps/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ms | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Bahasa Melayu| [[::UbuntuLTSP/GetMoreFromLocalApps/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/nl | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Nederlands| [[::UbuntuLTSP/GetMoreFromLocalApps/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/no | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|norsk| [[::UbuntuLTSP/GetMoreFromLocalApps/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/oc | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|occitan| [[::UbuntuLTSP/GetMoreFromLocalApps/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/pl | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|polski| [[::UbuntuLTSP/GetMoreFromLocalApps/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/pt | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|português| [[::UbuntuLTSP/GetMoreFromLocalApps/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ro | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|română| [[::UbuntuLTSP/GetMoreFromLocalApps/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/ru | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|русский| [[::UbuntuLTSP/GetMoreFromLocalApps/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/si | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|සිංහල| [[::UbuntuLTSP/GetMoreFromLocalApps/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/sq | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|shqip| [[::UbuntuLTSP/GetMoreFromLocalApps/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/sr | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|српски / srpski| [[::UbuntuLTSP/GetMoreFromLocalApps/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/sv | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|svenska| [[::UbuntuLTSP/GetMoreFromLocalApps/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/th | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|ไทย| [[::UbuntuLTSP/GetMoreFromLocalApps/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/tr | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Türkçe| [[::UbuntuLTSP/GetMoreFromLocalApps/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/vi | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|Tiếng Việt| [[::UbuntuLTSP/GetMoreFromLocalApps/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/yue | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|粵語| [[::UbuntuLTSP/GetMoreFromLocalApps/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/zh | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|中文| [[::UbuntuLTSP/GetMoreFromLocalApps/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/zh-hans | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|中文(简体)| [[::UbuntuLTSP/GetMoreFromLocalApps/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps | {{#if: | :}}UbuntuLTSP/GetMoreFromLocalApps}}/zh-hant | • {{#if: UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|中文(繁體)| [[::UbuntuLTSP/GetMoreFromLocalApps/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UbuntuLTSP/GetMoreFromLocalApps|:UbuntuLTSP/GetMoreFromLocalApps|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuLTSP/GetMoreFromLocalApps/zh | | {{#ifexist: UbuntuLTSP/GetMoreFromLocalApps/zh | | {{#ifeq: {{#titleparts:UbuntuLTSP/GetMoreFromLocalApps|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuLTSP/GetMoreFromLocalApps|1|-1|}} | zh | | }}
This page is specific to Ubuntu versions 8.10 and 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.
This page describes how access Edubuntu server /home, /opt and /media directories from local applications with Edubuntu 8.10 and 9.04 thin clients.
- [[UbuntuHelp:[8.10| Get more from Local Applications with Edubuntu 8.10]]]
- [[UbuntuHelp:[9.04| Get more from Local Applications with Edubuntu 9.04]]]
<<Anchor(8.10)>>
Get more from Local Applications with Edubuntu 8.10
"Regular" local applications
Local applications are enabled by default. You may set it explicitly in lts.conf with "LOCAL_APPS = True" (in the [default] section or any specific thin client section(s)). For more details, see LTSPLocalAppSetup. Before using "regular" local applications, you must:
- Install the applications you want to run locally in the thin client image,
- (Re)create a new thin client image using ltsp-update-image,
- (Re)boot the thin client(s) using this image,
- Login to the server from the thin client ldm screen,
- Call the local application with the ltsp-localapps wrapper (see /usr/bin/ltsp-localapps), like:
ltsp-localapps firefox
Depending on your thin client(s) capacity (mainly memory), you can install several local applications, like Firefox, OpenOffice, The Gimp, VLC, etc... When executed "locally", these applications will run on the thin client CPU/RAM (instead of the server), and will be able to access the thin client hardware (webcam, disk, etc.) By default, when local apps are enabled, the homedir of the logged in user is mounted (using sshfs) under the local /home/user directory. This way, the local application may ONLY access files and dirs located in the homedir of the logged in user. Trying to access files located elsewhere on the server will fail.
Extending local applications
The "regular" LTSP local applications feature distributes the application load on thin clients CPU, allowing the server to handle more thin clients. However, it has some limitations:
- a local application may only access the currently logged in user server homedir. This is fine in some situations (i.e. a kiosk / Cybercafé config). But you can't access other server dirs and files. Sharing dirs and files is necessary in other situations, like in schools: using your thin client local Open Office, you should be able to read/write files stored in some server shared dirs.
- Once logged in the server, you need to call a wrapper (ltsp-localapps) to start a local application. In other words, you'll need to create special icons/shortcuts to click on to start a local app instead of the same server based application (as most of local applications are also installed on the server). For instance, if you click on the standard Firefox or Open Office icon of the Gnome menu (or toolbar), the corresponding server based application will start. Same will happen if you click on a '.html' or '.odt/.ods' file in Nautilus. It means you'll need to manage 2 sets of launchers for your applications:
- one launcher for the local app, calling the wrapper, as in "ltsp-localapps firefox",
- another one for the same server based app, using the normal program name, like "firefox".
It may be quite confusing, especially when your user(s) log in from thin clients and/or from the console (or remote X station). Depending on where they are, they'll have to click on different icons. The following modifications let you:
- access file located in other server directories, like /home (instead of /home/logged_in_user), /opt and /media.
- control which of these directories you want your local applications to access, using new lts.conf keywords like "LOCAL_OPT", "LOCAL_MEDIA" and "LOCAL_REAL_HOME".
- use the standard gnome icons and launchers to call the corresponding local apps. You won't need to create special icons or launchers to do so. Wherever you log in from (thin client, console, remote X station), you'll always use the same launchers/icons.
Installation for Edubuntu 8.10
Notes:
- First, you'll need to Install|Localapps.
- Installing the gnome-watchdog package is also recommended.
- For the rest of the document, we'll assume your current LTSP image is installed in /opt/ltsp/i386.
Download
Download this file http://www.carlit.net/upload/local-apps-8.10.tgz to the LTSP server, in a directory where you have sufficient rights. Untar the file:
sudo tar xvfz local-apps-8.10.tgz -C /opt/ltsp/i386/usr/share/ldm
In /opt/ltsp/i386/usr/share/ldm, this will create one file S01-localapps and one subdir localapps.
Install new S01-localapps
The original /opt/ltsp/i386/usr/share/ldm/rc.d/S01-localapps must be replaced with the new one, but let's make a backup, just in case:
cd /opt/ltsp/i386/usr/share/ldm sudo mv rc.d/S01-localapps rc.d/original-S01-localapps sudo mv S01-localapps rc.d/
Important: The original file must NOT begin with 'Sxx' (where 01 <= xx <= 99).
Setup localapps contents
The /opt/ltsp/i386/usr/share/ldm/localapps subdir contains one file called gnomerc.inc (don't delete it!) and some other scripts used to call the local apps:
firefox gimp gnomerc.inc ooffice vlc xterm
You MUST remove all the scripts that do not correspond to local applications. Let's say you have only firefox installed as a local application. The contents of the /opt/ltsp/i386/usr/share/ldm/localapps should be:
firefox gnomerc.inc
If you have installed a local application not listed in the default localapps subdir, you'll need to create a script to call it. Using firefox as an example, this should be easy.
#!/bin/sh # Script to call firefox when installed as a local app. # Installed in ~/.ltsp/bin # # P.Baco # # First arg: leaved as it was in original "ltsp-localapps" if [ "$1" = "--wait" ]; then xprop -root -f LTSP_COMMAND_WAIT 8s -set LTSP_COMMAND_WAIT "true" shift fi # Local App to call PRG="firefox" # Protect spaces within command arguments while [ "$1" != "" ]; do X=$(echo $1 | sed 's/ /\\ /g') PRG="$PRG $X" shift done # Pass the $PRG command line string to xprop. # See (chroot)/usr/bin/ltsp-localappsd for details # xprop -root -f LTSP_COMMAND 8s -set LTSP_COMMAND "$PRG"
Important: The script MUST have exactly the same name than the original command. Let's say you have installed 'thunderbird' as a local application. The calling script MUST be called 'thunderbird'. If not, Gnome, Nautilus and bash will call the server application instead of the local one. Why ? Because what's inside localapps will be copied into ~/.ltsp/bin when a user logs in from a thin client. The user's PATH is then modified to include ~/.ltsp/bin as the FIRST dir to search for an application (see gnomerc.inc). It a match is found, the local app will be called instead of the server one, whatever is the calling program (gnome-desktop, nautilus or bash). By the way, the gnomerc.inc script makes sure this is done ONLY when a user logs in from a thin client. When the same user logs in from the console, all scripts in ~/.ltsp/bin are removed. The local apps will not be called, until the same user logs in from a thin client.
Update your image
Now update the image:
cd ~ sudo ltsp-update-image
Update lts.conf
This step is not mandatory. /var/lib/tftpf/ltsp/i386/lts.conf must be updated only when you want your local app(s) to access the /home, /opt or /media directories. Example:
# Grant access to /opt from local apps LOCAL_OPT = True # Grant access to /media from local apps LOCAL_MEDIA = True # Grant access to /home instead of /home/logged_in_user LOCAL_REAL_HOME = True
<<Anchor(9.04)>>
Get more from Local Applications with Edubuntu 9.04
Thanks to the LTSP-Edubuntu team, calling local applications is much easier with Edubuntu 9.04. Using LOCAL_APPS, LOCAL_APPS_MENU, LOCAL_APPS_MENU_ITEMS and LOCAL_APPS_WHITELIST keywords in the server lts.conf, calling local applications is very easy (once you've installed the corresponding applications in the thin client image). Refer to https://help.ubuntu.com/community/UbuntuLTSP/LTSPLocalAppsJaunty for more details. However, in Edubuntu 9.04, local applications are still "chhomed" in the logged in user home directory. It is not possible to create or access files located elsewhere on the server. In order to access the server /home, /opt and/or /media directories from a local application, you'll need to install 2 extra LDM scripts:
- X02-localapps-addons
- X98-localapps-addons-cleanup
It is no longer necessary to patch existing LDM scripts.
Installation for Edubuntu 9.04
Assuming your current thin client image is in /opt/ltsp/i386:
cd /opt/ltsp/i386/usr/share/ldm/rc.d sudo wget http://www.carlit.net/upload/X02-localapps-addons sudo wget http://www.carlit.net/upload/X98-localapps-addons-cleanup
Refer to the scripts comments for more information.
Update your image
Now update the image:
cd ~ sudo ltsp-update-image
Edit lts.conf
For Edubuntu 9.04, the additional lts.conf parameters are:
- MOUNT_LOCAL_REAL_HOME (True/False): If True (AND LOCAL_APPS is True), the server /home will be mounted on the thin client local /home.
- MOUNT_LOCAL_OPT (True/False): If True (AND LOCAL_APPS is True), the server /opt will be mounted on the thin client local /opt.
- MOUNT_LOCAL_MEDIA (True/False): If True (AND LOCAL_APPS is True), the server /media will be mounted on the thin client local /media.
These 3 new keywords may be declared anywhere in the lts.conf, i.e. in the [default] section or any other section. Example:
[default] LOCAL_APPS = True # Grant access to /opt from local apps for all thin clients MOUNT_LOCAL_OPT = True # Grant access to /media from local apps for all thin clients MOUNT_LOCAL_MEDIA = True [ab:3e:6d:44:6f:87] # Grant access to /home instead of /home/logged_in_user for this specific thin client MOUNT_LOCAL_REAL_HOME = True
Now try!
Reboot your thin client. Enter your login name and password. Select your local application from the toolbar, menu or desktop icon. Within a couple of seconds, your local application should start. In Nautilus, same will happen if you click on a file name associated with your local application, as long as the file is somewhere in /home, /opt or /media.
Conclusion
That's all. Probably not bullet-proof, not very clean, but it works here. Comments, fixes and enhancements welcome... (pbaco at carlit.net).
See Also
- https://wiki.ubuntu.com/LTSPLocalAppSetup (Edubuntu 8.10)
- https://help.ubuntu.com/community/UbuntuLTSP/LTSPLocalAppsJaunty (Edubuntu 9.04)