3
votes
0answers
30 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 ...
2
votes
0answers
39 views

Scripts cannot run simultaneously on startup

I want two scripts (Server_drive, Server_video_boot) running on startup, but there is conflict between them. Specifically, there is always running the script with the lower priority. I tried with many ...
1
vote
1answer
59 views

Programmatically creating .desktop file to autostart application

Using a Java program, I added a .desktop file in /etc/xdg/autostart to run a script when a user logs in. The script didn't run at user login, and when I checked the start up applications dialog ...
4
votes
1answer
43 views

Send an email right before the password prompt of ecryptfs during bootup

I'm setting up a home server which has full disk encryption enabled. In order to recover from a power failure the machine automatically reboots. I'm also able to unlock the disk remotely using ssh ...
1
vote
1answer
46 views

What priority should I give to a script running on startup?

I 'm running Angstrom distribution on an embedded device. I want to make use of its GPIO expansion ports, that are set to be high on start-up. Below, is the code segment, that releases an expansion ...
0
votes
0answers
41 views

Specific Jar file doesn't run on startup

I want to run a jar at startup, so I asked a question here. I was given a few suggestions, so I started from trying to create a script file and desktop file. I created a script file and desktop file ...
6
votes
3answers
70 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! 3 'applications', so to speak, are required to boot a funcitonal distro of Linux: Bootloader - For embedded typically that's U-Boot, ...
1
vote
2answers
114 views

Run jar on startup in all *nix based systems

I have a jar file which I need to run at startup in all distros of Linux. My previous question here, gave me an idea a rough idea on X-servers. Since I wasn't able to perform startup, I moved on to ...
0
votes
1answer
34 views

Sending signal to user that a partricular 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 ...
1
vote
1answer
99 views

Run jar file on startup as root without password

I developed a jar file I would like to run in all *nix platforms. I want to run the jar file on every restart with the root privileges without prompting any password. I googled for the solution but it ...
2
votes
2answers
56 views

What environment and credential is used by startup, background and service processes

Startup scripts (on boot) Processes running in (or sent to) the background (when using SSH -fN for example) Services etc... What $path variable will they be using? What credentials? Anything else I ...
3
votes
1answer
112 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, ...
1
vote
1answer
49 views

Shell script fails to run on startup

I want an executable program to run on startup. For this reason, I created a shell script: /etc/init.d/server. Then I run chmod +x name_of_script and update-rc.d server defaults. server (script): ...
2
votes
1answer
92 views

Check `fsck` automatically

I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS. So what ...
4
votes
4answers
217 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 ...
3
votes
1answer
89 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 ...
2
votes
1answer
196 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 ...
3
votes
6answers
295 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.
1
vote
2answers
484 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) = ...
2
votes
1answer
108 views

Launch a command at the end of Linux startup

I have a Raspberry without screen/keyboard/mouse that does nothing else than launching a radio stream at startup : mplayer http://95.81.146.2/fip/all/fiphautdebit.mp3 I have put this command at the ...
0
votes
3answers
117 views

How do we know what applications are installed in Linux?

I'm trying to understand the following in Linux. In windows we have the services that run or "startup". When we install an application it could be installed as a service so that it starts ...
0
votes
1answer
80 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
0answers
376 views

How to back up and restore(linux mint) all softwares and files from C drive when windows 7 boots but stops at black screen

I have Windows7(32 bit) and Linux mint 16(64 bit) dual boot computer. Windows 7 boots but stops at the black screen. But I can boot normally from mint and can access windows7 files through mint . Now ...
1
vote
1answer
76 views

Linux - How to open a console and display command results on startup?

I have a Linux server with a screen always displaying the end of a very usefull file. How could I automatically enter a shell and display the end of this file when the server starts? I'd like to do ...
2
votes
0answers
36 views

Find out if system startup was initiated by rtc alarm

How can I know if a system startup was initiated by an rtc alarm event in linux? I am writing some scripts that handle sleeping/shutdown of my htpc. I want the machine to sleep after recording has ...
1
vote
2answers
51 views

