Feeds:
Posts
Comments

Archive for August, 2007

IP address

Every house or office is recognized by postal address. When you send a postcard to someone, just write down the address and it will delivered by postman. It is the same with a machine. It has a unique address called IP address (Internet Protocol) address. When your machine send data to other machine, it will set the ip address as the destination.

 

My IP address is 192.168.0

If you see the number on above, there are four parts of number which are separated by 3 dots. Actually, each part of those number are Bytes that is is written into decimal number.

 

Is that what all we need to make our computer talk to the other computer?

If we do that, then it will bet not enough ip addresses for all computers in the world.

Then how is the trick?

All this connected computers are grouped. This group we know as LAN (Local Area Network). Then all these LANs are connected into a big network called Internet. We may say a minimum Internet is a connected two LANs and we are only part of small sub set of the entire network (internet).

 

Communicate to other computer in a different LAN.

When you send data to the other computer, it will check, “Am I in the same local network?” (or group as I said before)? The computer can not do this unless it has another parameter named ‘netmask‘.

Your computer will say:

“If I am in the same network with the destination computer that I want to send my data to, then I can continue the process.”

Mean, “netmask” will be used to set the range of IP address that can be reached.

 

How combination of IP address and Netmask set the range of IP address?

Netmask consist of 4 bytes and written as decimal number, same like ip address.

Netmask: 255.255.255.0

Number 255 will say that your first byte, second byte and third byte of your ip address are the same with other computer.

 

So, the range will be:

Your IP: 192.168.0.1

Netmask: 255.255.255.0

Your range: 192.168.0.0 – 192.168.0.255 (see, that the 3 bytes from left to right are the same).

 

You IP: 192.168.45.125

Netmask: 255.255.0.0

Your range: 192.168.0.0 – 192.168.255.255 (see, that the 2 bytes from left to right are the same).

In a stand alone network, the netmask must be the same and all IP address must be in the same range.

PC-A IP: 192.168.0.10 Netmask: 255.255.255.0

PC-B IP: 192.168.0.2 Netmask: 255.255.255.0

PC-C IP: 192.168.0.200 Netmask: 255.255.255.0

 

If PC-A is not in the same netmask and IP range with PC-B and PC-C then PC-A will see the network in a different way.

PC-A IP: 192.168.2.10 Netmask: 255.255.0.0

PC-B IP: 192.168.0.2 Netmask: 255.255.255.0

PC-C IP: 192.168.0.200 Netmask: 255.255.255.0

PC-A can see PC-B and PC-C but PC-B and PC-C can’t see PC-A.

Mean PC-A can not communicate with PC-B and PC-C.

 

The error message will be:

taufanlubis@zyrex:~$ ping 192.168.0.2

connect: Network is unreachable

 

 

Read Full Post »

Setup ip address and gateway via console

You can setup the ip address and ip gateway through Ubuntu Console. But, this is for temporary. If you unplug your LAN cable then you have to configure it out again. Although, it’s easy if you setup via System > Administration > Network menu, I always do this step. First, I always remember my ip address in my network and second I always remember the command lines.

 

taufanlubis@zyrex:~$ sudo ifconfig eth0 192.168.0.10 netmask 255.255.255.0

taufanlubis@zyrex:~$ sudo route add default gw 192.168.0.1

taufanlubis@zyrex:~$ ifconfig

eth0 Link encap:Ethernet HWaddr 00:90:F5:36:9A:EB

inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:11 Base address:0xa000

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:78 errors:0 dropped:0 overruns:0 frame:0

TX packets:78 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:5976 (5.8 KiB) TX bytes:5976 (5.8 KiB)

taufanlubis@zyrex:~$ route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

 

After you setup the networking through System > Administration > Network menu, will Ubuntu stores the network configuration at file /etc/network/interfaces.

taufanlubis@zyrex:~$ sudo gedit /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth1

iface eth1 inet dhcp

auto eth2

iface eth2 inet dhcp

auto ath0

iface ath0 inet dhcp

auto wlan0

iface wlan0 inet dhcp

auto eth0

Because, I set a temporary configuration, it will not written to this file.

