Tagged Questions
0
votes
0answers
37 views
How can I make a command execute at startup?
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
101 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
78 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 ...
0
votes
0answers
63 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
327 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 ...
38
votes
1answer
1k 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
195 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
139 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
4
votes
2answers
794 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
84 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 ...
0
votes
0answers
85 views
Check if file exist on USB drive in startup script
On my Ubuntu 10.04 device I have a startup script which checks for update package (bin file) on USB stick. If a file exists, it starts update procedure otherwise it exits. In a current script version ...
1
vote
3answers
177 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
455 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
1answer
325 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
767 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
307 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
138 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
116 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 ...
0
votes
0answers
115 views
How do I create a startup script that executes a command, waits some time, and then shuts down Ubuntu?
I need to make one of my scripts a start-up script and I want it to be executed in the following manner:
The script should be a start-up script.
When the script is executed, the machine should ...
1
vote
1answer
727 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
14k 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 ...
2
votes
1answer
1k 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
368 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
2k 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
788 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
899 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
317 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
367 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
689 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
645 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 ...
12
votes
3answers
15k 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
4k 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:
...
7
votes
3answers
32k views
How can I make “rc.local” run on startup?
I have a script that I would like to run when my system starts. I have put it on "rc.local", but it doesn't work. How can I enable it to run on startup?
Thanks!
2
votes
5answers
6k views
init.d script startup problems
I Have this init.d script which I am trying to get to startup with ubuntu however it wont run at startup. It does work when i type "sudo /etc/init.d/couchpotato start" though. Any ideas on how to get ...
2
votes
1answer
205 views
How do I run a script automatically when I start an app?
I want to run a script automatically when an application start. How would I do this without making the script run at start-up?
My current approach is writing a script with an infinite loop and made ...
1
vote
1answer
183 views
Can I log how long resume (un-hibernate) takes?
This question has been spun off from my question about hibernate being slow.
I know I can run a script when I resume the computer by putting it in /etc/acpi/resume.d, but that will only run it once. ...
1
vote
2answers
359 views
Nautilus doesn't show my desktop until I kill it
Something's wrong with nautilus. When I boot my computer and it logs in, Gnome shows, things are running, I can run programs and everything, but my desktop has no icons. I have to open a terminal and ...
26
votes
2answers
3k views
bashrc or bash_profile?
I know the difference between the two bash login scripts:
.bashrc is run only by "non-login" shells.
.bash_profile (or .bash_login or .profile) is executed by "login" shells.
Does anyone have some ...
56
votes
6answers
49k views
How to run scripts on start up?
I was wondering how to run scripts when my computer starts up. So I dont have to run scripts manually that I always run.
Please and thank you.