Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Linux


Advertisements:










Ubuntu :: Start A Shell Script With Startup?


I wrote a script, and what to make it surring with ububtu as startup shell.


View 9 Replies (Posted: May 6th, 2011)

Sponsored Links:

Related Forum Messages For Linux category:
Ubuntu :: Start Synergy On Startup Wont Start Automatically On Server
Im trying to run synergy on startup. This works fine on the client, but it wont start automatically on the server. I put this line in an entry in startup applications:

[code]...

but still no dice.

Posted: October 13th, 2010

View 9 Replies!   View Related
Software :: Samba Refuses To Start On Startup - But Will Start Manually
I just moved my / from sda1 to an ide drive, hde1. i dont see how this could have caused any of these issues, but it did.

First my network card failed to start. i added a line in my rc.local file (where i put all of my additional programs, etc i want to start):/etc/rc.d/rc.inet1

The above now starts my network card with my static ip configured. dhcpcd also worked but i wanted this static.

Now samba will not start. i have the following line in my rc.local: /etc/rc.d/init.d/samba start

This used to work just fine. at first i thought that samba may be trying to start before my network card gets an ip, but the line is *after* the network startup line. just to make sure, i made an additional script called startsamba which contained a sleep 60 followed by samba start, to delay the startup of samba even further.

The message samba reports is very vague, something like failed - core dumped. most of the core dump log is garbage characters, but here is the beginning which seems like it might contain some info:

Code:

ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i) after the system starts, i can drop to a console and type "/etc/rc.d/init.d/samba start" and the service starts just fine. i've also tried starting samba manually with "smbd -d" which also produces the core dump when started from rc.local, but not when started from a console after startup.

Posted: 04-14-2009, 04:46 PM

View 8 Replies!   View Related
Ubuntu :: Autorun A Shell At / Before Startup?
I need to run a shell to enable pseudo-multitouch on my touchpad using a shell which automatically configs synclient.I put this file under /home/<username>/, and also put this to the Session manager under system menu. But it doesn't work. I've already used chmod command to make sure that the file is executable.

Posted: November 20th, 2010

View 9 Replies!   View Related
Ubuntu :: Help Building A Startup Shell Script
I'm looking to make a launching script which launches a program in one of the current directories that the user has open, the problem is I have no idea how to get info about all of the terminals open.I simply want to check which directories the user has open and do a pwd on the terminals, and then use that to cd into the dir before launching. I might be able to use a combo of who,tty, top, and pwd...but I don't know where to go.

Posted: April 18th, 2010

View 7 Replies!   View Related
Red Hat :: Run Shell Script During Startup?
In bash shell how to run shell script during startup

Posted: 07-29-2009, 06:43 PM

View 2 Replies!   View Related
Ubuntu :: Program Irxevent Start Automatic When The System Start Irxevent On Startup?
I install lirc and want to prgram irxevent start automatic when the system start

Code:
System->Preferences->Startup Applications
Add an item,but that not works every time,means sometimes cannot work.

Posted: May 27th, 2010

View 2 Replies!   View Related
General :: Execute A Shell Script On Startup?
I have create a script to start a server(my first question). Now I want it to run on the system boot and start the defined server. What should I do to get this done? My findings tell me put this file in /etc/init.d location and it will execute when the system will boot. But I am not able to understand how the first argument on the startup will be start? Is this predefined somewhere to use start as $1? If I want to have a case startall that will start all the servers in the script, then what are the options I can manage.

My Script is like this:

#!/bin/bash
case "$1" in
start)
start

[code]....

Posted: Mar 31 10 at 15:13

View 2 Replies!   View Related
CentOS 5 :: Run Shell Script At System Startup?
I use CentOS 5.5 and I've trouble in run shell script after system reboot. That script runs jboss server and it looks that way:

#!/bin/sh
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/tmp/
rm -R -f /opt/billing/jboss-6.0.0.M1/server/default/work/
/opt/billing/jboss-6.0.0.M1/bin/run.sh -c default -b 0.0.0.0 -C /opt/billing/jboss-6.0.0.M1/server/default/lib/ > /dev/null &

I've created user account for jboss.

privileges of above script are okay. I've tried so far:

- add command to /etc/rc.local

- add script to /etc/rc3.d/ and create symbolic link to it in /etc/init.d/

- add run script by @reboot annotation in crontab (crond automatically starts with OS)

and jboss still sleeps after reboot. I've noticed that commands which remove directories seem to work when I've added them explictly to /etc/rc.local. But next command which runs jboss hasn't been executed.

Posted: 2011/4/28 14:52

View 4 Replies!   View Related
General :: Running Shell Program On Startup As Root In Terminal
I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

Posted: 08-04-2010, 11:36 AM

View 10 Replies!   View Related
Slackware :: Unclear Screen - Move Aside All Shell Startup Scripts?
using any sort of rxvt-based terminal with TERM set to rxvt (or rxvt-unicode) then ^L will not clear the screen, only act as newline. This is not the behavior I see on Debian or CentOS. I have the same user environment at each site. Using urxvt on centos, ^L will clear the screen like readline(3) says it should. If I then ssh to slackware, it won't. exporting TERM=xterm will cause the correct behavior after having logged in to slackware, but I'd rather understand why this is happening. I've tried moving aside all the shell startup scripts, setting clear-screen explicitly in .inputrc, setting stty sane nothing doing. Am I missing something?

Posted: 03-18-2010, 06:22 PM

View 10 Replies!   View Related
Ubuntu :: MPD Won't Start On Startup?
I've added mpd to System->Preferences->Startup Applications several times and it always just disappears and of course isn't started. I have used both mpd and /usr/bin/mpd as the command. I have done a log search as follows:

Code:
sudo find /var/log -type f -mtime -5 -exec grep -i -e 'mpd' '{}' +

and nothing significant was found, e.g. an error message indicating that the mpd startup command was removed.

Posted: April 21st, 2010

View 9 Replies!   View Related
Ubuntu :: Getting IBus To Start On Startup
Im trying to get iBus daemon to start on boot, but cant seem to do it. In the Desktop Session Settings window iBus is not listed in the start up programs and there is no option to start in on boot in the iBus preferences window. How do I tell my computer to start it up when I boot?

Posted: June 19th, 2011

View 4 Replies!   View Related
Ubuntu :: Windows Start Vnc On Startup?
I want to have it with vnc remote, because I want to have it in a place away from monitor and if it shuts down I have to connect it with a monitor and keyboard enter the user password and open vnc. So I want to do as windows start vnc on startup, and I don't know if it's possible enter the user password from remote.

Posted: January 9th, 2011

View 4 Replies!   View Related
Ubuntu :: Getting Conky To Start At Startup?
As the title implies, I have fluxbox and conky running in Karmic. The problem is getting conky to start at startup. Below is my ~/.fluxbox/startup file. I have searched and tried everything I have found to get it to work. Conky works beautifully when I run it manually. Anyway, here is my startup file:

Code:
#!/bin/sh
xmodmap "/home/doug/.Xmodmap"
unclutter -idle 2 &
conky &
exec fluxbox -log "/home/doug/.fluxbox/log"

Lines added before and after the conky line run perfectly. Unclutter runs, but no conky.

Posted: April 6th, 2010

View 3 Replies!   View Related
Ubuntu :: How Do Make Anything Start On Startup
How do I make something start on boot? I remember there being a command.. nano something, can anyone tell me?

Posted: September 4th, 2010

View 3 Replies!   View Related
Ubuntu :: Terminal Always Start At Startup?
This is a weird problems.Everytime i log on to my computer/restart my computer, the terminal always autostart.I already checked at startup application.No terminal there.Any suggestion to stop the terminal from autostart with startup?