Now, I will setup the configuration through System > Administration > Network menu then open the interfaces file at /etc/network again.

taufanlubis@zyrex:~$ sudo gedit /etc/network/interfaces

auto lo

iface lo inet loopback

iface eth0 inet static

address 192.168.0.10

netmask 255.255.255.0

gateway 192.168.0.1

auto eth1

iface eth1 inet dhcp

auto eth2

iface eth2 inet dhcp

auto ath0

iface ath0 inet dhcp

auto wlan0

iface wlan0 inet dhcp

auto eth0

Now, it’s already there….

Read Full Post »

taufanlubis@zyrex:~/Wallpapper$ ls

Linux Pinguin Wallpers10.jpg Linux Pinguin Wallpers5.jpg

Linux Pinguin Wallpers11.jpg Linux Pinguin Wallpers6.jpg

Linux Pinguin Wallpers1.jpg Linux Pinguin Wallpers7.jpg

Linux Pinguin Wallpers2.jpg Linux Pinguin Wallpers8.jpg

Linux Pinguin Wallpers3.jpg Linux Pinguin Wallpers9.jpg

Linux Pinguin Wallpers4.jpg

taufanlubis@zyrex:~/Wallpapper$

 

taufanlubis@zyrex:~/Wallpapper$ ls -l

total 1128

-rwxrwx— 1 taufanlubis taufanlubis 73369 2007-07-15 11:21 Linux Pinguin Wallpers10.jpg

-rwxrwx— 1 taufanlubis taufanlubis 225368 2007-07-15 11:21 Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 75023 2007-07-15 11:21 Linux Pinguin Wallpers1.jpg

-rwxrwx— 1 taufanlubis taufanlubis 105527 2007-07-15 11:21 Linux Pinguin Wallpers2.jpg

-rwxrwx— 1 taufanlubis taufanlubis 71491 2007-07-15 11:21 Linux Pinguin Wallpers3.jpg

-rwxrwx— 1 taufanlubis taufanlubis 107890 2007-07-15 11:21 Linux Pinguin Wallpers4.jpg

-rwxrwx— 1 taufanlubis taufanlubis 52486 2007-07-15 11:21 Linux Pinguin Wallpers5.jpg

-rwxrwx— 1 taufanlubis taufanlubis 150734 2007-07-15 11:21 Linux Pinguin Wallpers6.jpg

-rwxrwx— 1 taufanlubis taufanlubis 84304 2007-07-15 11:21 Linux Pinguin Wallpers7.jpg

-rwxrwx— 1 taufanlubis taufanlubis 76715 2007-07-15 11:21 Linux Pinguin Wallpers8.jpg

-rwxrwx— 1 taufanlubis taufanlubis 67783 2007-07-15 11:21 Linux Pinguin Wallpers9.jpg

taufanlubis@zyrex:~/Wallpapper$

 

taufanlubis@zyrex:~$ ls /home/taufanlubis/Wallpapper/

Linux Pinguin Wallpers10.jpg Linux Pinguin Wallpers2.jpg Linux Pinguin Wallpers5.jpg Linux Pinguin Wallpers8.jpg

Linux Pinguin Wallpers11.jpg Linux Pinguin Wallpers3.jpg Linux Pinguin Wallpers6.jpg Linux Pinguin Wallpers9.jpg

Linux Pinguin Wallpers1.jpg Linux Pinguin Wallpers4.jpg Linux Pinguin Wallpers7.jpg

taufanlubis@zyrex:~$

taufanlubis@zyrex:~$ ls /home/taufanlubis/Wallpapper/ /etc/apt/

/etc/apt/:

apt.conf.d secring.gpg sources.list~ sources.list.d trustdb.gpg trusted.gpg~

key.gpg.asc sources.list sources.list.bak sources.list.save trusted.gpg

 

/home/taufanlubis/Wallpapper/:

Linux Pinguin Wallpers10.jpg Linux Pinguin Wallpers2.jpg Linux Pinguin Wallpers5.jpg Linux Pinguin Wallpers8.jpg

