Difference between revisions of "Ratpoison on Mythbuntu"

From MythTV Official Wiki
Jump to: navigation, search
(codeboxes)
(Instructions for LightDM and Oneiric)
Line 31: Line 31:
 
  TimedLoginDelay=10
 
  TimedLoginDelay=10
 
  DefaultSession=ratpoison
 
  DefaultSession=ratpoison
 +
</nowiki>
 +
}}
 +
 +
...or if you're on Oneiric and using LightDM:
 +
 +
{{Code box|/etc/lightdm/lightdm.conf|
 +
<nowiki>
 +
[SeatDefaults]
 +
autologin-guest=false
 +
autologin-user=your-mythtv-user
 +
autologin-user-timeout=0
 +
autologin-session=lightdm-autologin
 +
user-session=ratpoison
 +
allow-guest=false
 +
#autologin-user=
 
  </nowiki>
 
  </nowiki>
 
}}
 
}}

Revision as of 20:30, 13 November 2011

Ratpoison is grrreat for HTPC usage, here's how you get it working on Mythbuntu with GDM (will probably work for others, untested)

$ sudo apt-get install ratpoison
$ sudo cp /usr/share/mythbuntu/session.sh /usr/share/mythbuntu/ratpoison-session.sh

then edit /usr/share/mythbuntu/ratpoison-session.sh and change the last line from:

exec startxfce4

to:

exec ratpoison

Next:

$ sudo cp /usr/share/xsessions/mythbuntu.desktop /usr/share/xsessions/ratpoison.desktop

...then change the Exec entry to:

Exec=/usr/share/mythbuntu/ratpoison-session.sh

Then edit /etc/gdm/custom.conf to look something like:


Script.png /etc/gdm/custom.conf

 [daemon]
 AutomaticLoginEnable=true
 AutomaticLogin=your-mythtv-user
 TimedLoginEnable=true
 TimedLogin=your-mythtv-user
 TimedLoginDelay=10
 DefaultSession=ratpoison
 

...or if you're on Oneiric and using LightDM:


Script.png /etc/lightdm/lightdm.conf

 [SeatDefaults]
 autologin-guest=false
 autologin-user=your-mythtv-user
 autologin-user-timeout=0
 autologin-session=lightdm-autologin
 user-session=ratpoison
 allow-guest=false
 #autologin-user=
 

My .ratpoisonrc contains:


Script.png ~/.ratpoisonrc

escape C-r
addhook switchwin banish
exec /usr/bin/xset -dpms >/dev/null
exec /usr/bin/xset s off >/dev/null
exec /usr/bin/mythfrontend --service