Friday, April 9, 2010

Ubuntu Apt Update With Cron-Apt On Ubuntu

I'm using cron-apt to do automatic apt update on my server. These are very simple steps on how to do it

1. Installing Cron-Apt from repository
# sudo apt-get install cron-apt
2. Edit config file
# sudo vi /etc/cron-apt/config
LOG="/var/log/cron-apt/log"
MAIL="/var/log/cron-apt/mail"
MAILON="always"
3. Make the cron-apt run on 8 am everyday
# sudo vi /etc/cron.d/cron-apt
0 8 * * * root test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
Please notice that this cron-apt is not running apt-get upgrade. But I'd prefer that way, so I can examine the available updates and choose when to run it. You can execute it using this command:
# sudo apt-get dist-upgrade

Tuesday, April 6, 2010

Installing and Running Dynamips on PowerBook G4

This is how I manage to run Dynamips on my PowerBook G4, actually with a little confusion about the version I'm gonna use. It's because dynamips version I install only work with certain version of Dynagen.

  1. Install Macports; run the port -d selfupdate to rsync the archive.
  2. Install libpcap with port as well:
    # sudo port install libpcap
  3. Get the libelf source package, compile it with prefix into /usr/local
    # ./configure --prefix=/usr/local; make; sudo make install
  4. On Dynamips folder from where you unzipped the tarball:
    a. Edit Makefile to use the 'nojit' architecture

              # vi Makefile
                  DYNAMIPS_ARCH?=nojit
                  PCAP_LIB=-L/opt/local/lib -lpcap

  5. Save the Makefile file, and do this:

              # make; sudo make install
--UPDATED--
Recently I just using the blog post above to install and using Dynamips with GNS3 in my MacBook Pro running Snow Leopard (Mac OS X 10.6.x).

Saturday, April 3, 2010

Interlude Of The Life

There's been an empty post for several month, it is due to many circumstances. One of them is that I decide to do so.. not write or post anything in my blog. But now it's time to start again. There's a lot to write. So, if you haven't read anything in my blog, start to do it.. or there would be a lot to catch :)

Friday, December 11, 2009

Synergy between PowerBook G4 and Ubuntu Server 8.04

I've just installing and configuring Synergy (a program that enables you to share one keyboard and one mouse for use in multiple machine) between my Ubuntu Box and Powerbook G4. Actually, it is so simple, all you need to do is have a synergy installed on both machines.

1. Ubuntu:
$ sudo apt-get install synergy
2. Powerbook:
On Powerbook, there is a client called QuickSynergy, but I have a random disconnect problem using it, so I'd rather suggest you to installing Macports, and do this:
$ sudo port install synergy

Choose either one as your server and the other as a client.

*SERVER
In your server, you create synergy.conf, containing this:
section: screens
            ubuntubox:
            powerbook:
end
section: links
            ubuntubox:
                        right = powerbook
            powerbook:
                        left = ubuntubox
end
Then, still in your server:
$ synergys -f --config synergy.conf
And, if it run properly, you can see it in messages that show up, do this:
$ mv synergy.conf ~/.synergy.conf
Then, next time you want to execute your synergy server, just do this:
$ synergys
*CLIENT
And from your client, do this:
$ synergyc -f [your-server-ip-address]
I'm sure you already can have your mouse running around between your two machines :) Enjoy!