Archive for the ‘Linux’ Category

1. A Hostname files is saved at “/etc/sysconfig/network”

2. Open and change the hostname in “network” files like :
[root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
#HOSTNAME=localhost
HOSTNAME=tarigan

3. Save

4. Logout First and Login again
[root@localhost ~]# logout
[root@tarigan ~]# <== DONE

©.dat-2010

Iklan

Type :
1. Find file with name “password” in /etc :
[root@NMS-Triplayplus ~]# vim /etc/password

2. Find your username in this files like :
davida:x:500:500:David Arenta Tarigan:/home/davida:/bin/bash

3. Change that rule to be :
davida:x:0:0:David Arenta Tarigan:/home/davida:/bin/bash

4. Save

5. Testing

©.dat-2010

Follow this Step.

1. Find and Open “resolv.conf” file.
[root@NMS-Triplayplus source]# vim /etc/resolv.conf ::or:: vi /etc/resolv.conf

2. Add nameserver Address
nameserver 10.101.0.2
nameserver 202.51.96.5
nameserver 202.51.96.10

3. Save.

4. Ping google.com
[root@NMS-Triplayplus source]# ping google.com
PING google.com (64.233.181.104) 56(84) bytes of data.
64 bytes from ni-in-f104.1e100.net (64.233.181.104): icmp_seq=1 ttl=52 time=141 ms

5. DONE.

©.dat-2010

Explanation of requirements.

I. A burned copy of the Centos netinstall.iso CD image
II. An active Internet/Intranet connection to FTP Server

Basic description of what will be done and what is expected.

1. Download a copy of the netinstall ISO:
ftp://mirrors.kernel.org/centos/5.2/isos/i386/CentOS-5.2-i386-netinstall.iso

(lebih…)

1. Buatlah file didalam /etc/sysconfig/network-scripts/ dengan nama “route-eth0” dan “route-eth1” jika menggunakan 2 NIC dan seterusnya.
[root@NMS-Triplayplus ~]# vim /etc/sysconfig/network-scripts/route-eth0
[root@NMS-Triplayplus ~]# vim /etc/sysconfig/network-scripts/route-eth1

2. Isikan Routing Table.
Misalkan eth0 pada server saya :
10.0.0.0/8 via 10.106.3.1

Misalkan eth1 pada server saya :
0.0.0.0/0 via 202.51.107.1

(lebih…)