Skip to content


Installing APC Battery Backup Software

OK, this is unrelated to MythTV, but I hope that you do have a battery backup for those times that the power company fails you, as well as to provide steady power to your box. The software enables your machine to go through clean shutdown when the power is off for a configurable amount of time. I have an APC Back-UPS ES 500 (usb connected), so I will go through what it takes to install the APC management software, specifically for this model. Your installation should be the same, as long as your UPS is USB connected. If not, please refer to the References section below, and go to the apcupsd website for documentation.Before you even get started, try

cat /proc/bus/usb/devices

If you can’t find your APC device within the list output by this command, stop and connect it (remember, USB). If it is still not there — sorry, I can’t help you! Once you are confident that the APC device is recognized, install the software:

apt-get install apcupsd

Now, edit the apc configuration file at /etc/apcupsd/apcupsd.conf. Scan through this file, making sure that the these particular settings are like this:

UPSCABLE usb
UPSTYPE usb
DEVICE

(yes, make sure that DEVICE is set to nothing). Now edit /etc/default/apcupsd, and set ISCONFIGURED to yes. Start the apcupsd daemon:

/etc/init.d/apcupsd start

Now type

apcaccess status

and if you get a batch of output telling you information about your UPS, you’re done! At this point, you can either stop, or go to the Apcupsd daemon for controlling APC UPSes site (click on documentation) to further fine tune the behavior of your battery backup. I found the defaults fine for me, so I stopped here.

Posted in Linux.


Automatic login for mythtv user on ubuntu

When you boot your machine, it would be nice if it would go straight to MythTV; however, at this point, it boots to the graphical login screen. This is easy to fix; just edit /etc/gdm/gdm.conf, change the AutomaticLoginEnable and AutomaticLogin variables to:

AutomaticLoginEnable=true
AutomaticLogin=mythtv

Or Setup the timed login

Posted in Linux.


compile mythtv .20

Instead of make install, use checkinstall and then you can uninstall the package if you want to later.
sudo apt-get install subversion
sudo apt-get build-dep mythtv
svn co http://svn.mythtv.org/svn/trunk/mythtv
svn co http://svn.mythtv.org/svn/trunk/mythplugins
svn co http://svn.mythtv.org/svn/trunk/myththemes

cd mythtv
./configure –prefix=/usr –enable-xvmc –enable-firewire –enable-dvb –enable-proc-opt
qmake mythtv.pro
make
checkinstall

Other switches

configure –help with show everything you can change

./configure –arch=athlon –enable-xvmc –enable-opengl-vsync –enable-dvb –enable-ivtv –enable-firewire –enable-lirc –enable-xrandr –prefix=/usr –enable-proc-opt –enable-audio-jack –enable-audio-arts –enable-xvmc-opengl

mythplugins:

apt-get build-dep mythplugins

./configure –prefix=/usr –enable-all

cd ~/src/mythtv/mythplugins-0.20a/mythweb
sudo cp -rp . /usr/share/mythtv/mythweb

sudo ln -s /usr/share/mythtv/mythweb /var/www

sudo chgrp www-data /usr/share/mythtv/mythweb/data
sudo chmod 775 /usr/share/mythtv/mythweb/data
sudo chmod +t /usr/share/mythtv/mythweb/data
ls -ld  /usr/share/mythtv/mythweb/data

Posted in Mythtv.


firewire on ubuntu dapper with mythtv

libraw1394 – allows raw access to the firewire port to allow for changing of channels in MythTV

wget http://www.linux1394.org/dl/libraw1394-1.2.0.tar.gz
tar -zxvf libraw1394-1.2.0.tar.gz
cd libraw1394-1.2.0
./configure –prefix=/usr
make
sudo make install

libiec61883 – allows for streaming MPEG data easily over the firewire port for capture

wget http://www.linux1394.org/dl/libiec61883-1.0.0.tar.gz
tar -zxvf libiec61883-1.0.0.tar.gz
cd libiec61883-1.0.0
./configure –prefix=/usr
make
sudo make install

libavc1394 – provides audio video support over the firewire port

wget http://umn.dl.sourceforge.net/sourceforge/libavc1394/libavc1394-0.5.1.tar.gz
tar -zxvf libavc1394-0.5.1.tar.gz
cd libavc1394-0.5.1
./configure –prefix=/usr
make
sudo make install

Posted in Linux.


Install Ubuntu on amd 3500+

