Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [startup]

the startup sequence, from the time the kernel goes live to when all services are up and running

117
votes
3answers
53k views

What should/shouldn't go in .zshenv, .zshrc, .zlogin, .zprofile, .zlogout?

I'm looking for guidelines on what one should and should not include in the various startup files for zsh. I understand the order of sourcing of these files, and the conditions under which they are ...
72
votes
3answers
200k views

How do services in Debian work, and how can I manage them?

In Windows I have the services manager, where I see all system services, that can be started through Windows itself, I set up the user it uses, the rights management is in there, and I can pass ...
72
votes
4answers
105k views

Purpose and typical usage of /etc/rc.local

The header looks like this: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure that the script will "exit 0" on success or any other # value on error. What is ...
64
votes
1answer
5k views

Crash during startup on a recent corporate computer

After some recent updates, my computer no longer boots! Here's what I could determine: This is a very recent computer that was provided to me by corporate IT. It has a recent Intel CPU (Skylake ...
50
votes
5answers
86k views

i3wm : start applications on specific workspaces when i3 starts

How can I start applications on specific workspaces in i3 when it starts? Why is this not working in my config file? : workspace 1; exec firefox; workspace 2; exec chromium; workspace 1
47
votes
3answers
117k views

Running a script during booting/startup; init.d vs cron @reboot

