Difference between revisions of "User:Trogod/System0Upgrade1010"
(Created page with "I believe I want the 64-bit version curl -O http://osuosl.cdimages.mythbuntu.org/mythbuntu-10.10-desktop-amd64.iso FIXME add info about installation from CD-ROM === mount...") |
|||
Line 1: | Line 1: | ||
+ | This information was moved here from [[User:Trogod/System0Setup]] | ||
+ | |||
I believe I want the 64-bit version | I believe I want the 64-bit version | ||
Latest revision as of 03:56, 19 August 2012
This information was moved here from User:Trogod/System0Setup
I believe I want the 64-bit version
curl -O http://osuosl.cdimages.mythbuntu.org/mythbuntu-10.10-desktop-amd64.iso
FIXME add info about installation from CD-ROM
Contents
mount hard drive
since, during installation, I had disconnected my hard drive (1 TB) that contained all my recordings, now I have to add the mounting info manually. I found these instructions: https://help.ubuntu.com/community/InstallingANewHardDrive which I was happy to have as they are geared to ubuntu. Here's what I did
$ sudo lshw -C disk [sudo] password for xxxx: *-disk description: ATA Disk product: Hitachi HDT72101 vendor: Hitachi physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/sdb version: ST6O serial: STF604MR28XYLP size: 931GiB (1TB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=54c30723-c1d2-4b74-9770-b060636c91d6 *-cdrom description: DVD-RAM writer product: DVD RW AD-7200A vendor: Optiarc physical id: 0.0.0 bus info: scsi@1:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrw logical name: /dev/dvd logical name: /dev/dvdrw logical name: /dev/scd0 logical name: /dev/sr0 version: 1.09 capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram configuration: ansiversion=5 status=nodisc *-disk description: ATA Disk product: SAMSUNG SP0822N physical id: 0.1.0 bus info: scsi@1:0.1.0 logical name: /dev/sda version: WA10 serial: S06QJ10L223809 size: 74GiB (80GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 signature=000830e8
so, yes, my hard drive shows up (the Hitachi)
$ sudo mkdir /storage
I had named it "/storage" before, so I'm sticking with that...
the instructions were to add this line to /etc/fstab
/dev/sdb1 /media/mynewdrive ext3 defaults 0 2
according to 'man fstab', the "0" is a message to 'dump' that this disk should _not_ be dumped and the "2" is a message to 'fsck' that this is not a boot drive
$ cp -pr /etc/fstab fstab-backup $ ls -Ftl /etc/fstab -rw-r--r-- 1 root root 955 2011-03-26 22:04 /etc/fstab $ sudo vi /etc/fstab $ diff fstab-backup /etc/fstab 16a17,19 > # manually added 26 Mar 2011 by TDG > /dev/sdb1 /storage jfs defaults 0 2 > $ sudo mount -a $ ls /storage/ backups mytharchive mythdvd mythtv
yes!
Oh... I just found this (http://ubuntuforums.org/showthread.php?t=1347704)
$ sudo blkid [sudo] password for xxxx: /dev/sda1: UUID="d5b9a6b5-8be1-4e62-bcdb-e30525ed6c7f" TYPE="ext2" /dev/sda2: UUID="25f8fb9e-d2f9-4297-a7ec-7dbff4729eb0" TYPE="swap" /dev/sda3: UUID="92a77430-e47f-4023-85db-c4547dc12515" TYPE="ext3" /dev/sda4: UUID="4c6658bb-2044-4733-aff2-1adf511f834d" TYPE="ext3" /dev/sdb1: UUID="a54e92bb-d3dd-4a7e-aca5-f0b70e930d40" TYPE="jfs"
restore old database
OK, next I want to do Database_Backup_and_Restore#Database_Restore First, I copied my old "backuprc" file
$ cp -pr /storage/backups/4/home/tdg/.mythtv/backuprc ~/.mythtv/. $ ls -a ~/.mythtv/ . .. backuprc config.xml mysql.txt themecache
I downloaded the latest mythconverg_restore.pl script and did
$ ./mythconverg_restore.pl --drop_database --create_database --filename mythconverg-1214-20110326203137.sql.gz
Successfully restored backup.
looks good!
change hostname
also, I must've mistyped my desired hostname, so I changed in manually (I have a bad feeling about this.
$ sudo vi /etc/hostname
permissions
I had problems deleting episodes
$ less /var/log/mythtv/mythbackend.log [SNIP] 2011-03-27 14:14:10.412 Error deleting '/storage/mythtv/recordings/1284_20110326190000.mpg' could not open eno: Permission denied (13)
discovered that I had some permissions issues. Here's a sample of the directory listing:
drwxrwxrwx 2 avahi-autoipd messagebus 24576 2011-03-27 20:12 livetv/ drwxrwxrwx 2 avahi-autoipd messagebus 163840 2011-03-27 20:12 recordings/ drwxrwxrwx 14 avahi-autoipd messagebus 16384 2011-03-03 22:34 videos/ drwxrwxrwx 10 avahi-autoipd messagebus 4096 2010-11-20 09:24 pictures/ drwxrwxrwx 2 avahi-autoipd messagebus 56 2010-01-17 14:05 music/
So, I executed these commands:
$ sudo chown -R mythtv:mythtv livetv/ recordings/ videos/ pictures/ music/ posters/ $ sudo chmod g+rw livetv/ recordings/ videos/ pictures/ music/ posters/
see also http://www.gossamer-threads.com/lists/mythtv/users/449966 'Permission problems'
changes to samba
/storage is the mount point for my drive (1 TB) where I want to keep recordings. I had disconnected it during installation of mythbuntu so that it wouldn't get erased.
$ cd /etc/samba $ sudo cp -pr smb.conf smb.conf.bak1 $ cat /etc/samba/smb.conf | sed -e 's/\/var\/lib/\/storage/g' > ~/smb2 $ sudo cp /home/xxxx/smb2 . $ sudo mv smb2 smb.conf $ diff smb.conf smb.conf.bak1 13c13 < path = /storage/mythtv/recordings --- > path = /var/lib/mythtv/recordings 23c23 < path = /storage/mythtv/videos --- > path = /var/lib/mythtv/videos 33c33 < path = /storage/mythtv/music --- > path = /var/lib/mythtv/music 43c43 < path = /storage/mythtv/pictures --- > path = /var/lib/mythtv/pictures
jamu.log
less -S /var/log/syslog
Apr 6 20:17:02 myth-bob CRON[8149]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Apr 6 20:17:06 myth-bob CRON[8148]: (CRON) error (grandchild #8149 failed with exit status 1)
head -n 1000 /etc/cron.hourly/*
su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MW >> '/var/log/mythtv/jamu.log' 2>&1"
less -S /var/log/mythtv/jamu.log
! Warning: MythTV (episodeimagedir) directory (/home/aa/.mythtv/MythVideo/Screenshots) does not exist. ! Warning: MythTV (fanartdir) directory (/home/aa/.mythtv/MythVideo/Fanart) does not exist. ! Warning: MythTV (bannerdir) directory (/home/aa/.mythtv/MythVideo/Banners) does not exist.
later...
! Error: The (fanartdir) directory (/home/aa/.mythtv/MythVideo/Fanart) must be read/writable for Jamu to function. ! Error: The (bannerdir) directory (/home/aa/.mythtv/MythVideo/Banners) must be read/writable for Jamu to function.
$ chmod a+rwx /home/aa/.mythtv/MythVideo/* $ ls -Ftl /home/aa/.mythtv/MythVideo/ total 12 drwxrwxrwx 2 4096 2011-04-06 21:06 Banners/ drwxrwxrwx 2 4096 2011-04-06 21:06 Fanart/ drwxrwxrwx 2 4096 2011-04-06 21:06 Screenshots/
lircd
migration
I want my remote working, again! When I installed the new mythbuntu, there wasn't an option for HDHomeRun to setup a remote control. I had to do things myself.
$ sudo apt-get install lirc Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: lirc-modules-source lirc-x The following NEW packages will be installed: lirc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 657kB of archives. After this operation, 2,769kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ maverick/main lirc amd64 0.8.7~pre3-0ubuntu1 [657kB] Fetched 657kB in 5s (127kB/s) Preconfiguring packages ... Selecting previously deselected package lirc. (Reading database ... 122738 files and directories currently installed.) Unpacking lirc (from .../lirc_0.8.7~pre3-0ubuntu1_amd64.deb) ... Processing triggers for man-db ... Processing triggers for hal ... Regenerating hal fdi cache ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Setting up lirc (0.8.7~pre3-0ubuntu1) ...
I copied .lirc/, .lircrc from my backup and made the symlink .mythtv/lircrc -> ../.lircrc
$ cat .lircrc #Custom lircrc generated via mythbuntu-lirc-generator #All application specific lircrc files are within ~/.lirc include ~/.lirc/mythtv include ~/.lirc/mplayer include ~/.lirc/xine include ~/.lirc/vlc include ~/.lirc/xmame include ~/.lirc/xmess include ~/.lirc/totem include ~/.lirc/elisa
I looked at /etc/init.d/lirc and /usr/share/doc/lirc/README.Debian and file:///usr/share/doc/lirc/html/configure.html to figure out that I needed to edit /etc/lirc/hardware.conf See also Silicondust HDHomeRun
$ diff --unified=3 /etc/lirc/hardware.conf-old /etc/lirc/hardware.conf --- /etc/lirc/hardware.conf-old 2011-03-28 06:39:38.000000000 -0700 +++ /etc/lirc/hardware.conf 2011-04-06 21:45:13.000000000 -0700 @@ -7,7 +7,8 @@ REMOTE_DEVICE="" REMOTE_SOCKET="" REMOTE_LIRCD_CONF="" -REMOTE_LIRCD_ARGS="" +REMOTE_LIRCD_ARGS="-r -H udp -d 5000" +# the -r is from http://www.mythtv.org/wiki/Hulu_Desktop_Integration #Chosen IR Transmitter TRANSMITTER="None" @@ -19,7 +20,7 @@ TRANSMITTER_LIRCD_ARGS="" #Enable lircd -START_LIRCD="false" +START_LIRCD="true" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false"
To check that things were working, I
- ran sudo /etc/init.d/lirc start
- ran irw
I got this output
% sudo /etc/init.d/lirc start * Loading LIRC modules [ OK ] * Starting remote control daemon(s) : LIRC [ OK ]
now my remote is working correctly with the front end!! :)
I think I want irexec to run
$ less /etc/lirc/lircrc /etc/lirc/lircrc: No such file or directory $ sudo touch /etc/lirc/lircrc $ !603 sudo /etc/init.d/lirc start * Loading LIRC modules [ OK ] * Starting remote control daemon(s) : LIRC [ OK ] * Starting execution daemon: irexec [ OK ]
added irexec to my startup as per https://help.ubuntu.com/community/LIRC#irexec and Setting_A_Button_On_Your_Remote_To_Restart_mythfrontend