Make programs start upon logging in, or stop them from doing so.

learn more… | top users | synonyms

264
votes
8answers
411k views

How to run scripts on start up?

I was wondering how to run scripts when my computer starts up so I don't have to run scripts manually that I always run?
212
votes
14answers
296k views

How do I start applications automatically on login?

How can I make an application automatically start when I have logged in?
123
votes
3answers
283k views

How can I configure a service to run at startup

I have a daemon that runs fin if I start it manually with the service command: ricardo@ricardo-laptop:~$ sudo service minidlna start * Starting minidlna minidlna ...
67
votes
8answers
109k views

How do I make a program auto-start every time I log in?

I frequently need to start several programs that I use every time I start my computer. How can I make it so that whenever I login the program is automatically launched?
33
votes
1answer
20k views

Nginx - disable autostart

I went througn some manuals and I didn't understand yet. How do I disable autostart nginx service?
25
votes
6answers
80k views

Why is chkconfig no longer available in Ubuntu?

I can not use chkconfig tools in Ubuntu 12.10 It's a very useful tools to configure the service to autostart or not. Why is it no longer available?
24
votes
8answers
88k views

How to start Virtual box machines automatically when booting?

I have many Virtual box machines in my Ubuntu12.04, each time i shutdown or reboot i have to start them one by one. I wanna a help in writing script for automatically autostart the VBox machines ...
23
votes
1answer
37k views

Where is Start-up Applications in 14.04 Unity?

I cannot find the Start-up Applications in 14.04, I read on a forum that you had to go into Main Menu and allow it to be visible through preferences, but I have looked all the way through preferences ...
18
votes
5answers
100k views

Start ssh server on boot

I've been doing my google-fu, but I can only find outdated guides or guides pertaining solely to the server variations of Ubuntu. I need to set it up so that ssh server is run on boot, so I can ...
16
votes
1answer
13k views

Which startup applications can I safely disable?

Which startup elements can be safely deleted (for home desktop users)? I use this terminal commands to see the whole startup list: cd /etc/xdg/autostart sudo sed --in-place ...
16
votes
2answers
9k views

.xsession. .xinitrc, xmonad, and lightdm

Let me preface my question with the following: I am pretty sure that I can hack together a solution by modifying /usr/share/xsessions/somesessionfile.desktop and make it run /etc/X11/Xsession, and get ...
15
votes
3answers
58k views

How can I start a VNC server before log on?

I would like to run x11vnc (or another VNC server) on my desktop, but I'm unable to find a way to get it to start before any users log in. Back when I was using vanilla Ubuntu 10.10 Vino did this by ...
13
votes
2answers
14k views

How to launch terminal on login

How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler?
12
votes
6answers
55k views

How can I add new autostart programs in Lubuntu?

In Lubuntu, there's no 'Add New Program...' button in Desktop Session Settings. Is there an easy way to add new autostart programs in Lubuntu?
12
votes
2answers
3k views

How can I automatically set my status to Available when I log in?

This is the first thing I do after logging in: How can I make it happen automatically?
12
votes
1answer
4k views

What are all the autostart locations in Ubuntu?

I'm a Ubuntu newbie in need of some advice from anyone very familiar with the different Ubuntu startup methodologies. I'm interested in enumerating all the applications that are triggered at startup ...
11
votes
5answers
118k views

How do I start VNC Server on boot?

How do I create a system-wide autostart file? This would be on a cloud server running the desktop version of Maverick. I logged in as root and created an autostart file using ...
11
votes
4answers
2k views

How to make program autostart only in GNOME

I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program ...
10
votes
0answers
5k views

How to run .desktop files from command line [duplicate]

I am configuring a box with openbox (with GNOME under the scenes), and I want to run the .desktop files in /etc/xdg/autostart/ from a script at login. But xdg-open and gnome-open do not seem to do ...
9
votes
3answers
4k views

How to run script after resume and after unlocking screen

In Ubuntu 12.04 LTS, I would like to run scripts after resuming from suspend, and after unlocking my desktop. These need to run as my user, and with access to my $DISPLAY. In particular, I would like ...
9
votes
2answers
628 views

How do I banish the “You have just inserted an Audio CD.” dialog forever?

Sometimes when I insert an audio CD I get a dialog that says "You have just inserted an Audio CD. Choose what application to launch." It doesn't show up for every CD... probably something like once ...
8
votes
2answers
21k views

How do I launch a GUI application as root on user login?

I would like to launch a Gnome application with root privileges at login. I have tried adding a script to launch using update-rc.d myscript.sh defaults. It looks like the application does launch, ...
8
votes
2answers
381 views

How does “Startup Applications” work?

I am interested in knowing how "Startup Applications", which you can access from the dock, work. I want to know this because I want to know the difference between adding an entry in these places: ...
8
votes
2answers
10k views

How to add a script to Startup Applications from the command line?

I have a shell script. I want to configure my script to run automatically during startup. I know how to do this from GUI. But I wanted to do this from terminal. How can I do this? On a primary ...
7
votes
2answers
8k views

connecting a SSH tunnel on reboot?

How can i reestablish a Tunnel if my localhost goes down? i have 2 machines, Remotehost and localhost, on my localhost im running autossh to keep the tunnel alive in case of network problems. ...
7
votes
1answer
20k views

How to disable OpenVPN from autostarting at boot-up or reboot?

I am using Ubuntu 12.04.2 LTS, 64-bit, OpenVPN client 2.3.1 How do I prevent OpenVPN from autostarting at boot-up or reboot?
7
votes
6answers
17k views

How do I set Xscreensaver to autostart?

I've just installed xscreensaver instead of gnome-screensaver in Ubuntu 12.04 in gnome-session-fallback (Gnome Classic) mode. It works fine, but I have a problem: I put "xscreensaver -no-splash" ...
7
votes
3answers
8k views

