Questions tagged [startup]

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

Filter by
Sorted by
Tagged with
10 votes
3 answers
57k views

How to make a service that starts on boot in CentOS?

When I boot my CentOS box, the httpd service starts automatically. How do I make a custom service that does the same thing? I have a program I use for mining, and I don't want to need to run ./miner ...
Rei's user avatar
  • 139
10 votes
1 answer
20k views

Service in Arch not starting on PC boot

I am running Arch Linux. I have a service on /etc/systemd/system/ with the following description [Unit] After=network.target [Service] Type=simple ExecStart=(...)service.py ExecReload=(...)service.py ...
Camandros's user avatar
  • 443
10 votes
3 answers
26k 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 ...
Paul D. Waite's user avatar
10 votes
2 answers
8k 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 ...
Otheus's user avatar
  • 6,138
10 votes
3 answers
39k views

Is there a way of getting logs for startup processes in /etc/init.d?

Is there a way of getting logs for startup processes in /etc/init.d? I am running Raspbian (Debian Wheezy). dmesg shows boot log, but does not go far enough. Some time ago I added a script to start ...
Milliways's user avatar
  • 1,378
9 votes
7 answers
12k views

Prevent Debian from auto-assembling RAID at boot

I set up a Debian wheezy (7.6), installed openmediavault, and created a software RAID 5 with that. It is listed at /dev/md127. Now I want to move that to a virtual XEN VM. To do so, I have to stop ...
Droids's user avatar
  • 211
9 votes
2 answers
23k views

Run gui application on startup

I can run a script at boot by adding the following line to my crontab: @reboot perl /path/script That works fine. But the problem arises when I try to run a gui application such as gmail notify. It ...
john-jones's user avatar
  • 1,714
9 votes
2 answers
11k 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'...
Josh's user avatar
  • 8,449
9 votes
2 answers
10k views

Can't run application that depends on X as a systemd service

I am using Manjaro 17 with i3wm (if any relevance). I want to run a single command on start-up to fix the my touchpad tap click setting. I wrote the script that enables the option in /usr/bin/ and ...
Alnus's user avatar
  • 93
9 votes
2 answers
21k 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) = /...
Mikhail Morfikov's user avatar
9 votes
4 answers
18k views

Automatically run rfkill unblock on startup

I'm running Elementary OS on an old(er) HP Pavilion dm1. Unfortunately, on startup my wireless is hard disabled, and I need to run sudo rfkill unblock all to get it up and running. Works fine once I ...
David Archer's user avatar
8 votes
4 answers
1k 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 ...
Denis Sablukov's user avatar
8 votes
3 answers
22k 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 ...
k0pernikus's user avatar
  • 15.5k
8 votes
1 answer
14k 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/...
lokheart's user avatar
  • 463
8 votes
2 answers
38k views

start script at boot for kali linux

I'm running Kali Linux 2018.1 on a VM. I want to run a bunch of commands that I have stored in the file start.sh at startup. I know how to do this on a normal distro by going into /etc/rc.local, but ...
rockower's user avatar
  • 199
8 votes
3 answers
27k views

systemd oneshot Requirement to execute only once

I have multiple systemd services that require a generated EnvironmentFile. I have a shell script which generates this Environment file, but since I need that environment file before any Exec... ...
user avatar
8 votes
2 answers
25k views

What is bootstrapping?

I am reading about bootstrapping and am confused because the term is used so much in tech (specially bootstrap itself as the CSS framework). But as far as I know bootstrapping in terms of Linux ...
Brian's user avatar
  • 111
8 votes
2 answers
17k views

Can systemctl list all enabled services, including legacy services?

This question asks: "How to list all enabled services from systemctl?" Answers on that page include: systemctl list-unit-files | grep enabled systemctl list-unit-files --state=enabled At least as ...
mpb's user avatar
  • 1,611
8 votes
1 answer
3k 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 ...
kjo's user avatar
  • 15.3k
7 votes
4 answers
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 ...
Boardy's user avatar
  • 401
7 votes
4 answers
21k 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 ...
John Palmer's user avatar
7 votes
5 answers
21k views

