Connecting to Apple Remote Desktop from Ubuntu

Posted by Michael Mon, 03 Mar 2008 18:36:00 GMT

Apple uses the tightvnc protocol for remote desktop. So install tightvnc:

sudo apt-get install xtightvncviewer

Then update your default programs to use it instead of what’s included in Ubuntu Desktop:

sudo update-alternatives --set vncviewer /usr/bin/xtightvncviewer

That’s it. In ubuntu’s RDP client, select the vnc protocol when connecting to a mac.

Posted in , ,  | no comments | no trackbacks

Yes, we're moving from SVN to Git too

Posted by Michael Wed, 20 Feb 2008 20:45:00 GMT

This is more information on why you’d ever need, but I like to hear Linus talk.

Posted in , ,  | no comments | no trackbacks

Ssh tunnel to remote MySQL

Posted by Michael Thu, 10 Jan 2008 15:52:00 GMT

You’ve got port 3306 (MySQL) firewalled off and you want to use a MySQL GUI every once in a while (or maybe a bunch).

This is a snap with ssh.

On your local Linux/BSD/Mac/Unix machine (works in cygwin too) edit your .ssh/config file and add:

Host somemysqlserver
 Hostname server.mydomain.com #your mySQL server FQDN or IP
 User bob #replace with your valid ssh server username
 LocalForward *:13306 localhost:3306

Now do:
ssh -f -N somemysqlserver

You can now connect to your localhost port 13306 and it will forward to your MySQL server’s port 3306.

Plus, it’s free and probably already installed on your systems.

Need help? support@imapenguin.com

Posted in , , , , ,  | no comments | no trackbacks

Ubuntu 7.10 Laptop Upgrade

Posted by Michael Thu, 18 Oct 2007 09:42:00 GMT

I just upgraded my IBM T41 to Ubuntu 7.10 by doing:

update-manager -c

from the command line. This forces a dist-upgrade check and runs through a pretty slick upgrader. 20 mins and 1 reboot later and she’s back and running without any issues at all.

Very sweet. I love it when things just work.

Posted in ,  | 2 comments | no trackbacks

Ruby makes me smile

Posted by Michael Fri, 06 Jul 2007 11:21:25 GMT

It’s not often that computer work makes me smile. I needed to download 6 files today. This is what made me smile:

[1,2,3,4,5,6].each do |number|
    system("wget http://mirror.stanford.edu/yum/\
        pub/centos/5.0/isos/i386/\
        CentOS-5.0-i386-bin-#{number}of6.iso")
end

Ahh. Ruby, where the simple things are simple.

Posted in , , ,  | no comments | no trackbacks

Upgrading Ubuntu to Feisty

Posted by Michael Tue, 01 May 2007 14:43:29 GMT

Okay okay. About 100 emails on this. It couldn’t be much easier:

sudo sed -e 's/\edgy/ feisty/g' -i /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade

No really, that’s it.

Posted in ,  | no comments | no trackbacks

Zultys Audio Conversion Via Sox

Posted by Michael Mon, 02 Apr 2007 09:35:27 GMT

Zultys auto attendants need an 8bit Mono U-law format wav file. Most recording software will give you a stereo 16bit format at the very least. To convert via sox (available for Unix machines including Macs) simply do:

sox -c 2 Audio.wav -c 1 -r 8000 -U Audio2.wav

Posted in , ,  | no comments | no trackbacks

Rails mongrel cluster with apache 2.2 and mysql on Ubuntu Edgy (6.10)

Posted by Michael Wed, 14 Mar 2007 17:22:00 GMT

We’ve been doing a bunch of server setups for folks in VPS’s. I figure we’d save you the cost of hiring us by posting a quick rundown on an Ubuntu Edgy Rails setup:

sudo bash
apt-get update && apt-get upgrade
apt-get remove apache2
apt-get install libssl-dev
apt-get install zlib1g-dev
dpkg --purge apache apache2
apt-get install build-essential
apt-get install libreadline5-dev
cd /usr/local/src/
wget http://apache.mirror99.com/httpd/httpd-2.2.4.tar.gz