I am currently trying to understand the difference between init.d and cron @reboot for running a script at startup/booting of the system. The use of @reboot (this method was mentioned in this forum ...
42
votes
5answers
9k views

What exactly does init do?

I am creating a linux distro and now I need an init program. I can code in c really well and I know quite a bit about linux (not much but I've been using arch linux for development for 4 years), so I ...
30
votes
2answers
81k views

What's the difference between /etc/rc.local and /etc/init.d/rc.local?

I want to add a permanent iptables rule to my new VPS, and after brief google search i was surprised that there are two places this rule can be added, that seems like identical: /etc/rc.local and /etc/...
27
votes
7answers
64k views

Stop program running at startup in Linux

How do I stop a program running at startup in Linux. I want to remove some apps from startup to allow them to be managed by supervisord e.g apache2
23
votes
7answers
30k views

Start tomcat at startup with administrative privileges

I need one process run before log in to system. How to run it like services? how do I make services in Linux? In Ubuntu and Fedora? The service is customized tomcat
22
votes
1answer
868 views

One systemctl command to both start and enable

Using one command to both start and enable systemctl managed software would be useful to spare a few lines in a few scripts, making them a bit more aesthetic (not really a problem but a nice thing to ...
22
votes
4answers
136k views

How to start an application automatically on boot

I am new to Linux & looking forward to start application (which toggles a led every 10 sec). I have written the application program & it is working fine but now I want to start it ...
18
votes
2answers
42k views

systemd: automate modprobe command at boot time

My distribution is Fedora 17 Gnome. Every time I reboot/restart my computer I need to run this command as root: modprobe rt2800usb How can I make it permanent?
18
votes
1answer
22k views

unable to install anything using apt-get because of insserv

Whenever I try to install something using apt-get I get the error messages involving insserv. I have tried install many different packages but everything give same error. And apparently, CUPS package ...
18
votes
2answers
8k views

How is /etc/fstab accessed before root is mounted?

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then ...
16
votes
4answers
11k views

What are the minimum root filesystem applications that are required to fully boot linux?

It's a question about user space applications, but hear me out! Three "applications", so to speak, are required to boot a functional distribution of Linux: Bootloader - For embedded typically that's ...
16
votes
4answers
28k views

How can I run a script that starts before my login screen?

I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should ...
15
votes
1answer
11k views

When would you use pivot_root over switch_root?

I'm wanting to understand the Linux init process better in order to netboot a system over ceph rather than nfs. In the process I've come across two forms of switching root. One called switch_root, ...
15
votes
4answers
22k views

Mount root filesystem from initramfs

It's a common scenario. For whatever reason, the initramfs (OpenSUSE, in case it matters) has failed to find the root filesystem, so it drops you into a rescue shell. I know perfectly well what device ...
14
votes
6answers
17k views

Why do I need initramfs ?

I found that if I choose jffs or sd as file system(and not initramfs),the kernel size is very small (1.4 MB as compared to with initramfs-3.4MB). It shows that initramfs takes concidreably large space....
14
votes
2answers
20k views

How to manually add startup applications on Mint 17.3

I have fully updated Linux Mint 17.3. I need to add a bunch of applications to startup. The problem is, the following dialog doesn't work - It won't add me an application from the list, nor it will ...
13
votes
4answers
30k views

How to change timeout in systemctl

When I boot my Debian system, its startup hangs for approximately 2 minutes on the line: Loading, please wait... [ 5.191043] systemd-fsck[129]: /dev/mmcblk0p2: clean, 234192/873120 files, 2335263/...
13
votes
3answers
5k views

Boot into a chroot?

I have Linux (Debian Jessie) installed on a hard drive. Drive - sda1, ext4fs, and sda2 - swap I have a /chroot folder. There is installed another system, in /chroot folder. Question: How to tell ...
13
votes
3answers
5k views

Why won't my xmodmap command run on startup/login?

I want to run this command every time I log in (or every time I start up, if that doesn't work): xmodmap -e 'keysym Delete = Menu' -e 'keysym Menu = Delete' I've tried many things. I put the command ...
12
votes
3answers
20k views

Debian - how to run a script on startup as soon as there is an internet connection ready for use?

I am running Debian 7 Wheezy and I need to start some screens on startup as soon as there is a fully functional internet connection. However, not, if the internet connection broke and was connected ...
12
votes
2answers
48k views

How to find out in which order /etc/init.d scripts are load on Debian?

I want to run one sysvinit script before another and figured out how to do that. To make sure, this actually happens in the the order I like, I would like to see a list, in which order that happens. ...
11
votes
5answers
61k views

How to auto-start a service (apache2) with Linux Mint

(Strangley) My installed Apache2 does not start up when logging in to Linux Mint. Running this command gets it going: sudo service apache2 start How should I attempt to start up this service upon ...
11
votes
5answers
98k views

Debian not booting into GUI

My problem is, that my Debian installation shows a grey screen on start up and boots into a console, instead into gnome. When I start X manually with startx everything starts fine, so the DE seems to ...
10
votes
2answers
19k views

What user runs the commands defined in /etc/rc.local?

Are the commands in /etc/rc.local ran by su by default? Do I need to specific sudo before each command or will they be ran by su regardless?
10
votes
2answers
18k views

Systemd: how to make a systemd service start after network fully connected?

Background I am writing a simple script to be running in Raspbain on Raspberry Pi 2, simple turn a LED on to indicate I am ready to connect with SSH from my desktop computer. The script is not ...
10
votes
5answers
7k views

On Linux, is there an rc.local equivalent for shutdown?

I've got a few commands that I run in rc.local so they are run last in the startup sequence. I would like to know if there is a similar facility for undoing the results of those commands at shutdown, ...
10
votes
2answers
29k views

Where do I find boot log in Debian 8 (to debug autostart issues)?

I am trying to debug why certain apps fail to autostart (autostart package). Premise: My final goal is to understand why the autostart sequence is broken (probably due to certain packages' autostart ...
10
votes
4answers
1k views

Is it possible for there to be a login shell that's not interactive?

In interpreting this flowchart I found that in man bash: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes ...
10
votes
2answers
37k views

Create and control start up scripts in BusyBox

I have compiled a custom linux kernel in BusyBox. BusyBox init does not support runlevels. When the kernel boots up in BusyBox, it first executes init which looks for the specified runlevel in /etc/...
10
votes
5answers
71k views

get rid of “No Caching mode page found” message during boot

during early boot, I get following error message: [sdb] No Caching mode page found [sdb] Assuming drive cache: write through If I understand correctly, this is actually just a harmless info message ...
9
votes
3answers
14k views

How do I start Xvfb on startup on Debian?

I’ve got a Debian web server that I’m using for occasional screen-scraping via Selenum and Python. I use Xvfb as a virtual X server for Firefox to run on when being controlled by Selenium. Given that ...
8
votes
1answer
12k views

start mysql server at boot for debian

I am using Debian Etch and I have following this and tried to write a script like this to auto start mysql server at boot: #! /bin/sh # /etc/init.d/blah # # Some things that run always sudo /etc/...
8
votes
1answer
31k views

service to start on boot doesn't work with update-rc.d command

I have installed redis server on my Ubuntu based server, so I can start/stop/restart redis server. The redis_server.sh is already in the /etc/init.d. Now I want to make redis start on boot. I ...
8
votes
2answers
8k views

Is there an easy way to create a FreeBSD rc script?

I have a FreeBSD jail in which I run a server using the command: /usr/sbin/daemon /path/to/script.py At the moment I have to run this command every time I restart the machine and the jail starts. I'...
7
votes
4answers
615 views

How can I track script which gives me “command not found” right after the login?

When I login, I have these messages: -bash: $'\r' : command not found -bash: $'\r' : command not found -bash: $'\r' : command not found It is quite clear that it is caused by Windows-style line ...
7
votes
3answers
17k views

How do I start a virtual machine in background upon OSX system start?

I have a virtualbox machine on a OSX 10.9.2 host. I do not want to open VirtualBox every time and start the machine there. Also, I do not need the the screen output, as I will just ssh from the OSX ...
7
votes
4answers
7k views

Add item to inittab on OpenSuse 12.1

I am currently working on a project which needs to be added to inittab so that the program loads during startup. The program that I am trying to start is a c# mono application. I have created a ...
7
votes
2answers
15k views

What is the sequence loading linux kernel module on startup? How priority is set to them?

I have a Linux kernel module which I compiled dynamically. How is it added to startup? There are lot of .ko files in /lib/modules. How is priority set for loading these modules?
7
votes
4answers
20k views

How to start a script file on boot?

I am running a little minecraft server. I want Lubuntu to execute the following script when the server boots up. NOT on login, and NOT on restart (unless it's starting up of course). The script ...
7
votes
2answers
5k views

How to permanently disable root-password prompt for recovery mode, RHEL7

Note: I asked a similar quesiton concerning version 6 of these bundles here. Note that 7 uses systemd and may have a different implementation In the rare cases that a RHEL or CentOS 7 system is ...
7
votes
1answer
21k views

How to access and edit Startup applications in Elementary OS Freya beta 2?

The list accessible in Settings>Applications>Startup is empty by default: Here and in other places I found the idea that running this command should solve it: sudo sed -i 's/NoDisplay=true/NoDisplay=...
7
votes
1answer
6k views

What's the difference of `/etc/modules-load.d` and `/etc/modules`?

I red the introduction of them and found that, they both deal with module loading during boot time. So, what's the difference of these two different configuation ways?
7
votes
1answer
2k views

the --now switch of `systemctl`

As stated in the man page, systemctl --now enable servicename should enable and start the service. But it never works for me, under many different distributions. While the output of: systemctl is-...
7
votes
2answers
13k views

How to change the default TTY after boot?

Normally when system starts you have all output printed on the TTY1, and that's ok, but I start X-server via startx and achieve this by the following lines in the ~/.profile file : if [[ $(tty) = /...
7
votes
1answer
801 views

How to pause (or capture) the messages that fly by at the end of startup sequence?

Towards the end of the "startup sequence"1, I see a longish series of diagnostic messages fly by very quickly, right before I see the login prompt2. AFAICT, most, if not all, of the lines making up ...