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
4
votes
3answers
3k views

No /proc in a Busybox-based embedded Linux distribution

I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows: /lib /* contains ...
4
votes
4answers
7k views

Systemd wait for network interface to be up before running service

I have a couple questions about systemd. I'm having issues consistently getting my script to run once the network interface is up. I have tried Requires and After as seen below but is inconsistent ...
4
votes
2answers
3k views

Having a bash script run at startup and display the results when I log in

I am running Ubuntu 11.04 and I want to be able to run a command like top so when I login it is running in a window. I been trying many things for a while now and can't seem to get it to work I ...
4
votes
2answers
507 views

Are certain parts of startup scripts necessary or just good practice?

I'm currently exploring creating a startup script in the form of a system process located in the /etc/init.d/ on my Fedora 14 Linux installation. It sounds like the following two lines are bare ...
4
votes
2answers
1k views

How to run simple command on startup on FreeBSD?

I need to run a command at startup on my machine using FreeBSD: cd /home/portal mv portal.sqlite corrupt_portal.sqlite This is clearly not a daemon or a service, just a one time command at every ...
4
votes
2answers
2k views

Run top instead of getty

By default, systemd auto-launches getty on each VT except VT7. What I would like is for systemd to launch top on VT6 instead of getty. Any idea how I configure it to do that?
4
votes
2answers
8k views

Autostart a GUI application in Debian as root

I would like to know which is the most correct way to make my Debian automatically start up a graphical application once the desktop has been loaded. The app must be started as root.
4
votes
5answers
22k views

RHEL7 text-only installation

I want to install RHEL7 in purely text-only mode. Although I added the inst.text and inst.cmdline kernel option (since I want it to install from kickstart) it still requires more than a console as it ...
4
votes
3answers
1k views

Why doesn't rc.local run entirely

Here is my rc.local #!/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 # value on error. # #...
4
votes
2answers
7k views

How do I configure which ethernet connections are active on boot?

I have an unmanaged dedicated server that I administer, running CentOS. Recently when I reboot the server, I am unable to use SSH. Both times this has happened the server host has determined the issue ...
4
votes
1answer
312 views

How to disable/remove Adobe tracker from the taskbar?

Unfortunately I need sometimes the Adobe pdf reader and can not use always one of the free alternatives. Now I recognized a new icon in the Mate taskbar Its tooltip says Adobe Tracker Alert and ...
4
votes
2answers
1k views

How to associate a script at boot time to a specific run level?

I am trying to understand how run levels work. I understand the meaning of the 7 run levels and I understand that they were usually configured by /etc/inittab, which used to call /etc/init.d/rc, which ...
4
votes
3answers
10k 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 ...
4
votes
2answers
385 views

How to set up OpenVPN and Transmission to start at boot on CentOS 6?

I'm trying to set up Transmission with OpenVPN on a headless server running a minimal install of CentOS 6.10, and ideally these would start when I boot the system. I'm able to get everything to run ...
4
votes
3answers
6k views

Startup problem: invalid partition table or use UEFI BOOT

I'm working on a Dell Latitude E5430. Recently I booted pcbsd from USB using this file: PCBSD10.1.1-RELEASE-01-31-2015-x64-DVD-USB_0.iso But I guess I did something wrong. I was trying to install ...
4
votes
3answers
135 views

How to run a script as if it's running at boot?

I have a script running at boot time, however it's giving me errors I see in the log file. When I run it manually, it runs fine - probably the environment is changed. Is there a way to run such a ...
4
votes
1answer
631 views

Solaris 10 - Is it possible to reboot a system from a startup script?

I have a Solaris 10 test guest logical domain (LDom). I plan to have the network on this be reconfigured before rebooting using a startup script in /etc/rc0.d. At the moment, when the system boots, ...
4
votes
1answer
9k views

Make screen start as Daemon for a Minecraft server

I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?. I have run update-rc.d -f minecraft.start defaults This is what my /etc/...
4
votes
1answer
9k views

Problem starting a service running Debian [closed]

I want to run a UPNP renderer as a service on a Raspberry Pi using Raspian, a Debian based distro. Actually, everything runs fine but one thing : I can't manage to start the service at boot time at ...
4
votes
1answer
76 views

Other than crontab, what other ways can one add programs to run at boot time?

I am running CentOS 7 with XFCE as my DE. I made a bash script, originally stored in ~/bin (I have since deleted it), which I wanted to have run automatically at startup. I somehow succeeded, but I ...
4
votes
1answer
3k views

Slow boot on Ubuntu 16.04 LTS

After uprading to Ubuntu 16.04 LTS I noticed that it boots noticeably slower, compare with 14.04. Is it possible solve this issue without extensive reconfiguration of various services and system ...
4
votes
1answer
661 views

Installing software the first time a system boots after CentOS installation

I have a custom text based CentOS 6.4 installation that installs the OS, then after the first boot I have a custom rc.local file that installs custom applications and prepares the system for our ...
4
votes
1answer
3k views

Mac OS X Darwin: how to reset admin password?

Today I bought an ibook G4 from a garage sale. The people who sold it to me didn't know the password for the 2 accounts on it. Apparently it was the guys late father's laptop. Any suggestions on how ...
4
votes
1answer
47 views

X (?) restarting every minute on debian testing [closed]

I upgraded debian (testing) last night and I'm stuck with this annoying bug, in which every minute or so it sends me back to the login screen. Based on https://stackoverflow.com/questions/32949111/...
4
votes
1answer
13k 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 ...
4
votes
1answer
131 views

Stop init.d from running, and go to terminal prompt

I'm running Rasbian (Debian?) on my Raspberry Pi, and have allot of auto-starting things in init.d. But what if I want to stop them all from running, and simply break into a terminal prompt? I've ...
4
votes
1answer
3k views

Fixing a broken X initialization

Here are the symptoms: On reboot of my Fedora 14 system, I get to the Fedora loading screen progress bar. The system seems to progress normally, then the nvidia logo flashes, a wait cursor shows, ...
4
votes
0answers
866 views

How to start a service upon an lxc container start?

I would like to start OpenVPN automatically upon the launch of its lcx container. The container runs Ubuntu 14.04.4 LTS, service openvpn start is successful (when launched from the running container) ...
4
votes
1answer
2k views

Alsa not detecting USB microphone on system boot

I have a USB microphone that works fine, up until I reboot my system. After that, it doesn't work at all until I unplug it and replug it. Based on my (limited) understanding of the components ...
3
votes
5answers
8k views

Kernel can't find /dev/sda file during boot

I configured a gentoo kernel (kernel-2.6.36-gentoo-r5), but when I boot it can't mount /dev/sda1: ALERT! /dev/sda1 does not exist . Dropping to a shell . I use the shell to go to the /dev directory, ...
3
votes
3answers
21k views

How can I run a program as a root user when my Ubuntu 15.04 machine starts up?

On Ubuntu 15.04 I have this file: /usr/local/bin/myscript (it's a script I made). If I run this command under my account, it will do what I need it to do as a root user: sudo /usr/local/bin/myscript ...
3
votes
3answers
601 views

Why are there internet utilities in my initial ramdisk?

I have a fairly standard initial ramdisk created using mkinitcpio. I'm on Arch GNU/Linux. A while ago I got dropped to a rescue shell and poked around in the /bin of the ramdisk to see what was ...
3
votes
2answers
6k 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 ...
3
votes
1answer
9k 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....
3
votes
3answers
3k views

How to run scripts on headless startup?

How can I run a shell script when my Raspberry Pi starts up headless? I don't want it to be dependent on booting into a console, or logging in, etc. It will literally be plugged into Ethernet and ...
3
votes
2answers
11k 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 ...
3
votes
4answers
2k views

Using systemctl edit via bash script?

I install Debian a lot. To do this I have a fully-automated preseed.cfg; at the end of the preseed, it downloads and runs a postinstall.sh script from my TFTP server, which does some additional ...
3
votes
1answer
7k 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 ...
3
votes
6answers
4k views

When does a shell get executed during the linux startup process

I do not understand when does a shell, lets say bash, get executed, which program runs bash initially first.
3
votes
2answers
5k views

Systemd unit activate vs enable

Can someone clarify for me difference between "enable" and "activate" for systemd unit. There are told, if unit has [Install] section than enable should be called, otherwise just activate is enough. ...
3
votes
2answers
5k views

Adding permanent routing

Each time when I start my computer I type in the console sudo route add -net xxx.xxx.xxx.xxx netmask 255.255.240.0 gw xxx.xxx.xx.xxx When computer is rebooted or switched Off/On I must re-enter this ...
3
votes
2answers
3k views

Why is boot slow?

I'm using Fedora 23, MATE edition. The computer feels slow to boot. How can I speed it up? Full details http://i.imgur.com/vrLGXDp.jpg $ systemd-analyze Startup finished in 16.571s (firmware) + 2....
3
votes
1answer
7k 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 ...
3
votes
3answers
4k views

Saving linux boot messages in a file

I have raspbian running on my raspberry PI. When I switch it on, boot messages crawl on the screen. I believe it would be beneficial to read them in order to get an idea about how the system starts. ...
3
votes
1answer
1k views

Errors at startup on my Wheezy system

I noticed that I got some error when my Debian Wheezy was starting today, but then I couldn't find anywhere to look into it in more detail. There was nothing interesting in dmesg or syslog. Where can ...
3
votes
3answers
4k views

Add xinput to the start up secuence of LXDE

I want these 2 commands to run on boot. xinput --set-prop "Razer Razer DeathAdder" "Device Accel Constant Deceleration" 4 xinput --set-prop "Razer Razer DeathAdder" "...
3
votes
1answer
5k views

Resetting password in Linux Mint when disk is encrypted

I have a system (VM, actually) with Linux Mint 15 on it. The disk is encrypted, but I remember that password -- just not the password for my account. I've tried changing the command in GRUB from ro ...
3
votes
1answer
8k views

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands. Where would I ...
3
votes
2answers
1k views

Problem at boot-time: “Loading user-defined modules [FAIL]”

After I updated my Kernel to version 3.0, i always get this line when my Arch-Linux system is booting up: Loading User-specified Modules [BUSY] [FAIL] I have no idea what could cause this to ...
3
votes
4answers
6k views

Fedora 27 not running rc.local when booting

I was trying to get the Shadowsocks server running automatically after booting, and I used the rc.local file, but it was not working. rc.localis now: /usr/local/bin/ssserver -c /etc/shadowsocks.json ...