General :: Hot To Terminate Vnc Server When Vncviewer Is Closed?
May 9, 2011
I'm using tigthvnc server on linux machine. Often my clients are closing their vncviewrs from close button ('X'), and not exiting gracefully their sessions from OS. How can I terminate the server when they do that?
I have an issue with my web server. We are running RedHat Enterprise Linux 3.0 with Apache 2.0 and Tomcat 5.5. The situation has arisen that the httpd sessions never terminate. New connections continue and continue to be created and never die. I have restarted the apache services to reset the connection and have even rebooted the server, however, to no avail. Yes, that does the trick of getting the web sites operational, however, this is not a solution.
I have searched and searched here, www.google.com/linux to no avail. I have looked through the apache.org bug tracker and can't find anything like what I am experiencing. This happened 6 months ago and I got lucky and it stopped, however, the situation has resurfaced. I have reviewed the logs and found nothing that provides any insight.
During the business day, the number of httpd connections continue to grow and I decided to let it see how high it would get before the web sites would crash. That magical number is 203. Now that it is later in the evening and about 2 hours since I restarted the httpd services, I now only have 59 connections. However, I'm fairly certain based upon the traffic on these 2 websites, that in the evening, there aren't many connections after 2000 hours.
I have problem with sshd server, its authenticate user and then terminate the session. Here is debug log: Jan 1 04:26:41 server sshd[29677]: debug1: userauth-request for user root service ssh-connection method none Jan 1 04:26:41 server sshd[29677]: debug1: attempt 0 failures 0 Jan 1 04:26:43 server sshd[29677]: debug1: userauth-request for user root service ssh-connection method password Jan 1 04:26:43 server sshd[29677]: debug1: attempt 1 failures 0 Jan 1 04:26:43 server sshd[29676]: Accepted password for root from xx.xx.xx.xxx port 50971 ssh2 Jan 1 04:26:43 server sshd[29676]: debug1: monitor_child_preauth: root has been authenticated by privileged process .....
I have a server program in ubuntu which i run using putty remotely. My problem is that when i closes my putty window, my server automatically closes and stop working. I want that once i start my server it remains on when i closed my putty window.
In my case, it occurs intermittently when trying to connect using putty's command line client 'plink.exe' to a linux machine using ssh. For some testing purposes, a linux server is setup with 8K virtual ip addresses and the testing scripts will connect to these ip addresses through ssh using plink.exe. There will be concurrently 25 ssh sessions launched to the server. While it works for sometimes, it throws 'server unexpectedly closed network connection' error intermittently. If the same ip address is tried again manually, it works. While the ssh server is accepting connections, this error is thrown sometimes and unable to find out the reason from the logs. It is not that the ssh connection is completely blocked. It gives this error message while connecting to some of the virtual ip addresses but works some times.
The hosts.deny, sshd_config are tuned to allow the connections, allow more sessions etc.
I am having an issue with HTTPS certification using curl. My curl is configured with OpenSSL. If the certification verification is failed I dont want to terminate the operation, instead I want to continue by just putting a log message. For this I have used OpenSSL SSL_CTX_set_verify() function to set my static C callback function. During HTTPS transaction, my callback is also getting called with first parameter 0 or 1 (depending upon of the certificate verification is success or failure). But even if my certification verification is failure, I want to continue. So I have hard coded to return value as 1 always from my callback function. But still I see the certification error and I don't get the page.
I have a BASH script which at one point asks the user a yes/no question. I want to make it so that if the user types in an invalid input 3 times consecutively then the BASH script will echo an error and terminate with exit status 1.
I'm using Postgresql 8.4.2-2. I'm trying to remote into my server securely. I figure I could do so with ssh. Apparently I figured correctly, as per, [URL] and [URL] I setup the ssh tunnel. ssh -L 5432:serverip:5432 Then I setup pgadmin3 to connect as follows:
An error has occurred: Quote: An error has occurred: Error connecting to the server: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I'm not sure what the problem is. I can connect with Code: psql from the cli after connecting to the terminal via ssh. So I know that I'm using the correct password.
setting up an SFTP server on debian, all the way down through step 3, though I did not "Match Group" I did Match User as I only need 1 user to have access to the SFTP server(did not continue on to step 4 and beyond as they did not apply to me) Im getting the error:
connection closed by server with exitcode 141
I get this when trying to log in via filezilla. I actually only got the 141 error on the first attempt, any attempts after that just says "could not connect to server". Username and password authentication goes through, so it is not a login info issue.Im running Debian squeeze, and that guide was for Lenny, that shouldnt matter, I dont think.
Wow, don't know why I seem to have so much trouble with this ftp stuff. I have so start all over a few times, reinstalling Lucid Lynx destop all over, and adding the needed files to make it a server. I am just trying to do something simple for now- just having a localhost server environment to develop my joomla website, and later on host it from my server 'out there' (I already have a domain name and dynDNS service with nameservers etc. but don't want to do that yet, as I have in the past with my router forwarding port 80, and actually got hacked! so I don't want to do that again until I learn more about security) My problem right now is that I can't even get the localhost ftp to 'connect to the server'. i know the host name (localhost) and username/password that I set when I set up Lucid Lynx, and I'm sure that is what I use for the ftp usernamepassword, host etc. And I put port 21 for the port. I see from 'Shields Up' that my port 21 is closed. So I followed advice on a thread and entered a few commands in the terminal to ad iptables etc. But still, port 21 is closed and I can't install components with the Joomla installer in admin's backend. And I can't use fireftp to even change permissions in my local folders. What do i do next, open port 21 somehow? I saw a terminal command about opening port 21 that was simple but I forget it.
I have a Postfix+Dovecot and virtual users setup taken from here. I've got virtual users authenticating using a password file. But I'd like to lock the service down further, so authenticated users can only email other authenticated users (those listed in the same password file) - so it's a closed community. I don't seem to be able to stop authenticated users mailing outside the community.
Reading some examples on net and copying some codes I was able to build a (frankstein) server that accept connection from one client and receive and send messages to it. The big problem that shows up is that I don't know when client disconnects from my server.
I've been looking for a solution, but no success. I'd read about SO_KEEPALIVE option (which could solve my problem), but I don't know how to use it (how to check the value of it).
I can't use ping because the server (machine) could be running, but not the client (software).
Anyone knows a good tutorial or how to (for beginners like me xD) of TcpIp sockets using c/c++ and how to detect when a client disconnect?
i've tried different vncservers and with all of them, when i use vncviewer, i'm unable to open some applications. for instance, i can open firefox and terminal. but other programs are giving me problems, like google chrome or the disk manager, which will open for a split second and then disappear. i am so mad i've looked all over the place for a couple days and ready to pull my hair out. i've installed vnc4server, tightvncserver, and a couple others i can't think of right now.
I use vncviewer (win32) to connect to my SuSE 11.3 box. The SuSE box has the "standard" xinetd started Xvnc server running (includes the -inetd switch).
My client (the vncviewer) has to go through a firewall with limited ports available and so I use the command line:
Code:
However, if there is a problem with the connection, such that the client disconnects, it seems that subsequent request to the Xvnc server create a new session/display. The text in the client window reports "nobody's x11 desktop (host:1)", then "...(host:2)", then "...(host:3)" etc.
I have tried combining the display and the port parameters, like this:
Code:
Can anyone suggest an alternative way of reconnecting to a broken vnc session?
I managed to install Centos x86 for the first time, together with VncServer, SSH access, mySQL and Apache. Everything worked greater until I logged in remotely to the server from my Windows 7 machine using RealVnc. I manage to connect successfully and able to use the GUI remotely. However, when I press logout from the menu, the screen gets stuck on the funky blue and white curly background. It does not close automatically.
If I close it using the 'X' button and reconnect, I get in to same stuck screen. My only workaround is to login with Putty and type 'service vncserver restart'. Then I am able to connect again. But same thing happens when I do a logout.
I am currently having an issue attempting to set up a dedicated server for source games (TF2, CS:S, L4D2). The required port (27015), along with most others, appears closed to the rest of the world and upon a port scan with DMZ hosting on (therefore no router interference between the internet and my computer) only a few ports are open (80, 139, 443, 445). My ISP does not block ports so therefore the only issue I can find is with my computer running Ubuntu 11.04. I have ensured that all traffic is allowed via iptables and I can't think of anything else that would have ports closed.
I've installed TurboVNC and also libjpeg-turbo on Centos 5 to view a Windows computer. I previously have been using TightVNC and it worked great. When I connect to the server using vncviewer, it will only occasionally refresh the image, like when I change a browser window to full screen.
I selected to have a log file and debugging on the server, but I haven't been able to find the file. code...
I have configured rssh 2.3 with openssh 5.8 on RHEL 5.6 64 bit to restrict the users to scp and sftp. When i try to sftp or scp it gives error connection closed. After long googling tried different solutions like add missing libraries, setuid to rssh_helper. I had full copy of /lib to /chroot/lib and /chroot/lib64 but no success. conf and log files are below for reference.
I'm a frequent user of the shared connection feature of SSH. Usually i have two or three connections open at the same time through the connection sharing feature, but sometimes when i try to start another i get the message "Shared connection to <server< closed". All the connection that are established through the connection sharing feature are still active and not closed, but when i try to create a new one i get that message.. i've even got that message when i have only had two connections through the shared connection feature.
I've tried to search google but it doesnt seem like anyone else has had the same kind of problem, does someone know why i sometimes get this error ?
I use vncviewer command line to remote access my pc from my notebook. Is there any option to resize the view like windows client can by percentage? my notebook screen size is 1280x800, while I use bigger resolution for my pc 1280x1024 if not mistaken. already look here: http://linux.die.net/man/1/vncviewer but I don't see any option to do that.
I have a machine running Fedora 14 and a bunch of movies stored on it as '.iso' images. It is connected to my home theater. I used to use VLC to play these movies and it worked great for a long time. About 4 months ago, about an hour or hour-and-a-half into a movie, the audio suddenly "disappears" and the machine goes CRAZY with almost 100% of the CPU spent writing to the SWAP. At first I thought the machine was locked, but it isn't; it's so doggone busy writing swap. I am unable to get enough cycles to terminate anything. I found the swap activity through System Monitor - it was ABRUPT. Sound stopped, machine became preoccupied with swap.
I have removed/reinstalled VLC, the machine has undergone a couple kernel updates, and I have removed/reinstalled a number of things associated with audio (CD ripper, mpeg stuff, etc.) yet the problem persists. I don't know what happened or when (update-wise). Any body got any ideas? While a solution would be great, I'd also be happy with a couple decent suggestions on what to look for.
Just now Rhythmbox has stopped working. I can't restart it, so I thought I could kill the process to start it again. Is there something like the windows task manager in openSUSE or another way to list all processes and to kill one? I googled an found a few old threads saying that there is a performance monitor which is able to to that, but I can't find that either.
done so the script waits in the loop for the subshell to finish then does processing and starts over. If I kill the script the subshell is not killed. So I can trap the TERM event and do some cleaning but I need to know the subshell process id.
I'm using busybox so ps does not accept any parameters I cannot source subshell so it can access its parent environment
I have a script to establish a reverse tunnel with other machine,My problem is to stop the tunnel. If I just kill the PID at sshtunnel.pids, ssh does not release the ports at the server side, so any new connection will fail for several minutes.Is there any way to signal SSH to exit gracefully?
I have a new UEC (Ubuntu 9.10) server up and running. I'm running a self contained solution so the cluster and node are on the same machine. I know this isn't ideal but I only have one server. I followed https:[url]... and https:[url].... When I try to run a VM (Ubuntu 9.10 amd64) image it will go from pending to shut-down to terminated. I know others have had this problem but I haven't see any solutions. I'm hoping there might be one out there that I've missed. I'm running on an AMD 64-bit quad core with 8GB DDR3 RAM.I am not seeing any errors in the logs.