Editing
Vservers and X
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Running X on the HOST from inside a Debian Vserver == This is not meant as a secure implementation - but is a working guide, with the minimum of operations. *On the HOST, install Xorg - your guest cannot run an environment without the modules/drivers being loaded on the host <source lang=bash> apt-get install xorg </source> *Copy the necessary devices to the Vserver guest <source lang=bash> VSERVER=gui2 VSERVER_CONF=/etc/vservers/$VSERVER VSERVER_BASE=/var/lib/vservers/$VSERVER cp -prax /dev/psaux /dev/input /dev/fb0 /dev/tty7 $VSERVER_BASE/dev </source> *Add capabilities to the guest (to control some of the HOST functionalities) <source lang=bash> echo SYS_RAWIO >> $VSERVER_CONF/$VSERVER/bcapabilities </source> *Start and enter the guest <source lang=bash> vserver $VSERVER start vserver $VSERVER enter </source> *If it is a clean Vserver, then the first package a Debian guest needs is 'locales'. On Squeeze, there is also a bug with the 'keyboard-setup' package, so we install that first <source lang=bash> apt-get install locales keyboard-setup </source> *On Squeeze, the installation will fail and you'll need to edit `/etc/init.d/keyboard-setup`. Remove the 'mountkernfs' and 'udev' directives from the opening 6 lines of the file *To install LXDE, <source lang=bash> aptitude install lxde-core kdm x-window-system xorg xserver-xorg xserver-xorg-input-mouse xserver-xorg-input-kbd apt-get remove xserver-xorg-video-vmware hal apt-get -f install apt-get autoremove </source> '''OR''' *To install KDE (an error with occur with network-manager, this is normal, follow the instructions below exactly) <source lang=bash> aptitude install x-window-system xorg xserver-xorg kde-core kdm xserver-xorg-input-mouse xserver-xorg-input-kbd apt-get remove network-manager xserver-xorg-video-vmware hal apt-get -f install apt-get autoremove </source> *Then finally, to get the mouse working in the guest, you need to create an 'xorg.conf'. Either use the following command, or if that doesn't work run 'Xorg -configure' on the host, then extract the sections used below (do NOT include screen/display sections). <source lang=bash> cat > /etc/X11/xorg.conf <<EOF Section "ServerLayout" Identifier "X.org Configured" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection Section "ServerFlags" Option "AllowEmptyInput" "no" EndSection EOF </source> *Now, exit your guest, and restart it. It should come back on and be running X on the HOST server.
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information