Linux Pinguin Wallpers11.jpg Linux Pinguin Wallpers3.jpg Linux Pinguin Wallpers6.jpg Linux Pinguin Wallpers9.jpg

Linux Pinguin Wallpers1.jpg Linux Pinguin Wallpers4.jpg Linux Pinguin Wallpers7.jpg

taufanlubis@zyrex:~$

taufanlubis@zyrex:~$ ls -l /home/taufanlubis/Wallpapper/

total 1128

-rwxrwx— 1 taufanlubis taufanlubis 73369 2007-07-15 11:21 Linux Pinguin Wallpers10.jpg

-rwxrwx— 1 taufanlubis taufanlubis 225368 2007-07-15 11:21 Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 75023 2007-07-15 11:21 Linux Pinguin Wallpers1.jpg

-rwxrwx— 1 taufanlubis taufanlubis 105527 2007-07-15 11:21 Linux Pinguin Wallpers2.jpg

-rwxrwx— 1 taufanlubis taufanlubis 71491 2007-07-15 11:21 Linux Pinguin Wallpers3.jpg

-rwxrwx— 1 taufanlubis taufanlubis 107890 2007-07-15 11:21 Linux Pinguin Wallpers4.jpg

-rwxrwx— 1 taufanlubis taufanlubis 52486 2007-07-15 11:21 Linux Pinguin Wallpers5.jpg

-rwxrwx— 1 taufanlubis taufanlubis 150734 2007-07-15 11:21 Linux Pinguin Wallpers6.jpg

-rwxrwx— 1 taufanlubis taufanlubis 84304 2007-07-15 11:21 Linux Pinguin Wallpers7.jpg

-rwxrwx— 1 taufanlubis taufanlubis 76715 2007-07-15 11:21 Linux Pinguin Wallpers8.jpg

-rwxrwx— 1 taufanlubis taufanlubis 67783 2007-07-15 11:21 Linux Pinguin Wallpers9.jpg

taufanlubis@zyrex:~$

 

Reverse

taufanlubis@zyrex:~$ ls -l -r /home/taufanlubis/Wallpapper/

total 1128

-rwxrwx— 1 taufanlubis taufanlubis 67783 2007-07-15 11:21 Linux Pinguin Wallpers9.jpg

-rwxrwx— 1 taufanlubis taufanlubis 76715 2007-07-15 11:21 Linux Pinguin Wallpers8.jpg

-rwxrwx— 1 taufanlubis taufanlubis 84304 2007-07-15 11:21 Linux Pinguin Wallpers7.jpg

-rwxrwx— 1 taufanlubis taufanlubis 150734 2007-07-15 11:21 Linux Pinguin Wallpers6.jpg

-rwxrwx— 1 taufanlubis taufanlubis 52486 2007-07-15 11:21 Linux Pinguin Wallpers5.jpg

-rwxrwx— 1 taufanlubis taufanlubis 107890 2007-07-15 11:21 Linux Pinguin Wallpers4.jpg

-rwxrwx— 1 taufanlubis taufanlubis 71491 2007-07-15 11:21 Linux Pinguin Wallpers3.jpg

-rwxrwx— 1 taufanlubis taufanlubis 105527 2007-07-15 11:21 Linux Pinguin Wallpers2.jpg

-rwxrwx— 1 taufanlubis taufanlubis 75023 2007-07-15 11:21 Linux Pinguin Wallpers1.jpg

-rwxrwx— 1 taufanlubis taufanlubis 225368 2007-07-15 11:21 Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 73369 2007-07-15 11:21 Linux Pinguin Wallpers10.jpg

taufanlubis@zyrex:~$

 

all

taufanlubis@zyrex:~$ ls -la /home/taufanlubis/Wallpapper/

total 1136

drwxrwx— 2 taufanlubis taufanlubis 4096 2007-07-30 22:47 .

drwxr-xr-x 59 taufanlubis taufanlubis 4096 2007-08-24 20:08 ..

-rwxrwx— 1 taufanlubis taufanlubis 73369 2007-07-15 11:21 Linux Pinguin Wallpers10.jpg

-rwxrwx— 1 taufanlubis taufanlubis 225368 2007-07-15 11:21 Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 75023 2007-07-15 11:21 Linux Pinguin Wallpers1.jpg

