AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Repetier server init.d script4/9/2023 ![]() Then set permissions and activate sudo chmod a+x /etc/init.d/asplashscreen usr/bin/fbi -T 1 -noverbose -a /etc/splash.pngĮcho "Error: argument '$1' not supported" >&2Įcho "Usage: asplashscreen " >&2 # Short-Description: Show custom splashscreenĮcho 0 > /sys/class/graphics/fbcon/cursor_blink It will look something like this: dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quietĬreate file /etc/init.d/asplashscreen sudo nano /etc/init.d/asplashscreen #! /bin/sh You can design your own boot screen or use one of us:Īdd “quiet” to the end of the line of /boot/cmdline.txt. If you installed from NOOB installer, your autostart may be /etc/xdg/lxsession/LXDE-pi/autostart instead. ![]() Xset s noblank # don't blank the video device Xset -dpms # disable DPMS (Energy Star) features. In case you do not want the screen to blank after a while add to /etc/X11/xinit/xinitrc and /etc/xdg/lxsession/LXDE/autostart the following lines: xset s off # don't activate screensaver In file /etc/rc.local add the following line just in front of the line with “exit 0”. Then mark it as executable: chmod 755 startserver.shĮcho "pi ALL=NOPASSWD: /usr/bin/pkill" > /etc/sudoers.d/pi_pkill Write a script in home directory startserver.sh: #!/bin/bashĮcho "X Server crashed with exit code $?. In file /etc/inittab look for a line like that: 1:2345:respawn:/sbin/getty -noclear 38400 tty1Ĭomment it with a “#” in front and add the following line after it: 1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1 Now that it works, you can make it start automatically.Test if link works (server must be already running). ![]() Kweb -KEJF Select the link so that it matches your display resolution. Openbox -config-file ~/.config/openbox/LXDE-rc.xml -startup tint2 &
0 Comments
Read More
Leave a Reply. |