Today I finally got around to updated wordpress for one of the blogs I host. I will probably upgrade the other one tomorrow if all works out on this blog.
pxe boot with ubuntu and dd-wrt
What I am using in my environment.
Ubuntu Gutsy as atftpd server
DD-WRT on a linksys wrt54g as dhcp server
First go to the services tab. Under “Additional DNSMasq Options” add “dhcp-boot=pxelinux.0,m5box,192.168.1.215” where m5box is the name of the tftp server and 192.168.1.215 is the ip of the tftpserver
apt-get install atftpd tftp atftp
sed -e '/USE_INETD=/s/true/false/' -i /etc/default/atftpd
/etc/init.d/atftpd restart
mkdir /tftpboot
cd /tftpboot
wget http://archive.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/netboot/netboot.tar.gz tar zxf netboot.tar.gz
chown -R nobody: .
You should now be able to pxe boot to ubuntu 7.10 and install a system.
Next task is to pxe/nfs diskless boot a mythfrontend box.
Posted in Linux.
rev="post-657" 2 comments
– March 13, 2008
How to setup your own ubuntu mirror using apt-mirror
apt-get install apt-mirror apache2
apt-mirror’s configuration file is /etc/apt/mirror.list. There should already be a default configuration in it
Make changes you would like to have.
If you used the defaults you should be all set. If you moved where you want the files stored make sure you create the correct file structure and it has the correct permissions.
When you are ready and have the time just run the following command.
su – apt-mirror -c apt-mirror
Depending on what changes you made to the mirror.list this may take a very long time. I let it go over night the first time I ran it.
Once it is all finished, if you want to point to this mirror from other boxes on your network then you will have to publish the new files via apache2. Example of mythbuntu truck repo below.
ln -s /jn/apt-mirror/mirror/weeklybuilds.mythbuntu.org/mythbuntu-trunk/ /var/www/mythbuntu-trunk
This line setups a symbolic link in apache2 to the new area created with apt-mirror.
Now just go to the source.list file on all of your boxes and point them to the new mirror instead of the official mirror it currently points to.
My current mirror.list:
############# config ##################
#
# set base_path   /var/spool/apt-mirror
set base_path   /jn/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path $base_path/mirror
# set skel_path   $base_path/skel
# set var_path    $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch x86
set nthreads    20
set tilde 0
#
############# end config ##############
#deb http://us.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
deb http://mirror.cs.umn.edu/ubuntu gutsy main restricted universe multiverse
deb-amd64 http://mirror.cs.umn.edu/ubuntu gutsy main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
deb http://mirror.cs.umn.edu/ubuntu gutsy-updates main restricted universe multiverse
deb-amd64 http://mirror.cs.umn.edu/ubuntu gutsy-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
deb http://mirror.cs.umn.edu/ubuntu gutsy-backports main restricted universe multiverse
deb-amd64 http://mirror.cs.umn.edu/ubuntu gutsy-backports main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
deb http://mirror.cs.umn.edu/ubuntu gutsy-security main restricted universe multiverse
deb-amd64 http://mirror.cs.umn.edu/ubuntu gutsy-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse
deb http://mirror.cs.umn.edu/ubuntu gutsy-proposed main restricted universe multiverse
deb-amd64 http://mirror.cs.umn.edu/ubuntu gutsy-proposed main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse
#deb http://weeklybuilds.mythbuntu.org/mythbuntu-trunk/ubuntu gutsy multiverse universe restricted main
#deb-amd64 http://weeklybuilds.mythbuntu.org/mythbuntu-trunk/ubuntu gutsy multiverse universe restricted main
#deb http://mirror.cs.umn.edu/ubuntu hardy main restricted universe multiverse
#deb-amd64 http://mirror.cs.umn.edu/ubuntu hardy main restricted universe multiverse
clean http://mirror.cs.umn.edu/ubuntu
#clean http://weeklybuilds.mythbuntu.org/mythbuntu-trunk/ubuntu
Posted in Linux.
rev="post-656" No comments
– March 11, 2008
Mythtv 0.21-fixes released
Yesterday 0.21-fixes was released. I checked it out from svn branches and started to build it on my gutsy test box. I had everything up and running by about 11pm. Brought in my recordings, history and recorded tables and went to bed. Today it recorded a few shows without a problem. Commflagging actually went faster on my slow test box compared to my fast masterbackend. I can’t wait for Ubuntu Hardy to come out. I will be rebuilding my frontends and the test backend as soon as it comes out. At that point all of the major bugs if any should be worked out of 0.21-fixes. Hopefully all goes smoothly and there are no big problems with the test box. I have upgraded one of the front ends and pointed it to the test box. All looks good so far.
Posted in Mythtv.
rev="post-655" No comments
– March 9, 2008
Both myth frontends support wakeonlan
It was nice to get wakeonlan working on both frontend boxes. I want to test the backend sometime also. My next step will be to get my frontends to shutdown when not in use and power up when we want to use them. Still thinking about how I am going to do this.
Posted in Linux.
rev="post-652" No comments
– February 19, 2008
Howto setup wakeonlan
Based off of wiki entry at http://www.mythtv.org/wiki/index.php/Wake-on-LAN
First, find out whether your network card supports wol:
# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000001 (1) Link detected: yes
The ‘g’ in Supports Wake-on: pumbg indicates that wake-on-lan by using a ‘magic packet’ is indeed supported. Next, you need to make sure that wake-on-lan support is enabled in the BIOS (although, this does not seem to be necessary for my motherboard). In addition, you need to tell your network card to enable wake-on-lan:
# ethtool -s eth0 wol g
Since after rebooting Wake-on will be reset, you might what to add it to /etc/rc.local:
# echo 'ethtool -s eth0 wol g' >> /etc/rc.local
Make sure this line is before the line that has exit 0
Now turn off you mythbox and send it a ‘magic packet’.
Send the ‘Macic Packet’
You will need a wake-on-lan client to send ‘magic packets’ over your network. First, determine the MAC address of the machine you what to power on:
# ifconfig
Turn off your mythbox and from another computer execute the following command (replacing the MAC address with the one you just found). I used a wake-on-lan client from Sourceforge.
$ wol 00:4F:49:07:0B:5F
If all went well, your mythbox will boot up now!
Posted in Linux.
rev="post-651" No comments
– February 19, 2008
Second Myth Frontend rebuilt and running ubuntu Gutsy
Today I finished up the last of the rebuild of our second mythtv frontend box. Both frontend boxes are now running ubuntu. The master backend is still running fedora core 6. I plan on working on a test rebuild but I am not sure I will get everything up and running until Heron is released. It all depends on the coming weeks. Once that box has been rebuilt I plan on upgrading mythtv. By the time I get that far I am assuming .21 will be release.
Posted in Mythtv.
rev="post-650" No comments
– February 17, 2008
Building Mythtv from svn
I have been holding off building mythtv for a very long time. I have finally come up with a decent build routine and have built my own myth boxes from scratch now. Below are the steps I go through.
Check out what ever version of svn you want to build
Now to make mythtv:
./configure –prefix=/usr –enable-dvb –dvb-path=/usr/include –enable-xvmc –enable-opengl-vsync –enable-proc-opt –enable-libdts –enable-firewire –enable-xvmc-opengl
qmake mythtv.pro
make
make install
Now to make mythplugins:
./configure –prefix=/usr –enable-aac –disable-mytharchive –disable-mythbrowser –disable-mythcontrols
qmake mythplugins.pro
make
make install
Now to make and install myththemes:
./configure –prefix=/usr
make install
Get things setup so the backend starts automatically:
Create user and group mythtv
cp /dvr/scripts/mythtv-backend /etc/init.d
cp /dvr/scripts/mythtv-backend.default /etc/default/mythtv-backend
update-rc.d mythtv-backend defaults
mkdir /var/log/mythtv
make sure /root/.mythtv/mysql.txt is created and correct
/etc/init.d/mythtv-backend start
Posted in Mythtv.
rev="post-649" No comments
– February 4, 2008
How to install a valid cert for apache on ubuntu gutsy from cacert.org
- Create the server key (in this example RSA 1024 bit):
openssl genrsa -out host.key 1024
- Make a certificate out of it (it won’t be signed yet):
openssl req -new -key host.key -out host.csr
- Create your CA certificate (will be valid for a year):
openssl req -new -x509 -days 365 -key host.key -out host.crt
Copy info from host.crt and plug it into website of cacert. It will create text you will put in a .csr file
Create the .csr file in the /etc/apache2/ssl area, in this case I called it my host name m1box.csr.
cp host.key m1box.key
Enable the SSL module
sudo a2enmod ssl
Listen to port 443
echo "Listen 443" | sudo tee -a /etc/apache2/ports.conf
Create and enable the SSL site
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
Modify it so it looks something like this
NameVirtualHost *:443 <virtualhost *:443> ServerAdmin webmaster@localhost SSLEngine On SSLCertificateFile /etc/apache2/ssl/m1box.csr
SSLCertificateKeyFile /etc/apache2/ssl/m1box.key
…and enable it
sudo a2ensite ssl
don’t forget to modify /etc/apache2/sites-available/default
NameVirtualHost *:80 <virtualhost *:80>
Posted in Linux.
rev="post-648" No comments
– January 8, 2008
Mythtv update
It is amazing how having a little daughter makes it very hard to work on a mythtv box. I have been working little by little on an ubuntu box. I think I finally have the box built and have compiled mythtv to my liking. I still have a few things to work out before I hook it to the projector. I hope to update my document on this soon so I can build another 2 or 3 boxes. I think eventually I will have 3 front ends with slave backends just for comm flagging and what not and 1 master backend in the end. Right now I will just have 2 slave backend/frontend boxes and a master backend. The frontends I will work on slowly. Hopefully I will have all of the kinks worked out on those two and then rebuilding the master backend will go very fast. Give me another month or so and I might have all 3 upgraded. Then I will be looking for a very small box to build another frontend. Any recommendations please let me know. I am looking for pico atx or smaller that can do hd through vga or hdmi or dvi.
Posted in Mythtv.
rev="post-647" No comments
– January 4, 2008
Recent Comments