-rwxrwx— 1 taufanlubis taufanlubis 105527 2007-07-15 11:21 Linux Pinguin Wallpers2.jpg

-rwxrwx— 1 taufanlubis taufanlubis 71491 2007-07-15 11:21 Linux Pinguin Wallpers3.jpg

-rwxrwx— 1 taufanlubis taufanlubis 107890 2007-07-15 11:21 Linux Pinguin Wallpers4.jpg

-rwxrwx— 1 taufanlubis taufanlubis 52486 2007-07-15 11:21 Linux Pinguin Wallpers5.jpg

-rwxrwx— 1 taufanlubis taufanlubis 150734 2007-07-15 11:21 Linux Pinguin Wallpers6.jpg

-rwxrwx— 1 taufanlubis taufanlubis 84304 2007-07-15 11:21 Linux Pinguin Wallpers7.jpg

-rwxrwx— 1 taufanlubis taufanlubis 76715 2007-07-15 11:21 Linux Pinguin Wallpers8.jpg

-rwxrwx— 1 taufanlubis taufanlubis 67783 2007-07-15 11:21 Linux Pinguin Wallpers9.jpg

taufanlubis@zyrex:~$

 

taufanlubis@zyrex:~$ ls -lh /home/taufanlubis/Wallpapper/

total 1.2M

-rwxrwx— 1 taufanlubis taufanlubis 72K 2007-07-15 11:21 Linux Pinguin Wallpers10.jpg

-rwxrwx— 1 taufanlubis taufanlubis 221K 2007-07-15 11:21 Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 74K 2007-07-15 11:21 Linux Pinguin Wallpers1.jpg

-rwxrwx— 1 taufanlubis taufanlubis 104K 2007-07-15 11:21 Linux Pinguin Wallpers2.jpg

-rwxrwx— 1 taufanlubis taufanlubis 70K 2007-07-15 11:21 Linux Pinguin Wallpers3.jpg

-rwxrwx— 1 taufanlubis taufanlubis 106K 2007-07-15 11:21 Linux Pinguin Wallpers4.jpg

-rwxrwx— 1 taufanlubis taufanlubis 52K 2007-07-15 11:21 Linux Pinguin Wallpers5.jpg

-rwxrwx— 1 taufanlubis taufanlubis 148K 2007-07-15 11:21 Linux Pinguin Wallpers6.jpg

-rwxrwx— 1 taufanlubis taufanlubis 83K 2007-07-15 11:21 Linux Pinguin Wallpers7.jpg

-rwxrwx— 1 taufanlubis taufanlubis 75K 2007-07-15 11:21 Linux Pinguin Wallpers8.jpg

-rwxrwx— 1 taufanlubis taufanlubis 67K 2007-07-15 11:21 Linux Pinguin Wallpers9.jpg

taufanlubis@zyrex:~$

taufanlubis@zyrex:~$ ls -lh /home/taufanlubis/Wallpapper/Linux\ Pinguin\ Wallpers1*

-rwxrwx— 1 taufanlubis taufanlubis 72K 2007-07-15 11:21 /home/taufanlubis/Wallpapper/Linux Pinguin Wallpers10.jpg

-rwxrwx— 1 taufanlubis taufanlubis 221K 2007-07-15 11:21 /home/taufanlubis/Wallpapper/Linux Pinguin Wallpers11.jpg

-rwxrwx— 1 taufanlubis taufanlubis 74K 2007-07-15 11:21 /home/taufanlubis/Wallpapper/Linux Pinguin Wallpers1.jpg

Read Full Post »

1. Check your Nokia 6610 configuration with wvdialconf

taufanlubis@zyrex:/etc$ sudo wvdialconf /etc/wvdial.conf

