Solved

Installing VNC server on ubuntu as non privileged user

Posted on 2012-04-12
4
573 Views
Last Modified: 2012-06-21
Hello


I'm trying to install  vnc server on my VPS to remote control it
to avoid security issues, i'm trying to do it as non privileged user but it's not working (everything works perfectly with root)

this is how i think things should be :

sudo apt-get update
sudo apt-get install xfce4
sudo apt-get install software-center
useradd nonPrivilegedUser
passwd nonPrivilegedUser
su nonPrivilegedUser
sudo apt-get install tightvncserver
Reboot
su nonPrivilegedUser
vncserver -geometry 800x600 -depth 16

I get an error on line 7 (sudo apt-get install tightvncserver) of Permission denied
I thought it was because the user is limited so i went to etc/sudoers and added nonPrivilegedUser with all privileges, rebooted and still the same error ...

 I wasted 2 days trying to deploy securely vncserver .. HEELPP ..
0
Comment
Question by:maisot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 37838144
To have it run, it has to be installed by an elevated rights user.
Why waste the resources of having VNC and a graphical environment running?
You can use the SSH connection and redirect the graphical (X11) if the requisite components are installed on the VPS as well as if you have an X-Window/graphical server installed on your local system.

you have a local graphical Environment or you have an X-server on your local system

ssh -X user@remotesystem.com
upon connecting, you should have a DISPLAY variable defined which is an X11 tunnel back to your local system from the remote
xterm & 
if installed and you have an X-Server running, will send the xterm such that it will be visible on your local system.
0
 

Author Comment

by:maisot
ID: 37838610
Why waste the resources of having VNC and a graphical environment running?
We want to execute a web browser permanently to make some testing thus we found that VPS is the best solution (if you have a better solution i'm open to it) and as far as I know it's not possible to have a desktop with SSH .

you have a local graphical Environment or you have an X-server on your local system
I'm a complete linux newbie (started learning it 24h ago..) but if i understood your question, I 'm trying to VNC-control an Ubuntu VPS from my windows box.

I found many tutorials on how to tunnel the traffic with ssh but that's not the problem .. now I need to secure my VPS/VNC with a non privileged user
0
 
LVL 78

Accepted Solution

by:
arnold earned 500 total points
ID: 37838773
If you are using a windows system, X-ming is an X server that will run on windows and using putty, you can send graphical apps back through the SSH tunnel which will be displayed through X-ming.
http://www.straightrunning.com/XmingNotes/
Another option is using cygwin (cygwin.org) which also has a graphical server interface
http://x.cygwin.com/
0
 

Author Closing Comment

by:maisot
ID: 37841611
cygwin is really complex and heavy to setup

X-ming works out but the only problem is that it's REALLY SLOW ... ~10s lag

is there any simple way to install/run VNC as a non privileged user ?
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question