个人工具

UbuntuHelp:UbuntuLTSP/GuiInstallLocalApp

来自Ubuntu中文

跳转至: 导航, 搜索
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

  1. Make X session work, type in terminal:
    xhost +
    sudo su (type in your password)
    export DISPLAY=:0 
  2. 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 ~/ 
  3. 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 
  4. 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.
  5. 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 
  6. Update your chroot:
    sudo ltsp-update-image 
  7. 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).