Editing `/etc/wvdial.conf’.

 

Scanning your serial ports for a modem.

 

ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud

ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud

ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.

Modem Port Scan<*1>: 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 — Nokia

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 — ��

ttyACM0<*1>: Speed 460800: AT — ��

ttyACM0<*1>: Speed 460800: AT — ��

ttyACM0<*1>: Max speed is 230400; that should be safe.

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

 

Found an USB modem on /dev/ttyACM0.

/etc/wvdial.conf<Warn>: Can’t open ‘/etc/wvdial.conf’ for reading: No such file or directory

/etc/wvdial.conf<Warn>: …starting with blank configuration.

Modem configuration written to /etc/wvdial.conf.

ttyACM0<Info>: Speed 230400; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

taufanlubis@zyrex:/etc$

 

2. Edit your wvdial.conf file at /etc

taufanlubis@zyrex:/etc$ sudo gedit /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 = 230400

 

The configuration in my laptop is:

[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Init3 = AT+GMM

Init4 = ATI1

Init5 = ATI2

Init6 = ATI3

Modem Type = USB Modem

ISDN = 0

Modem = /dev/ttyACM0

Baud = 56400

 

[Dialer PROXL]

Phone = *99***1#

Username = “xlgprs”

Password = “proxl”

Init7 = ATZ,”202.152.240.50″,”www.xlgrps.net”

 

Where I got the Init1, Init3, Init4, Init5, Init6, Modem Type, ISDN, Baud and Init7 data?

I took it from my nokia configuration in Windows System. Because, nokia still does not provide their software in linux. So, the easy way is just copy it to linux.

 

3. Check the configuration again to make sure everything is right.

taufanlubis@zyrex:~$ cat /etc/wvdial.conf

[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Init3 = AT+GMM

Init4 = ATI1

Init5 = ATI2

Init6 = ATI3

Modem Type = USB Modem

ISDN = 0

Modem = /dev/ttyACM0

Baud = 56400

 

[Dialer PROXL]

Phone = *99***1#

Username = “xlgprs”

Password = “proxl”

Init7 = ATZ,”202.152.240.50″,”www.xlgrps.net

 

4. Set your setting in Nokia 6110 to your grps provider.

In this case, I use PRO XL (indonesia mobile service provider)

Open Menu > Service > Setting > Active service settings > XL GPRS

 

5. Test the connection

Plug in the CA42 cable to your Nokia 6110 and your computer.

taufanlubis@zyrex:~$ sudo wvdial PROXL

Password:

–> WvDial: Internet dialer version 1.56

–> Cannot get information for serial port.

–> Initializing modem.

–> Sending: ATZ

ATZ

OK

–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

OK

–> Sending: AT+GMM

AT+GMM

Nokia 6610

OK

–> Sending: ATI1

ATI1

351350307697080

OK

–> Sending: ATI2

ATI2

V 5.65

19-Nov-04

NHL-4U

(c) Nokia.

OK

–> Sending: ATI3

ATI3

Nokia 6610

OK

–> Sending: ATZ,”202.152.240.50″,”www.xlgrps.net”

ATZ,”202.152.240.50″,”www.xlgrps.net”

OK

–> Modem initialized.

–> Sending: ATDT*99***1#

–> Waiting for carrier.

ATDT*99***1#

CONNECT

~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~

–> Carrier detected. Waiting for prompt.

~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~

–> PPP negotiation detected.

–> Starting pppd at Sat Aug 25 05:25:04 2007

–> Pid of pppd: 5978

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> Using interface ppp0

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> local IP address 172.26.8.127

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> remote IP address 10.6.6.6

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> primary DNS address 202.152.254.245

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> secondary DNS address 202.152.254.246

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

 

6. Test with a ping

taufanlubis@zyrex:~$ ping http://www.yahoo.com

PING http://www.yahoo-ht3.akadns.net (209.131.36.158) 56(84) bytes of data.

If you can see the Yahoo IP, mean, you are now connected to the internet.

Just press Ctrl-C to stop the PING proccess.

Now, you are ready to access……

Happy, trying…..

 

Why still I can not connect to the Internet?

This occurs if you still have the other connection setup in you computer, such as eth0 to LAN.

You may can use ifdown

taufanlubis@zyrex:/etc$ sudo ifdown eth0

It may work but also it may not work. Like me, I still can’t connect to the internet if I just use ifdown.

So, just change the configuration to:

System > Administration > Network > Connections > Wired connection

Set the configuration to ‘Automatic Configuration (DHCP)

 

 

Stop the internet connection

Press Ctrl-C to stop the connection

Caught signal 2: Attempting to exit gracefully…

–> Terminating on signal 15

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> Connect time 3.8 minutes.

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> pppd: �[05][06][08]([04][06][08]�[07][06][08]�[0c][06][08]8

–> [06][08]�

–> [06][08]

–> Disconnecting at Sat Aug 25 05:29:00 2007

taufanlubis@zyrex:~$

Read Full Post »

Working with keyboard in linux

How to check combination key?

taufanlubis@mylaptop:~$ stty -a

speed 38400 baud; rows 24; columns 80; line = 0;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;

werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;

-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts

-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff

-iuclc -ixany -imaxbel iutf8

opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0

isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt

echoctl echoke

 

Change combination code

change <Erase> combination from ‘ctrl+?’ to be ‘ctrl+e’

<Erase> is used to delete 1 character to left.

taufanlubis@mylaptop:~$ stty erase ‘^e’

taufanlubis@zyrex:~$

Example:

taufanlubis@mylaptop:~$ 12345678 then press ‘ctrl+e

taufanlubis@mylaptop:~$ 1234567 1 character is deleted.

 

<Kill> is used to delete all characters

taufanlubis@zyrex:~$ stty kill ‘^k’

taufanlubis@zyrex:~$

taufanlubis@zyrex:~$ sudo apt-get instal then press ‘ctrl+k

taufanlubis@zyrex:~$ all characters are deleted.

 

Read Full Post »

How to change Artwork in Ubuntu?

taufanlubis@zyrex:~$ sudo update-alternatives –config usplash-artwork.so

There are 3 alternatives which provide `usplash-artwork.so’.

