Posts: 9
Joined: Jun 2008
Reputation:
0
Hi, Just installed last week Ubuntu 8.04 Server for the first time and having lots of fun with XBMC. I'm trying to find the best method to get my box to automatically download the daily SVN PPA. Ideally I would like to have a script that would run every morning around 3am, kill the xbmc task, do an apt-get install xbmc, then reboot when done. From what I have been reading the crontab command is what I need to accomplish this but having some trouble getting started. Any help would be appreciated. Thanks!
Posts: 1,741
Joined: Jul 2006
Reputation:
4
Hrm, won't this update and upgrade ALL Ubuntu packages? XBMC will have to be set to run automatically when the machine boots as well. I agree that the reboot is probably not necessary and in my case would cause no end of issues - my video doesn't come up correctly if my EDID data cannot be read from my display. That data can only be read if the panel is on and is an active source for my Linux box. I could tweak around this but it would be painful I think.
Anyway, rebooting without access to a systems monitor that might be off for the night or in use with another source might have poor results when the machine comes up. I'd simply cycle XBMC rather than the whole system and I'd be careful about updating\upgrading all packages <shrug>
Posts: 4,997
Joined: May 2004
Reputation:
12
Since our PPA isn't an official Ubuntu repo I'm fairly certain you have to manually install the packages.
Posts: 967
Joined: Nov 2006
Reputation:
27
If you add the PPA to your sources.list, apt-get upgrade should do it. And yeah, use blubya's -y switch, forgot about that.
I don't know why he wanted to reboot either. Shrug.
Posts: 382
Joined: Aug 2006
Reputation:
0
Using something like this
apt-get upgrade xbmc -y --force-yes
should limit it to only updating xbmc