X11 LXDE in OpenVZ: Difference between revisions

From Proxmox VE
Jump to navigation Jump to search
(archive)
 
(27 intermediate revisions by 3 users not shown)
Line 13: Line 13:
apt-get clean all
apt-get clean all


# export DEBIAN_FRONTEND=noninteractive
apt-get install lxde
apt-get install lxde
# During above installation, Keyboard Country and Charset will be interactively asked
# During above installation, Keyboard Country and Charset will be interactively asked
Line 31: Line 32:
# The following will have to be removed and installed again if the primary lxpanel gets removed in the GUI
# The following will have to be removed and installed again if the primary lxpanel gets removed in the GUI
apt-get install x2golxdebindings
apt-get install x2golxdebindings
</source>


=== Installing Firefox ===
<source lang="bash">
apt-get remove iceweasel
apt-get remove iceweasel
(
(
Line 45: Line 49:
shutdown -r now
shutdown -r now
</source>
</source>
=== Startup Apps ===
All the applications are in: '''/usr/share/applications'''
<source lang="bash">
cat <<EOF > /etc/xdg/autostart/lxterminal.desktop
[Desktop Entry]
Type=Application
Exec=lxterminal
OnlyShowIn=LXDE;
EOF
cat <<EOF >> /etc/xdg/lxsession/LXDE/autostart
@/etc/xdg/autostart/lxterminal.desktop
EOF
</source>
=== Other Applications in LXDE ===
To install and run applications such as LibreOffice (forked from OpenOffice.org and standard from Debian Wheezy onwards), we need to increase the RAM and Swap to atleast 1GB. Incase the RAM was not increased and the apt-get install [package] froze, it can be recovered on reboot after increasing the RAM by executing:
dpkg --configure -a
LibreOffice is available in the squeeze-backports repo which can be installed using:
==== squeeze-backports repo ====
* Increase VM memory and swap allocation to atleast 1GB
* Enable '''squeeze-backports''' and '''squeeze-backports-sloppy''' repos by appending the following to '''/etc/apt/sources.list'''
<pre>
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://backports.debian.org/debian-backports squeeze-backports-sloppy main
</pre>
This can also be done with:
<source lang="bash">
cat <<EOF >> /etc/apt/sources.list
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://backports.debian.org/debian-backports squeeze-backports-sloppy main
EOF
apt-get update
</source>
==== Install LibreOffice ====
* LibreOffice can be installed with:
apt-get install -t squeeze-backports libreoffice
* openjdk 6 also gets installed
* Depending on the used desktop environment, you might also have to install the libreoffice-gtk, libreoffice-gnome or libreoffice-kde packages. For LXDE, the necessary packages have already been installed now.
==== Graphics Apps ====
apt-get install gimp inkscape
==== Install Wine (32 bit only) ====
apt-get install wine ttf-mscorefonts-installer
==== Add Sys Admin Tools ====
apt-get install gnome-system-tools
This package is necessary to manage Users and Groups in Debian and is quite big in size - 500 MB.


== Installing the x2go Client ==
== Installing the x2go Client ==
Line 65: Line 125:
  killall lxpanel && lxpanel -p LXDE &
  killall lxpanel && lxpanel -p LXDE &


== Portable Client ==
=== Portable Client ===
'''x2goclient on Windows''' has a portable mode (and has had one for a very long time, if not even from the beginning). No need to apply any external tweaks or tools. See <tt>x2goclient.exe --help</tt> for details.
'''x2goclient on Windows''' has a portable mode (and has had one for a very long time, if not even from the beginning). No need to apply any external tweaks or tools. See <tt>x2goclient.exe --help</tt> for details.
=== Client Screenshots ===
* [[Media:X11onVZ.png|X11 after all installs above]]
* [[Media:X11onVZapps.png|X11 with Apps running]]


== References ==
== References ==
* [https://openvz.org/NX_inside_VE NX inside VE]
* [https://openvz.org/NX_inside_VE NX inside VE]
* [http://x2go-community.org/node/439 Portable Mode for Windows Clients]
* [http://x2go-community.org/node/439 Portable Mode for Windows Clients]
* [http://www.fdsd.co.uk/wiki/Tech/LxdeTips.html LXDE Tips]
* [https://wiki.debian.org/LibreOffice LibreOffice on Debian]
* [https://www.debian.org/News/2011/20110623 LibreOffice replaces OpenOffice.org in Debian Wheezy onwards]
* [https://packages.debian.org/search?keywords=openjdk-6-jre OpenJDK 6 JRE in Debian Packages]
* [http://lxlinux.com/ Wine in LXDE - Linux Guide]
* [http://wiki.lxde.org/en/LXPanel LXPanel]
* [http://lkubaski.wordpress.com/2012/06/29/adding-lxde-start-menu-and-desktop-shortcuts/ Adding Menu Shortcuts in LXDE]
* [http://linuxftw.weebly.com/lubuntu-1110-installation-guide.html Ubuntu LXDE Install Guide]
* [http://en.libreofficeforum.org/node/834 LibreOffice and LXPanel Compatibility Solved]
* [http://l3net.wordpress.com/2013/04/30/lightweight-debian-lxde-desktop-from-scratch/ LXDE from Scratch]


 
[[Category: Archive]]
 
[[Category: Proxmox VE 3.x]]
 
 
[[Category: HOWTO]]

Latest revision as of 15:51, 18 July 2019

Introduction

x2go is available as a server for linux distributions and as a client for Windows, MacOS, Linux - Debian / Fedora and their derivatives. The x2go client in a remote instance can connect to a headless VM in an OpenVZ container running the x2go server and the specific GUI bindings (Gnome, KDE, LXDE, etc). Though this article is specific to debian squeeze x2go server install, it can be a general guide with small modifications to suit any distro.

Installing the x2go server in a Debian Squeeze VM

  • Create an OpenVZ container based on any debian squeeze template (standard preferred).
  • SSH into it as root
  • Make sure the squeeze-lts repo is available (otherwise add it):
grep squeeze-lts /etc/apt/sources.list

Output: deb http://ftp.debian.org/debian squeeze-lts main contrib

  • Now execute the following (stopping and starting the container as directed in the comments):
apt-get update && apt-get dist-upgrade
apt-get clean all

# export DEBIAN_FRONTEND=noninteractive
apt-get install lxde
# During above installation, Keyboard Country and Charset will be interactively asked

(
cat <<REPOstring
# X2Go Repository (release builds)
deb http://packages.x2go.org/debian squeeze main
# X2Go Repository (sources of release builds)
deb-src http://packages.x2go.org/debian squeeze main
REPOstring
) > /etc/apt/sources.list.d/x2go.list

apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
apt-get update
apt-get install x2go-keyring && apt-get update
apt-get install x2goserver x2goserver-xsession
# The following will have to be removed and installed again if the primary lxpanel gets removed in the GUI
apt-get install x2golxdebindings

Installing Firefox

apt-get remove iceweasel
(
cat <<FFRepo
# Firefox Repository
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main
FFRepo
) > /etc/apt/sources.list.d/firefox.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
apt-get update
apt-get install firefox-mozilla-build

shutdown -r now

Startup Apps

All the applications are in: /usr/share/applications

cat <<EOF > /etc/xdg/autostart/lxterminal.desktop
[Desktop Entry]
Type=Application
Exec=lxterminal
OnlyShowIn=LXDE;
EOF

cat <<EOF >> /etc/xdg/lxsession/LXDE/autostart
@/etc/xdg/autostart/lxterminal.desktop
EOF

Other Applications in LXDE

To install and run applications such as LibreOffice (forked from OpenOffice.org and standard from Debian Wheezy onwards), we need to increase the RAM and Swap to atleast 1GB. Incase the RAM was not increased and the apt-get install [package] froze, it can be recovered on reboot after increasing the RAM by executing:

dpkg --configure -a

LibreOffice is available in the squeeze-backports repo which can be installed using:

squeeze-backports repo

  • Increase VM memory and swap allocation to atleast 1GB
  • Enable squeeze-backports and squeeze-backports-sloppy repos by appending the following to /etc/apt/sources.list
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://backports.debian.org/debian-backports squeeze-backports-sloppy main

This can also be done with:

cat <<EOF >> /etc/apt/sources.list
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://backports.debian.org/debian-backports squeeze-backports-sloppy main
EOF

apt-get update

Install LibreOffice

  • LibreOffice can be installed with:
apt-get install -t squeeze-backports libreoffice
  • openjdk 6 also gets installed
  • Depending on the used desktop environment, you might also have to install the libreoffice-gtk, libreoffice-gnome or libreoffice-kde packages. For LXDE, the necessary packages have already been installed now.

Graphics Apps

apt-get install gimp inkscape

Install Wine (32 bit only)

apt-get install wine ttf-mscorefonts-installer

Add Sys Admin Tools

apt-get install gnome-system-tools

This package is necessary to manage Users and Groups in Debian and is quite big in size - 500 MB.

Installing the x2go Client

  • In Windows XP/7/8/8.1, download and install the x2go client.
  • Linux and Mac clients too are available.

Using the x2go client

  • Choose the appropriate graphic resolution and color depth to suit your monitor and bandwidth respectively.
  • Connect to the x2go server accepting to open what firewall requests emanate.
  • While inside the LXDE GUI:
    • Set Firefox Preferences
    • Set Default Browser to Firefox
    • Set Panel icons as desired by right-clicking the Menu icon

lxpanel issues

  • If the lxpanel gets lost, try to logout and connect again.
  • If the lxpanel is still unavailable the restart it with:
lxpanelctl restart
  • Still drastic measures can be:
killall lxpanel && lxpanel -p LXDE &

Portable Client

x2goclient on Windows has a portable mode (and has had one for a very long time, if not even from the beginning). No need to apply any external tweaks or tools. See x2goclient.exe --help for details.

Client Screenshots

References