Software :: Run GUI Application From Userdefined Boot Time Daemon Server
Jan 19, 2010
I am writing one simple server daemon and running with /etc/init.d/server its running properly but when i want to run one simple QT GUI with system() function , its not able to run it and returning 256 as return code .
if same daemon i m running from terminal then its working properly and also system() function is getting success with return value 0 and GUI is getting popped up.
I am writing one simple server daemon and running with /etc/init.d/server its running properly but when i want to run one simple QT GUI with system() function , its not able to run it and returning 256 as return code .
If same daemon i m running from terminal then its working properly and also system() function is getting success with return value 0 and GUI is getting popped up.
What's the best way to register a daemon to start up at boot time in lucid? I have tried registering the following script using "sudo update-rc.d"
Code:
This is supposed to get the daemon for opentftp started, but it does nothing, although I can see the results of the "echo 'Server opentftpd started' " in the boot log in /var/log .Any thoughts or general help on what the best way to accomplish such a task is?
Me and my mom are sharing a laptop.My mom likes to use Google Chrome. I like to use Opera. Is there any way I can tell the system to start the Opera application , but then instantly minimize it to the tray bar? I want that because : if my mom starts the computer and I'm not around , I still want all the tabs in my Opera to load , without my mom knowing anything about my "malefic" plan ...
I have written simple application in cpp which listens on port 8080. But when I start the application and check the port it is listening on (using netstat -nap), I can see that the application is listening on port which is > 30000.
This port number keeps on changing if I re-run the application.Please let us know if I have to do any kind of a seeting so that application starts listening on 8080 port.I am using CentOS 5.5 (I tried same on CentOs 5.2)
I have SLES9.I am running a Java-application named meinServer5.This app starts two application servers, one admin process and one worker process, where the admin process has to be started before and ended after the worker process:
meinServer5 startadmin // starts the admin process meinServer6 stopadmin // stops the admin process meinServer5 start //starts the worker process
A colleague of mine was studying at the University of Vienna and saw an application which was based on linux whereby other pc's booted from it and if on the server they had set it to force a clean install on that PC it would download and install a windows image. Does anyone know of the app or could point me in the direction of a similar app.
Application that crashed: kded4 Version of the application: $Id: kded.cpp 1031638 2009-10-05 16:59:11Z lunakl $ KDE Version: 4.3.4 (KDE 4.3.4) Qt Version: 4.5.3 Operating System: Linux 2.6.31.9-174.fc12.i686 i686
The Linux File system uses the file path notation to abstract how data is accessed. Path really must be an environmental variable for the applcication that converts the path name to an inode so what is this application/Daemons name?
I have a Linux box, running rsync, only problem is, I have to turn it off at night. What I want to do is turn it on and when it turns on, rsync will already be running in daemon mode rather then having to run rsync daemon. Does anyone know the solution? I'm sure its simple, I just cannot figure it out
Execute a script as a non-root user at boot time. The script lives in /home/sbrown/scripts and has the executable bits set. If I run the script locally in the shell it behaves as normal, but will not at boot time It's a very simple 2 line script:
#!/bin/bash # Starts IRSSI in a screen session sudo -u sbrown screen -S irssi irssi
Here's WHAT DOESN'T work:
I put this in /etc/rc.local: sudo -u sbrown /home/sbrown/scripts/irssi_exec I also tried just copying the script to /etc/init.d/ and chowning it to root then ran update-rc.d irssi_exec defaults and rebooted. Still not working. This is on a Debian Squeeze box... what am I missing? Surely it should be simpler than this
I have just installed ssh-server in my Ubuntu 10.04, and really want to know how to enable/disable it and I also want to be sure if the changes will take effect after the next boot or not, and how to do that?
I need to start an application (graphical) when the PC start, even before anybody login, and use/launch a specific user. Now only can do this manually; when gdm starts, switch to any text tty [ie. Ctrl + Alt + F1], then I login into the special user, start a X server, export the DISPLAY environment variable, and start the application.
With this steps: Code: $X :1 -verbose -nr -nolisten tcp & # Maybe Metacity -> $ metacity $export DISPLAY=:1 $JavaApp & Now i need put this steps (script) in some place to launch the app automatically, and with and specific user [ie. manager].
How can I made it? Maybe in init.d? or an special xinitrc? And how can start the app with the specific user? And, if is possible, who can stop the app when the system going turn off? I have Debian 5.0 and a beginner knowledge of shell script.
I seed a suggesting related asychron io. I'm write a program which use completion ports, but wandor how avoiding loops like for(; below...i.e I want parse proto with count in first and then computing some quantity of pieces. how that make with aio?
I was trying to get a daemon to load on boot, I stupidly added it to rc.local and it just hangs. I would love to put in a live CD and edit out the line but the volume is encrypted and I cannot get it to mount.
Is there a way I can cancel the daemon from loading or get to the grub menu (not readily visible since I am single boot) and then boot into a console?
why does hal daemon hangs? but if i try the interactive booting and disable the hal upon starting,it will boot up. so maybe i can just disable this every time it boots, how can i do this?
I installed Centos 5.5 yesterday and discovered that the hal daemon was failing to start on boot.
The messages showed that the hal daemon was hanging because nss_ldap could not connect to the ldap server. It eventually failed and the system came up multiuser without it.
When I started looking into the problem I discovered that hald was being started quite early in the boot process. It's sequence number was 26 (if I remember correctly). This was even before nscd.
If I chkconfiged it off and booted, I could start it successfully once the system was up.
I changed the sequence number to 98 and bring it up relatively close to the end of the boot process.
This works and it starts normally.
Is starting it as early as 26 in the boot process done for a reason? It seems to me that it should definitely not be started before nscd. Does it matter that I moved it to the end of the boot process?
When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.
I recently got Ubuntu up running on my HP DV1000 laptop. The problem I started noticing is that whenever I were to install packages via software center or even from the web. They simply won't install. After I enter my password it just hangs and won't continue forward.
I have written simple application in CPP which listens on port 8080. But when I start the application and check the port it is listening on (using netstat -nap), I can see that the application is listening on port which is > 30000.
This port number keeps on changing if I re-run the application.
if I have to do any kind of a seeting so that application starts listening on 8080 port.
I am using CentOS 5.5 (I tried same on CentOs 5.2)
I'm having trouble booting after a recent bunch of updates (haven't been able to boot F12 from hard disk for a couple of days). The boot process gets as far as "NetworkManager daemon [OK]", then just stops. I get this for all 3 kernels that I can choose from the grub menu (2.6.32.16-141, 2.6.32.14-127, 2.6.32.12-115)Mounting the hard drive with a liveUSB, a quick inspection of /var/log/messages reveals that things go smoothly until: etc. until I hit the power button.I ought to mention that I wireless card that requires the Realtek RTL8192SE driver, which requires
I've seen Flash come up quite a bit in these forums as a target for many complaints for users. I was wondering what exactly is the issue with Flash including the 64bit support, the sound issues etc. Why is such a widely adopted web app having such a difficult time?
I want to change the Date and Time of the system from my application. This can be done using the "Date -s" linux command. But the application has to be executed as root/sudo. is it possible that root can give permission to normal user to execute the "Date -s" command?
I want to monitor an application lets say that it will be apache2 to see how many in real-time it takes network resources such as upload/download per second how can i do that in linux (cmd not gui) ? I know it's possible because i can see this in windows in my nod32 firewall monitoring.