Start tmux and execute a set of commands on boot

I'm trying to find a way to have tmux start for a specific user on boot. The tmux session should run two Python scripts. I think I could start Python as mentioned here, but I'd rather have it in a ...
boolean.is.null's user avatar
7 votes
1 answer
26k 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=...
user avatar
7 votes
1 answer
13k views

Systemd run script after GUI is ready?

I'm running raspbian on pi. I've created a systemd script which runs a node.js app on startup. Script: #!/usr/bin/env bash cd /home/pi/pop_machine && /usr/bin/npm start Systemd Service: [...
Philip Kirkbride's user avatar
7 votes
2 answers
18k views

How can I start program on boot in Ubuntu 14.04?

Is the root crontab the only way? I'm starting up a MC server and don't want it to need me to manually restart it each time the server reboots for whatever reason. I don't want any login required ...
Daniel T's user avatar
7 votes
1 answer
11k views

Disable atd (and other unnecessary startup processes) in Ubuntu?

I just spun up a new 12.04 server and have been having a bit of trouble getting the atd daemon to stop auto-launching. There's been a bit of changing around on the management of startup processes, ...
rholmes's user avatar
  • 173
7 votes
5 answers
67k views

syslog-ng service not starting with systemd but command works fine

I have a freshly installed version on CentOS 7 once which I have installed syslog-ng from the EPEL repositories. ~: yum list | grep syslog syslog-ng.x86_64 3.5.6-1.el7 ...
Antoine Benkemoun's user avatar
7 votes
2 answers
25k views

How to make Firefox auto launch at startup in fullscreen on Linux Ubuntu?

Firefox Ready Objective I want my ubuntu to start and show a Duck Duck Go in fullscreen. Motivation The first thing that I do on my PC is launch the Firefox and do stuff. For other stuff I hit the ...
Abhyas29's user avatar
  • 105
7 votes
3 answers
2k views

What is causing a pause during the system device probe?

I am running FreeBSD 10.0-RELEASE. During the boot device probe there is a two-times 30 second pause. The output relevant to this is # dmesg ... (aprobe0:ata0:0:1:0): ATAPI_IDENTIFY. ACB: a1 00 00 ...
Carl Salinger's user avatar
6 votes
3 answers
10k views

Run XMonad's startup hook only on initial startup

I have the following startupHook in my xmonad.hs , startupHook = spawn "~/.xmonad/autostart" I am starting many apps and daemons in this script and it is written to run only once on startup. But ...
sharat87's user avatar
  • 4,259
6 votes
2 answers
9k views

Running an infinite loop on startup

I'd like to run a command at startup which pings a certain address every 10 minutes and writes the result to a file. I've figured out now how to do the pinging and file writing and the 10 min ...
Dewald Swanepoel's user avatar
6 votes
2 answers
5k views

What happens if I set default system runlevel to 0 or 6?

What I understand from runlevels is that in each level some programs have permission to be executed and some don't. runlevel 3 boots system into CLI and runlevel 5 starts the default GUI. But I don't ...
Omid's user avatar
  • 3,391
6 votes
6 answers
48k views

Run a sh file on machine boot up

I am quite new to Linux and want to know what to be done to launch a .sh file on machine startup. Basically, I have a server machine with Linux OS on it and want to run some jboss application when ...
Varun's user avatar
  • 111
6 votes
3 answers
3k views

Templates for startup script?

I need to write a couple of Linux (Debian) startup scripts. Are there any accurate templates available?
Mouse.The.Lucky.Dog's user avatar
6 votes
2 answers
38k views

How do I remove "SMBus Host Controller not enabled" message on Lubuntu VM startup?

I've installed Lubuntu (not Ubuntu) in a VMWare Workstation VM. Version 18.04. I'm getting a startup warning message I always get on my Ubuntu installs: piix4_smbus: 000:00:07.3 SMBus Host ...
dommer's user avatar
  • 163
6 votes
6 answers
612 views

How to disable graphical shell?

