0
votes
1answer
30 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
13 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
27 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
42 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
23 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
11 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
55 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
99 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
0answers
54 views

hostapd run as service/startup

I have installed and configured hostapd in ubuntu and everything works as expected. However, I would like to start the associated config/scripts files automatically. I have created one script file ...
0
votes
1answer
310 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
53 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
88 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
260 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 ...
4
votes
1answer
3k 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 ...
0
votes
0answers
343 views

Kubuntu 12.10 - How to auto-start VNC server with kdm?

In Kubuntu 12.04 I added a line to /etc/kde4/kdm/Xsetup to start X11vnc server automatically and this works great. However, I am helping a friend who installed Kubuntu 12.10. I discovered that there ...
1
vote
2answers
127 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
88 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 ...
0
votes
0answers
133 views

Run script at startup for all LDAP user

I'm building a LDAP network and I want to execute some command after login for all LDAP users. More, in my scripts I have to run some command as superuser with SUDO like the command MOUNT. What can I ...
7
votes
2answers
8k 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
1k 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
115 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
907 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
365 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
160 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
2k 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 ...
45
votes
1answer
4k 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
460 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. ...
0
votes
0answers
258 views

Run a script for the first time after installing customized Ubuntu

How to run a script for the first time after installing customized Ubuntu ? Remastersys providing post installation script feature but it doesn't work. We are using Ubuntu 12.10
8
votes
2answers
11k 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
131 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 ...
1
vote
3answers
1k 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
970 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
514 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
1k 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
938 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
249 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
158 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
2k 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 ...
3
votes
2answers
20k 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
4k 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
549 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
842 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 ...
1
vote
2answers
1k views

Command at startup or login

I would like to run the following command after every boot (or login). echo OFF > /sys/kernel/debug/vgaswitcheroo/switch It turns off my discrete GPU. To what script should I add this command. I ...
3
votes
2answers
364 views

Startup script for starting applications in certain workspaces and positions

Since Ubuntu 11.04 has removed the session save feature, is it possible to write a script to open certain applications in specified workspaces and set their position? Please provide an example (for ...
2
votes
1answer
525 views

What start up scripts are executed when a terminal is opened in Ubuntu?

When I open a terminal, it says cannot execute the binary file and the output is something like this, bash: /home/sandeep/bin/uname: cannot execute binary file bash: [: =: unary operator expected ...
4
votes
1answer
1k views

Starting a service from /etc/event.d works, but not from /etc/init

I'm trying to launch an upstart service on Ubuntu 8.04 from /etc/init/, but I always get start: Unknown job: job. When I try to launch this script from /etc/event.d/ it works fine. Why would this be ...
3
votes
3answers
874 views

Script at Startup

I'm using 10.10 and I need to run a script in order to get a windows-like international keyboard layout - basically, it changes how dead keys work. (Original script from this page ...
15
votes
5answers
22k views

How do I tell a start up program to start minimized?

Here is a quesion that has been bugging me. You know how you can set up a program to run on start up right? Well, how can i tell it to start minimized, like you would do in windows? TeamViewer ...
1
vote
1answer
5k views

Sudo and startup script

I have a new asus 1215n and I need to digit commands to enable multitouch. No problem: I've made a script. Since this netbook also need manual activation of the wifi driver the complete script is: ...