Posted: December 31st, 2010

View 2 Replies!   View Related
Ubuntu :: Alacarte Won't Start Up From The Shell
When I try to start alacarte from the shell, I get: Traceback (most recent call last):

[Code]...

The reason I start from the shell is because I noticed that it would crash after starting up in system monitor. This problem started after I tried to remove a program from the list which had already been manually removed. When this program was unchecked, the list went completely blank. I tried to revert the list, but it didn't work. Is there any hopes of repair?

Posted: January 8th, 2010

View 8 Replies!   View Related
Ubuntu :: Startup Applications Failed To Start
I have a problem in my Ubuntu box. The applications defined in "Startup applications" fail to start. On another user's account, everything works fine. I think that's some configuration problem. Where are the data of of the startup applications stored? (i suppose it's .xx file that I could just delete to restore defaults)

Posted: 02-28-2010

View 8 Replies!   View Related
Ubuntu :: GUI Doesn't Always Start On Startup (Kubuntu)
A lot of times when I start up my computer, instead of the graphical login screen I'm brought to a CLI login. If I log in and do "startx," it'll start KDE, but sound doesn't work and the shutdown/restart options disappear. (The logout option is still there.) It's inconsistent; sometimes it'll start the GUI and sometimes it won't. I have yet to find out what causes it to work right and what causes it to bring me to the CLI. When it doesn't work, if I run "shutdown -r now" or "shutdown -h now," it'll start the GUI as the computer is shutting down. I've tried Ctrl+Alt+F7 when it's brought me to the CLI, but it didn't do anything

Posted: 03-13-2010, 10:21 PM

View 2 Replies!   View Related
Ubuntu :: Making Autokey Start At Startup?
I'm having difficulty making Autokey start at startup. I use the startup applications utility but don't know how to use it properly. I guess that I'm supposed to navigate to Autokey's executable but don't know where that is or if it exists because I don't understand the file system.

Posted: August 7th, 2010

View 2 Replies!   View Related
Ubuntu :: Start 2 Apps On System Startup
I need to start vboxwebsrv and x11vnc on startup with a specific username.I tried entering the commands in rc.local as:/bin/su -c "/x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800" user1/bin/su -c "/usr/bin/vboxwebsrv -b" user2.But this does not start the app on startup.

Posted: October 28th, 2010

View 2 Replies!   View Related
Ubuntu :: Conky Doesn't Start At Startup Even With 30 Sec Sleep
Conky does not start during start up.I used this script, It has execute permission also!But it did not start! What is the problem!It works manually when i run that script!

Note: It is not working in the background also at startup as i checked it -When is run killall conky it showed No such process

Posted: January 21st, 2010

View 2 Replies!   View Related
Ubuntu :: Start Program Minimized - Startup Applications?
I'm putting a program in my startup applications that is completely GUI, with no command line options. The program is Calibre, if anybody is curious. Is there any way to start this program minimized? Gnome, Lucid, x64

Posted: September 12th, 2010

View 1 Replies!   View Related
Ubuntu :: Upgrade To 10.04 And On Start Desktop Doesn't Startup
I recently updated to Ubuntu 10.04. On this same machine I've used Ubuntu for 3 or 4 years now. Upgrading from 8 - 9 - 10. I love Ubuntu and use it as my everyday work environment. Anyway, recently when I start my machine in the morning it boots to commandline instead of the desktop. For the last couple days I boot to safe-mode and do a package repair. Sometimes more than once. Eventually I get the desktop to start but it is annoying. When trying to boot to Fail Safe Graphics Mode(?) I get an error stating: "Fatal Server Error: No Screens." The message referred me to /var/log/Xorg/failsafe.log. Here is a snippet of the end of that log file:

[code]...

Also, I'm using an NVidia graphics card on an HP machine. I installed the "current version" accelerated graphics driver which it says is proprietary.

Posted: September 3rd, 2010

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved