maisot
asked on
Installing VNC server on ubuntu as non privileged user
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 ..
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 ..
ASKER
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 systemI'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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 ?
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 ?
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.