Book Giveaway: Linux Module Programming Guide

Free !

Listen up!

UbuntuGeek is giving away the “Linux Kernel Module Programming Guide” e-book for free! The book contains guides and tutorial on how to write loadable Linux kernel module and drivers.

According to its official description:

“An excellent guide for anyone wishing to get started on kernel module programming. The author takes a hands-on approach starting with writing a small “hello, world” program, and quickly moves from there. Far from a boring text on programming, Linux Kernel Module Programming Guide has a lively style that entertains while it educates”

Linux Kernel Module Programming Guide

Download now: Linux Kernel Module Programming Guide (PDF)

Halloween Specials: Unmetered and Unlimited Web Hosting Space

Its Halloween and Holiday Specials!

I’m giving away two promotion codes for Dreamhost Web Hosting

The first promo-code is MYLINUX, that will get you

  • 1 Unique IP Address
  • 1 Free Domain with Hosting Account
  • 97-day money back guarantee
  • Unlimited Storage, Unmetered Bandwith
  • Shell account (SSH, SFTP, FTP) access
  • Up to $75 Google AdWords credit included!
  • Support PHP5/MySQL5,Ruby,Python
  • All this for only USD 90!

The second promo code is, HALLOWEVE, this one will get you :

  • 1 Free Domain with Hosting Account
  • 97-day money back guarantee
  • Unlimited Storage, Unmetered Bandwith
  • Shell account (SSH, SFTP, FTP) access
  • Up to $75 Google AdWords credit included!
  • Support PHP5/MySQL5,Ruby,Python
  • All this for only USD 75 for a year or 140 for two years registration!

You can redeem your promo codes now at Dreamhost Web Hosting!

p/s: Dreamhosts box runs Debian GNU/Linux operating systems

How to use SCP on Linux or other UNIX-based Environment

SCP is used to copy files securely over network. In order to use SCP, the remote host must be configured to use SSH server (OpenSSH on Linux system, including Ubuntu) and the user must have an account on remote server.

scp syntax is easy,


local:~$ scp <source> <username>@<remote_host>:<destination>

Example for copying local file to the users home directory on remote host, you can replace mypapit with your own username

local:~$ scp id_rsa_.pub mypapit@remote.host:~/

id_rsa.pub 100% 392 0.9KB/s 00:00

local:~$

To list the file on the remote directory, just run

local:~$ ssh mypapit@remote.host ls

temp_file.txt id_rsa.pub

and the content of remote directory will be displayed.

Copying file recursively
To copy file recursively, you only need to add “-r” switch. Add -v for verbose output.

Example:

local:~$ scp -rv ~/* username@remote.host:~/backup

Conclusion
SCP is easy to use especially when you want to copy or upload files from client to server without the use of FTP server. Additionally, the content of the files transfered is encrypted over SSH communication and you get the benefit of simplicity while working on the console.

Ubuntu 10.10 (Maverick) installation: 3rd Party Software and Codecs automatic download feature

Ubuntu 10.10 (Maverick Meerkat) has been released! Hopefully some of you have already downloaded the ISO file and installed it on your computer. I’ve yet to install Ubuntu Maverick Meerkat in my computer because I prefer to use the 10.04 Long term support (LTS) release on my file server.

However, I manage to test out the Maverick Meerkat installation on my virtual machine, where I found two things of note. First is that the installer and installation step has been simplified with fewer dialogs and secondly, the installer presents a choice dialog, which enable users to download 3rd party software and codecs to enhance their experience while using Ubuntu. In my opinion, this is probably one of the best decision made by Canonical, which enables new users to download proprietary codecs without distributing it on the installation CD.

ubuntu maverick installation cd

As long as the users are connected to a high speed internet connection, the installer is able to download 3rd party codecs to enable users to enjoy it.

Solving Slow Firefox Web Browsing and Internet app problem on Ubuntu Karmic 9.10

Though this post might be dated as it concerns about Ubuntu Karmic Koala release (9.10), but nevertheless the problem can be considered as annoying and serious.

Bug Symptom
People who encountered this bug may report that web browsing speed is relatively slow compared to the internet speed as tested with http://speedtest.net, and some application which uses internet is behaving like it was having problems with network connection.

Actual problem
According to Ubuntu bug report #417757, this problem is caused by DNS resolver which attempts to request IPV6 AAAA record first. The problem is noticeable on application which supports IPV6, where the getaddrinfo() will ask for AAAA record which the DNS resolver does not understand. This will cause the DNS resolver to reject the request and caused a time out on the client side, which in turn cause the delay.

For a web browsing application like Mozilla Firefox, an average website would normally take about 4-10 DNS request and hence the effect would be more noticeable on web browser, making it look like the network is having problems with slow internet connections.

Solutions
The solution for this problem is to install a local DNS resolver (sudo apt-get install pdns-resolver) and to edit the “/etc/resolve.conf” file, changing the ‘nameserver’ parameter to 127.0.0.1