General :: Start X Server And App At Boot (or Services Load) Time
Oct 14, 2009
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.
Whenever I start up my laptop running Fedora 14, I notice that it says that it is failing to connect to my default wireless network since the wireless card is not activated. Since it appears that the wireless card is not activated until the NetworkManager service is started, is there anyway for me to set NetworkManager to start before this check is made? Boot message log is attached. [URL]
What is the correct way to stop upstart services from staring at boot time ? I'm doing something like this example in /etc/init/mysql.conf:
Code: #start on (net-device-up # and local-filesystems # and runlevel [2345]) start on runlevel [!0123456] # I ADDED THIS LINE (and commented the above ones) stop on runlevel [016]
1. Is this the correct way ?
2. Is there no way of doing something like we do with update-rc.d -f apache2 remove ?
3. When will ubuntu ship a gui to add or remove services from boot ?
I'm having some strange problems in my system (Ubuntu 9.10 32 bits). Several services (Cups, MySQL, VirtualBox kernel driver, etc) aren't starting during boot time. It's possible start them manually (e.g. /etc/init.d/cups start). The other problem is that my virtual terminals (ctrl + alt + f[1-6]) aren't starting with the system too
I've been running Ubuntu 9.10 since November '09, and since a month or so I'm having boot problems. Gnome starts, but some core services such as ssh and dnsmasq (that have started on boot somewhere in time), don't start anymore. Neither does rc.local fire, so I basically have to startup these things by hand.
Also, I cannot get into the console anymore by using ctrl+alt+f*, because it gives a message like: Starting ntpd or starting libgcrypt 1.4.4, or something in that fashion.
My belief is that something is holding the boot procedure in a waiting state before services such as ssh get to start, but I can't seem to find anything in the log files.
After upgrade of 11.1 to 11.2 I noticed that most of the services that was started in 11.1 at boot are starting now in 11.2. I check run-level of services with
Code: chkconfig --list
And everything is as like was before the upgrade. When I start services manually everything is OK, but on restart they do not starting.
Code: cat /var/log/YaST2/y2logmkinitrd Kernel image: /boot/vmlinuz-2.6.31.5-0.1-default Initrd image: /boot/initrd-2.6.31.5-0.1-default Root device: /dev/sda7 (mounted on / as ext3) .....
I installed Centos 5.5 on a home PC to be used remotely.
All server daemons work fine but only start if the user is logged in.
How do I set the SSH server to start whenever the PC is turned on, rather than when the user is logged in? I read the chkconfig man page online but couldn't find anything.
Plus I put a script in my startup services to be run whenever the computer boots (I'm guessing when the users logs in). How do I go about setting that to run too whenever the system boots instead?
I have installed nagios in a CentOS vm and now its monitoring the local host, one remote host which is also a vm with CentOS 5.3 and one windows xp system. Is there any option for me to change the threshold time for the services given? For e.g. I had a service of current_load which comes as a default plugin while installing nagios itself. What should I do to change the threshold value of the current_load so that I might get the warning or error alert some time earlier as it was now.
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.
I cant start Nfs services. When I type the comman /etc/init.d nfs start I get "Not starting NFS client services - no NFS found in /etc/fstab/. I used yast to install nfs server already
configured /etc/sysconfig/vncserver, used vncpasswd as the user im trying to log in as to set passwd, disabled firewalls, set chkconfig --add vncserver but still whenever i try to connect to the vnc server I get "unable to connect to host: Connection refused (10061)". If I run the "vncserver" command as my normal user, I can connect fine then. This really wearing on me, any help is greatly appreciated. It is weird if I try to stop vncserver it says [ok] and then if I try to stop again it says [Failed] but if I check the status of vncserver it says Xvnc is running..
Vmware tells me it cannot start services.I believe the issue is tied to permissions because the message indicated the log with the full details was located in /tmp/vmware-root/setup-4772.log but when I go there I receive a message telling me I do not have permission to the directory and there's a lock symbol on the directory from the File Browser utility.What do I need to do to unlock the folder and get vmware working again ?
i'm new to Debian os and currently want to install php5 apache2 and mysql 5.1. But ive got problem to start the mysql services.The error on command prompt as belows:
I followed the instructions that came with the 802 .11 Linux STA driver and was able to initialize my card and connect to a protected network! The instructions also tell me how to load the drivers at boot time, but I get an error when I try to run
Code:
# sh: for i in `find /lib /var -name wl.ko`; do mv $i ${i}.orig; done
The message returned is
Code:
bash: syntax error near unexpected token `do'
Upon restarting, my wireless is no longer active. My card is Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
I have installed "open-SUSE 11.4" on a "500GB Free Agent External Hard Drive". I didn't have any problem in booting since last week that I booted it from my laptop. Also I did it before several times from then when I try to boot it e.g. from an "Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz" PC the time between loading INITRD and starting boot sequence messages lasts nearly 30 minutes!(i didn't actually measure it but it take a long time in the same order). after starting boot sequence which is showed on monitor everything looks normal. e.g copy of files would be done by speeds between 2MB/s to 30 MB/s depending on the targets.I used to use the external hard derive to boot from different laptops and PC's from start but I didn't have such a problem anytime.
I am using KVM and created four guest Operating systems on it.The server host is Ubuntu 10.04.I am using 4 websites in a reverse proxy environment.One of our website is running on CentOS VM.Right now there is no traffic on the website static HTML pages.I do not have any clue as why it was taking longer time to be accessed.
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 have compiled/installed Apache from source code ...however i don�t now how to start it at system start up as a daemon to run at level 3the server is usually started by the apachectl scriptwhich understand start stop restarti don't want to use suse distribution of Apachecan i just copy apachectl to /etc/init.d and make a link to it at /etc/init.d/rc3.d
I tried setting up Nagios 3.2.2 on Ubuntu 8.04 using this guide [URL]Every thing went well until trying 'make install-webconf', I then got the following error.
I am using Debian4 and I have apache under /home/apache/bin/apachectl How to start the apachectl service for every time system restart, Itmust be start automatically. Please tell me how todo or how to write the script, how to configure forrun level 2,3 and 5
I am completely stumped. Found my web server (lighttpd) unresponsive this morning and had to hard cycle it. After some cleaning up, all was happy. However, after about an hour of handling a decent amount of web traffic, time freezes as far as the web server is concerned. I've got an hour of access.log data with the following date: [23/Aug/2010:20:42:58 -0500]
It never changes. The load average now reads 0.00 0.00 0.00 (which is totally inaccurate). And I am not able to successfully log in remotely. I have taken the server down 3 or 4 times today and after an hour or so of functioning normally, this is what happens. Additionally, the local time is now off by 30 minutes.Trying to force with ntpdate does nothing (or, at the very least, sets it to the same incorrect time)
I'm running Debian Etch AMD64, and currently trying to clean up my system in preparation for an upgrade to Lenny. One problem I have is that resolvconf (which is installed) does not start at boot time, but if I start it manually then bring the NIC down and back up, it works OK, with no error/warning messages.
and it starts successfully and the CMS can use it. To start OO at boot time, I wrote a script called 'openofficeserver' and saved it to /etc/init.d. It looks as follows
I'm wondering how I start it automatically when I boot up the ubuntu 10.04? especially, when I created the user "postgres", I set a password to it. every time I issued "su - postgres" command, I need to give it a password.