Changing gui startup on mythbuntu?

Posted on 2008-11-10
Last Modified: 2013-12-15
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.
Question by:davepusey
    LVL 29

    Expert Comment

    by:Michael W
    I found this post that might help...

    MythTV Ubuntu Installation Guide

    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.
    LVL 2

    Author Comment

    That file does not exist on my system.
    LVL 29

    Accepted Solution

    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:
    LVL 3

    Assisted Solution

    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:

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

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

    $ aterm -tr +sb -bl -geometry 210x60+0+0 -e ~/ &

    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.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now