Schlagwort: reboot

Linux: Systemd ignore console-setup settings

If you work on older Laptops and you use a Console only System Setup like on Debian there is a Bug on systemd and the console-setup package since years. After reboot all Font Settings seems gone. But the Settings are not real gone, cause systemd does not pull the settings on boot! How to fix? edit the crontab of root by sudo su – crontab -e insert the /bin/setupcon command on „@reboot“ means on every boot! @reboot     /bin/setupcon > /dev/null 2>&1 save and exit, reboot now now the PC should echo big Fonts for old eyes „Terminus 20×12 Frambuffermode“  

Debian Ubuntu Update Script with Switch OFF after update

Problem: I f you work on you PC daily Patches must be checked and installed. At Debian / Ubuntu the Gnome-Update-Manager does this. But there is NO Shutdown possible after update. Solution: – create Script #sudo nano /root/upgrade-off.sh add inside: apt-get update           //for update Patches Database PC apt-get dist-upgrade -y         //install Patches automatic apt-get clean      //cleanup PC /sbin/init 0      //shutdown PC automatic or reboot Server = init 6 exit You can now after work set it to crontab or start manual by #sudo sh /root/upgrade-off.sh On Servers name it upgrade-reboot.sh and set root cron to run the job @hourly/@daily

Ubuntu 10.04 Lucid Lynx disable hide REBOOT SHUTDOWN STANDBY SUSPEND GNOME SYSTEM MENU SECURE KIOSK MODE

Problem: If you install ubuntu 10.04 Desktop by default every user can shutdown,reboot,hibernate or standby a PC If you want to disable this make: – install gdm2conf from the ppa channel to customize hide System Menu at Login GDM2 Manager – create custom Gnome System Menu Policy against User shutdown,reboot,hibernate or standby. Steps: create new policy file: #sudo touch /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla edit new policy: #nano nano /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla insert into: [Disable suspend] Identity=unix-user:* Action=org.freedesktop.devicekit.power.suspend ResultActive=no ResultAny=no [Disable hibernate] Identity=unix-user:* Action=org.freedesktop.devicekit.power.hibernate ResultActive=no ResultAny=no [Disable shutdown] Identity=unix-user:* Action=org.freedesktop.consolekit.system.stop ResultActive=no ResultAny=no [Disable reboot] Identity=unix-user:* Action=org.freedesktop.consolekit.system.restart ResultActive=no ResultAny=no reboot and try! To disable CTRL-ALT-DEL REBOOT edit […]

Ubuntu 10.04 Lucid Lynx disable hide REBOOT SHUTDOWN STANDBY SUSPEND GNOME SYSTEM MENU SECURE KIOSK MODE

Problem: If you install ubuntu 10.04 Desktop by default every user can shutdown,reboot,hibernate or standby a PC If you want to disable this make: – install gdm2conf from the ppa channel to customize hide System Menu at Login GDM2 Manager – create custom Gnome System Menu Policy against User shutdown,reboot,hibernate or standby. Steps: create new policy file: #sudo touch /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla edit new policy: #nano nano /etc/polkit-1/localauthority/50-local.d/custom-menu.pkla insert into: [Disable suspend] Identity=unix-user:* Action=org.freedesktop.devicekit.power.suspend ResultActive=no ResultAny=no [Disable hibernate] Identity=unix-user:* Action=org.freedesktop.devicekit.power.hibernate ResultActive=no ResultAny=no [Disable shutdown] Identity=unix-user:* Action=org.freedesktop.consolekit.system.stop ResultActive=no ResultAny=no [Disable reboot] Identity=unix-user:* Action=org.freedesktop.consolekit.system.restart ResultActive=no ResultAny=no reboot and try! To disable CTRL-ALT-DEL REBOOT edit […]