xwindows fails over ssh after a certain amount of time
location: linuxquestions.com - date: January 8, 2010
I'm having the following problem with x-windows over ssh:
Using xclock as an example GUI program, if I do "ssh -X 123.456.789.012"
it will bring up a clock.
If I don't run xclock immediately, but wait for 10 minutes or so, xclock fails with this error:
"Invalid MIT-MAGIC-COOKIE-1 keyCan't open display
Failed initializing GUI, exiting"
If I log in and run xclock, then 10 minutes later start a 2nd instance of xclock, the 2nd instance loads fine too. In other words, the 1st instance of xclock seems to be keeping the GUI interface alive.
So I have two questions:
1. How can I keep the GUI interface alive, without needing to run a first instance of xclock?
2. If the GUI interace has died, how can I get it back without logging out and back in again?
I've used xclock as an example, but this applies to any x-windows interface.
Can anyone help? Thanks in advance.
ath9k driver fails on Crunchbang after certain amount of time (Acer Aspire)
location: linuxquestions.com - date: November 21, 2012
My laptop is basically an Acer Aspire rebranded to be a Gateway Something (T100, I think? The marketing people REALLY did not give a shit). For all intents and purposes, though, it's an Aspire. And it has a slight problem where the wifi gives out after extended periods of the machine running.
Now, this isn't easy to test, because it takes forever to manifest. My current uptime is about 50 days (rounding up from a very top-heavy 49), and I'm only running into it now. I think it might involve some variable in the driver overflowing after a certain amount of bandwidth passes through it. Even so, it has a habit of dying when I actually need it and don't want to close everything and restart. So I'm trying to solve it more permanently now, while it's convenient.
Hardware light on the right turns off. nm-applet keeps trying to access the network it was just on, prompting for the password. This does not succeed. wlan0 is still listed in ifconfig. Restarting /etc/init.d/netwo
shell script to kill tomcat service if it is not stopped by stop command after certain amount of time?
location: linuxexchange.com - date: June 23, 2015
I would like to write shell script to start and stop tomcat server.For stopping the tomcat I am using this command "./bin/shudown.sh" or "./bin/catalina.sh stop". This is not working most of the times, tomcat is still running.So I would like to kill the tomcat after giving shutdown command and wait for sometime(say 5min). Can anybody help me how to do it?
VNC (fails) over SSH (works)
location: ubuntuforums.com - date: December 17, 2009
I am trying to connect from a laptop with Ubuntu 9.04 LXDE (plus some Gnome applications) to my home PC running Ubuntu 9.04 (Gnome).
I did forward port 2222 to my local IP on the router while on the firewall I opened both 2222 to incoming SSH service and port 5900 to localhost.
I configured SHH to open tunnell using private/public key.
ssh -C 82.160.xxx.xxx -p 22222 -L 5900:localhost:5900 -l rafa
This works well and I can see my home PC, use command line, install programmes from commandline etc.
But any attempt to use graphic mode of desktop access fails.
Launching any application from command line renders an error:
Gtk-WARNING **: cannot open display:
Tried this with simplest applications like gedit or gnome-commander.
Upon launching x11vnc server, that reports:
The VNC desktop is: Rafal-AMD:1
But after starting vinagre this works, but I can only see black s
XWindows issues over SSH
location: linuxquestions.com - date: March 28, 2009
I'm currently running a headless CentOS server (5.2) with Ubuntu 8.10 as my desktop. All runs ace
I do however need to get the xwindows application 'system-config-nfs' running so that I can mount my files via NFS (rather than SMB). When I attempt to run this (after ssh'ing into the CentOS Box using 'ssh -X <IP>') I get the error:
How to logoff the remote ssh session of a user after a certain idle time.
location: linuxquestions.com - date: October 7, 2008
Kindly help me regarding how to logoff the remote ssh session of a user after a certain idle time eg. 1 hour.
Command line command to autokill a command after a certain amount of time
location: linuxexchange.com - date: March 3, 2009
I'd like to automatically kill a command after a certain amount of time. I have in mind an interface like this:
% constrain 300 ./foo args
Which would run "./foo" with "args" but automatically kill it if it's still running after 5 minutes.
It might be useful to generalize the idea to other constraints, such as autokilling a process if it uses too much memory.
Are there any existing tools that do that, or has anyone written such a thing?
ADDED: Jonathan's solution is precisely what I had in mind and it works like a charm on linux, but I can't get it to work on Mac OSX. I got rid of the SIGRTMIN which lets it compile fine, but the signal just doesn't get sent to the child process. Anyone know how to make this work on Mac?
[Added: Note that an update is available from Jonathan that works on Mac and elsewhere.]
SSH fails over WAN
location: ubuntuforums.com - date: June 18, 2009
Been fighting with this for days now. I have a working SSH setup that allows me to connect easily from one pc to another, using SSH. Great.
Now I have made sure that my FiOS Actiontec router is set to forward port 22 and this has been confirmed. Yet despite this, all attempts to connect outside of the LAN to the computer from ANY remote location, fail and time out.
Again, SSH is working and the router has the server PC with a static IP and the right port is opened.
CanYouSeeMe gives me a report of connection refused on port 22?! So short of wishing there was better secure remote PC solutions for Linux as clearly, something is wrong here as Ubuntu 8.04 and before, never gave me a WAN problem with SSH like this.
"Lot's of help" over at DSLForums, as no one even bothers to respond, much less help me to understand why Verizon is based on what I am seeing, blocking the damned port.
I mean, according to this, port 22 is showing up as stealth which again, has me think
[SOLVED] Root filesystem becomes 'readonly' after certain period of time
location: ubuntuforums.com - date: October 11, 2011
Having a frustrating problem with Ubuntu 10.04 LTS at the moment. I have a minimal install running LAMP, OpenSSH, SAMBA along with Sabnzbd+, SickBeard & Couchpotato, Webmin and 4 2TB Samsung Hard Drives configured in an LV Group. It is also acting as a TimeMachine backup for my Mac using the netatalk package.
I should note at this point that Ubuntu is installed to and run from a USB Flash Drive with a decent write speed.
Everything works fine when the server first boots, and it continues to work well for a few hours. However usually about a day later, when I try to perform an operation that typically requires a write I get errors.
Upon further investigation (via. SSH) I find that I am unable to perform any write-related task, simply trying to create a directory yields a 'mkdir: cannot create directory `test': Read-only file system' error.
The frustrating thing is that I am not able to track the problem down. I am not aware of the server rebooting, afaik it just sudde
SSH fails over WAN
- date: June 19, 2009
Not having any luck with this, spent the better part of three days on it and I am at my wits end.
SSH works in LAN, fails outside of LAN. Different ports, same thing.
Tested port 23, it does not time out and gives me the ever helpful connection refused message. Both /etc/hosts.deny and /etc/hosts.allow are correct, too.
ssh -p 23 [email protected]
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to WAN-IP-Address [WAN-IP-Address] port 23.
debug1: Connection established.
debug1: identity file /home/uzer/.ssh/identity type -1
debug1: identity file /home/uzer/.ssh/id_rsa type -1
debug1: identity file /home/uzer/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
Now with more details, can someone point me in the right direction?
For testing purposes, I am just using the password for entry, as I deleted everyt
Page: 1 2 3 4 5 6 7 8 9 10