Begin root process at boot?

I'd like to start a background process as root when my Linux install boots. Can I just add it to a directory or a configuration file?
2
votes
2answers
841 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?
3
votes
1answer
1k 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 ...
1
vote
1answer
504 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 ...
1
vote
2answers
2k views

Starting Qt Application On Startup for Embedded Linux

I'm trying to launch get a Qt application to launch after immediately after booting up. When booted, the Linux image does nothing more than launch an X server and a terminal. It also has the cron ...
1
vote
0answers
107 views

Modifying resolv.conf when when bringing network interface up on system startup

My Linux box currently has a network interface that allows me to connect to a network on a different subnet. I've achieved this by modifying the routing table when the network interface is brought up. ...
3
votes
3answers
2k views

Disabling X server on Fedora 17

How can I prevent the X server from starting up on Fedora 17? In older versions the user should edit /etc/inittab but in this version (I didn't check this on previous versions) Fedora uses some other ...
2
votes
2answers
484 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 ...
1
vote
0answers
322 views

How to write a systemd script that runs usb_modeswitch and connects to the internet at startup?

I have a cisco AM10 wireless adapter and every boot, I need to run usb_modeswitch -v 1307 -p 1169 -L -I -u -l to get it to function as an adapter. Then I have to run a netcfg profile to connect to ...
3
votes
1answer
4k 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 ...
2
votes
2answers
796 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 ...
5
votes
2answers
392 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 ...
1
vote
2answers
518 views

Is there a way to view the console output instead of boot logo, while my RHEL 6.2 machine boots up?

My company provided laptop has RHEL6.2, with lot of programs to start up automatically, which makes the boot up process slow. While the machine boots up, there is the boring RHEL logo on the screen ...
1
vote
1answer
578 views

Reducing ubuntu boot time using dmesg

The boot time is 141 seconds. Here's the most interesting parts of dmesg command: [ 2.870498] usb 1-1.2: new high-speed USB device number 5 using ehci_hcd [ 80.669210] ADDRCONF(NETDEV_UP): eth0: ...
2
votes
1answer
285 views

Linux mint 13: Error starting MATE

My Linux Mint installation seemed to work fine an hour ago, then I switched into Windows 7 which is installed on the same machine. When I restarted back into Mint, I got the following errors and can't ...
0
votes
1answer
292 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?
1
vote
0answers
165 views

Automatically start named pipe reader on startup?

I'm trying to run a script with root access from PHP. I can't do that because Apache's user, www-data, don't have root access because of security reasons. To fix that, I was advised to use a named ...
2
votes
1answer
247 views

Templates for startup script?

I need to write a couple of Linux (Debian) startup scripts. Are there any accurate templates available?
5
votes
2answers
2k views

How can I make Debian run m python script at startup?

I have this script in my home folder (pi): server.py. How could I make Debian run this script at startup so I dont need to log in and to i manually?
2
votes
2answers
217 views

Running script once when X is initialized

Where should I put a bash script if I want it to be executed once during X startup as part of system bootup. For example, I want to start up VPN on my machine as root user once X starts up. When X ...
1
vote
1answer
2k views

Execute a script as root at boot on Fedora 15/16

I try to run a script (tpfand) at startup, and it asked to be root to execute it. This is a script to control the fans on Thinkpad computers. Despite several attempts, I could not get ...
4
votes
2answers
3k views

Make daemon start up with Linux

I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up. I am a beginner on Linux systems. I have tried to modify /etc/init.d/skeleton to add a script into ...
4
votes
1answer
525 views

Giving a custom script root permissions

I have a backup drive that is Truecrypt Encrypted. I'd like to automnt this drive so I can automate backups when in the office. I am using Linux Mint 12 x64bit I wrote a script that runs successfully ...
1
vote
7answers
1k views

What's the cleanest way to schedule autoexec.bat like command in Linux?

I want to create a small script for my Linux system that would do some simple things on PC boot. The script is most likely going to be Python, but maybe I'll resort to C or shell. The problem is that ...
4
votes
5answers
279 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 ...