Archive for January, 2008

I’m not an architect and I don’t know any thing about architecture. I found this application when I try find a AutoCAD Viewer in Linux. I’m building a house and my architect emails me the blue print in ‘.dwg’ format. So, here it is.

VariCAcad2007 is CAD program that run on Windows 2000/XP/Vista/Linux (DEB and RPM).

You can download a 30 days trial version or only the viewer. I only need the viewer but I just curious to see the trial package. So, I downloaded both the trial version and the viewer.

Installation (trial version).

taufanlubis@toshiba:~/MyData/New Website Download$ sudo dpkg -i varicad2007-en_3.03-2_i386.deb

Selecting previously deselected package varicad2007-en.

(Reading database … 126129 files and directories currently installed.)

Unpacking varicad2007-en (from varicad2007-en_3.03-2_i386.deb) …

Setting up varicad2007-en (3.03-2) …

taufanlubis@toshiba:~/MyData/New Website Download$




Read Full Post »

MAC or Media Access Control is the other name for Ethernet Card Address. Ethernet was originally developed by Xerox then further developed by Xerox-DEC-Intel. Before the name was Alohanet. The name was taken from Palo Alto Research Center Aloha Network.

Ethernet was named by Robert Metcalfe. Maybe, Ethernet means carry data everywhere throughout the network.

MAC address is the true name for a computer in a LAN. It’s usually expressed with 12 digits hexadecimal number. (Example: 00:0d:88:b3:72:f3)

When you are connected to a LAN, your IP number will be translated to MAC address by a protocol called ARP (Address Resolution Protocol).

Let’s say, you use computer A with IP

Computer B has an IP

When you send a package to computer B, there are few steps run behind the scene. But these steps are based on LAN configurations. I’m sure that almost all LAN use star topology now.

The first generation of star topology use HUB to connect the all computers. Now, we use SWITCH.

