Ubuntu :: X Apps Via SSH - Displaying Already Running Instance Of A Process
Jan 5, 2010
how to configure X11 forwadring over SSH so, that when I open any app over SSH, I get displayed window of a process that is already running on my server (in case its running ), not a new instance of it.
View 3 Replies
ADVERTISEMENT
Aug 6, 2010
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
View 1 Replies
View Related
Feb 20, 2010
I have three boxes with lenny debian recently installed. I'd like to be able to display X apps running on host1 and displaying on host2. "xhost +" would do the trick for me if I could get it to work but as far as I can tell it does nothing. (BTW, I'm aware of the security risks. This is not a concern for me. I'm safely behind a good firewall. I'm also aware of "ssh -X" but that won't quite solve my problem. See the long version below.) I suspect that Debian secures the xhost command out of the box in some way but I can't seem to figure out what it is. If that is true and someone can show me how to reset it, or direct me to appropriate documentation I think that would solve my problem.
Here's the long version:
What I really want to do is play xbattle with my kids but I need to be able to display the board to three different screens. In xbattle the command line is: % xbattle -red me -blue host1:0 -green host2:0 {and more stuff of no consequence to my question}
This opens a game board for player red locally, player blue on host1 and player green on host2. Or at least it should. If there is a way to make this work with "ssh -X" (or anything else for that matter) I'll be happy to use that instead, but so far as I can tell "ssh -X" only lets me redirect the display back to the one I ssh'd from whereas I need to direct to multiple displays to run xbattle.
View 2 Replies
View Related
Nov 9, 2010
I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];
[code]...
View 4 Replies
View Related
Mar 29, 2011
On my crontab there is an entry to run a script I wrote that backs up my local files to my remote server. It was working great, running once a day. However, I now want to make the script run every hour.The problem is that if there are too manyfiles to transfer (Example:I ripped a DVD in the last hour) the actual backup may take longer than 60 minutes.So I want to modify the script to check if my backup script, based on rsync, is running. If rsync is still running then do nothing and exit the script. If it is not running, execute the script as normal.
View 5 Replies
View Related
Feb 21, 2011
is it possible to run for instance pan remotely via ssh and make that instance of pan running on server, regardless upon closing it via ssh?for example i would love to do: start pan instance via ssh on the server keep it open while downloading close the ssh session, keep the pan running on the server in background. open ssh session and access the same instance of pan running on the server etc something in that loop.im unable to do that because when i close pan ssh remotely the instance automatically terminates on the server.
View 8 Replies
View Related
Feb 9, 2010
While running some live tests last week I saw an odd situation where netstat appeared to be displaying the wrong PID and process name for TCP connections. I'm trying to figure out if this is just a strange netstat bug or if it could indicate something odd is happening with our software.
We have a main program which establishes a number of connections, including connecting to a JMS server and listening/accepting a TCP connection. The main program also creates a child process which it uses to communicate with another server. On at least three occasions we saw a situation we saw netstat reporting all the expected TCP connections (correct ip/port for both source and destination), however the child process, instead of the main, was listed for the PID. The main process was still running but netstat no longer reported any TCP connections established by the main program. The main program continued to function correctly, the JMS communication continued to work and we believe the other TCP connection was functioning correctly despite the program supposedly not having any TCP connections.
I'm wondering if this could simply be a bug and/or obscure functionality of netstat that I don't understand which would cause netstat to report the child process as 'owning' the parents TCP connections. I don't know how this would happen or why the parent would continue functioning despite the problem otherwise.
View 1 Replies
View Related
Nov 23, 2010
I am starting an instance of mplayer from a bash script, opening an audio stream:
Code:
mplayer [URL]
How do I do to control this mplayer instance from another script? I want to control volume and pause it from within the bash script. I know the commands for doing so from terminal, but once mplayer gets started from the script, how do I 'direct' the commands to that specific mplayer instance?
View 9 Replies
View Related
Jul 20, 2010
I am having a problem.I use Ubuntu 10.04 server edition.Two computers on LAN one with Public Ip A other with local (Class C IP)say it BWith a third computer in same subnet I can access a TomCat application running on B as http://Ip of B:8080/applicationI want to use A as a Reverse Proxy for this application to be reachable from internet.So on Googling I came across some thing known as mod_ajp I enabled that on my Server A asa2enmod proxya2enmod proxy_ajpa2enmod headersbut after that I am not able to understand as how do I define vhost to be able to forward HTTP request which come on A as www.myserver.com/appto B which I can see internally as http://Ip of B:8080/application so Tomcat on B handles this.
View 4 Replies
View Related
Feb 11, 2010
I'm using a program called easystroke to invoke commands from mouse gestures - typically to launch an application. 'gnome-terminal', for example. If I already have a gnome-terminal window open, and I invoke the gnome-terminal gesture, I'd like to be setting focus to the already running instance, rather than spawn a new instance, which is of course what happens now. (I am actually more interested in this for my gmail chrome app shortcut, and other larger apps.)
I'm very new to ubuntu and linux in general, but I was hoping there might be a nifty command I could wrap around my launch command that would produce this behavior. (I'm imagining some kind of singleton app list keeper program that consumes my command line, checks if it's already in the list, transfers focus to the running process if it is (and if that process is still running), or else spawns a new process and then adds it to its list using the the command line as a key.)
View 2 Replies
View Related
Feb 15, 2010
I have KDE 4.4 and Firefox 3.6. Whenever I click a link from a plasmoid widget, it tries to open Konqueror and another instance of Firefox. The page actually loads in the opened Firefox window, but the task bar shows an instance of Konqueror and another instance of Firefox, that keeps loading for a while then close. See image below:
I currently have setup the browser default application as "firefox". If I set this option to use the default application, it opens in Konqueror and I don't see additional windows in the task bar. If I change the option to "firefox %u", then it exhibit the same issue, but the process is much faster, so the loading windows don't stay for long in the task bar. Additionally, it opens the link on a new Firefox window and opens the page twice. Although Konqueror is not loaded, the bouncing icon next to the mouse pointer shows up and stay for a while.
View 1 Replies
View Related
May 15, 2011
I posted this same issue in the Xfce support forums this morning. So far, no replies. This morning, using Synaptic, I finally upgraded my main Wheezy Xfce 4.6 computer to Xfce 4.8. There were 225 upgrades, plus 33 new things to be installed. It has been about 2 weeks since I last fully upgraded that system, so I'm sure that not all of today's upgrades were directly related to Xfce 4.8.
I waited to upgrade as long as I did because Wheezy's been getting a steady stream of Xfce 4.8 upgrades for the past several days -- I wanted to wait until that stream stopped, to reduce the chances that I would run into an upgrade problem that was on the verge of being fixed.
The only issue I had was that, in the middle of the configuration step (for lib6, I think), it asked me to either stop or restart xscreensaver before continuing (so that I wouldn't get locked out of the current session), so I completely stopped xscreensaver.
View 5 Replies
View Related
Jan 19, 2011
I am setting up a laptop for an old person who has trouble locating the skype icon in the notification bar.
I want clicking on the skype desktop icon to open the window of already running instance instead of a new one (like it happens in Window$).I am using Lucid puppy 520.
I want the icon to link to script which checks if skype is already running, and if it is, it de-iconifies the skype window
View 2 Replies
View Related
Feb 2, 2011
Making iPhone apps. a simple process? where do i begin. i have no idea what I'm doing.
View 4 Replies
View Related
Oct 12, 2010
My Ubuntu system is occasionally becoming very sluggish. I'm running many things simultaneously and it's very difficult to tell which program is the culprit.
I suspect that the sluggishness is due to disk activity since the CPU usage is consistently under 50% on each of the 4 cores of the CPU, and over 30% of the 6GB of RAM are free.
Is there a tool that can show me in real time the number of disk IO operations per second and the amount of data read/written per second? Can all this info be broken down and displayed per process?
View 2 Replies
View Related
Apr 30, 2011
Since there is no notification area any more in 11.04, where is the skype icon of the running skype instance?
View 2 Replies
View Related
Jan 24, 2010
i'm trying to run a graphical program at a specific time with the help of 'at'. i'm on kubuntu but i think this will be the same on any *buntu.
because 'at' is such a common word. i found this bug [URL] but the mentioned work around doesn't work.
i can make at work with command line if i enter the a tty to make the output to.
example of what i do is:
Code:
$ at now
warning: commands will be executed using /bin/sh
at> date > /dev/tty1
at> <EOT> (CTRL+d)
[Code]....
View 4 Replies
View Related
Feb 26, 2011
In Karmic, I could run an app as user gdm by issuing the following command (assume the app is gconf-editor)
Code:
gksudo -u gdm dbus-launch gconf-editor
Now that I've switched to Marverick when I issu the same command I get this:
Code:
towheed@GA1A4CH:~$ gksudo -u gdm dbus-launch gconf-editor
No protocol specifiedNo protocol specified
** (gconf-editor:19812): CRITICAL **: Failed to parse arguments: Cannot open display:
I checked my environment variable DISPLAY using:
Code:
towheed@GA1A4CH:~$ echo $DISPLAY
and it returned:
Code:
:0.0
Now I ran the command:
Code:
gksudo -u gdm dbus-launch gconf-editor --display=:0.0
and got the same error as before.Has either or both dbus-launch or gksudo changed their behavior os is this a bug. Note that the command does not work with any applications being run as the user gdm.
View 2 Replies
View Related
Mar 14, 2010
I have 4 workspaces set up and they appear on the bottom menu bar. Usually I can switch to each and see what's running in each, even if the apps are minimised. Now I can only see what hasn't been minimised, and I can't see or return to the ones that are minimised... System Monitor shows the minimised apps are running... I was poking around gconf editor late the other night and I must have altered a setting but I have no idea which. I've looked through docs etc but can't find a solution.
View 6 Replies
View Related
Feb 16, 2011
After downloading a Chrome (for Linux of course) installation package via FireFox. Opening it from Downloads, entering the Administrator password. Then clicking on the " Install Package " button in the " Package Installer " window, I get a message:
"Only one software management tool is allowed to run at the same time, please close the other application 'synaptic', 'aptitude', or 'update manager' first."
I see no evidence of these apps or any others running & I got rid of the Firefox. Are these " Other Apps " hidden somewhere, how do I determine this?
View 1 Replies
View Related
Feb 21, 2011
I really do not know how to phrase this question properly. I am quite unaware of the PC jargon. But I have Ubuntu as the main OS and Mandriva is the second OS on the same hard disk. The boot loader is the Ubuntu. When I want to switch to Mandriva, on boot up I press Shift and then select the kernel.However, if I am on Ubuntu and want to run an application which resides on Mandriva, how do I do that? My fstab file does not even mention Mandriva. However, the file system does show up that file and I can open any files I need by clicking on GUI "Places". But when I try to run any of its applications by clicking the appropriate file on its /bin file nothing happens. A pop-up window briefly flashes and disappears. So my questions are:
1. First how can I change directory so that I am on Mandriva. Can' cd ...something' take me to that file because I see it in "Places" as a 36Gb file system?
2. How can I run an application which resides on that file system e.g., R or Octave which I do not have installed on Ubuntu, without rebooting into Mandriva.
3. Can I do this from command line.
4. And finally, can I do the same from Mandriva i.e., access Ubuntu from it.
I did read quite a bit about mounting files and fstab, but the fstab does not show the file system I am talking about. These are the outputs from Ubuntu os.
View 2 Replies
View Related
May 22, 2010
I have lucid and jack almost the way I want. I can't get apps like flash (in firefox) and rhythmbox to run through JACK. I've followed some outdated guides on the forums here, but I haven't had any luck.
I set up gstreamer to use jackaudiosink, but no luck.
If you ask me, JACK + ALSA should be the default, with maybe a simplified or automated control system for people who don't want to exploit their might
I hate having to close up a massive JACK patch just to watch a quick movie, or having to close Pidgin so JACK will start.
View 1 Replies
View Related
Sep 15, 2010
I've just installed KDE on to my regular Ubuntu 10:04 install and thats all good and well but now when I run my fav GNOME apps in KDE, they look old fashioned like some from Win 95 or 98 type thing. Do I have to install additional GNOME Libraries and if so which ones?
View 4 Replies
View Related
Feb 4, 2011
What are the ways to check the CPU/memory utilization on my headless torrent box on Seagate DockStar? Besides rtorrent and sabnzbd, I also have Asterisk running on it for occasional telephone calls.
View 1 Replies
View Related
Jul 14, 2010
my wife needs the 'horrible' dos because she uses - Russian - programs written for windows only.
i suppose:
they - the Russians - never discovered the linux-os (very surprising)
or
she - my wife - got the wrong version.
my Q:
is there an easy way to run windows-progs on ubuntu 10.04 ?
View 5 Replies
View Related
Jul 18, 2010
Im comming from ubuntu/mint and one of the things I got used too was doing something like "sudo nautilus" or "sudo gedit" and similar things. In Suse 11.3 I always get errors like the following
(gedit:6115): Gtk-WARNING **: cannot open display:
kate: cannot connect to X server
Could not parse arguments: Cannot open display:
or similar variations of these.What can I so to prevent this from happening? even if I do "su" and try from there it doesnt always work.I like Suse as it feels more professional then ubuntu, but I am trying to make it as user friendly.
View 5 Replies
View Related
Oct 15, 2010
I had some problems which were were already as bugs on which kde4.4.4 crashed and since than I lost this functionality. I cannot say if I have any apps running if they were all minimized as they don't appear on the taskbar. I can switch through them via Alt-Tab.
View 1 Replies
View Related
Jun 12, 2011
There are some apps for win that run on wine just with an ordinary install procedure. There are others that will never work at all. But there are also some that wine users claim to have made run by changing some specific configuration of wine, using some trick or even creating scripts on playonlinux.
So if I try to run an app on wine and it doesn't and I don't find any user documentation about some specific trick or config for that app what adjustments can I do to try to make it run? I mean, it's tiring and perhaps foolish to spend hours playing with every possible config in wine frontend without knowing what I'm doing. So what can I do to find out what libraries, configs, tricks or scripts are needeed to make an app run under wine if it didn't at the first try?
View 9 Replies
View Related
Feb 27, 2011
I have a simple home network consisting of 2 laptops - one is a linux box and the other runs windows and linux with a dual boot setup.I develop my web apps on the linux box but would like to test them out on the windows machine using IE7. I have abandoned the idea of doing this in Linux using wine since in the real world this is unrealistic
View 9 Replies
View Related
Nov 14, 2010
I have Songbird running on another display on the same machine as my Mythtv frontend but while the frontend is running, audio seems to be disabled for it and other applications. I assume that this is because Mythtv suspends Pulse audio.
Is it possible to make this work without enabling pulse audio?
View 2 Replies
View Related