View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 109 posts ] 
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Wed Jan 03, 2007 5:06 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
The motivation to run this script on R5E50 should be much lower because R5E50 has the latest (or a very recent) 0.20-fixes from SVN. The main reason for this script was to allow D1 users to upgrade so that they could use MythArchive (which is included in R5E50).

There may be some new features that you want in the SVN trunk however.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 11:41 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
Greg Frost wrote:
The motivation to run this script on R5E50 should be much lower because R5E50 has the latest (or a very recent) 0.20-fixes from SVN. The main reason for this script was to allow D1 users to upgrade so that they could use MythArchive (which is included in R5E50).

There may be some new features that you want in the SVN trunk however.


Looks like this script is broken with R5E50. Looking gdm. Not installed anymore. I restarted the script again and it bypassed with just an error message.

./mythsvn.sh: line 91: /etc/init.d/gdm: No such file or directory

I"m not sure what the impact is...

Dwaine


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 11:43 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
nah... The script died again..

make[2]: Leaving directory `/myth/svn/mythplugins/mythzoneminder/mythzmserver'
make[1]: Leaving directory `/myth/svn/mythplugins/mythzoneminder'
./mythsvn.sh: line 102: /etc/init.d/gdm: No such file or directory
/bin/cp: the --reply option is deprecated; use -i or -f instead
root@mythtv:/myth/svn#


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 12:13 am 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
Hey Dwaine, R5E50 has different programs than R5D1 has so not everything in my script will work.
Currently R5E50 doesn't work with my system due to hardware difficulties so it might be a while before I update it.

From what you posted, I think all you need to do now is restart your system and manually update your mythweb.

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 10:10 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
WattoToydarian wrote:
Hey Dwaine, R5E50 has different programs than R5D1 has so not everything in my script will work.
Currently R5E50 doesn't work with my system due to hardware difficulties so it might be a while before I update it.

From what you posted, I think all you need to do now is restart your system and manually update your mythweb.


I just replaced or commented out all the gdm statements. (pkill X11) I also just put -f for the cp statements.

Works well. Did a full run of the script. Compiled the latest head, rebooted and everything worked mint....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 7:22 pm 
Offline
Joined: Thu Dec 01, 2005 12:46 am
Posts: 135
I made the following changes..... Ran the script for head. It ran flawlessly. After the reboot, tested everything. Everything worked just mint.

Replaced the --reply parameter for cp.
Removed the gdm stop and gdm restart statements.
Added /usr/share/mythtv/mythweb/modules/_shared/lang/build_translation.pl
Added a shutdown -r now to the end of the script.

If anyone wants to try the script with R5E50 and get back to this thread, your welcome to.

#!/bin/bash
echo "Welcome to Watto's compile/install MythTV script for Knoppmyth."

# Fatal Error function.
fatal_error () {
echo 1>&2 "Fatal error - $*, exiting."
exit 1
}

# Nice make function.
make_nice () {
/usr/bin/nice -n17 /usr/bin/make "$@"
}

# Athlon64 Compile Fix.
grep 'Athlon(tm) 64' /proc/cpuinfo >/dev/null && EXTRA_OPTS="--arch=athlon"

# User input.
TARGET=trunk # Default to trunk
WAIT_FOR_USER=false
while [ -n "$1" ] ; do
case "$1" in
head)
TARGET=trunk
;;
fixes)
TARGET=branches/release-0-20-fixes
;;
pause)
WAIT_FOR_USER=true
;;
*)
echo
echo "Unknown command line parameter. Usage: mythsvn.sh [head|fixes] [pause]"
echo " Selecting head will compile from the SVN head,"
echo " Selecting fixes will compile the fixes branch,"
echo " Selecting pause will pause before installation."
exit 1
;;
esac
shift
done

# Download SVN.
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythtv
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/mythplugins
/usr/bin/svn co http://svn.mythtv.org/svn/$TARGET/myththemes

# Backup custom menu.
/bin/cp -f /usr/share/mythtv/mainmenu.xml ./
/bin/cp -f /usr/share/mythtv/optical_menu.xml ./

# Configure/make MythTV.
cd mythtv
./configure --disable-distcc --prefix=/usr --enable-proc-opt --enable-dvb --enable-xvmc --enable-xvmc-pro --enable-opengl-vsync $EXTRA_OPTS
export QTDIR=/usr/share/qt3
/usr/bin/qmake mythtv.pro
make_nice || fatal_error "The build failed!"

# Backup Knoppmyth and MythTV.
grep /usr/share/mythtv /myth/backup/backup.list >/dev/null ||
echo ./usr/share/mythtv >> /myth/backup/backup.list
sed -si~ -e 's:^/:./:' /myth/backup/backup.list
/usr/local/bin/mythbackup

# Pause before installation (optional)
[ "$WAIT_FOR_USER" = "true" ] && read -p "Please hit 'Any Key' to continue..."

# Stop all effected programs.
/etc/init.d/lirc stop
/etc/init.d/mythtv-backend stop
/etc/init.d/mysql stop

