Archive for the 'Linux' Category

NX Server on Ubuntu Edgy AMD64

November 29, 2006

Since I couldn’t find FreeNX packages for Ubuntu 6.10 AMD64 anywhere, I had to get my hands dirty. These instructions are provided on a “works for me, but may blow up your computer” basis. Read the rest of this entry »

Ubuntu Upgrade

October 30, 2006

I did a clean upgrade to Ubuntu 6.10 (Edgy Eft) over the weekend. It was a trial by fire of my backup system. Overall, the process couldn’t have gone much smoother. I currently rsync my home directory down to my MythTV box, then use duplicity to do a compressed and encrypted archive of the important stuff out to a storage space on the internet just in case my house burns down or something.

After the rebuild, to restore my data, I just rsync’ed it back. Then I grabbed the relevant hidden folders I needed — .mozilla-thunderbird for example — and I was good to go. Way easier than trying to dig up all the data from a Windows recovery. Read the rest of this entry »

MythTV on CentOS part 2

January 3, 2006

I finally got around to rebuilding my FC2 MythTV box with CentOS 4. For the most part, I followed Jarod’s Guide, but I did need to make some adjustments. This is mostly from memory, so let me know if you catch any mistakes.

I’ll follow Jarod’s numbering scheme:

6. Configure 3rd-party package repositories
Your /etc/yum.repos.d/apt.repo should look like this:
name=ATrpms for Enterprise Linux $releasever - $basearch
name=ATrpms for Enterprise Linux $releasever - $basearch
name=ATrpms for Enterprise Linux $releasever - $basearch

freshrpms does not have a EL4 repo so I went with Dag instead. /etc/yum.repos.d/apt.repo should look like this:
name = Dag
enabled = 0
baseurl =$basearch/dag/
gpgcheck = 1

I chose not to enable it and only use it when a package was missing, but you would probably be ok to just enable it. If you want to turn it on temporarily, you can use it like this:
# yum --enablerepo=dag install xine

7. Get and install video card drivers
nVidia drivers worked fine. (current version is 8178)

8. Audio setup
Haven’t gone there yet. OSS works out of the box.

9. Get and install MythTV
No problems.

10. Get and install capture card driver(s)
For ivtv-based cards (PVR-250/350, M179, MPG600, etc):
Atrpms install of IVTV failed for me. Fortunately, installing it from source was a snap.
# yum install kernel-devel ivtv-firmware
$ wget
$ tar xvzf ivtv-0.4.1.tar.gz
$ cd ivtv-0.4.1
$ ./configue --prefix=/usr
$ make
# make install
# cp driver/*.ko /lib/modules/`uname -r`/kernel/drivers/media/video/

Now you should be able to use Jarod’s Guide staring at “Now, edit /etc/modprobe.conf to add ivtv-specific configuration info.”
Note: I did not need the tveeprom or msp3400 lines.

FireWire capture from a supported cable box:
I don’t have a firewire cable box, but I did want firewire support for my dv camcorder. The stock el4 kernel does not have the raw1394 module in it. You can install it with this line:
rpm -ivh

11. Get and install lirc
Haven’t gone there yet.

The rest should be by the book. One other note, el4 suffers from the same faulty urw-fonts package as FC3. This will fix it:
rpm -Uvh --oldpackage

I am testing running an Asterisk@Home install on the same box. I’ll let you know how it goes.

change port for freenx

November 1, 2005

I usually change the default port for ssh when it needs to be accessible from the internet. Only problem is that it breaks FreeNX, which is great for encrypted remote X sessions.

To change the port FreeNX uses to connect to sshd, change this around line 80 in /usr/bin/nxloadconfig

inkscape on fedora core 4

October 27, 2005

I did a yum install inkscape, but everytime I started it I got this error:
inkscape: symbol lookup error: /usr/lib/ undefined symbol: g_build_filenamev

yum install glib2 glib2-devel fixed it. These were downloaded from the yum repo at

mounting windows 2003 share in Linux

October 16, 2005

Tried using the old sudo mount -t smbfs -o username=user,password=pass //server/share /mnt/directory, but I got this error
cli_negprot: SMB signing is mandatory and we have disabled it.
15201: protocol negotiation failed
SMB connection failed

I could have disabled SMB signing on the server, but I came across cifs. It works like a charm:
sudo mount -t cifs -o username=user,password=pass //server/share /mnt/directory

smoothwall flush dns cache

September 26, 2005

At home I use an old computer running Smoothwall for a firewall. It was the cheapest and easiest way for me to connect to my office via IPSec. In hindsight, I probably should have gone with a totally open source project like IPCop. One of these days, I’ll get around to switching it or maybe just running it all from my Linksys WRT54G.

Anyhow, I move a lot of domains around and it is helpful to be able to get dns changes quickly. To do this with my smoothy, or any other Linux-based firewall/DNS Server I imagine, as root:
killall dnsmasq
dnsmasq -r /etc/resolv.conf.dnsmasq

hula progress

August 31, 2005

The Hula groupware server should have some excitement around it pretty soon as an excellent Exchange alternative. It is a bare-bones, down to busines email/calendar/address server with a pretty web interface. The developers have taken a refreshing stance that their software will not be everything to everybody and hence will not suffer from the bloat of trying to be a file manager/project manager/crm/vegetable peeler.

Lately, they have been showing off the new calendar interface which looks pretty slick (although I think it could sacrifice some of the fade-in fade-out eye candy for speed and usability), Jabber capability, and are touting an email interface that will beat gmail at their own game.

kvpnc and pptp

August 28, 2005

KVpnc is a gui frontend to many VPN clients. Right now, I mainly use it for PPTP. It’s prettier and better integrated into the desktop environment than pptpconfig. I couldn’t find any good setup instructions out there so here it goes…

  1. Setup the PoPToP client. The pptpclient website has how-to’s for all the major distro’s including Fedora Core 4.
  2. Install vpnc. In Fedora land, yum install vpnc.
  3. Install kvpnc. It wasn’t in my yum repo list, but the rpm is available on their site. As of this writing, this will get you the current version rpm -Uvh
  4. Start kvpnc. Kvnpc needs to be run as root to access pptp. Sudo-ing won’t suffice unless you have /sbin in your user path.
  5. Profile > New Profile.
    Profile Name: Friendly name for the connection.
    Connection Type: In our case PPTP.
    IPSec Gateway: This is misleading. Type in the IP address of the remote machine here.
    Username and Password: Fill ’em in.
  6. Now click on the Advanced button. Enable Advanced Settings and check Do not use BSD compression. In my experience, PPTP wouldn’t connect with it on.
  7. At this point, you should be able to connect successfully. If not, you may find checking enable debug in Settings > Configure KVpnc > daemons under PPPD helpful. To see the log, go to Profile > Toggle Debug Console

dell CERC SATA 1.5/2s != linux compatible

August 10, 2005

I ordered a Dell PowerEdge 800 in “Red Hat Linux Configuration” with a SATA RAID controller. The drives came configured as JBOD(just a bunch of discs) (no RAID). I reconfigured the controller to run RAID-1, booted to my CentOS 4 disc, but no hard drives were found.

After a little searching, I came across this document. The onboard SATA RAID controller on the PowerEdge 800, SC1425 and 420SC systems only runs in Linux with RAID off. I contacted my sales rep and the best he could offer was a CERC SATA 1.5-6CH, Six Port (342-0056) for $229 + shipping. It would have been nice to know that the onboard RAID controller was not a real RAID controller before I ordered it.

I ended up dropping in a 3ware 8006-2LP card.