Selection Alternative
———————————————–
* 1 /usr/lib/usplash/usplash-theme-ubuntu.so
+ 2 /usr/lib/usplash/edubuntu-splash.so
3 /usr/lib/usplash/usplash-theme-xubuntu.so

Press enter to keep the default[*], or type selection number: 3
Using `/usr/lib/usplash/usplash-theme-xubuntu.so’ to provide `usplash-artwork.so’.

taufanlubis@zyrex:~$ sudo dpkg-reconfigure usplash
update-initramfs: Generating /boot/initrd.img-2.6.20-16-generic

Then, reboot the system.
taufanlubis@zyrex:~$ reboot

Read Full Post »


Forget about typing firewall commands in linux bash.
Firestarter is a modern linux firewall. You can have a firewall and running it in minutes.

A firestarter 1.0 package is now available for Debian mean you can download it for Ubuntu.

Before you start to install it, make sure to enable the ‘universe’ respository in the /etc/apt/sources.list file or in synaptic under Setting>Repositories.

Then type: sudo apt-get install firestarter in your console.

 

Key Features

  • Open Source software, available free of charge

  • Easy to use graphical interface

  • Suitable for use on desktops, servers and gateways

  • Enables Internet connection sharing

  • Allows you to define both inbound and outbound access policy

  • Option to whitelist or blacklist traffic

  • Sets up DHCP for a local network

  • Real time firewall events view

  • View active network connections, including any traffic routed through the firewall

  • Advanced Linux kernel tuning features

source: http://www.fs-security.com/

 

Internet connection sharing setup

Internet connection sharing allows several machines to access the Internet through a single network connection. This method called NAT (Network Address Translation).

If you want to use NAT, you need at least two or more network devices in your machine. If you only have one device you can’t enable the internet connection sharing from Firewall > Run Wizard.

You can enable both the NAT and DHCP via Run Wizard without configure anything.

For outsider, they will see your PCs as a single machine with a single IP address.

 

Firestarter Policy

Inbound traffic Policy -> control incoming traffic from the internet and LAN to the firewall.

Outbound traffic Policy -> control outgoing traffic to the internet from the firewall and any LAN clients.

 

Enabling the DHCP Service

Firestarter does not itself include a DHCP server, it depends on the underlying system to provide this feature. If a DHCP binary is not detected on the system, the DHCP controls will remain inactive. You can install using command: taufanlubis@zyrex:~$ sudo apt-get install dhcp

 