Install from cd
Reboot
from gui install ssh
Remove screen saver from desktop login
apt-get install portmap nfs-common
mkdir /share
nano /etc/fstab
hostname:/share /share nfs rsize=8192,wsize=8192,timeo=14,intr
mount -a
cp /etc/apt/sources.list /etc/apt/sources.list.org
cp /share/files/sources.list /etc/apt/sources.list
wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add –
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add –
apt-get update
apt-get upgrade
nano /etc/motd
apt-get install freenx nxagent nxdesktop nxviewer nxclient nxplugin
nxsetup

apt-get install linux-image-k7 kernel-package build-essential

apt-get install mysql-server
apt-get install php5 php5-cli apache2 phpmyadmin postfix php4-snmp php5-snmp
change root password in mysql, add admin account to mysql

download webmin and install
/usr/share/webmin/changepass.pl /etc/webmin root password
reboot
update through gui
apt-get install gparted linux-headers-k7 linux-restricted-modules-k7
apt-get install nvidia-glx
***example /etc/X11/Xorg.conf
Section “Device”
Identifier “NVIDIA Corporation NV18 [GeForce4 MX 4000 AGP 8x]”
Driver “nvidia”
Option “NoLogo”
BusID “PCI:1:0:0?
EndSection

Section “Monitor”
Identifier “CPD-200ES”
Option “DPMS”
HorizSync 30-70
VertRefresh 50-120

nano /var/log/Xorg.0.log
to make sure Xorg is running correctly

Posted in Linux.


How to install nfs clients and server on ubuntu dapper

***nfs server
sudo apt-get install nfs-kernel-server nfs-common portmap
When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap by hand or run:
sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart
Editing /etc/exports
the /etc/exports file is used for creating a share on the NFS server
invoke your favorite text editor or
sudo vi /etc/exports
Here are some quick examples of what you could add to your /etc/exports
For Full Read Write Permissions allowing any computer from 192.168.1.1 through 192.168.1.255
/share 192.168.1.1/24(rw,no_root_squash,async)
sudo /etc/init.d/nfs-kernel-server restart
Also after making changes to /etc/exports in a terminal you must type
sudo exportfs -a
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart

***nfs client
sudo apt-get install portmap nfs-common
sudo mkdir /share
sudo gedit /etc/fstab
add:
hostname:/share /share nfs rsize=8192,wsize=8192,timeo=14,intr
Save the file
sudo mount -a
The directories should be available immediately and after reboot.

Posted in Linux.


How to install mythtv 0.20 on ubuntu dapper

add repos to sources.list
## (Unofficial) MythTV packages for 0.20
deb http://home.eng.iastate.edu/~superm1 dapper main
deb-src http://home.eng.iastate.edu/~superm1 dapper main
apt-get update
apt-get install gsfonts-x11 msttcorefonts xfonts-base
fc-cache -f -v
apt-get install mythtv mythweb mythmusic mythweather mythvideo mythtv-themes mythdvd mythgame mythnews
apt-get install mythgallery transcode xine-ui ogle mplayer xmame-x
change password for user mythtv
login as user mythtv
mythtv-setup
** add all sources, tuners, etc
mythfilldatabase
mythfilldatabase –reset-icon-map all
mythfilldatabase –import-icon-map /dvr/files/charter-digital-iconmap.xml –update-icon-map
nano /etc/mythtv/mythweb-htaccess.conf
enable security for mythweb and change mysql settings
htpasswd -c /var/www/htpasswd admin
add eth ip address to /etc/mysql/my.cnf if you want to have other frontends or slave backends
chown -R root.www-data /var/lib/mythtv/
reboot
go into the frontend and go through settings

Posted in Mythtv.


Howto install ivtv on ubuntu dapper for a 500mce