I have a Linux system (Ubuntu) running in a VM, but now I want to disable the graphical shell. Where in the startup process are the graphical components launched? Is it some run-level dependent config?...
mydoghasworms's user avatar
6 votes
3 answers
10k views

What is the startup script on Alpine Linux when you login. (I want my aliasses when I log in)

For Docker Containers we use Alpine Linux, like Node:Alpine, to make our images as small as possible. But somethimes you want to login on that Container. It would be convenient to have your aliases in ...
BertC's user avatar
  • 211
6 votes
1 answer
18k views

How to schedule shutdown every day?

We have a server that is used for Linux thin clients in a class. The server is started when required and I want to schedule it to power off at 22:00 every day to avoid power wasting. I thought of ...
arauzo's user avatar
  • 182
6 votes
4 answers
2k views

Mount filesystems after boot to avoid fsck delay for sshd

I'm trying to optimise the overall downtime and improve availability in case of system failure. I'm specifically concerned about the reboot (e.g. after a kernel panic) taking so long that I don't ...
cnst's user avatar
  • 3,283
6 votes
2 answers
12k views

Setting up a screen session on system startup

I have a raspberry pi on which I'm running some services. I need to be able to ssh into the machine and monitor those services. Currently, what I do is I log in, run screen, then create three windows ...
Ian Hickson's user avatar
6 votes
1 answer
639 views

Is there a standard way to have a program start when a user logs in on Linux?

Is there a standard way to make a program start when a user logs in? On Ubuntu, for example, you can place a .desktop file in ~/.config/autostart and the application will launch on startup. Does ...
Nathan Osman's user avatar
  • 6,230
6 votes
2 answers
19k views

Running a sudo command automatically on startup

In order to adjust the screenpad backlight on my ASUS Zenbook, I am using a kernel module I found here. Per his instructions, to make keybind shortcuts using a simple screenpad x command to adjust the ...
PUNJISTICK's user avatar
6 votes
1 answer
2k views

Automatically running an installation cli script in terminal on startup

I created a custom Arch distro iso with Archiso and I wrote an installation script that prompts the user for input for install options. So far, the installation process is: boot the arch iso execute ...
m59's user avatar
  • 161
6 votes
3 answers
13k views

How can I debug Apache, not starting upon boot [closed]

Apache is already set up as a service, since: $ sudo update-rc.d apache2 defaults System start/stop links for /etc/init.d/apache2 already exist. But Apache isn't starting. How can I start debugging ...
eoinoc's user avatar
  • 1,861
6 votes
2 answers
11k views

How to Autorun a program using busybox after boot?

I am using an embedded linux with busybox. I would like to automatically run my app called "myApplication" (runlevel 5 after boot all the services are up). What I have done so far: I made a script ...
AJ GS's user avatar
  • 111
6 votes
2 answers
1k views

When is the appropriate time to start Redshift using upstart?

I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users. Running Redshift as a service does not seem fully ...
Raphael's user avatar
  • 2,055
6 votes
3 answers
10k views

Do I *need* `exit 0` at the end of `rc.local`?

What is the purpose of the exit code in rc.local? I seem to execute just fine without it. The header shows: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure ...
tarabyte's user avatar
  • 4,286
6 votes
4 answers
7k views

What would likely cause directories in /var/run to disappear / not be created on startup? (CentOS 7.3)

Ran into an issue today where Apache would not load because /var/run/httpd was missing. After much hunting to find that cause of the error I was getting ([Tue Jul 25 00:06:31.574386 2017] [auth_digest:...
warren's user avatar
  • 1,848
6 votes
1 answer
9k views

Set environment variable (TZ) for all startup scripts and inittab

I'm working on an embedded Linux system and looking for a way to set the time zone for all processes. The question is: Is there any possibility to set the TZ environment variable at boot time (init ...
Klaus's user avatar
  • 63
6 votes
1 answer
2k views

Run only the Linux kernel and user programs

is it possible to run only a Linux kernel on a system which will load my programs instead of an operating system? I want to work with a Raspberry Pi with a Linux kernel. I am trying to create a ...
user avatar

1
2
3 4 5
16