Launching Firestarter minimized to the tray on login

Open session screen:

System > Preferences > Sessions

click Startup Program tab

click New button.

Type in Name textbox firestarter and at command type sudo firestarter –start-hidden, then press Enter.

 

Read Full Post »

When you installed an artwork in Ubuntu, you’ll splash screen will automatically changed.

Ubuntu stores the splash screen file image at directory /usr/share/pixmaps/splash.

Then how could I know which image file is currently used for the splash screen?

After you enter user id and password at a login screen, you will see the splash screen. Remember the image.

Then open directory /usr/share/pixmaps/splash with nautilus (easy way) to see the image file name (the one that you’ve shown after you log on).

To do it, press combination buttons Alt+F2 to open Run Application then type

nautilus /usr/share/pixmaps/splash at text box and press Enter.

You will see all images in this directory. Remember the image file name.

You can close this screen.

 

Press Alt+F2, type xterm to open ubuntu terminal console.

Go to /usr/share/pixmaps/splash directory.

taufanlubis@zyrex:~$ cd /usr/share/pixmaps/splash/

taufanlubis@zyrex:/usr/share/pixmaps/splash$ ls -l

total 200

-rw-r–r– 1 root root 51796 2007-03-30 19:02 edubuntu-splash.png

-rw-r–r– 1 root root 37056 2007-04-11 09:53 gnome-splash.png

-rw-r–r– 1 root root 62058 2007-08-20 08:42 ubuntu-slick.png

-rw-r–r– 1 root root 35159 2007-03-29 17:19 ubuntu-smooth.png

taufanlubis@zyrex:/usr/share/pixmaps/splash$

 

My splash image file is edubuntu-splash.png because I used Edubuntu Artwork.

So, if you want to change the splash screen just replace the edubuntu-splash.png with other image file, but make sure the image file name is the same.

 

Or, just make a link that point to the edubuntu-splash.png.

Make a back up in case you will use this image file again next time.

taufanlubis@zyrex:/usr/share/pixmaps/splash$ sudo mv edubuntu-splash.png edubuntu-splash.png.bak

Password:

taufanlubis@zyrex:/usr/share/pixmaps/splash$ ls -l

total 200

-rw-r–r– 1 root root 51796 2007-03-30 19:02 edubuntu-splash.png.bak

-rw-r–r– 1 root root 37056 2007-04-11 09:53 gnome-splash.png

-rw-r–r– 1 root root 62058 2007-08-20 08:42 ubuntu-slick.png

-rw-r–r– 1 root root 35159 2007-03-29 17:19 ubuntu-smooth.png

taufanlubis@zyrex:/usr/share/pixmaps/splash$

 

If you want to use ubuntu-slick.png for my new splash image then you have to poin the ubuntu-slick.png to edubuntu-splash.png with a link.

taufanlubis@zyrex:/usr/share/pixmaps/splash$ sudo ln -s ubuntu-slick.png edubuntu-splash.png

taufanlubis@zyrex:/usr/share/pixmaps/splash$ ls -l

total 200

lrwxrwxrwx 1 root root 16 2007-08-21 21:46 edubuntu-splash.png -> ubuntu-slick.png

-rw-r–r– 1 root root 51796 2007-03-30 19:02 edubuntu-splash.png.bak

-rw-r–r– 1 root root 37056 2007-04-11 09:53 gnome-splash.png

-rw-r–r– 1 root root 62058 2007-08-20 08:42 ubuntu-slick.png

-rw-r–r– 1 root root 35159 2007-03-29 17:19 ubuntu-smooth.png

taufanlubis@zyrex:/usr/share/pixmaps/splash$

 

Now, next time Ubuntu loads the image file edubuntu-splash.png, it will automatically load ubuntu-slick.png for the replacement.

Reboot your Ubuntu to see you new splash screen.

 

Note:

The summary of all explanations above is:

Just replace the current image file name at /usr/share/pixmaps/splash directory with a new file BUT must be with the same file name or create a link.

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 70 other followers