Ubuntu HD VDR mittels Xine und VDPAU - PowerOff Kernel
Aus VDR Wiki
(Unterschied zwischen Versionen)
Sewn4 (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „==Prüfen der Grafikkarte== lspci -v 03:00.0 VGA compatible controller: nVidia Corporation ION VGA (rev b1) Subsystem: ASUSTeK Computer Inc. Device 83e2 F…“) |
Sewn4 (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
− | == | + | ==40_custom anpassen== |
− | + | cd /etc/grub.d/ | |
− | + | sudo vi 40_custom | |
− | + | ||
− | + | #!/bin/sh | |
− | + | exec tail -n +3 $0 | |
− | + | # This file provides an easy way to add custom menu entries. Simply type the | |
− | + | # menu entries you want to add after this comment. Be careful not to change | |
− | + | # the 'exec tail' line above. | |
− | + | menuentry "PowerOff" { | |
− | + | saved_entry=0 | |
− | + | save_env saved_entry | |
− | + | halt | |
− | + | } | |
+ | |||
+ | ==grub anpassen== | ||
+ | cd /etc/default/ | ||
+ | sudo vi grub | ||
+ | |||
+ | #GRUB_DEFAULT=0 | ||
+ | GRUB_DEFAULT=saved | ||
+ | GRUB_HIDDEN_TIMEOUT=0 | ||
+ | GRUB_HIDDEN_TIMEOUT_QUIET=true | ||
+ | GRUB_TIMEOUT=10 | ||
+ | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | ||
+ | GRUB_CMDLINE_LINUX="" | ||
+ | |||
+ | sudo update-grub | ||
+ | |||
+ | ==vdrpoweroff.sh Skript anpassen== | ||
+ | cd /usr/local/bin/ | ||
+ | vi vdrpoweroff.sh | ||
+ | |||
+ | #!/bin/bash | ||
+ | sudo /usr/sbin/grub-reboot PowerOff | ||
+ | sudo /sbin/reboot | ||
+ | |||
+ | ==visudo anpassen== | ||
+ | sudo visudo | ||
+ | vdruser ALL=(ALL) NOPASSWD: /usr/local/bin/vdrpoweroff.sh,/sbin/poweroff,/usr/sbin/grub-reboot,/sbin/reboot | ||
− | |||
− | |||
− | |||
[[Kategorie:Ubuntu]] | [[Kategorie:Ubuntu]] | ||
[[Kategorie:Installationsanleitungen]] | [[Kategorie:Installationsanleitungen]] | ||
[[Kategorie:HDTV]] | [[Kategorie:HDTV]] |
Version vom 28. Juni 2010, 22:49 Uhr
Inhaltsverzeichnis |
40_custom anpassen
cd /etc/grub.d/ sudo vi 40_custom
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "PowerOff" { saved_entry=0 save_env saved_entry halt }
grub anpassen
cd /etc/default/ sudo vi grub
#GRUB_DEFAULT=0 GRUB_DEFAULT=saved GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""
sudo update-grub
vdrpoweroff.sh Skript anpassen
cd /usr/local/bin/ vi vdrpoweroff.sh
#!/bin/bash sudo /usr/sbin/grub-reboot PowerOff sudo /sbin/reboot
visudo anpassen
sudo visudo vdruser ALL=(ALL) NOPASSWD: /usr/local/bin/vdrpoweroff.sh,/sbin/poweroff,/usr/sbin/grub-reboot,/sbin/reboot