Wednesday, February 28, 2007

Processes to restart after BE reboot

What to restart after reboot:

nohup mythbackend > /tmp/mythbackend.log 2>&1 &

Run squid twice:
/usr/sbin/squid -z
/usr/sbin/squid

Samba (should be running from rc.local):
/usr/sbin/smbd -D
/usr/sbin/nmbd -D

Labels: , , ,

Update Fedora for new DST changes (2007 rules)

Good info:
http://grok.lsu.edu/Article.aspx?articleId=2926

tzdata.noarch 2005r-3.fc3 updates-released
Matched from:
tzdata

tzdata.noarch 2004e-2 base
Matched from:
tzdata

tzdata.noarch 2004e-2 installed
Matched from:
tzdata
[root@myth ~]#

Confirm my system needs a tzdata update:

[root@myth ~]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST
isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT
isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT
isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST
isdst=0 gmtoff=-28800

---------------------------------------------------
Apr 1 is not correct for 2007.

---------------------------------------------------

yum update tzdata:

[root@myth ~]# yum update tzdata
Setting up Update Process
Setting up Repo: at-stable
repomd.xml 100% |=========================| 951 B 00:00

Setting up Repo: dag
repomd.xml 100% |=========================| 1.1 kB 00:00

Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00

Setting up Repo: python24
repomd.xml 100% |=========================| 951 B 00:00

Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00

Reading repository metadata in from local files
at-stable : ################################################## 830/830
dag : ################################################## 5455/5455
base : ################################################## 2622/2622
python24 : ################################################## 4/4
updates-re: ################################################## 910/910
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tzdata to pack into transaction set.
tzdata-2005r-3.fc3.noarch 9% |== | 16 kB 00:04 E
tzdata-2005r-3.fc3.noarch 32% |======== | 56 kB 00:02 E
tzdata-2005r-3.fc3.noarch 60% |=============== | 104 kB 00:01 E
tzdata-2005r-3.fc3.noarch 88% |====================== | 152 kB 00:00 E
tzdata-2005r-3.fc3.noarch 100% |=========================| 172 kB 00:01

---> Package tzdata.noarch 0:2005r-3.fc3 set to be updated
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Update: tzdata.noarch 0:2005r-3.fc3
Is this ok [y/N]: y
Downloading Packages:
tzdata-2005r-3.fc3.noarch 5% |= | 24 kB 00:07 E
tzdata-2005r-3.fc3.noarch 20% |===== | 88 kB 00:05 E
tzdata-2005r-3.fc3.noarch 29% |======= | 128 kB 00:04 E
tzdata-2005r-3.fc3.noarch 38% |========= | 168 kB 00:03 E
tzdata-2005r-3.fc3.noarch 47% |=========== | 208 kB 00:03 E
tzdata-2005r-3.fc3.noarch 56% |============== | 248 kB 00:02 E
tzdata-2005r-3.fc3.noarch 68% |================= | 296 kB 00:01 E
tzdata-2005r-3.fc3.noarch 79% |=================== | 344 kB 00:01 E
tzdata-2005r-3.fc3.noarch 90% |====================== | 392 kB 00:00 E
tzdata-2005r-3.fc3.noarch 100% |=========================| 435 kB 00:00 E
tzdata-2005r-3.fc3.noarch 100% |=========================| 435 kB 00:03

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating: tzdata 100 % done 1/2
Completing update for tzdata - 2/2

Updated: tzdata.noarch 0:2005r-3.fc3
Complete!
[root@myth ~]#

---------------------------------------------------

Confirm fix:

[root@myth ~]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST
isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT
isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT
isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST
isdst=0 gmtoff=-28800

Hrm, still not right. Tried a reboot, but didn't help. Then found:

http://kbase.redhat.com/faq/FAQ_85_9951.shtm

The following confirms that localtime hasn't been updated:

[root@myth ~]# ls -l /etc/localtime
-rw-r--r-- 1 root root 1017 May 7 2005 /etc/localtime

Do I have the time/date control panel? (yes)

[root@myth ~]# which system-config-date
/usr/bin/system-config-date

[root@myth ~]# date
Thu Mar 1 00:44:54 PST 2007

Run the control panel gui (must be in X windows to use this tool):

[root@myth ~]# system-config-date

(This runs the timezone control panel in X11/gui. Don't need to change anything, just click the OK button and /etc/localtime will be updated automatically.)

Now /etc/localtime has been updated:

[root@myth ~]# ls -l /etc/localtime
-rw-r--r-- 1 root root 1017 Mar 1 00:45 /etc/localtime

Now zdump confirms the correct (new) DST rules are in effect:

[root@myth ~]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800

Now restart all processes that are date sensitive (mythbackend!)

Done!

Thursday, February 01, 2007

mplayer painting problem

when playing any video file in mplayer, it would not black-out the background/desktop completely. Switching to sw decoding fixed this:

sw mpeg:
mplayer -vo x11

broken one was:
-vo xv