[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1531
  • Last Modified:

Changing gui startup on mythbuntu?

When my mythbuntu 8.10 system boots, it's launchs the xfce desktop.

Once xfce is ready, the mythtv frontend get launched.

What i want to do is...

1) leave the backend alone completely!

2) NOT launch the frontend on boot (but i still want it installed so i can manually start it when needed)

3) when xfce desktop has loaded do the following automatically...

sudo xset led 3
sudo xset -dpms
sudo xset s off
sudo xset s noblank
sudo xset s noexpose
sudo xvattr -a XV_COLORKEY -v 66048

then open a terminal, maximise it to fill the desktop and run this command within it...

while true; do df -Th; mythtv-status -c -e --encoder-details; sleep 15; clear; done

I don't know how to change the startup routinue for xfce so some help would be most useful.

Hope that all makes sense, let me know if not.
0
davepusey
Asked:
davepusey
  • 2
2 Solutions
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
I found this post that might help...

MythTV Ubuntu Installation Guide
http://parker1.co.uk/mythtv_ubuntu.php

Scroll down to the 'Run MythTV Frontend Automatically' and it seems all you might have to do is do a 'chmod -x /home/mythtv/.gnomerc' to disable the frontend from starting automatically.
0
 
davepuseyAuthor Commented:
That file does not exist on my system.
0
 
Michael WorshamInfrastructure / Solutions ArchitectCommented:
Since no one else has posted to this question, I will recommend that you might want to check out the Mythbuntu support forums as well:

http://www.mythbuntu.org/support
0
 
coandaCommented:
It's been a while since using Xfce so I don't really remember the location of the startup file (~/.config/autostart maybe) but you could try looking in your ~/.xsession file to see if the front end is launched there. Other places to look would be in rcconf, xfce4-autostart-editor or xfce4-session.

For the commands that you want to run as root, if you find an autostart file put them in there or in your .xsession file, but you would first want to add this line in the /etc/sudoers file:

username ALL=(ALL) NOPASSWD: ALL

It is however a security hole to allow for a user to execute commands as root in a script without a password.

Also, check out aterm for a nice terminal that can be configured to do what you're looking for. To get a full screen aterm running your while loop put the following in a file:

#!/bin/bash
while true; do
  df -Th
  mythtv-status -c -e --encoder-details
  sleep 15
  clear
done

Of course chmod +x on the file and run this command in your .xsession file:

$ aterm -tr +sb -bl -geometry 210x60+0+0 -e ~/myth-stats.sh &

you'll probably have to change the geometry settings to get it to be fullscreen for your monitor, 210x60 worked for me with the default aterm font size on a monitor resolution of 1440x900.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now