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
0
votes
1answer
69 views

Would replacing sourced bash functions with executables decrease startup time

A typical bash setup, sourcees additional dotfiles on startup which obviously increases the startup time. Is there an be any benefit of moving the contents of a function to its own executable file? ...
0
votes
1answer
239 views

Gnome 3: open and resize application at startup

I need to open a couple of terminal windows and watch the output of a couple of programs. Currently I open them in ~/.profile, then once in Gnome I click them to bring them to the front, then resize ...
0
votes
1answer
4k views

mounting by default at startup with /etc/fstab doesn't work

I'm trying since a few hours to mount a partition (md0) automatically with the server start. The Content of my /etc/fstab: # <file system> <mount point> <type> <options> ...
0
votes
1answer
11k views

Auto-restart an process when it crashes

I have an app that I need to autostart when the OS starts. I am running in a CentOS 6, so I am using a LSB init script placed in /etc/init.d. So far this is fine and working. Now....besides that, ...
0
votes
1answer
421 views

Where can I see the processes running at startup?

I'm using backtrack5 R2 and sometimes when I log in the information showed says that There is 1 zombie process, where can I see what process is running?
0
votes
1answer
23 views

Update script failed to fetch on start-up

I'm working on Debian 9.7.0 without desktop environment. I've made a script to update my packages and I added in /etc/crontab to run on start-up. Here's the script: #!/bin/bash apt-get update &&...
0
votes
1answer
41 views

Kubuntu not starting up after cloning HDD to SSD (dual-boot)

My Acer Aspire 3 was really slow recently, so I decided to upgrade to an SSD (Samsung 860 QVO). To clone the HDD to the SSD, I used 'MiniTool Partition Wizard' on my Desktop PC with both drives ...
0
votes
2answers
34 views

Encrypt a disk without having to log in to enter the password

I am using eCryptfs to encrypt the home directory and would like to access files without having the user log in. The program pam_mount will automount encrypted file systems, but it seems like that ...
0
votes
2answers
94 views

Remove programs from automatic startup

When I start and log into my computer, multiple programs open on startup (mousepad, a terminal and firefox). How can I change this behaviour? I have no idea why it happens. I am running Manjaro XFCE. ...
0
votes
1answer
135 views

Debian 9: Multiple Failures During Startup

