Post by geka on Aug 15, 2008 16:01:56 GMT 7
HOW TO Upgrade FORM META MODULE CHROOT and SQUEEZECENTER SOURCES
#20080817
(HOWTO UPGRADE WITH THE META 2.5.01)
(and corrects all bugs around ;-))
umount /raid/slimerserver/home/music
mv /raid/slimserver /raid/slimserver.bak
mv /raid/module/META/script/slimserver-dynamic.sh.disabled /raid/module/META/script/slimserver-dynamic.sh
/raid/module/META/script/slimserver-dynamic.sh
(get last .tgz at www.slimdevices.com/su_downloads.html)
(copy to /raid/iTunes)
cd /raid/slimserver/usr/local
cp /raid/iTunes/squeezecenter-7.0.1.tgz .
chroot /raid/slimserver
cd /usr/share/perl5/File
wget search.cpan.org/src/PEREINAR/File-Which-0.05/Which.pm
cd /usr/local
tar -xvzf squeezecenter-7.0.1.tgz
ln -s squeezecenter-7.0.1 squeezecenter
cd squeezecenter
/usr/local/squeezecenter/Bin/build-perl-modules.pl
exit
cp /etc/resolv.conf /raid/slimserver/etc
nano /raid/slimserver/etc/passwd
(add ->)slimserver:x:101:65534:SqueezeCenter,,,:/usr/share/squeezecenter:/bin/false
chroot /raid/slimserver
cd /usr/local/squeezecenter
chown -R slimserver /usr/local/squeezecenter
chown -R slimserver /usr/local/squeezecenter-7.0.1
mv /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys.orig
ln -s /usr/share/mysql/french/errmsg.sys /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys
exit
nano /raid/slimserver/usr/local/squeezecenter/Slim/Utils/Unicode.pm
(search ->)
$lc_ctype =~ s/gb2312/euc-cn/i;
}
# Setup Encode::Guess
$Encode::Guess::NoUTFAutoGuess = 1;
(end)
(replace with ->)
(search ->)
$lc_ctype =~ s/gb2312/euc-cn/i;
}
# ADD THIS LINE:
$lc_ctype = 'utf8';
# Setup Encode::Guess
$Encode::Guess::NoUTFAutoGuess = 1;
(end)
chroot /raid/slimserver
cd /usr/local/squeezecenter/
./slimserver.pl
(if errors : chown -R slimserver /usr/local/squeezecenter)
(if all works fine: http://thecus:9000)
Ctrl+c
exit
mv /raid/slimserver/scripts/startslim.sh /raid/slimserver/scripts/startslim.sh.orig
nano /raid/slimserver/scripts/startslim.sh
(create raid/slimserver/scripts/startslim.sh)
#!/bin/sh
#
sqexe=/usr/local/squeezecenter/slimserver.pl
if [ ! -s /scripts/startslim.sh ]; then
/usr/sbin/chroot /raid/slimserver /scripts/startslim.sh
exit
fi
# launch SlimServer/SqueezeCenter (need to have all command options on a single line)
$sqexe &
(end)
chmod a+x /raid/slimserver/scripts/startslim.sh
/raid/slimserver/scripts/startslim.sh
(ALL WORKS FINE !!!)
(READY FOR OTHER UPGRADES... ;-))
thanks to getmythe for his works on thecus !
#20080817
(HOWTO UPGRADE WITH THE META 2.5.01)
(and corrects all bugs around ;-))
umount /raid/slimerserver/home/music
mv /raid/slimserver /raid/slimserver.bak
mv /raid/module/META/script/slimserver-dynamic.sh.disabled /raid/module/META/script/slimserver-dynamic.sh
/raid/module/META/script/slimserver-dynamic.sh
(get last .tgz at www.slimdevices.com/su_downloads.html)
(copy to /raid/iTunes)
cd /raid/slimserver/usr/local
cp /raid/iTunes/squeezecenter-7.0.1.tgz .
chroot /raid/slimserver
cd /usr/share/perl5/File
wget search.cpan.org/src/PEREINAR/File-Which-0.05/Which.pm
cd /usr/local
tar -xvzf squeezecenter-7.0.1.tgz
ln -s squeezecenter-7.0.1 squeezecenter
cd squeezecenter
/usr/local/squeezecenter/Bin/build-perl-modules.pl
exit
cp /etc/resolv.conf /raid/slimserver/etc
nano /raid/slimserver/etc/passwd
(add ->)slimserver:x:101:65534:SqueezeCenter,,,:/usr/share/squeezecenter:/bin/false
chroot /raid/slimserver
cd /usr/local/squeezecenter
chown -R slimserver /usr/local/squeezecenter
chown -R slimserver /usr/local/squeezecenter-7.0.1
mv /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys.orig
ln -s /usr/share/mysql/french/errmsg.sys /usr/local/squeezecenter-7.0.1/MySQL/errmsg.sys
exit
nano /raid/slimserver/usr/local/squeezecenter/Slim/Utils/Unicode.pm
(search ->)
$lc_ctype =~ s/gb2312/euc-cn/i;
}
# Setup Encode::Guess
$Encode::Guess::NoUTFAutoGuess = 1;
(end)
(replace with ->)
(search ->)
$lc_ctype =~ s/gb2312/euc-cn/i;
}
# ADD THIS LINE:
$lc_ctype = 'utf8';
# Setup Encode::Guess
$Encode::Guess::NoUTFAutoGuess = 1;
(end)
chroot /raid/slimserver
cd /usr/local/squeezecenter/
./slimserver.pl
(if errors : chown -R slimserver /usr/local/squeezecenter)
(if all works fine: http://thecus:9000)
Ctrl+c
exit
mv /raid/slimserver/scripts/startslim.sh /raid/slimserver/scripts/startslim.sh.orig
nano /raid/slimserver/scripts/startslim.sh
(create raid/slimserver/scripts/startslim.sh)
#!/bin/sh
#
sqexe=/usr/local/squeezecenter/slimserver.pl
if [ ! -s /scripts/startslim.sh ]; then
/usr/sbin/chroot /raid/slimserver /scripts/startslim.sh
exit
fi
# launch SlimServer/SqueezeCenter (need to have all command options on a single line)
$sqexe &
(end)
chmod a+x /raid/slimserver/scripts/startslim.sh
/raid/slimserver/scripts/startslim.sh
(ALL WORKS FINE !!!)
(READY FOR OTHER UPGRADES... ;-))
thanks to getmythe for his works on thecus !