![startx vnc through ssh startx vnc through ssh](https://neeleshgenius1610.files.wordpress.com/2017/03/screen-shot-2017-03-06-at-17-04-02.png)
Terminate your ssh connection in Step 1. Suppose we use port 1111 on localhost for the remote control and the remote vnc server is the first one so the default port is 5901 on the server. 3) Connect to the vnc server on client now. Go back to Step 3 and uncheck the "SOCKS PROXY" -> "OK" -> "Apply". 1) Connect to the server and meantime set up the port forwarding ssh tunnel. When you are done, to terminate the connection: Go to VNC Viewer -> Preferences -> Proxy, type in the info as shown belowħ. Qualquer conexo subsequente via VNC com root, o que eu quero evitar. A VM tem uma placa Nvidia, e depois de gerar o nf com nvidia-xconfig, posso iniciar uma sesso X usando startx, mas apenas como root. Type in ":2", the ":2" is what is shown 4. Estou usando o x11vnc, que requer um servidor X para funcionar. Open up a brower to " " and you will see that you IP is a ".x" address instead of a "10.x.x.x" addressĥ. Go to "Proxy" tab -> check on "SOCKS Proxy" -> Type in "localhost" for Proxy server and the same port number that you enter when you do step one, in our case it is "47890" -> then click "OK"Ĥ. You can use either flip.engr or .Īpple -> System Preferences -> Network -> Click on "Advance "ssh -D47890 'username' with your ONID username. Please contact Engineering IT Support with any questions. That's all! You should have a successful encrypted connection. Go to File -> Preferences -> Proxy, type in the info as shown below Type in ":2", the ":2" is what is shown 6. Make sure your ~/.vnc/xstartup file looks like this Log file is /nfs/stak/users/lXXXXX/.vnc/:2.log Starting applications specified in /nfs/stak/users/lXXXXX/.vnc/xstartup
![startx vnc through ssh startx vnc through ssh](https://miro.medium.com/max/552/1*VxO3TYfi4dgeknBDUKJQOA.png)
#Startx vnc through ssh password
Now you are ready to start your proxy, just click on "Open", login using your ONID username and password and leave the terminal/proxy runningĦ. Pick a name for this session, eg "proxy for VNC" and click Saveĥ. Type in the port number that you choose from step 2, in our example it is "47890", click on "Dynamic". Next, under Category -> Connection -> SSH -> Tunnels Choose a port number, eg "47890", leave the rest as default.ģ. Open Putty, under Category -> Connection -> Proxy
#Startx vnc through ssh install
Install Putty on your windows laptop or desktop computerĢ. You can even multicast them so that in just a few hours, to guess, all the workstations can be imaged with a common configuration, same version, etc. The one CloneZilla server provides pre-configured images for the workstations which can be installed over the network. Make it executable: sudo chmod 0755 /usr/local/bin/start-remote-desktop.shĪdd it to your default user configuration: sudo sh -c 'echo "/usr/local/bin/start-remote-desktop.sh" > /etc/skel/.profile'Īs far as the human factor goes in maintaining 500 workstations, you would love using CloneZilla. Gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false sudo vim /usr/local/bin/start-remote-desktop.sh Use your favorite editor over vim if you like. You could create scripts for this, too, maybe /usr/local/bin/start-remote-desktop.sh. Gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false Ask gnome not to ask, "Are you sure?" after enabling the remote desktop access. It's also considerably less of a security risk as the SSH user is the only person who's going to see the VNC server always-visible, always-on VNC servers are popular target hacks. This method is better than just running a VNC server on every machine because you're not going to slow every machine down all the time. x11vnc will then automatically try to find the right display. If your computers have funny display settings, you might do better to leave off the -display :0 segment in the SSH command. You don't have to open up any ports (as long as you can already SSH). The SSH command starts a vnc server on the remote computer and then tunnels back that port over SSH. Obviously swapping for the username and hostname/IP of the remote computer.Īnd then use a VNC client of your choice to connect to localhost:5900. Then from your local computer run: ssh -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage" It's a simple VNC server and you won't have to mess around with Gnome settings or 500 firewalls, just install x11vnc on all your computers (with puppet or whatever you're using for mass-control).