Ever wanted a local GUI that you could connect to remotely, and do basic file administration tasks? There is a Howto on installing Gnome but I wanted something a little more lightweight
Now you can thanks to the clearos-epel and clearos-core repo's. using TightVNC and Xfce4 you can setup a graphical UI that is only required when you want it...
Installation
[ol]
Install Xfce4
Create user
edit /etc/sysconfig/vncservers and add the following two lines
Edit /home/vncuser/.vnc/xstartup, change twm to startxfce4, and comment out if xinitrc sections
Install tightvnc on client from http://sourceforge.net/projects/vnc-tight/
Run service
Run TightVNC from client and connect to hostname:1 (or ipaddress:1)
display 1 = port 5901
display 2 = port 5902 etc..
Install a local browser (optional)
[/ol]
Enjoy screenshot below
Now you can thanks to the clearos-epel and clearos-core repo's. using TightVNC and Xfce4 you can setup a graphical UI that is only required when you want it...
Installation
[ol]
yum groupinstall Xfce --enablerepo=clearos-epel
yum install tigervnc-server
useradd -r vncuser
su - vncuser
vncpasswd
VNCSERVERS="1:vncuser"
VNCSERVERARGS[1]="-geometry 1024x768"
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
#if [ -x /etc/X11/xinit/xinitrc ]; then
# exec /etc/X11/xinit/xinitrc
#fi
#if [ -f /etc/X11/xinit/xinitrc ]; then
# exec sh /etc/X11/xinit/xinitrc
#fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startxfce4 &
service vncserver start
display 1 = port 5901
display 2 = port 5902 etc..
yum install firefox
[/ol]
Enjoy screenshot below
Share this post:
Responses (19)
-
Accepted Answer
Hi Tim,
Nice how-to
Is it possible to get a desktop on my console. My server is in the basement so when i'm in the basement i have to go upstairs to access the web interface. I know Zentyal has a lightweight desktop environment running on the console although it has a web interface. I think ClearOS also needs a lightweight desktop interface. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
yaye wrote:
From Tim's write up, it seems to install Xfce, you only have to run the first command:
yum groupinstall Xfce --enablerepo=clearos-epel
Everything else seems to be about installing and configuring the VNC client and server.
tyvm sir
One more question, how can i access the webconfig then locally, https://127.0.0.1 gives me an error (Firefox doesn't know how to open this adress). -
Accepted Answer
-
Accepted Answer
If you wanted to remote into it and use RDP on a windows client instead of vnc you could always install http://www.xrdp.org/ -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Thanks for the feedback! - I've also been experimenting with Gnome, which can now be installed in one yum command
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,38/func,view/id,49742/#51860 -
Accepted Answer
Hi,
interesting thread. I experienced a problem with clearos 6.5 64bit because of missing dependencies:
redhat-menus
libpoppler-glib.so.4() (64bit)
libxklavier.so.15() (64bit)
polkit-gnome
librecode.so.0() (64bit)
is there a way around those or can I maybe just skip them?
Thanks for your help.
Best
Robert
EDIT: Enable repo clearos-core did the trick. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
To follow up on this idea, what is the best way to install apps that are not in the COS repos? For example, now that I have Xfce installed and working via vnc, how can I install a PDF reader? Or Mono? I tried using "--enablerepo=clearos-core,clearos-epel" but could not find a PDF reader there.
Thanks! -
Accepted Answer
:woohoo: Update! I figured out how to install mono, and now I can use Duplicati, but only from the command line. The GUI launches, then locks up. Also, I found a simple PDF viewer, xpdf. Both install commands are below. I hope this saves someone a little Googling!
yum install mono-winforms expect --enablerepo=clearos-core,clearos-epel
yum install xpdf --enablerepo=clearos-core,clearos-epel
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »