UbuntuHelp:UbuntuLTSP/GuiInstallLocalApp
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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.
Need
Some applications such as CmapTools require the use of a graphical installer, that is, won't install via the CLI. This presents a problem to installing in the LTSP chroot as the installer refrences itself to the regular file system.
Installation Procedure
Additional useful information on localapps is on this page LocalAppsJaunty
- Make X session work, type in terminal:
xhost + sudo su (type in your password) export DISPLAY=:0
- Next, you need to make the X Session work for the root user, also. You need to determine where the root user is located in the file system that gets loaded onto the thin clients. In the code below are the commands for a typical Edubuntu LTSP install.
cp /home/dgroos/.Xauthority /opt/ltsp/i386/root cp /home/dgroos/.Xauthority ~/
- Next, the following commands make the installer think that the chroot is the normal root:
(first type "exit" to get out of root user) sudo mount -t proc proc /opt/ltsp/i386/proc sudo mount --bind /tmp /opt/ltsp/i386/tmp sudo mount --bind /dev /opt/ltsp/i386/dev sudo mount --bind /home /opt/ltsp/i386/home sudo cp /opt/ltsp/i386/etc/passwd /opt/ltsp/i386/etc/passwd.bak sudo cp /opt/ltsp/i386/etc/group /opt/ltsp/i386/etc/group.bak sudo cp /etc/passwd /etc/group /opt/ltsp/i386/etc sudo chroot /opt/ltsp/i386/ su $SUDO_USER
- Now, in terminal, cd to the directory that contains the installer then launch it, for example:
sh LinuxCmapTools_v5.03_04-07-09.bin
and an X window with the graphical installer will open up, guiding you through the installation process. - IMPORTANT! don't forget to undo what you did in step 3!
exit (in other words, you've got to get out of being the root user) sudo mv /opt/ltsp/i386/etc/passwd.bak /opt/ltsp/i386/etc/passwd sudo mv /opt/ltsp/i386/etc/group.bak /opt/ltsp/i386/etc/group sudo umount /opt/ltsp/i386/home sudo umount /opt/ltsp/i386/dev sudo umount /opt/ltsp/i386/tmp sudo umount /opt/ltsp/i386/proc
- Update your chroot:
sudo ltsp-update-image
- Test your new localapp:
ltsp-localapps /path/in/the/chroot/to/your/binaries (for example: /usr/lib/IHMC_CmapTools/bin/CmapTools
Note, you will need to do something so the app added this way will launch with a GUI launcher (I'll add when I figure it out).