boot into minimal wm & start mythtv?

Matt Price matt.price at utoronto.ca
Thu Jan 5 17:06:22 UTC 2006


On Thu, 2006-01-05 at 11:28 +0800, Ryan Escarez wrote:
> On 1/5/06, Matt Price <matt.price at utoronto.ca> wrote:
> > hi folks,
> >
> > have just successfully set up a mythtv box under breezy (yay!).
> 
> kewl!!!
> 
> > it's very cool, but it's running on a slowish machine that takes ages to
> > boot.  I'm trying to reduce overhead, which so far mostly means
> > booting into fluxbox instead of gnome (other suggestions are HEARTILY
> > welcome!  I'm sure there's lots of stuff in the desktop-oriented main
> > distro that isn't necessary for me).  ultimately I think I'd like to
> > eliminate gdm altogether and just boot into the most minimal wm I can
> > find (any suggestions for something quicker than fluxbox?  even that
> > takes many seconds to load!); but I don't really know how to do that
> > -- possibly add a file in /etc/init.d/ that runs a startx command?
> 
> First: try disabling gdm to prevent loading during startup (this will
> make you prompted in CLI instead of GUI)
> 
> $ sudo update-rc.d -f gdm remove

great, thanks.  nice to finally know the Right Way to deal with init
scripts.  

> 
> Second: try adding entry of startx on your ~/.bashrc (mostly likely at
> the bottom)
> 

I don't think this is what I want to do -- I often need to ssh in to
this account to fiddle with one thing or another, and I don't want it to
keep trying to start an x session on the ssh client...  

Instead, I want to boot straight into the default x session of the
mythtv user.  This can in principle be done with gdm but 

a) I want to avoid the overhead; and 
b) for some reason it's not working for me right now (there is something
strange in gdmsetup -- the mythtv username is not recognized for
Automatic Login).  

so if I diable gdm, I'd like to replace it with some kind of startup
script that launches an xsession. not quite sure how to do it, alas...  


> 
> >
> > In any case I'd like to know whether there's a standard place to put
> > commands I want to be run on start by every xsession , because I would
> > like for the mythtv frontend to start every time I log in.  Does gdm even
> > see .xinitrc any more?  Would that be the place to put such a command?
> >
> 
> you can try adding entry of mythtv on your ~/.fluxbox/startup
> 
> 
> > I appreciate any suggestions, either in terms of further optimization
> > or best-prcitces placement of ocnfiguration data.
> 
> you can check some script that are loading during startup by checking
> /etc/init.d/ and disable some script you don't want to load (make
> _sure_ you know what you're doing)
> 
> Have fun!
> 
> --
> Ryan Escarez
> CEBB F1E4 1E39 EC48 F05D  6B72 9C11 DD88 5E39 E471
> $ gpg --keyserver pgp.mit.edu --recv-keys 0x5E39E471
> main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)
> for(x=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))
> for(i=k=r=0;j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}
> 




More information about the ubuntu-users mailing list