uname -r
KVER=`uname -r | cut -c 1-6`
apt-get install linux-source-$KVER linux-headers-`uname -r`
tar xvjf /usr/src/linux-source-*.tar.bz2 -C /usr/src/
ln -s /usr/src/linux-source-$KVER /usr/src/linux
ln -s /usr/src/linux /lib/modules/`uname -r`/build
nano -w /usr/src/linux/Makefile
cd /usr/src/linux
cp /boot/config-`uname -r` /usr/src/linux/.config
make oldconfig
make prepare0
make scripts
ls -l /lib/modules/`uname -r`/build
rm /lib/modules/`uname -r`/build
ln -s /usr/src/linux /lib/modules/`uname -r`/build
cd /share/ivtv
wget http://dl.ivtvdriver.org/ivtv/archive/0.4.x/ivtv-0.4.6.tar.gz
tar xvfz ivtv-0.4.6.tar.gz
cd ivtv-0.4.6
make
make install
If you see any line ending with HIDE in the output of make install, you will need to run the command(s) that it suggests.
make install
cp /lib/modules/2.6.15/ivtv/* /lib/modules/2.6.15-27-k7/kernel/drivers/media/video/
depmod -a
wget http://dl.ivtvdriver.org/ivtv/firmware/firmware.tar.gz
tar zxvf firmware.tar.gz
cp v4l-c* /lib/firmware
cd utils/
wget ftp://ftp.shspvr.com/download/wintv-pvr_150-500/inf/pvr_2.0.24.23035.zip
wget ftp://ftp.shspvr.com/download/wintv-pvr_250-350/inf/pvr_1.18.21.22254_inf.zip
unzip pvr_2.0.24.23035.zip
./ivtvfwextract.pl pvr_1.18.21.22254_inf.zip
cp HcwMakoA.ROM /lib/firmware/v4l-cx25840.fw
cp HcwFalcn.rom /lib/firmware/v4l-cx2341x-enc.fw
mv /lib/modules/ivtv-fw-dec.bin /lib/firmware/
mv /lib/modules/ivtv-fw-enc.bin /lib/firmware/
cp ../v4l-cx2341x-init.mpg /lib/firmware/
ln -s /lib/firmware/ivtv-fw-dec.bin /lib/firmware/v4l-cx2341x-dec.fw
ls -ltra /lib/firmware/
echo “ivtv” |sudo tee -a /etc/modules
echo “alias char-major-81-0 ivtv” |sudo tee -a /etc/modprobe.d/aliases
echo “alias char-major-81-1 ivtv” |sudo tee -a /etc/modprobe.d/aliases
depmod
modprobe ivtv
dmesg

Posted in Linux.


Easy way to install all pkgs you want on an ubuntu system

This is a cool process to go through if you are testing ubuntu on a system and have to re-install a bunch of times. Found it at http://www.arsgeek.com/?p=564

dpkg –get-selections | grep -v deinstall > ubuntu-files

So now you’ve got this list and all is well, until you’re Ubuntu install either dies or has to be reinstalled for some reason. Go ahead and do the base install.Once you’ve got Ubuntu back up and running, copy your ubuntu-files back into your home directory and do the following:

sudo apt-get update

sudo apt-get upgrade

dpkg –set-selections < ubuntu-files

Now you’ve told your system what it needs to install, so let’s install it all.

sudo dselect

This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect.

Posted in Linux.


Installing an Ubuntu Dapper Box

Install from cd
Reboot
Remove screen saver from desktop login
cp /etc/apt/sources.list /etc/apt/sources.list.org
cp /share/files/sources.list /etc/apt/sources.list
wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add –
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add –
apt-get update
apt-get upgrade
nano /etc/motd
apt-get install freenx nxagent nxdesktop nxviewer nxclient nxplugin
nxsetup
apt-get install linux-image-k7 kernel-package build-essential
apt-get install mysql-server
apt-get install php5 php5-cli apache2 phpmyadmin postfix php4-snmp
change root password in mysql, add admin account to mysql
apt-get install cacti
apt-get install backuppc
cd /etc/backuppc
htpasswd ./htpasswd admin
cp /share/files/averatec.pl .
cp /share/files/indy.pl .
cp /share/files/hosts .
nano /etc/backuppc/config.pl $Conf{CgiAdminUsers} = ‘backuppc admin’; and $Conf{CompressLevel} = 3;
nano /etc/hosts
download webmin and install
/usr/share/webmin/changepass.pl /etc/webmin root password
reboot
update through gui
apt-get install gparted linux-headers-k7 linux-restricted-modules-k7
apt-get install nvidia-glx
***/etc/X11/Xorg.conf
Section “Device”
Identifier “NVIDIA Corporation NV18 [GeForce4 MX 4000 AGP 8x]”
Driver “nvidia”
Option “NoLogo”
BusID “PCI:1:0:0”
EndSection

Section “Monitor”
Identifier “CPD-200ES”
Option “DPMS”
HorizSync 30-70
VertRefresh 50-120

nano /var/log/Xorg.0.log
to make sure Xorg is running correctly
***ivtv stuff
If you get an error saying that modprobe cannot find the ivtv module, then try:
cp /lib/modules/2.6.15/ivtv/* /lib/modules/2.6.15-26-386/kernel/drivers/media/video/
of course, replace 2.6.15 and 2.6.15-26-386 with the appropriate numbers for your system.

Posted in Linux.