tar -xzvf httpd-2.2.4.tar.gz
cd httpd-2.2.4
./configure --enable-proxy --enable-proxy-balancer\
--enable-proxy-http --enable-rewrite --enable-cache\
--enable-headers --enable-ssl --enable-so
make && make install
/usr/local/apache2/bin/apachectl start

apt-get install mysql-server
/etc/init.d/mysql start

cd /usr/local/src/

wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
wget http://rubyforge.org/frs/download.php/17189/rubygems-0.9.2.zip
apt-get install unzip
unzip rubygems-0.9.2.zip
tar -xzvf ruby-1.8.6.tar.gz
cd ruby-1.8.6
./configure && make && make install

cd ../rubygems-0.9.2

ruby setup.rb

gem update
gem install rails --include-dependencies

apt-get install libmysqlclient15-dev
gem install mysql --include-dependencies
gem install mongrel --include-dependencies
gem install mongrel_cluster --include-dependencies

Then you need some optional housecleaning and deploy your app. We’ll assume you know this part. If not, you can flame me via email and I’ll help you.

  • set a mysql password and add appropiate users and permissions
  • setup iptables
  • add apache conf for mongrel cluster
  • add app required gems as needed
  • use capistrano set up your directories
  • migrate database
  • start clusters
  • apache and mysql to startupscripts
  • add mongrel to startup scripts

Posted in , , , ,  | no comments | no trackbacks

Linux From Scratch on Ubuntu Part 3 - Step By Step

Posted by Michael Thu, 25 Jan 2007 09:35:49 GMT

Okay so the build in Linux From Scratch on Ubuntu Part 2 was simple enough, now all that’s left is a bootloader and a reboot.

Make sure your LFS environment variable is set and mount the running dev filesystem into your LFS build:

sudo mkdir -pv $LFS/{dev,proc,sys}
sudo mount --bind /dev $LFS/dev
sudo mount -vt devpts devpts $LFS/dev/pts
sudo mount -vt tmpfs shm $LFS/dev/shm
sudo mount -vt proc proc $LFS/proc
sudo mount -vt sysfs sysfs $LFS/sys

Now we’ll chroot into the new system:

sudo chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h

and set a root password:

passwd root

The following COULD overwrite your current bootloader, so you MIGHT WANT TO READ THE LFS BOOK FIRST!

grub 
root(hd0,0)
setup (hd0)
quit

Then create your grub.conf:

cat > /boot/grub/menu.lst << "EOF" 
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.2
root (hd0,0)
kernel /boot/lfskernel-2.6.16.27 root=/dev/hda1
EOF

a little standards compliance:

mkdir -v /etc/grub &&
ln -sv /boot/grub/menu.lst /etc/grub

echo 6.2 > /etc/lfs-release

then we’ll reboot:

logout
sudo umount -v $LFS/dev/pts
sudo umount -v $LFS/dev/shm
sudo umount -v $LFS/dev
sudo umount -v $LFS/proc
sudo umount -v $LFS/sys
sudo umount -v $LFS

shutdown -r now

Now, since we created a separate disk for this, simply make the IDE disk the first in the boot order and boot it up. If you did exactly what I did, with the same hardware setup, this should work for you as easily as it did me.

Have fun! Oh and did I mention to READ THE LFS BOOK before you email me questions at mike@imapenguin.com?

In Part 4 we’ll talk about where to go from here.

Posted in , ,  | no comments | no trackbacks

CentOS RPM Dependency Problem

Posted by Michael Thu, 25 Jan 2007 08:22:09 GMT

Here’s an interesting one. This morning I went to upgrade a CentOS 4.3 to 4.4 via yum and got:

Error: Missing Dependency: rpm = 4.3.3-13_nonptl 
is needed by package rpm-build
Error: Missing Dependency: rpm = 4.3.3-13_nonptl 
is needed by package rpm-devel

doing

rpm --erase rpm-build-4.3.3-13_nonptl
rpm --erase rpm-devel-4.3.3-13_nonptl
yum upgrade -y && yum install rpm-build rpm-devel

seemed to clear it up, but I’m not sure how it got that way. Anyway, I figured I publicly post that in case you run into the same issue.

Posted in ,  | no comments | no trackbacks

Older posts: 1 2 3 4