How to make Google Chrome not start as service?

I found Google Chrome running as service after I installed it, at each reboot. This would not be a problem, if it won't eath 100% cpu. I would not like to uninstall it, but I'll be forced to do that ...
7
votes
2answers
7k views

How do I prevent Dropbox from being automatically added to the autostart list after launching it?

Everytime I start Dropbox (in Precise) it gets added to the autostart list even if I deleted the entry before. I don't want Dropbox to be started when I log in only when I want it to. How to prevent ...
7
votes
2answers
2k views

Getting a script to run on boot, not on login

How can I get a specific script to run (preferably not as superuser) whenever the machine boots, but before login. It can be the last thing to run on boot. I mostly just want the script to work even ...
6
votes
2answers
15k views

Chrome autostart on ubuntu [duplicate]

I have recently installed Ubuntu on my PC, but I can't understand how to manage the applications -- as an example, I'm trying to get Chrome to autostart. I can start Chrome manually, but I'm not able ...
6
votes
4answers
5k views

How to shutdown Ubuntu after (2 hours) of idle?

Running: Xubuntu 14.04 32bit. I have read several outdated, not working, working different that I want answers here and elsewhere. I had a script that resulted in shutting my Laptop down at boot time ...
6
votes
1answer
8k views

How do I start x11vnc via bash script on startup, not login?

I have a server with Xubuntu 11.10 Desktop installed, and x11vnc. When on login screen I want x11vnc to start and to take some settings: Automatically set defined password Automatically accept ...
5
votes
8answers
19k views

Lubuntu: How do I autostart xfce4 power manager?

I just upgraded my 64 bit Lubuntu to 13.10 on my netbook today. After the upgrade, I simply can't autostart the xfce4 power manager. I tried to add from the desktop session settings, I tried to copy ...
5
votes
2answers
12k views

How to run a particular command at startup?

I don't understand scripts or how to make them or how to run them. All I want to do is run the command xmodmap -e "keycode 112 = Delete" when my computer starts. When I run this command in terminal, ...
5
votes
3answers
10k views

lxc containers fail to autoboot in 14.04 trusty using 'lxc.start.auto = 1'

In trusty 14.04 containers fail to autoboot despite all settings being set as 14.04 requires. They show all as STOPPED I have correctly configured 2 LXC containers: calypso encelado They run ...
5
votes
1answer
17k views

How can I start transmission-daemon service before login?

I want to run transmission-daemon as a service so that any user can log in and access the same instance of Transmission (via the browser or Transmission remote GUI). Is this possible, and how can I ...
5
votes
2answers
1k views

Do not start bluetooth automaticaly. How to do that? [duplicate]

Possible Duplicate: How can I deactivate Bluetooth on system startup? I want that my bluetooth by defautl be turned off. How can I do that? Ubuntu 10.10
5
votes
1answer
6k views

How to make ubuntu service run as specific user

How to make ubuntu service run as specific user? I created an init.d script and make it start at boot, but sooner I found the service is running as root after reboot. I google and google, people ...
5
votes
2answers
948 views

~/.xinput.d folder is ignored in Ubuntu 13.04

It used to be that you could make a file ~/.xinput.d/en_US and put xinput commands in there, such as enabling drag lock. Now, for some reason, in 13.04 this does not work. Anyone know why this ...
5
votes
1answer
3k views

How to remap CapsLock key to Ctrl in Xubuntu

I'm trying to remap my CapsLock key to Ctrl key as described here (adding /usr/bin/setxkbmap -option "ctrl:nocaps" command to "Session and Startup"->"Application Autostart"). But this doesn't work in ...
5
votes
1answer
1k views

Improve System Performance By Stopping Daemons/Services

I am trying to improve my system performance by removing some daemon/Services. On my Desktop PC i need to stop some daemons/services Which are Installed by Default in Ubuntu From auto starting . ...
5
votes
2answers
1k views

How can I have different startup programs for “Desktop Edition” and “Classic Edition” sessions in 11.04?

When using Classic Edition, I would like to start Cairo-Dock automatically, when using Desktop-Edition, I don't want to start it. How can I do that? And how does that work with XFCE and KDE?
4
votes
3answers
11k views

Autostart Dropbox in Lubuntu

I've installed Dropbox (as per the instructions supplied in Dropbox's Home Page and a personal blog I found browsing about the subject), but still no success in forcing autostart (only for my user) ...
4
votes
1answer
184 views

Why won't this application start when I log in?

I have a file in ~/.config/autostart/ that looks like this: [Desktop Entry] Type=Application Exec=python ~/Documents/StackApplet/stackapplet.py Icon=/usr/share/pixmaps/stackapplet.png Terminal=false ...
4
votes
3answers
3k views

How can I make a command run once the next time I log in?

How can I schedule a command to run the next time I log in? I don't want it to run every time, just once.
4
votes
1answer
379 views

How can I get the programmes I use everyday to auto start at boot in the specified Workspaces?

Is there a way I can have all the programmes I use everyday auto start in the correct workspaces?
4
votes
1answer
430 views

How to run command on connect to network

How can I automatically run a command whenever my computer connects to a network? I want it to run in these situations: On power on and login to Unity On waking up from suspend or hibernate When it ...
4
votes
1answer
509 views

How do I make an application start only in XFCE?

I would like to have an application (most likely AWN or Docky) start only on XFCE, and not on KDE or Unity/GNOME. Is this possible? If so, how would I go about doing that?
4
votes
2answers
3k views

How do I gvfs-mount without opening a file manager window?

I like to have my devices mounted in Nautilus/Nemo by default when I log in, so I can have symlinks to certain directories. And I don't mean a custom mount or a mount with 10 lines of cryptSetup and ...