# Install MythTV and restore custom menus.
make_nice install || fatal_error "failed to install MythTV"
/bin/cp -f ../mainmenu.xml /usr/share/mythtv/
/bin/cp -f ../optical_menu.xml /usr/share/mythtv/

# Configure and Install MythThemes.
cd ../myththemes/
./configure --prefix=/usr $EXTRA_OPTS
/usr/bin/qmake myththemes.pro
make_nice || fatal_error "failed to make MythThemes"
make_nice install || fatal_error "failed to install MythThemes"

# Restart everything.
/etc/init.d/mysql restart
/etc/init.d/mythtv-backend restart
/etc/init.d/lirc restart
(sleep 5 ; /usr/bin/irexec -d /home/mythtv/.lircrc) &

# Configure, make, and install MythPlugins.
cd ../mythplugins/
./configure --prefix=/usr --enable-all $EXTRA_OPTS
/usr/bin/qmake mythplugins.pro
make_nice || fatal_error "failed to build MythPlugins"
make_nice install || fatal_error "failed to install MythPlugins"

# Restart frontend to load plugins and update MythWeb.
/bin/cp -R -f mythweb/* /var/www/mythweb
/usr/share/mythtv/mythweb/modules/_shared/lang/build_translation.pl

# All done!
shutdown -r now
exit 0


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 3:35 pm 
Offline
Joined: Thu Feb 22, 2007 6:56 pm
Posts: 79
I ran this and I'm now only running 20. 20060828-3.

I need the patches/fix for the hdhomerun to be able to use comcast's stripped out channel info. I thought that -fixes had that in there.

Do I have the version I should have or did something go wrong with the build? Do I have to upgrade to SVN in order to get the fix? Are there patches or info on what patches are needs?

Thanks,

D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 3:40 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
I dont know if the fix is in fixes or not, you can try head and see if it works.
If your wondering, I use the head branch all the time.
Good Luck :wink: .

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 4:25 pm 
Offline
Joined: Thu Feb 22, 2007 6:56 pm
Posts: 79
I ran the script for head and when it rebooted its still showing a rev of 0.20.082806-3. The script seemed to run ok. What did I miss?

D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 23, 2007 4:30 pm 
Offline
Joined: Thu Jun 16, 2005 2:37 pm
Posts: 116
Location: St. Louis MO.
Did the version change when you can it the first time? maybe you have to uninstall the mythtv package that knoppmyth comes with first.
However you should be running the head branch right now if you did it right...
Did you follow all of the directions on the first post correctly?

_________________
Backend: HP NetServer LT 6000r U3; 6 700Mhz Xeon CPUs; 3GB PC133 ECC; LSI Ultra160 SCSI 4 18GB 10kRPM striped system; 7200RPM 160GB recordings; Ubuntu-server 7.04; HDHomeRun box.
Frontend: A64 3000+; 512MB DDR; Hauppauge grey; knoppmyth PXE/NFS.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2007 9:18 am 
Offline
Joined: Thu Apr 27, 2006 1:07 am
Posts: 54
I like this idea. I want to modify the last few steps to rather than install it would make a deb package using checkinstall and then un-install the current mythtv package and install the new one. Does anyone have any experience making packages and could comment on the best way to create the deb file. I have had little luck getting checkinstall to work.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2007 8:12 pm 
Offline
Joined: Tue Oct 25, 2005 7:04 am
Posts: 58
Location: Victoria, BC
This worked great - thanks! (R5E50)

I did have one issue, though. The first time I attempted the SVN checkout - I was getting "400" errors. This turned out to be related to the content filter running on my Linux firewall machine (Dans Guardian). Once I disabled it, the checkout worked great.

On my slave backend, I wanted the same version that the master was running, so I changed the script and added the "-r xxxx" directive to the checkout.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 28, 2007 8:35 pm 
Offline
Joined: Wed Apr 27, 2005 11:44 am
Posts: 21
Location: calgary, canada
Okay, I was all ready to go until I read your last comment RobTheGob...

Exactly where did you add the "-r xxxx" directive???

I'm sorry I just must be missing something obvious.
Cheers
MG

_________________
I climb mountains because of gravity.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 7:15 am 
Offline
Joined: Tue Oct 25, 2005 7:04 am
Posts: 58
Location: Victoria, BC
mount'n_goat wrote:
Okay, I was all ready to go until I read your last comment RobTheGob...

Exactly where did you add the "-r xxxx" directive???

I'm sorry I just must be missing something obvious.
Cheers
MG


I added the "-r xxxx" (note that xxxx is the revision number of the repository that I wanted - it was the number that was used on the master) at the point in the script when the "svn co" (subversion checkout) occurred.

Most users probably don't have to worry about this at all - I just wanted to ensure that I didn't pick up different versions on the master and slaves.

I suspect that having "slightly" different numbers wouldn't have affected my setup either - but I didn't want to troubleshoot that next...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 9:15 pm 
Offline
Joined: Wed Apr 27, 2005 11:44 am
Posts: 21
Location: calgary, canada
Oh good, I thought I was missing something completely there... That makes sense.

Thanks for the clarification.
MG

_________________
I climb mountains because of gravity.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 109 posts ] 
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu