0
votes
1answer
18 views

Where does the output of a script that was run at startup go? [duplicate]

I have a script which is run at startup from rc.local, I don't redirect the output anywhere. When I first wrote it, I ran it in a shell, it worked as I expected and continually poured characters out ...
3
votes
3answers
78 views

How do I create a single-execution Upstart job guaranteed to complete before two other jobs begin?

How does one write an Upstart task that is guaranteed to run only once after each startup but is also guaranteed to run to completion before either one of at least two other jobs start running. I do ...
0
votes
2answers
61 views

Open terminal in 'always on top' mode on startup

I want Ubuntu to open a terminal in the lower right corner when I log in, with the always on top mode enabled. I have made a script which does this when I run it from a terminal, but it does not work ...
0
votes
0answers
18 views

Ubuntu crashing on purple loading screen

I've done something which unfortunately seems to have caused Ubuntu 14.04 to fail at start up and was wondering whether I could get some guidance about debugging the issue. It started when I rebooted ...
0
votes
0answers
9 views

Create startup script for openproject [duplicate]

I consider myself a linux noob, but I was able to install openproject on a Ubuntu 12.04 server in VirtualBox. Currently I have to manually start the web-server every time I power-up the virtual ...
1
vote
4answers
183 views

How to make Start up script for Making Application run on startup

I have one jar which i need to run on startup and no matter whatever user is logged in and that need to take that user name automatcally here this code can take user name echo $(logname) and this ...
0
votes
0answers
33 views

How do I start a tmux window on startup and execute a scrips

I would like to be able to start my server and have a detached tmux window with a script running. So then I can attach with ssh and be able to work with the script. Thanks, Anthony
0
votes
1answer
69 views

How to add a runonce startup script?

I'd like to add a runonce start-up script on Ubuntu which is expected to be run after the network interfaces have been initialized and before any user logs in. So which is the appropriate place to do ...
0
votes
0answers
21 views

Only part of my startup script gets executed

I have a script located under /etc/profile.d that executes when I login via the gui. All I need this script to do is connect to my pptp server with a single command which runs flawlessely when I ...
4
votes
2answers
64 views

How can I run a sh script targeting X11-settings on login?

The gui-based controls for mouse acceleration do not suffice to tame my mouse, so I am correcting this by running: xinput set-prop 10 "Device Accel Constant Deceleration" 2.9 This script has the ...
1
vote
1answer
106 views

Upstart script doesn't work

I'm trying to create my own script that gets executed on startup and stopped on shutdown (referring to the classic System-V init style), but it won't work! I've created this script ...
0
votes
1answer
496 views

startup script ubuntu 12.04

Each time I startup the sistem I need to run this command sudo xhost + and the sudo service myservice restart I have decided to add a script to startup to avoid having to type it each time myself. I ...
0
votes
0answers
22 views

Startup script for pxeboot

I am working on pxeboot. Now i want to do startup script in pxeboot server and whenever client started the startup script will run on the client machine. How to do that. ?
0
votes
0answers
54 views

A script which can be run from a flash drive and modify startup applications

So I have created a script I would like to run on computers at startup on the network I manage. Each is unique, so merging settings accross the network would be problematic. I could change each ...
0
votes
0answers
102 views

How can I fix this vncserver startup script?

I've been working on getting multiple remote desktops up-and-running on my new installation of Ubuntu 12.04.3 by following this guide: ...
0
votes
1answer
38 views

Removing Sys-V-Init script in favour of rc.local. Will application still shutdown correctly?

I've had to remove the /etc/init.d/crashplan script by doing update-rc.d -f crashplan remove in favour of starting the daemon using /etc/rc.local (the reason for this is that I have an encrypted home ...
0
votes
0answers
17 views

How do I write an LSB header?

I used these instructions to try to make a script run at startup. I got the error "missing LSB information. See http://wiki.debian.org/LSBInitScripts" So I did. I sort of get what's going on, but ...
0
votes
0answers
120 views