Recently I was using my notebook in a normal session when, suddenly, the network interface stopped working. I manually shut down the system (couldn't do it via LXDE neither via terminal) expecting ...
0
votes
2answers
77 views

Does the bootloader load the kernel fully into memory

I read that the bootloader (Grub, or U-boot etc. ) locates the kernel (from maybe the HDD, or even flash memory if it's an embedded system) and loads it into memory on startup. Now, does this mean ...
0
votes
1answer
772 views

How to execute a specific sequence of operations in i3 on start-up?

Using exec in the config file would start an application on startup. Any application to be bound to a workspace when it starts using assign. However, how could one do a sequence of operations on start-...
0
votes
1answer
140 views

Ubuntu with Xmonad - How to run programs on startup

I'm using Ubuntu Mate with XMonad. I can't seem to understand how to run something at startup after the login. I want some programs like Firefox to run when I login to my desktop. Now let's say I ...
0
votes
2answers
145 views

Why I cannot initialize dummy interface at bashrc?

I did try to initialize a dummy interface in shell manually without no problem. In order to bring up this interface at every boot up process, then i tried to add it to /etc/bashrc or /etc/profile as ...
0
votes
1answer
35 views

Portable way to run a simple script at startup

I'm trying to run a script at startup as root. (Just sets up a root-owned directory in /tmp). Currently, I'm using this script to set up the boot hook and it appears to get the job done: #!/bin/sh -...
0
votes
1answer
18 views

How can we make deployment of personal configuration or startup files easier, with existence of default ones?

I have a follow-up question after https://unix.stackexchange.com/a/435293/674 Suppose I have a personal configuration or startup file in my backup external hard drive or github repository, for ...
0
votes
1answer
2k views

How do I create a service on CentOS running as a different user than root?

I'm using CentOS 7. I want to run a nodeJS script as a service but run the service as the "rails" user. As root, I created the file /usr/lib/systemd/system/myservice.service, with the contents [...
0
votes
1answer
52 views

What's wrong with my cronjob?

I want to run a script on startup that establishes a GRE tunnel. The script works fine if I just run /root/tunnel.sh after rebooting, it runs and establishes the tunnel. Below are the contents of my ...
0
votes
1answer
1k views

How to start a console program at startup(inside ../openbox/autostart)

I have a console program: #include <iostream> #include <stdio.h> using namespace std; int main() { printf("please num1:"); int a; cin>>a; printf("please num2:"); int b; cin>>...
0
votes
1answer
294 views

Why does /etc/profile check PS1 rather than the -i flag in $-

I know of two ways to test whether a shell is interactive, [[ $- == *i* ]] && echo "-i option flag indicates interactive" [ -n "$PS1" ] && echo "prompt is set" I've read that ...
0
votes
2answers
51 views

a ctl file preventing machine from starting up

This is a rather ridiculous predicament I find myself in. At some point in the past I've installed a piece of software (ejabberd, if you're curious, but I don't think it really matters which), that is ...
0
votes
1answer
183 views

Stop script till I press enter

I have a startup script that opens some programs in each workspace. I want to do some things in the first workspace before it continues opening the programs in the next workspaces. How can I prompt to ...
0
votes
1answer
209 views

How to start a dialog at startup after login in?

I want to display a dialog at startup after the user log in? How would you suggest to do automatically launch a dialog at startup? Example of dialogue: zenity --question
0
votes
1answer
176 views

How to run a command once the first time the OS is used?

I am customizing OS and want to display a dialogue describing the ad hoc OS the first time the user is entering the OS. The command is saved in a script. What is the best strategy to execute a script ...
0
votes
1answer
303 views

run GUI application on startup after network is up

I need to automatically start a GUI application at startup, but after network is up, what is the right way to do it? My OS is Lubuntu with LXDE. I tried different ways, such as crontab, rc.local and ...
0
votes
1answer
469 views

Add status info to systemd's status output

I'm writing a systemd script for a backup software client called Retrospect. This software doesn't follow any kind of typical linux ways of doing things. Getting a status from the program means ...
0
votes
1answer
127 views

Run script simulatneously with loading desktop

I am running Kali 2, and have a script that I want to run on startup. Right now, I have the script in my profile.d directory, but it takes too long to execute. The effect is that after I login, the ...
0
votes
1answer
302 views

How to lump together Apache2 Server and xsp2 server in the configuration for auto start when the PC reboots?

We need to lump together Apache2 Server and xsp2 server(or mod-mono-server server) in the configuration for the auto start sample shown below when the PC reboots. Quoting from the article, https://...
0
votes
1answer
39 views

How to get a list of all user scripts that are called on startup?

I have emacs daemon launching on startup and I have no idea where it is being launched. I've checked systemd and I don't have a service neither in /etc/systemd/system nor in /usr/lib/systemd/system. I'...
0
votes
1answer
5k views

How to make a simple script run at login everytime

I'm extremely new to Linux style computing. Please keep that in mind. I figured out how to write a script for the calendar to pop up in the terminal. !/bin/bash Shell Scrip to display current date, ...
0
votes
1answer
312 views

Start radio with systemd service

On a headless RaspberryPi, I would like to automatically start radio on boot, without any human action. I have written this file as /etc/systemd/system/radio.service : [Unit] Description=Radio Wants=...
0
votes
1answer
1k views

How to effectively manage autostart in Linux Ubuntu/Mint (KDE)?

I am aware I can use 'autostart' package. However there are certain programs (e.g. 2 windows of Dolphin) which start automatically despite they're not in autostart. Also, certain program fail to run ...
0
votes
1answer
124 views

Setting initial configurations of user session for Arch Linux

I have to configure the keyboard every session with the command: setxkbmap -layout br And to connect: systemctl start dhcpcd I want the system do this automatic, I've tryed change the ....
0
votes
1answer
8k views

Run bash script on startup in Linux Mint and open mate-terminal automatically

I'm new to Linux, so not sure how to do what I want. I have my_script.sh (executable, of course) like this: #!/usr/bin/env bash mate-terminal -e "bash -c 'cd /home/my_user/ruby_projects/my_app/';'...
0
votes
2answers
204 views

Autostarting Conky Weird Behaviour

I've set conky to be started after logging in by creating the file conky.sh in /usr/local/bin, and adding the entry conky.sh to the Xfce startup applications list. conky.sh contains the following text:...
0
votes
1answer
4k views

elementary os will not start after installing GPU drivers

I was having some problems with my laptop (asked a related question yesterday: http://elementaryos.org/answers/after-locking-the-computer-screens-look-all-messed-up) regarding some dual-screen issues. ...
0
votes
1answer
168 views

Sending signal to user that a particular driver is loaded

These are some of the messages coming on console from Microzed board (Cortex A9): [Sat May 17 18:18:26.603 2014] DMA: preallocated 256 KiB pool for atomic coherent allocations [Sat May 17 18:18:26....
0
votes
1answer
335 views

How are the services exactly starting in (K)Ubuntu?

I have latest Kubuntu. I have installed mysql. I was looking into the /etc/init. I see the following: In /etc/init/mysql.conf description "MySQL Server" ...
0
votes
1answer
167 views

Why env variable are not visible while starting a service

I am wondering why during service start up environment variables are not visible. To be more precise: I created service startup scrip according to LSB spec which starts some java process. For this ...
0
votes
1answer
623 views

Periodically sync local folders using rsync (no symlinks!)

I am using Dropbox to have an online backup of some data. However I want to encrypt my data before uploading it to Dropbox. Therefore I have created a TrueCrypt container and I am using rsync to ...
0
votes
2answers
63 views

While Linux is rebooting which directory is used to search for the executable system binaries?

While Linux is rebooting which sbin directory is used to execute the system binaries. As per my knowledge it used to load the binaries in the directory sbin directory . But in my system I find so ...
0
votes
1answer
15 views

KDE Neon: black startup screen with only cursor. Forgot login credentials for Alt+Ctrl+F2 tty terminal

TLDR: After powering on and choosing my OS (I have Win10, Ubuntu, and KDE Neon all on the same disc and every time my computer starts grub(?) gives me the option between the three. Black startup ...
0
votes
0answers
48 views

How to start a script before the login password request [duplicate]

On debian 9 i want to start a shell script on a console, who will allow the user enter some information, before the login, password request This script will be launch only one time (at the first ...
0
votes
0answers
15 views

systemd macchanger start job hanging

I am running Arch Linux and I have set up systemd to change my MAC address on startup with macchanger # /etc/systemd/system/macspoof@.service [Unit] Description=macchanger on %I Wants=network-pre....
0
votes
0answers
28 views

'Minimal BASH like line editing is supported' GRUB Error

I bought a new hp desktop recently which comes with windows 10. I pretty much followed this video to dual boot it with linux Ubuntu (including editing the Grub customizer at the end, but I chose ...
0
votes
1answer
39 views

Autostart pure-ftpd by running its Perl configuration file at the command line

I have manually built the pure-ftpd on my Raspberry Pi and it runs perfectly fine when I invoke /etc/pure-config.pl /etc/pure-ftpd.conf from the command line. I'd like to run that simple command /...
0
votes
0answers
20 views

Stop display settings from reverting back on shutdown

Recently made the switch from windows 10 to linux mint(cinnamon) and was looking to change the display scaling for a 13in monitor. Found out that fractional scaling isn't an option, but found an ...
0
votes
0answers
56 views

How to run a process in background on startup?

I'm trying to run a process(myfile) on startup on my yocto linux board, but I'm getting either IOCTL or segmentation fault while I use nohup or & to run in background. I could run myfile in ...
0
votes
0answers
39 views

Program not working after setting script in init.d

I have two programs that need to run on start up. I am using init.d scripts because the virtual machine in my system does not have systemctl. With my configuration program_A is working but program_B ...
0
votes
0answers
38 views

Debian 9 stretch - How to prompt user from rc.local script and echo in current terminal

I need to create an easy to go Debian VM for new developers on my team. I run a script on boot with rc.local. This is a small test script : #!/bin/bash exec < /dev/tty1 # Checking if user ...