Using HUB
When computer A ( sends a package to computer B (, first it will send a broadcast message to all computers in that LAN. Same like, when send a package to Alan, in front of the door, you scream, ‘Hey, who is ALAN?’. If Alan is there, he will say, ‘I’m Alan’ then you deliver the package to him.

When computer A ( sends a package to computer B (, it will send directly to computer B. Because Switch has everybody’s MAC address in its memory. So, you don’t have to scream.

What is the purpose MAC address for Administrator?

If you read my article about DHCP server,



lease {

starts 5 2007/10/05 22:37:02;

ends 5 2007/10/05 23:37:02;

tstp 5 2007/10/05 23:37:02;

binding state free;

hardware ethernet 00:0d:88:b3:72:f3;



You see that IP is only used for MAC 00:0d:88:b3:72:f3. Mean, it won’t work if somebody try to use this IP address with another PC. Off course it’s very easy to hack because in Linux you can change your MAC address easily. If you know, :).

taufanlubis@toshiba:~$ ifconfig | grep Ethernet

eth0 Link encap:Ethernet HWaddr 00:A0:XX:XX:XX:XX

eth1 Link encap:Ethernet HWaddr 00:1B:XX:XX:XX:XX

eth0:avah Link encap:Ethernet HWaddr 00:A0:XX:XX:XX:XX


Read Full Post »

A Domain Name Server (DNS) for NAT networking could not be determined. Please, check your /etc/resolv.conf for nameserver entries. Either add one manually (man resolv.conf) or ensure that your host is correctly connected to an ISP. If you ignore this warning the guest will not be able to perform nameserver lookups and it will probably observe delays if trying so.

This error occurs when your Virtual Box’s guest try access internet but the main Operating System’s DNS hasn’t been set yet. To fix it, just add your Internet Service Provider (ISP)’s IP to your DNS.

In Ubuntu, the DNS file is /etc/resolv.conf.

Open System > Administration > Network > DNS and add your ISP’s IP to ‘DNS server List Box‘ then refresh the connection.



Read Full Post »

Sometimes, when you try to unmount a disk you get an error “Cannot umount volume. An application is preventing the volume ‘…….’ from being umounted.”

For this test, I open a mp3 file then I try to unmount the disk.

taufanlubis@toshiba:/media$ sudo umount Maxtor/

umount: /media/Maxtor: device is busy
umount: /media/Maxtor: device is busy


To determine the cause of the busy device you can use ‘lsof (list of open files)’. An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file.

You have to use ‘lsof‘ as a superuser.

taufanlubis@toshiba:~$ sudo lsof /media/Maxtor

xmms 6731 taufanlubis 8r REG 8,17 3766597 77718 /media/Maxtor/Data Music/My Music-Pop/Alpha Ville- Big In Japan.mp3


Now, I know why I can’t unmount my disk because there is one file that still open.

You apply the same method when you find an error ‘Could not bind to port’. For example, you want to know what applications that currently use port 80.

taufanlubis@toshiba:~$ sudo lsof -i:80

[sudo] password for taufanlubis:
apache2 5649 root 3u IPv4 18026 TCP *:www (LISTEN)
apache2 5739 www-data 3u IPv4 18026 TCP *:www (LISTEN)
apache2 5741 www-data 3u IPv4 18026 TCP *:www (LISTEN)
apache2 5742 www-data 3u IPv4 18026 TCP *:www (LISTEN)
apache2 5743 www-data 3u IPv4 18026 TCP *:www (LISTEN)
apache2 5744 www-data 3u IPv4 18026 TCP *:www (LISTEN)


Read Full Post »

The wireless keyboard and Mouse that I use are BenQ, ‘BenQ IM230 Wireless Media Desktop Companion’ package. It’s designed to work under Windows 2000, ME and XP. The price is at about Rp 290.000 (31 US$).


Package contents:

  • BenQ IM230 wireless keyboard

  • BenQ IM230 wireless optical mouse

  • Wireless receiver

  • AA Alkaline batteries (4 each)

  • User’s guide

Internet Hot Keys:

  • Email: launch default email program

  • My Home: launch default web browser

  • Search: launch the file search or web search window

  • Refresh: refresh current page

  • Next: Go to the next web page

  • Previous: Go to the previous web page

Media Console Hot keys:

  • Volume down

  • Mute

  • Volume Up

  • Previous track

  • Next track

  • Stop

  • Play/Pause

Establishing Wireless Connection with Ubuntu Gutsy

I just can’t believe, because when I tried at the store, the technician need to press the CONNECT button at the receiver, wait until the indicator light start to blink and then he reset both mouse and keyboard within 10 seconds before it can connect.

When I plug the Wireless Receiver’s USB cable into my USB port, Gutsy recognize it in 2 seconds then I can operate both the Keyboard and Mouse directly and smoothly. I still can operate it in 3 meter range.


Read Full Post »

WIFONE is wireless phone for home or office. This phone has been designed to operate on the IS-2000 Air Protocol over the 800MHz band. And the phone has the advanced user interface similar to mobile phone. It has greatly enchanced voice clarity and provides various advanced features.

There are 2 cable connections based on its type, Serial cable and USB cable. I suggest to use USB cable, much faster.

When you connect the phone using USB cable in your computer and you type ‘lsusb’, it will be recognized as LG Electronics Cellphone. Although it’s only packaged with Windows driver, it works smoothly with Ubuntu Gutsy.

It will cost you Rp 6000 per hour (now, may be less in the future) or at about 0.6 cent US$, with 145kbps speed). In Indonesia, it’s provided by Bakrie Telecom.

taufanlubis@toshiba:~$ lsusb

Bus 005 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1004:6000 LG Electronics, Inc. VX4400/VX6000 Cellphone
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000



I’ve been using Windows for 15 years, I was a Visual Basic programmer and moderator for join_the_vb_family@yahoogroups.com, so there is no doubt that I don’t know how to install just a modem.

These are the time comparisons when I tried to install wifone in both Gutsy and XP:

Installation in XP (take at about 10 minutes + reading the manual)

  • Installation with CD driver

  • Plug in the cable (device recognized)

  • Reboot the computer

  • Ready to use!!!


Installation in Gutsy (take at about 3 minutes, some data from the manual and no reboot).

  • Connect the phone to my computer

  • Configure with it with ‘wvdialconfig

  • Edit file ‘/etc/wvdial.conf

  • Ready to use!!!!


But, after the installation, Windows only need 3 seconds to process until I can connect to the internet and Gutsy need at about 10 seconds.


Below are the details

Step 1. Configure with it with ‘wvdialconfig’

taufanlubis@toshiba:~$ sudo wvdialconf

[sudo] password for taufanlubis:
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — OK
ttyACM0<*1>: ATQ0 V1 E1 Z — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<*1>: Modem Identifier: ATI — 115200
ttyACM0<*1>: Speed 4800: AT — OK
ttyACM0<*1>: Speed 9600: AT — OK
ttyACM0<*1>: Speed 19200: AT — OK
ttyACM0<*1>: Speed 38400: AT — OK
ttyACM0<*1>: Speed 57600: AT — OK
ttyACM0<*1>: Speed 115200: AT — OK
ttyACM0<*1>: Speed 230400: AT — OK
ttyACM0<*1>: Speed 460800: AT — OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
Found an USB modem on /dev/ttyACM0.

Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”



Step 2. Edit file ‘/etc/wvdial.conf’

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username = <Your Login Name>
Init1 = ATZ
; Password = <Your Password>
Modem = /dev/ttyACM0
Baud = 460800


Change to:


[Dialer Defaults]
Init1 = ATQ0 V1 E1
Init2 = ATQ0 V1 E1 Z
Init3 = ATQ0 V1 E1 S0=0
Init4 = ATQ0 V1 E1 S0=0 &C1
Init5 = ATQ0 V1 E1 S0=0 &C1 &D2
Init6 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
Modem = /dev/ttyACM0


[Dialer WIFONE]
Username = wifone (data taken from the manual)
Init7 = AT+crm=1;$lgpkt=3 (data taken from the manual)
Password = wifone (data taken from the manual)
Phone = #777 (data taken from the manual)


Step 3. Ready to use.

taufanlubis@toshiba:~$ sudo wvdial WIFONE

taufanlubis@toshiba:~$ sudo wvdial WIFONE

[sudo] password for taufanlubis:
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATQ0 V1 E1
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 Z
WvDial Modem<*1>: ATQ0 V1 E1 Z
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2
WvDial Modem<*1>: OK
WvDial<*1>: Sending: AT+crm=1;$lgpkt=3
WvDial Modem<*1>: AT+crm=1;$lgpkt=3
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT#777
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected. Waiting for prompt.
WvDial<Notice>: Don’t know what to do! Starting pppd and hoping for the best.
WvDial<Notice>: Starting pppd at Sun Jan 6 21:28:18 2008
WvDial<Notice>: Pid of pppd: 7465
WvDial<*1>: Using interface ppp0
WvDial<*1>: pppd: �
WvDial<*1>: pppd: �
WvDial<*1>: pppd: �
WvDial<*1>: pppd: �
WvDial<*1>: pppd: �
WvDial<*1>: pppd: �
WvDial<*1>: local IP address
WvDial<*1>: pppd: �
WvDial<*1>: remote IP address
WvDial<*1>: pppd: �
WvDial<*1>: primary DNS address
WvDial<*1>: pppd: �
WvDial<*1>: secondary DNS address
WvDial<*1>: pppd: �


taufanlubis@toshiba:~$ ping http://www.google.com (for connection testing)

PING http://www.l.google.com ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=232 time=637 ms

Read Full Post »

Common Linux Commands

  • awk – Pattern scanning and processing language

  • bash – GNU Bourne-Again Shell

  • biff – Be notified when mail arrives (currently not installed)

  • cat – Concatenate files and print on the standard output

  • cd – Change directory

  • chage – Change user password expiry information

  • chgrp – Change group ownership

  • chmod – change file access permissions

  • chown – change file owner and group

  • chroot – run command or interactive shell with special root directory

  • chsh – change login shell

  • clear – clear the terminal screen

  • cp – copy files and directoriesman

  • crontab – maintain crontab files for individual users

  • cut – remove sections from each line of files

  • date – print or set the system date and time

  • dd – convert and copy a file

  • df – report file system disk space usage

  • diff – compare files line by line

  • dig – DNS look up utility

  • dmesg – print or control the kernel ring buffer

  • dnsdomainname – show the system’s DNS domain name

  • echo – display a line of text

  • env – run a program in a modified environment

  • false – do nothing, unsuccessfully

  • fdisk – partition table manipulator for linux (be careful when you use it)

  • find – search for files in a directory hierarchy

  • free – display amount of free and used memory in the system

  • ftp – internet file transfer program

  • fuser – identify processes using files or sockets

  • gcc – GNU project C and C++ compiler

  • grep – grep, egrep, fgrep, rgrep – print lines matching a pattern

  • groupadd – create a new group

  • groupdel – delete a group

  • groupmod – modify a group definition on the system

  • groups – print the groups a user is in

  • gunzip – gzip, gunzip, zcat – compress or expand files

  • host – DNS look up utility

  • hostname – show or set the system’s host name

  • id – print user identity

  • ifconfig – configure a network interface

  • info – read info document

  • finger – locate the binary, source, and manual page files for a command

  • kill – send a signal to a process

  • last – last, lastb – show listing of last logged in users

  • lastlog – lastlog – reports the most recent login of all users or of a given user

  • ln – make links between files

  • ls – list directory contents

  • man – an interface to the on-line reference manuals

  • mesg – control write access to your terminal

  • mkdir – make directories

  • more – paging through text one screenful at a time

  • mount – mount a file system

  • mtr – a network diagnostic tool

  • mv – move (rename) files

  • netcat – TCP/IP swiss army knife

  • netstat – Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

  • nice – run a program with modified scheduling priority

  • nslookup – query Internet name servers interactively

  • passwd – change user password

  • ping – send ICMP ECHO_REQUEST to network hosts

  • ps – report a snapshot the current processes

  • pwd – print name of current/working directory

  • rm – remove files or directories

  • rmdir – remove empty directories

  • route – show / manipulate the IP routing table

  • sed – stream editor for filtering and transforming text

  • shutdown – bring the system down

  • sleep – delay for a specified amount of time

  • sort – sort lines of text files

  • ssh – OpenSSH SSH client (remote login program)

  • strace – trace system calls and signals

  • strings – print the strings of printable characters in files

  • su – change user ID or become super-user

  • tail – output the last part of files

  • tar – The GNU version of the tar archiving utility

  • telnet – user interface to the TELNET protocol

  • time – run programs and summarize system resource usage

  • true -do nothing, successfully

  • umount – unmount file systems

  • uname – print system information

  • useradd – create a new user or update default new user information

  • userdel – delete a user account and related files

  • uptime – Tell how long the system has been running

  • vi – a programmers text editor

  • vim – Vi IMproved, a programmers text editor

  • w – Show who is logged on and what they are doing

  • wc – print the number of newlines, words, and bytes in files

  • whatis – display manual page description

  • whereis – locate the binary, source, and manual page files for a command

  • which – locate a command

  • who – show who is logged on

  • whoami – print effective user id

  • write – send a message to another user


Read Full Post »

« Newer Posts - Older Posts »