Is it ok if rc.local calls script with infinite loop? and some rc.local basics

I'm running 12.04, and I've never really messed with rc.local. First, when I source myscript.sh in rc.local, should it be /path/to/myscript.sh or sh /path/to/myscript.h or does it even matter? Can ...
2
votes
1answer
161 views

Running a Process on Startup

Sorry if this is a bit of a basic question, I'm fairly inexperienced with Ubuntu and Linux in general. I am looking to upgrade an application server from JBoss EAP 5 to Jboss EAP 6, previously we ...
0
votes
1answer
2k views

Write script to open browser at specific URL on login?

I've been using Ubuntu for a few weeks, and I want to know more about automating tasks. How can I write a bash script to open a web browser with a specific URL after startup?
0
votes
1answer
75 views

I need help adding a script to /etc/rc.local

This seems simple but I can't seem to figure it out. I am trying to write a script to mount a drive on startup. the command I want to run is: google-drive-ocamlfuse ~/gdrive But i want it to run ...
1
vote
1answer
103 views

Start noip application before login

How to start noip2 automatically before login? I tried with this for 3 hours, editing /etc/rc.local, /etc/init.d/rc.local, running script /etc/init.d with update-rclocal, nothing seem to work, even ...
1
vote
2answers
415 views

Script not running at startup

I'm an Ubuntu 13.04 user and I'm trying to run a script at startup. I created it in /etc/init.d/, gave it chmod 755 and ran the update-rc.d <your script> defaults command. The script is ...
5
votes
1answer
5k views

Script at /etc/init.d does not run at start-up

I wanted to run my Dropbox daemon automatically at start-up. I did it via terminal, that is, I (1) moved it to /etc/init.d, (2) made it executable, and (3) ran sudo update-rc.d dropbox.sh defaults. So ...
1
vote
2answers
178 views

Run a script on startup to periodically disable the keyboard

I have the following script while [ true ] do gnome-screensaver-command -l xinput set-int-prop 10 "Device Enabled" 8 0 sleep 1m xinput set-int-prop 10 "Device Enabled" 8 ...
0
votes
1answer
107 views

Hide desktop startup screen

I am working on a hardware device running on Ubuntu. One of the most important features is good presentation - in my case not showing the OS startup screen etc. Currently I am using upstart to start ...
11
votes
2answers
15k views

Why is the command in /etc/rc.local not executed during startup?

I have a single command in my /etc/rc.local script that is supposed to start the update daemon for Tiny Tiny RSS during startup, but the script is not executed during startup. Why? The entire ...
1
vote
2answers
3k views

How do I run a script on startup as superuser?

I want to run a command on startup on my Ubuntu Server. Does anyone know how to do this? Does /etc/rc.local run as superuser? Any help will be appreciated. Thanks!
0
votes
0answers
116 views

How can I make a command execute at startup? [duplicate]

I wanted to remap the keys for my page up and page down number pad so that they would actually act like the real page up and page down. I used the xmodmap successfully following the directions based ...
0
votes
1answer
1k views

How do I restore deleted rc.local file?

I have recently inserted some strings into a script to be loaded on startup through /etc/rc.local. One of them was: xbacklight -set 50. This led to Ubuntu refusing to go past login screen so I was ...
2
votes
2answers
447 views

Startup commands with zsh as default shell?

I'd like some commands to run a script at startup. However, my default shell is zsh, so the traditional .bash files seems unwise. At the same time, I believe .zshrc is sourced at every shell ...
2
votes
0answers
179 views

Activating USB audio with /etc/pm/sleep.d script that runs pacmd commands

Ubuntu annoyingly switches the device for audio input and output from my USB headset to the built-in sound card every time I log out, hibernate, or shut down my computer. This takes place even though ...
0
votes
1answer
3k views

How to run a python script on startup? [duplicate]

First, I know that this has been asked before. Tried guides, didn't work... So I have a python script that has a never ending loop. It accesses the internet. All I want to do is that after I log in ...
53
votes
1answer
5k views

Can I make the webcam take a picture when an incorrect password is entered?

I am using a laptop . I was thinking to have a support in my Ubuntu machine. When an incorrect password is entered, a picture is taken later revealing who has been trying to gain access. I have ...
5
votes
3answers
552 views

Where are logon and startup scripts for graphical settings located and how are they managed?

Where and how are the Ubuntu equivalent of your personal Windows configuration stored? Something akin to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run as well as the Start Up menu. ...
11
votes
2answers
19k views

Why doesn't rc.local run all my commands, and what can I do about it?

I have the following rc.local script: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # ...
1
vote
1answer
137 views

In 12.04/12.10, what calls the precise/quantal-wallpapers.xml files?

I'm having a hard time sorting out what script or program calls the precise-wallpapers.xml or quantal-wallpapers.xml? After upgrading to 12.10, my wallpaper selection is still the ...
2
votes
3answers
2k views

How do I run a script at start up?

I know that this is probably pretty easy to do, but I'm not a Linux person (I'm trying to learn more). I have a script in a folder: /path/to/my/script.sh I need this script to run every time the ...
1
vote
2answers
1k views

Create startup terminal program

I would like Ubuntu to open up a terminal window and apply the following code upon login: xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync xrandr ...
2
votes
2answers
681 views

How can I create a startup script that starts various Rails-required programs?

When I start my Ubuntu 12.04 vmware VM, I open up terminal and run the following commands. sudo /etc/init.d/postgresql start sudo /etc/init.d/apache2 start cd sites/name_of_rails_app bundle exec ...
1
vote
1answer
2k views

How to run a bash script in terminal but hide the terminal on startup?

I have a backup script on start up with cuttlefish. I set it on "Run in terminal" but I want to hide the terminal on start up. I also have the terminal in the start up applications. How do I hide the ...
3
votes
1answer
1k views

How to start a never ending script at startup

I'm trying to automatically run a never ending script (so it doesn't return 0 on exit) at startup on my headless ubuntu 12.04 server with no GUI. I have tried @reboot nohup /home/luke/netup.sh & ...
3
votes
1answer
370 views

Scripts slowing boot

Inspired by the "How fast" video, I've recently been trying to speed up my boot up as much as possible. I've been reading many forums on different approaches but I've recently hit a wall with a ...
3
votes
1answer
184 views

How can I make Ubuntu quiet for an autistic teen?

My autistic son uses an Ubuntu computer to surf the web, watch videos and listen to music. He watches some videos and turns them too loud all night. I wrote a script which turns down the volume ...
1
vote
1answer
3k views

Starting multiple applications using a shell script

I need to open thunderbird, pidgin and firefox when I execute the a .sh file in terminal. Currently I simply added these app names one by one below and when executing the file it open the first ...
4
votes
2answers
22k views

Run shell script on startup or boot

My problem in a nutshell is that I have to run a script every time I use my computer so I'm trying to automate the process a bit. My system has the nvidia gt540m vga card. The card is dual. It has ...
3
votes
1answer
5k views

How to create screen session on startup with command that doesn't end when command finishes

I want to edit my rc.local file to start up a few server sessions each in it's own GNU screen. However, whenever I stop a server, the screen terminates. Currently I have: screen -dmS test ...
2
votes
2answers
620 views

How to run interactive python script after boot as user USER

I want to run my system configuration script (written in python) after boot. System should ask for password for user USER and run my script. After that system should reboot, eventually run gui. I ...
1
vote
2answers
3k views

Why does rc.local not run this script?

I need to run a script at startup, the script needs to run under a certain user, not as root, i tried adding the script to /etc/rc.local like this: #!/bin/sh -e # # rc.local # #!/bin/sh su - tue -c ...
1
vote
1answer
863 views

how to execute privileged commands at system startup

I'm using ubuntu 11.10 on Thinkpad. Every time the system starts, I have to run the following scripts with 'sudo' to configure the device manually. #setting trackpoint ...