From the computer you want to view the remote X session:
ssh root@computer2 -L 5900:localhost:5900
If you can only connect to a linux gateway, you can substitute localhost with the internal IP address of the machine you want to vnc to.
ssh root@computer2 -L 5900:192.168.1.100:5900
On computer2 do the following.
This does not need to be done as root, but you’ll need to be the actual user running the X session if you log in as a regular user. On ubuntu/debian you can use apt-get install x11vnc.
x11vnc -display :0 -passwd password
If it complains that it cannot connect to :0, try this
x11vnc -auth /var/lib/gdm/:0.Xauth -passwd password
Note that using the :0.Xauth method will work if X is just running at the login screen (so you could connect and log into X as a user).
Now, from computer1, do
vncviewer localhost
This is very useful, but make sure you use a password if port 5900 is open on computer2.
Hello All,
I am totally new on Linux. And recently I have configured a Nagios 3.4.1 server on Ubuntu 12.04 Desktop version. My Nagios server is running and showing output on web console as well. At the moment I have configured two check_commands (Check_ping and Check_snmp) in which check_ping is working fine and showing output in web console. But check_snmp is not working and my host on web console showing this service as a “critical” service.
And the status Information section of this critical service is showing this message “Service Check Timed Out”.
I have try to find solution on internet but nothing works, maybe as I am totally new so I am missing some configure required for snmp.
For your information:
/usr/local/nagios/libexec is shwoing check_snmp
On my server snmpd is running (I have checked with service snmpd status command)
and I have already installed and complied nagios-plugin-1.4.15 (with the help of commands available in nagios documentation)
Could any one suggest me how could I fix this issue. And if possible can someone share with me the step-by-step setting of SNMP for all the parameters in Nagios/Ubuntu. So that I can cross check my snmp settings.
Many Thanks in advance.
Sunil