6
votes
Accepted
Does Stretch Lite support systemd?
Yes, the Lite version of Raspbain 9 "Stretch" uses systemd just like 8 "Jessie".
Also I highly recomend using systemd over other options.
- 2,692
5
votes
Accepted
Raspbian Jessie: What do "service --status-all" and "systemctl list-units --type=service" show?
These are for SysV compatibility, which traditionally has been the most widespread init system used on GNU/Linux since its inception. I believe SysV scripts also have a degree of compatibility with ...
- 57.6k
5
votes
Accepted
Essential parts for booting the Raspberry Pi 2
What do I need to sucessfully boot my Raspberry Pi 2 until the init system is loaded? I think I need only the files on the boot partition, because /sbin/init is a symlink to e.g. systemd.
/sbin/init ...
- 57.6k
5
votes
How does init get to know about power events?
Ah, ha! Some paragraphs in the man pages for init(8) refers to the depreciated interface of writing a one letter value to /etc/powerstatus (now replaced by /var/run/powerstatus) and then sending init ...
- 3,621
3
votes
Run script with virtualenv on init
I have solved it by using
source /home/pi/.virtualenvs/cv/bin/activate
instead of
source ~/.profile & workon cv
- 61
3
votes
Accepted
Wrong password creating on first boot (cloud-init) (Ubuntu 20.04 server, RPI 4)
Yes this one got me as well its because of the following parameter and its default settings;-
lock_passwd: Optional. Disable password login. Default: true
So the fix is to set lock_passwd: false in ...
- 509
3
votes
Custom initramfs
I'm using an initramfs for a long time. I need it for Easy backups and snapshots of a running system with LVM to load the lvm driver before mounting the root partition. But it is a little bit ...
- 41.3k
3
votes
Why raspbian has /usr/sbin/service?
It is there for compatibility. While the OS has switched to systemd, not all packages have been adapted for systemd, so some amount of backwards compatibility is available to run the older package ...
- 308
2
votes
Accepted
How best to clone SD card to larger - have tried dd, but get file system errors?
If you're using dd to write SD cards, you're wasting time, and using the wrong tool for the job. But please don't take my word for it - check other opinions, or do your own research.
I would suggest ...
- 20.1k
2
votes
Pi boots to a white login screen instead of desktop after making tightvncserver boot at startup
changing the ownership of .Xauthority file should fix the issue.
$sudo su
#chown pi:pi .Xauthority
#reboot
After reboot, the login prompt doesn't appear.
- 151
2
votes
Changing run level causes freeze
This has NOTHING to do with the (alleged) current rating of the power supply.
Not using the GUI will have negligible impact on the current drawn by the Pi.
Jessie DOES NOT use runlevels (except 0, ...
- 56.8k
2
votes
Which file in /boot is the initial RAM disk?
The Raspberry Pi OS does not use an Init RAM Disk. If you need one you have to create it by yourself. In addition to the ramdisk you have to add some settings in /boot/config.txt. I have an example to ...
- 41.3k
1
vote
Run script with virtualenv on init
You can use a systemd Unit file to start your script. With it you are able to exactly set the environment to that one used on the command line. The only difficulty is to find the environment needed ...
- 41.3k
1
vote
Accepted
How does init get to know about power events?
By delving into the source code of the SysV init available from the Free Software Foundation's Savannah server I was able to send requests to my RPi's init by filling out a struct init_request as ...
- 3,621
1
vote
How does init get to know about power events?
I guess the cleanest approach would be to have a kernel device driver manage GPIO27 and set up to receive an interrupt when it goes low. The interrupt handler would notify init. Page http://elinux....
- 111
1
vote
Accepted
issues installing cross-compiled kernel onto blank SD card
No, you do not need an initramfs. The purpose of that is to facilitate the use of a wide variety of hardware; it enables the kernel to pick from a range of (potentially mutually exclusive) drivers ...
- 57.6k
1
vote
Pi boots to a white login screen instead of desktop after making tightvncserver boot at startup
I also encountered the same problem and got it solved by using the following commands:
cd ~
ls -l -a
mv .Xauthority .Xauthority.bkp
After reboot, the login prompt doesn't appear.
- 11
1
vote
Pi boots to a white login screen instead of desktop after making tightvncserver boot at startup
You can give xrdp a try. I have used it some time before and it worked very nicely for me.
- 19
1
vote
Pi boots to a white login screen instead of desktop after making tightvncserver boot at startup
I had the exact same problem. I followed these directions (here) which are . . .
cd ~
ls -l -a
mv .Xauthority .Xauthority.bkp
If you reboot, should solve the problem.
- 314
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
init × 25raspbian × 8
boot-issues × 6
boot × 5
kernel × 5
systemd × 5
ssh × 2
script × 2
services × 2
password × 2
init.d × 2
encryption × 2
upstart × 2
python × 1
usb × 1
pi-4 × 1
pi-3b+ × 1
hardware × 1
sd-card × 1
linux × 1
bluetooth × 1
power-supply × 1
raspbian-jessie × 1
ubuntu × 1
vnc × 1