Questions tagged [startup]
The startup sequence, from the time the kernel goes live to when all services are up and running.
735
questions
1
vote
1
answer
29
views
How to stop a service when a network interface goes down?
I have a service which I want to start and stop my service when a specific network interface (eth0 in my case) goes up and down. Reading through documentation, and posts, I have come to the unit below,...
0
votes
0
answers
30
views
Disks no longer mount when starting Ubuntu after installing Blender compilation dependencies
I'm trying to compile Blender on Ubuntu 22.04 and I ran into some problems while installing some dependencies and now Ubuntu wont boot. I was running an automatic dependency installation script for ...
-7
votes
1
answer
40
views
What command can be used to find where Python is installed? [closed]
what command? and why is so important? In UNIX? I have heilo and need to correct command.
0
votes
1
answer
39
views
Start vino-server automatically at startup
I am using Bodhi Linux, and vino-server in it.
I can connect neatly from Win 10, following the same procedure I am used to do to connect to Ubuntu boxes.
Now I want vino-server to start automatically ...
0
votes
1
answer
42
views
Source a script in Linux for all users logging in that echo some things
We have CENTOS 7.x Linux with bash shell. I need a some environment variables to be set and some messages involving these env vars to be echoed (a banner kind of thing, but dynamic because it's got ...
2
votes
1
answer
31
views
How do I stop xclock restarting at every system startup
I use Linux Mint on one of my machines. The other day I tried xclock via Terminal command line. I then found I couldn't stop, end or kill it. Or rather I could kill it but it immediately restarted. ...
1
vote
2
answers
37
views
Is it possible for a shell to (automatically) source files after the first prompt is shown?
I'm wondering if there is any way to put something in my startup files that will cause other files to be sourced after the first prompt is shown.
I would prefer a method that doesn't rely on hooks ...
0
votes
1
answer
68
views
systemd start stop enable and disable multiple services with one target unit
I have created a target file /etc/systemd/system/watch-for-sync-need-all.target
[Unit]
Description=systemd target to group services for all folders that create a sync need by changes
After=multi-user....
0
votes
2
answers
105
views
How to pull git repository on Linux Startup
I want a Kali Linux 2021 (with zsh) machine in a lab to pull the most recent copy of a git repository on startup. I can get the commands to run fine manually, but for the life of me I cannot get them ...
0
votes
1
answer
107
views
Ranger file manager as the singleton instance on shell startup
Problem:
I use zsh and added to its config file a line of launching ranger on startup.
.zshrc
# A few other settings and commands.
ZSH_TMUX_AUTOSTART="true"
plugins=(tmux ...)
source ranger
...
0
votes
1
answer
143
views
In Linux Mint 20.2 how to execute xmodmap at startup
I use Linux Mint 20.2 (with Mate desktop environment).
I need to make permanent some modifications of the keyboard mapping, as explained in the chosen answer to this question.
In other words, I need ...
0
votes
1
answer
166
views
Mount Network Drive with systemd on Startup
I'm trying to mount my local NAS on startup with a script that is called by a systemd-service. Yesterday I did the same on a Debian 11-Install and it worked. Today on Arch I run into the problem that ...
1
vote
1
answer
86
views
Why the LESS_TERMCAP settings does not work when put it into ~/.profile
I have the following LESS_TERMCAP settings:
# less config
export LESS=-R
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold
export ...
0
votes
0
answers
143
views
GRUB Error: command failed. You need to load the kernel first [duplicate]
I have a Dell Inspiron 17 3793, I installed Ubuntu and most of the times when I turn it on and select Ubuntu in grub is shows "error: command failed" several times, like in a list and at the ...
0
votes
1
answer
51
views
Ubuntu stucked while starting with Black Screen
Last night my Ubuntu VM was working fine, but today its not starting up. I don't know why it isn't starting up.
I am using Oracle VM Box 6.1 and I have Ubuntu 20.04.
It starts up and then stucks after ...
0
votes
1
answer
67
views
How to resolve "A start job is running..." after kernel update
I am having trouble accessing a Oracle Linux 8 VM in Oracle Cloud, following a kernel update yesterday. I need help in knowing how to resolve the issue, or even if I should try. (The alternate being ...
0
votes
0
answers
21
views
Why there are different permission and module-loading process for kvm when startup?
My customized Debian 11 image will open a VM(QEMU) when the system starts up.
And I deploy its backup image on different PCs, but there are two symptoms on some PCs
user account is not added to the ...
-1
votes
1
answer
79
views
cannot start Linux Mint Cinnamon anymore - disk full
hoping for some help as I have searched for ages and tried heaps of things, but getting nowhere...
I shut the lid of my laptop one afternoon (putting it to sleep) and then next day went to use it (...
0
votes
1
answer
67
views
How to Choose Between Real-Time, Low-Latency and Normal Kernels on Startup?
For instance, I know it's possible to easily install several desktop interfaces and choose what session to log into on startup.
Is this type of thing possible for choosing between kernels? I would ...
2
votes
1
answer
204
views
Rotating Display on Debian Buster from CLI
I am attempting to run an AvaloniaUI application on a version of Debian(Buster) on an ASUS TinkerBoard. The display I am using is a 7 inch 1920x1080p touchscreen display.
The application runs in a ...
0
votes
0
answers
37
views
Microsoft Teams starts up on login even though I have removed it from the startup applications list in GNOME Tweaks
I'm having trouble disabling Teams as a startup application. I'm running Fedora 35 with GNOME as my desktop environment.
I got to GNOME Tweaks and remove Teams from the list of startup applications. ...
0
votes
0
answers
44
views
Arch Linux cannot start X "no screens found", NVIDIA drivers installed, SDDM enabled
I'm pretty much at a loss. I've been at this for probably the last 30 minutes and have not made any progress whatsoever. This is directly after having just used archinstall, and I haven't seen ...
0
votes
0
answers
276
views
Debian testing is very slow boot, after upgrade to bookworm
After upgrade to bookworm, debian presented so slow to boot. Is it possible to disable some boot process? Is it another trick that I could do to make it more fast on boot?
systemd-analyze blame
51....
0
votes
0
answers
45
views
Cannot acess previously used Mint on my laptop
How can I approach to an older version of Linux which is still installed on my laptop but not in use due to some hardware/software problems? I don't see it on the system start-up and I still have some ...
0
votes
0
answers
16
views
Automatically start non-login on virtual terminal
You know how you can hit ctrl-alt-f3 to get a virtual terminal, where you can log in? Is there a way to set one of those terminals to automatically start a particular program instead of a login ...
1
vote
1
answer
277
views
switch_root: failed to execute /sbin/init: Too many levels of symbolic links
So, recently I was doing the Linux from scratch project and I had multiple terminals open, so I was continuing to make it, and by accident I typed the line in another terminal tab (root), and it ...
0
votes
0
answers
30
views
Why do boottimes differ daily?
My boottimes differ on a daily basis ( in Kubuntu, which I use as a daily driver ). Sometimes the BPFilter ( UFW ) will start displaying errors for about 10 seconds. Sometimes it doesn't. Sometimes my ...
0
votes
2
answers
598
views
Why ssh.service doesn’t start automatically during boot despite being enabled by systemd?
I’m using Debian 11 on a Raspberry Pi 4 (image found here).
sshd is properly configured (I only edited /etc/ssh/sshd_config, the rest is completely fresh from system installation) and works correctly ...
0
votes
0
answers
109
views
cant get a cronjob run at startup on ubuntu 16.04, any way around?
I put command @reboot /home/user/script.sh in sudo crontab -e but it won't run, @reboot sleep 60 && sh /home/user/script.sh won't run either. already chmod 777 and -x it. im using hiveos(based ...
1
vote
1
answer
113
views
MongoDB: Failed to set up listener: SocketException: Permission denied error
Mongodb failed to start when launched as a service:
service mongodb start
with an error:
Failed to set up listener: SocketException: Permission denied error
What to do to start it properly?
1
vote
3
answers
93
views
How to add fsck at boot like a regular service?
I remember that certain distros, used to run fsck at boot after x boots, in a regular way.
How can be added to the boot process the fsck service to be
deployed in rpm distro/Fedora,RHEL,Oracle,Suse?
...
1
vote
1
answer
266
views
OpenBSD run script on Startup
I was trying to run a .sh script on my OpenBSD machine on startup.
I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading
@reboot sh /dir/...
2
votes
1
answer
118
views
In bash, is there a way to see how much memory .bashrc and any startup scripts are consuming?
In bash, .bashrc (and various other scripts) can load into memory at shell startup. These can be 10 lines long, but can be hundreds (if not thousands) of lines long. Each export will consume a tiny ...
0
votes
0
answers
416
views
plymouth not showing image at startup
I'm trying to follow the instructions to get a custom background working, when my Arch installation first boots. I'm following the wiki: https://wiki.archlinux.org/title/Plymouth#Installation
I ...
0
votes
0
answers
69
views
Yocto splash screen before rc5
I would like to show splash screen on yocto boot. Im'm using psplash for this purpose. But the difficalty I'm facing is that despite psplash is located in rcS.dgraphic only start to appear when ...
-1
votes
2
answers
85
views
How can I start a cpp bin at every reboot?
I am beginner in LINUX operating system and my question is the next one:
I have a compiled bin from a C++ source code that uses OpenCV and another libs and it displays on the screen the images ...
1
vote
1
answer
103
views
Alpine Linux startup script
I have a USB flash drive, which boots Alpine Linux into RAM memory.
I wish to run a script directly after startup (login to WIFI, etc.). Is that possible?
It is advised to place a startup script in /...
0
votes
2
answers
71
views
what happens after I have entered log in password and before the shell prompt comes up? and how to reduce time for that interval?
I'm doing some experiment on a virtual machine (guest machine is ubuntu 20.04 on arm64) and I'm doing this on a x86_64 host machine (ubuntu 20.04). Right after I login, it takes about a minute until I ...
2
votes
1
answer
2k
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 ...
0
votes
0
answers
13
views
Intermittent boot anomaly: has anybody heard of a system's screen going back to the startup image, a minute or so after the Gnome desktop comes up?
This is a weird one.
I have a new System76 Meerkat, running POP, and (intermittently, seemingly at random, maybe once out of 10 system startups), a minute or so after the Gnome desktop appears, the ...
0
votes
0
answers
47
views
Problem with running a script as a startup program
I wrote a script and added it to /usr/bin/ with the permission for execution. It works exactly as expected when I run it on terminal. The script is written for updating the TeX-system regularly, add a ...
0
votes
1
answer
624
views
How Can I Run A Command On Startup In Linux Mint?
My computer has a problem where for some reason Linux Mint doesn't start network-manager on startup. To fix this, whenever I restart linux, I have to enter 'sudo service network-manager restart' into ...
0
votes
0
answers
25
views
How Can I Make XAMPP's Apache2 Server Run On Startup?
The goal for me here is to have the apache2 service in XAMPP start on startup. I am using XAMPP v8.0.8-0. I don't feel like there is much else to be said.
0
votes
1
answer
121
views
What files set the default PATH
I'm puzzled as to what files set the default PATH on Linux (specifically, Debian). (I'm not interested in the user-specific ones in ~ (.profile, xsessionrc, maybe others) here.)
So far I've ruled out ...
0
votes
1
answer
164
views
Execute a program before user login
I am using Ngrok for having remote SSH access to my home computer without setting up port forwarding and stuff like that. After messing around with it for a little, I decided to set it up to start the ...
0
votes
0
answers
84
views
System stalled after "systemctl isolate reboot.target"
I've got a Fedora 30 VM running on VirtualBox. Trying to understand systemctl and run levels better, I ran
sudo systemctl isolate reboot.target
As expected, the box restarted. However, it doesn't ...
0
votes
0
answers
144
views
How to bind mount a directory in .bashrc without sudo privilege
NOTE: I'm working in WSL2, but my issues lies entirely within the Linux side of things. Please let me know if this is not the right place for this.
I am needing to mount --bind a directory whenever ....
0
votes
0
answers
76
views
How to make a systemd unit run as root when user logs in?
I want to have a systemd unit running as root when a specific user logs in. I've already tried creating a local systemd unit for the user (placing it in its home directory at ~/.local/share/systemd/...
0
votes
1
answer
298
views
Why is my systemd startup script not running properly? (ubuntu 20.04)
I have created two systemd startup scripts as per https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/, containing the following:
#1
#!/bin/bash
synclient ...
1
vote
1
answer
568
views
Wait for mount before starting services
I have a Raspbian 9 system with an external hard disk, which gets mounted as /srv/file during boot. I am running PostgreSQL and BIND, both of which have data files residing on that disk.
On startup, ...