Yesterday, all day, I was using x11vnc and vncviewer to connect to a server. But today for some reason it is not working. I don't
remember changing any settings or anything like that, but because it stopped working correctly I guess something has...?
I'm issuing the exact same x11vnc command today, that I was running yesterday, but nothing happens at all on the client/viewer
side. My vnc commands I was running all day yesterday were:
Code:
SERVER SIDE COMMAND:
x11vnc -display :0 -auth /var/run/lightdm/root/:0
VIEWER SIDE COMMAND:
vncviewer 192.168.2.111:0
Yesterday, immediately following the vncviewer command a window would popup displaying the desktop of the server.
Today, I entered the same exact x11vnc command, I then see the exact same output, then I enter the vncviewer command in a
terminal on my laptop and the command just sits there not doing anything. I can Ctrl-C to cancel it, so its not frozen or anything.
And when vncviewer is entered I don't see any output coming up in the x11vnc command's window like I normally would.
So I tried in another terminal ssh'ing to the same server and issuing the vncviewer command on the server like:
Code:
vncviewer 192.168.2.111:0
And I see this display in the x11vnc terminal's output:
Code:
27/06/2014 13:56:43 Got connection from client 192.168.2.111
27/06/2014 13:56:43 other clients:
27/06/2014 13:56:43 Disabled X server key autorepeat.
27/06/2014 13:56:43 to force back on run: 'xset r on' (3 times)
27/06/2014 13:56:43 incr accepted_client=1 for 192.168.2.111:48215 sock=13
27/06/2014 13:56:43 Client Protocol Version 3.8
27/06/2014 13:56:43 Protocol version sent 3.8, using 3.8
27/06/2014 13:56:43 rfbProcessClientSecurityType: executing handler for type 1
27/06/2014 13:56:43 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
27/06/2014 13:56:43 copy_tiles: allocating first_line at size 41
27/06/2014 13:56:45 Pixel format for client 192.168.2.111:
27/06/2014 13:56:45 32 bpp, depth 24, little endian
27/06/2014 13:56:45 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
27/06/2014 13:56:45 no translation needed
27/06/2014 13:56:45 Using compression level 1 for client 192.168.2.111
27/06/2014 13:56:45 Using image quality level 6 for client 192.168.2.111
27/06/2014 13:56:45 Enabling X-style cursor updates for client 192.168.2.111
27/06/2014 13:56:45 Enabling full-color cursor updates for client 192.168.2.111
27/06/2014 13:56:45 Enabling cursor position updates for client 192.168.2.111
27/06/2014 13:56:45 Enabling LastRect protocol extension for client 192.168.2.111
27/06/2014 13:56:45 Using raw encoding for client 192.168.2.111
27/06/2014 13:56:49 client_set_net: 192.168.2.111 0.0011
27/06/2014 13:56:49 connect_tcp: trying: 192.168.2.111 113
27/06/2014 13:56:49 connect_tcp: connection failed: Connection refused
27/06/2014 13:56:49 connect_tcp: re-trying 192.168.2.111 113
27/06/2014 13:56:49 connect_tcp: connection failed: Connection refused
27/06/2014 13:56:49 connect_tcp: trying IPv6 192.168.2.111 113
27/06/2014 13:56:49 connect_tcp[ipv6]: trying sock=14 fam=2 proto=6 using 192.168.2.111
27/06/2014 13:56:49 connect_tcp[ipv6]: connect: Connection refused
27/06/2014 13:56:49 connect_tcp[ipv6]: setsockopt IPV6_V6ONLY: Protocol not available
27/06/2014 13:56:50 ident_username: set refused=1 (exit)
27/06/2014 13:56:50 created xdamage object: 0x300002c
27/06/2014 13:56:51 client 1 network rate 100000.0 KB/sec (199681.1 eff KB/sec)
27/06/2014 13:56:51 client 1 latency: 0.5 ms
27/06/2014 13:56:51 dt1: 0.0014, dt2: 0.0122 dt3: 0.0005 bytes: 2712888
27/06/2014 13:56:51 link_rate: LR_LAN - 1 ms, 100000 KB/s
27/06/2014 13:56:54 created selwin: 0x300002d
27/06/2014 13:56:54 called initialize_xfixes()
27/06/2014 14:01:44 idle keyboard: turning X autorepeat back on.
27/06/2014 14:02:31 client_count: 0
27/06/2014 14:02:31 viewer exited.
27/06/2014 14:02:31 deleted 40 tile_row polling images.
And it failed to display the desktop. So I decided to walk over to the server room and opened to server's desktop, i.e. physically
standing in front of the server, and opening a terminal window and entering the x11vnc command in there. So I went back to my
desk and tried vncviewer again from my laptop, whcih ended up doing the same thing. So I ssh'ed in again and ran vncviewer like
below in the ssh session, and this time the desktop displayed on my laptop.
Code:
# vncviewer 127.0.0.1:0
Any idea what I could have changed to prevent me from vnc'ing in directly from my laptop? And also, entering the x11vnc command
in an ssh session instead of physically entering it onto the server...?
Any thoughts or suggestions would be much appreciated!
Thanks in Advance,
Matt
---------- Post updated at 05:10 PM ---------- Previous update was at 02:23 PM ----------
Ok, so I figured out the issue...
At the end of the day yesterday I finished completing the setup for Security Onion (*Operating System built over/with xUbuntu 12.04),
which is a Intrusion Detection System.
I'm thinking that when I completed the setup, Security Onion enabled the Firewall and blocked port 5900. I started to think that
was the issue when I was able to vnc to the server's desktop if and only if I initiated the vncviewer command from within the server's
ssh session...
Like in my previous post, if I went into the server room and issued the x11vnc command from the server's physical terminal/desktop
then I SSH'ed (*I think with "-Y") into the server from my laptop and then while still SSH'ed in I would issue the vncviewer command
using the address 127.0.0.1:0 it would then display the desktop on my laptop screen...
So I ran Ubuntu's command:
Code:
# ufw allow 5900
That opened the VNC port and allowed me to run both the x11vnc and vncviewer commands remotely... Ughh thank goodness
Thanks,
Matt
Last edited by mrm5102; 06-27-2014 at 03:34 PM..
These 2 Users Gave Thanks to mrm5102 For This Post:
Hi All,
My chrome browser was working correctly on my Debian Lenny 5 PC..Today i downloaded the version from google and tried to install the deb from command line as follows:
dpkg -i <latest-chrome-package>
The installation failed but now my existing old chrome browser is not starting.
... (2 Replies)
This is the crontab it is supossed to be running everyday but it didnt
5 0 * * * /export/app/CO/opge/scr/Informe_parametros_colombia.ksh >/dev/null 2>&1
Inside the above script connects to a database and extract data to a flat file, manually i run the script at about 2 a.m. and Works OK,... (6 Replies)
Hi
I am attempting to right a script which will read a table and extract specfic information.
LASTFAILEDJOB=/usr/openv/netbackup/scripts/GB-LDN/Junaid/temp_files/lastfailedjob
cat /usr/openv/netbackup/scripts/GB-LDN/Junaid/temp_files/lastfailedjob
237308646
If i run the following... (5 Replies)
We are using Red Hat linux system.
I am transferring my rman backup files to another server.
Here is the command i am using to transfer the files.
/usr/bin/rsync -avpP --delete /xyz/xyz/ 99.99.999.99::db110bkp
Here is the rsync version.
>rsync --version
rsync version 3.0.6 ... (1 Reply)
My roommate forgot his admin password on his MacBook air..
He doesn't have the external SuperDrive, so we have no way of using the simple method of using the install disks and resetting the password..
The worst part is, he did this same thing about a year ago lol
At the time, we booted... (0 Replies)
I have a client running Sco-Unix 5.
They have many IP Printers setup.
One of the IP Printers is "LPJ", it has been functional for 3 weeks and then the switch died and hung up the queue. We reset the switch and restarted the jobs and they printed.
The switch went down again and we replaced the... (1 Reply)
Hi,
I have a script where I am trying to set a local variable using the following,
MYVAR="$NAME"_"$NAME2".txt
where say,
NAME = one
NAME2 = two
so I want the output one_two.txt but what I am getting is,
two.txt
basically the $NAME2 is overwriting, what am I doing wrong?
... (3 Replies)
Anyone have an idea why this if statement does not work correctly?
"test2.sh" 18 lines, 386 characters
#!/usr/bin/sh
WARNING=80
CRITICAL=95
check_it()
{
if ] || ];then
echo "YES ] || ]"
else
echo "NO ] || ]"
fi
}
check_it 80.1
check_it 81.1 (3 Replies)
Discussion started by: 2dumb
3 Replies
9. Forum Support Area for Unregistered Users & Account Problems
I have a simple script that I want to run every 30 minutes but only when I execute it. I don't want it to be a crontab job.
so i have for example
date
ls -l
who
sleep 1800
The first time it executes correctly but after the first time it nevers execute back again. It should execute after... (2 Replies)