Thứ Ba, 18 tháng 6, 2013

Cài đặt máy in Canon LBP trên distro họ Ubuntu

Bài viết này được chọn lọc từ những bài viết trên diễn đàn Ubuntu-vn. Các dòng máy Canon rất được ưa chuộng tại thị trường Việt Nam, điền hình trong đó là dòng máy Canon LBP. Tuy nhiên với Ubuntu thì việc cài đặt loại máy in này lại gây ra nhiều khó khăn vì driver chưa được hỗ trợ đầy đủ. Bài viết này sẽ giúp các bạn xử lý khi rắc rối nảy sinh.Các thao tác trong bài viết đã được kiểm tra và hoạt động tốt trên hệ thống Ubuntu 10.10 với máy in Canon LBP2900.
CÀI MÁY IN Canon LBP 2900 trên Ubuntu 10.04 cả 2 phiên bản 32-bit (i386) và 64-bit (amd64) 

Lưu ý: các máy in Canon LBP 1120, 1210, 2900i, 3000, 3200, 3210, 3300, 3600 và 5000 cũng có thể cài đặt tương tự, chỉ cần thay những chỗ có số "2900" thành số máy in của bạn.
Bước 1: Download driver mới nhất trên trang web của canon:
http://support-au.canon.com.au/contents/AU/EN/0900772408.html
(phiên bản hiện nay là: CAPT_Printer_Driver_for_Linux_V200_uk_EN.tar.gz)

Bước 2: Giải nén rồi cài đặt 2 file "deb" có trong thư mục: CAPT_Printer_Driver_for_Linux_V200_uk_EN → Driver → Debian

Đối với phiên bản 32-bit thì lần lượt nhấp đúp vào 2 file để cài, hoặc mở Terminal, vào thư mục đã nêu ở trên và chạy 2 lệnh:
sudo dpkg -i cndrvcups-common_2.00-2_i386.deb
sudo dpkg -i cndrvcups-capt_2.00-2_i386.deb


Đối với phiên bản 64-bit thì chạy lần lượt 2 lệnh:
sudo dpkg -i --force-architecture cndrvcups-common_2.00-2_i386.deb
sudo dpkg -i --force-architecture cndrvcups-capt_2.00-2_i386.deb


Bước 3: Khởi động lại CUPS:
Trong Terminal chạy lệnh:
sudo /etc/init.d/cups restart

Bước 4: Bật máy in và kiểm tra xem đã nhận được máy in chưa:
Trong Terminal chạy lệnh:
sudo tail /var/log/messages

Nếu ở gần cuối có đoạn dạng như sau là máy in đã được nhận ra: "usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04A9 pid 0×2676"

Bước 5: Đăng ký máy in tại spooler:
Trong Terminal chạy lệnh:
sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

Bước 6: Đăng ký máy in tại CCPD daemon setupfile:
Trong Terminal chạy lệnh:
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

Nếu thành công sẽ có một thông báo dạng như sau:
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
—————————————————————————-
[0] : LBP2900 : usb : //Canon/LBP2900 : /dev/usb/lp0 : New!!


Bước 7: Khởi động CCPD daemon:
Trong Terminal chạy lệnh:
sudo /etc/init.d/ccpd start

Bước 8: Thiết lập cho CCPD daemon tự động khởi động:
- Vào "System -> Preferences -> Startup Applications"
- Tạo một mục mới, đặt tên là: CCPD deamon
- Nhập vào dòng lệnh: sudo /etc/init.d/ccpd start

Bước thêm: Nếu muốn kiểm tra tình trạng máy in:
Trong Terminal, chạy lệnh:
captstatusui -P LBP2900

Lệnh này cũng hay dùng. Ví dụ như khi đang in mà hết giấy, thì ta cần bật cửa sổ trạng thái máy in lên và ra lệnh "resume" để in nốt.

Bước 9: Bây giờ, khi khởi động lại máy tính thì Ubuntu sẽ tự nhận và tạo một máy in mới tên là "LBP2900-2", do vậy ta cần Disable (tắt Enable) máy in đó, rồi Set As Defaults đối với máy in LBP2900

Hình ảnh

Bước thêm: Nên đặt lệnh tắt cho chuỗi lệnh sau:
sudo /etc/init.d/ccpd restart && sudo /etc/init.d/cups restart

Dùng trong trường hợp nếu có lỗi gì đó không in được thì ta lại khởi động lại CCPD daemon và CUPS daemon.

Ghi chú: Để đặt lệnh tắt cho một lệnh hoặc một chuỗi lệnh ta khai báo vào file: ~/.bashrc (Tức là file ẩn tên là ".bashrc" nằm trong thư mục "/home/tên_người_dùng")

Ví dụ: Để đặt lệnh tắt cho 2 lệnh nói ở trên (ở 2 Bước thêm) ta làm như sau:
Trong Terminal chạy lệnh:
gedit ~/.bashrc

Trong cửa sổ trình soạn thảo "gedit" vừa mở ra, ta thêm vào cuối cùng 2 dòng:
alias lbp=’captstatusui -P LBP2900′
alias lbp2900=’sudo /etc/init.d/ccpd restart && sudo /etc/init.d/cups restart’


Ở đây, "lbp" và "lbp2900" là lệnh tắt cho 2 lệnh ta cần.

Thứ Năm, 7 tháng 3, 2013

Remote session was disconnected because there are no Remote Desktop client access licenses available for this computer. Please contact the server administrator

Delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing
on the server/client your are trying to connect from.
(trhe entire key, don’t worry, it will be recreated automatically ).

Chủ Nhật, 2 tháng 12, 2012

Fix error "Can't Update Avira 12"

Go to the host file and add this.


62.146.66.187 personal.avira-update.com personal.avira-cdn.com
80.190.143.232 personal.avira-update.net
80.190.143.229 perspeak.avira-update.com

Chủ Nhật, 7 tháng 10, 2012

Phim tắt vào Bios Sony Vaio, HP, Lenovo, Dell Acer, Asus

SONY VAIO
Vào Bios ------- nhấn F2
Recovery --------nhấn F10

Để boot vào đĩa CD/DVD thì các bạn cho đĩa vào ổ đĩa rồi khởi động lại máy, máy sẽ tự động boot vào ổ đĩa.(vì dòng SONY mạc định là boot ổ CD/DVD đầu tiên rồi).

HP – Compaq

Vào Bios ------nhấn F10
Chọn boot - ---nhấn F9
Recovery--- ---nhấn F11

Lenovo Thinkpad

Vào Bios--------nhấn F1
Chọn boot-------nhấn F12
Recovery--------nhấn phím xanh ThinkVantage
 
Dell
Vào Bios-------nhấn F2
Chọn boot-------nhấn F12
Recovery----------nhấn F8 rồi chọn Repair your Computer

Acer
Boot của Acer là F12 + vào bios F2 (thường chức năng menu boot bị disible phải vào enale mới bấm F12 được)

Asus
Boot của Asus là ESC + vào Bios là F2

ARP Cache

What is the Address Resolution Protocol (ARP)?

ARP or the Address Resolution Protocol is primarily used to connect the OSI Model Network Layer (Layer 3) to the Data Link Layer (Layer 2). For most networks this refers to the linking of IP addresses to MAC addresses in Ethernet addressing. For a computer or other networking capable device to be able to communicate with another, the Ethernet MAC address must be known. If the desired recipient of the transmission is located outside of a LAN, the router or default gateway’s MAC address must be known for the computer to send outgoing messages.

How Does ARP Cache Work?

ARP cache makes use of two types of entry: static and dynamic. The majority of the time, dynamic ARP cache entries are made. For the dynamic scheme, the ARP entry (the MAC address to IP address mapping) is kept on the computer or networked device for a set amount of time (normally for the length of time that it is being used). For static entries, the mapping is manually entered representing the Ethernet MAC to IP address mapping. Due to the management overhead required with static entries, dynamic ARP is primarily used in modern computing equipment.
A dynamic ARP entry is created by using the ARP protocol. Once a website or host is resolved to an IP address using a DNS server, the computer will send an ARP request. The message is sent to the LAN first requesting the Ethernet MAC address for the desired IP address. If located on the local LAN, the computer or server with the IP address will respond with the corresponding MAC address which is entered into the requesting devices ARP cache. The entry will remain until not being used or the ARP cache times out. Routers also maintain their own ARP cache. The ARP cache for a switch will also store the MAC addresses connected to respective ports on the switch.Clear ARP Cache

How Do You Display the ARP Cache?

Display ARP Cache in Windows
Step 1 – Open the Windows command prompt by selecting the “Start” menu button and entering “command” in the search text field.
Step 2 – Type “arp –a” followed by pressing the “Enter” key to view the ARP cache displayed on the DOS console.
C:>arp -a

Interface: 192.168.1.101 — 0×80004
Internet Address Physical Address Type
192.168.1.1 00-0d-6d-bc-a8-6b dynamic
192.168.1.2 00-0e-1c-2b-e5-3c dynamic

Display ARP Cache in Unix
Step 1 – Open the Unix console.
Step 2 – Enter “arp –a” followed by pressing the “enter” or “return” key on your computer’s keyboard and view the ARP cache contents subsequently displayed.

$ arp -a
www.tech-faq.com (192.168.1.2) at 00:34:c4:45:73:21 on fxp0 permanent [ethernet]
fw.tech-faq.com (192.168.1.1) at 00:34:62:a1:c2:00 on fxp0 [ethernet]

What Are the Benefits of ARP Cache?

ARP cache helps save computer and networking resources by saving the MAC to IP address mapping required for network communication. As a result, it is an enabler for the Address Resolution Protocol by further accelerating the methods of locating host hardware addresses when the network layer is known through DNS lookup.

What Are the Symptoms of a Faulty ARP Cache?

With time, ARP cache entries can become stale. It is possible for additional entries to the ARP cache table to be made without removing expired entries from the stored table. Eventually, this will result in errors that can significantly impact computer or network performance. Some of the symptoms seen when the ARP cache requires clearing include web pages that fail to load and the failure to ping various IP addresses.

How to Clear ARP Cache in Windows  XP, Vista, and 2K

Clear ARP Cache from the MS DOS Prompt
Step 1 – Login to your computer with an account that has administrator permissions.
Step 2 – Select the “Start” menu button. On Windows XP and Windows 2K select the “Run” menu option. Then enter “cmd” or “command” in the run text box followed by clicking the “enter” key.  On Windows Vista and newer versions of the OS enter the word “command” in the search text field followed by pressing the “enter” key.
Step 3 – Enter “netsh interface ip delete arpcache” at the command prompt and press the “enter” key.
Step 4 – Wait for approximately 30 seconds to 20 minutes based on the size of the ARP cache table and speed of your computer for the dynamic ARP cache to be cleared.

Clear ARP Cache from Windows Control Panel
In the event you are not able to clear ARP cache from the DOS prompt or just are not comfortable conducting command line tasks, it is possible to clear ARP cache on the Windows OS from Windows Control Panel.
Step 1 – Select the “Start” menu button followed by choosing the “Control Panel” icon.
Step 2 – Depending on the version of Windows OS on the computer and the “view type” selected for Windows Control Panel, you may or may not need to choose the “Performance and Maintenance” menu option.
Step 3 – Choose the “Administrative Tools” menu option followed by the “Computer Management” menu choice.
Step 4 – Select the “Services and Applications” menu button located on the right-hand side of the screen.
Step 5 – Scroll down the menu options until you locate the “Routing and Remote Services” menu option.
Step 6 – Choose the “Routing and Remote Services” menu tab and a dialogue window will then open.
Step 7 – Select the drop-down menu and choose the “Disabled” option followed by clicking the “Ok” menu button to save the settings and clear the ARP cache.
Step 8 – Restart your computer and enabled the “Routing and Remote Services” menu option selected in step 7 to complete clearing the ARP cache.

How to Clear the APR Cache in Windows 7/Server 2003/2008

Step 1 – Select the “Start” menu button and enter “command” in the search text field followed by pressing the “enter” key.
Step 2 – Input the following command at the MS DOS command prompt, “netsh interface ip delete arpcache” and press the “enter” key.
Step 3 – Wait for between 1 – 20 minutes for the ARP cache table to be deleted based on the version of OS installed on the computer. Windows Server 2003/2008 will normally take greater than 10 minutes to complete the task due to storing larger cache tables. Windows 2007 will normally complete the task in under 1-2 minutes.

How to Delete an IP Address from ARP Cache

Step 1 – Open the MS DOS prompt on the computer.
Step 2 – input “arp –d <IP address>” with the brackets not being included on the address to remove from ARP cache. For example, arp –d 10.1.1.2 will remove the 10.1.1.2 entry from the ARP table.
Step 3 – Display the ARP table after deleting an entry by entering, “arp –a” at the MS DOS command prompt.
Step 4 – Add a static entry to the ARP table by entering the following command at the MS DOS command prompt, “arp -s <ip address> <mac address>.” An example of a static ARP entry is:
arp -s 157.55.85.212 00-aa-00-62-c6-09

What Do You Do if Clearing ARP Cache Fails?

Clearing ARP cache on a computer running the Microsoft Windows OS can fail due to bugs or conflicts within the OS. When the cache fails to clear, the OS will provide the following message to the end-user:
Windows could not finish repairing the problem because the following operation could not be completed:
Clearing the ARP cache
For assistance, contact the person who manages your network

The error is typically thrown with the Windows Routing and Remote Services application is enabled or turned on. For most end-users, this service is not required to be enabled and can be turned off to troubleshoot ARP cache clearing issues.
Step 1 – Select the “Start” menu button and click the “Control Panel” icon.
Step 2 – Change the Control Panel view to “Classic” if currently set to “Category View” and select the “Administrative Tools” menu option.
Step 3 – Select the “Computer Management” menu choice and then double click the “Services and Applications” menu option.
Step 4 – Double click the “Services” menu option and scroll to the “Routing and Remote Services” menu label.
Step 5 – Double click the “Routing and Remote Services” menu button and locate the “Startup Type” field.
Step 6 – Change the option selected to “Disabled” and ensure the service status reflects “Stopped.” If it has not ceased to run, click the “Stop” menu button.
Step 7 – Click the “Ok” menu button and retry clearing ARP cache on your computer.

Thứ Ba, 18 tháng 9, 2012

Định dạng USB chuẩn NTFS

Nếu USb là ổ G
CMD
convert g: /fs:ntfs /v

Nếu báo lỗi thì thêm
CMD
chkdsk g: /f
convert g: /fs:ntfs /v

Thứ Bảy, 28 tháng 7, 2012

Linux Networking Setup

Required Information

To enable networking, you must configure your network interface card or cards with an IP address and netmask. The kernel must have support for your cards compiled in, either as modular support or direct support. If you don't have kernel support read the sections about the kernel and how to compile it. To set your cards up, do the following. In my example my network is 192.168.1.0, IP=192.168.1.100, broadcast=192.168.1.255, netmask=255.255.255.0, gateway-192.168.1.1, nameserver=192.168.1.10.
  1. Determine your machines IP address from your network administrator
  2. Your network mask. This determines which portion of the IP address specifies the subnetwork number and which portion specifies the host.
    Class C (most networks) 255.255.255.0
    Class B 255.255.0.0
  3. Your network address which is your IP address bit wise anded with the network mask.
    Ex: IP: 192.168.1.100
    Mask: 255.255.255.0
    Net Addr:: 192.168.1.0
  4. Your broadcast address. Used to broadcast packets to every machine on your subnet.
    Ex: IP: 192.168.1.100
    Mask: 255.255.255.0
    Net Addr: 192.168.1.255
  5. Your gateway address. The address of the machine that is your gateway to the outside world.
    In many cases: Ex: IP: 192.168.1.100 Gateway: 192.168.1.1
  6. Your nameserver address. Translates host names into IP addresses. 192.168.1.10

Configuration tools

There are many network configuration tools today. They are:
netconf
A GUI interactive interface available on Redhat 6.1
linuxconf
A GUI interactive interface available on Redhat 6.1 which includes netconf configuration.
netconfig
A GUI step by step interface
ifconfig
A text based program to configure the network interface. Type "man ifconfig" for info.
These programs will modify values in the following files:
  • /etc/sysconfig/network - Defines your network and some of its characteristics.
  • /etc/HOSTNAME - Shows the host name of this host. IF your name is "myhost" then that is exactly the text this file will contain.
  • /etc/resolv.conf - Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.
  • /etc/host.conf - Specifies the order nameservice looks to resolve names.
  • /etc/hosts - Shows addresses and names of local hosts.
  • /etc/networks - Provides a database of network names with network addresses similar to the /etc/hosts file. This file is not required for operation.
  • /etc/sysconfig/network-scripts/ifcfg-eth* - There is a file for each network interface. This file contains the IP address of the interface and many other setup variables.

Analysis Tools

  • netstat - Displays information about the systems network connections, including port connections, routing tables, and more. The command "netstar -r" will display the routing table.
  • traceroute - This command can be used to determine the network route from your computer to some other computer on your network or the internet. To use it you can type "route IPaddress" of the computer you want to see the route to.
  • nslookup - Used to query DNS servers for information about hosts.
  • arp - This program lets the user read or modify their arp cache.
  • tcpdump - This program allows the user to see TCP traffic on their network.
  • dig(1) - Send domain name query packets to name servers for debugging or testing.

Manual Configuration

You can use one of the above tools or configure the network the old fashioned way as follows:
  1. First to use networking on any permanent basis you should setup the file /etc/sysconfig/network similar to the example shown below.
  2. Assign an ip address with "ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up".
  3. Tell your machine that a hub is ready for information with the command "route add -net 192.168.0.0 netmask 255.255.255.0 eth0"
  4. To contact hosts outside your network if a machine with IP address 192.168.1.1 is the gateway use the command "route add default gw 192.168.1.1 eth0"
  5. If using a dialup connection use the command "route add default ppp0" The word default says if the packet is not for a machine on your local network, send it to the default device.
These settings are not permanent, but go away the next time you boot. They are normally set up in the directory /etc/sysconfig/network-scripts. Add the network interface to the file /etc/sysconfig/network-scripts/ifcfg-eth*. For example the file ifcfg-eth0 if for the first ethernet interface, ifcfg-eth1 for the second, ifcfg-lo is for the local interface. An example file from my system is:
DEVICE="eth0"
IPADDR="192.168.1.100"
NETMASK="255.255.0.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
Unless you know what you're doing it is best to use a network configuration tool. I cannot guarantee the accurateness of how to set these files up on your system.

Configuring an interface for multiple IP addresses

If you want to configure your network card to act as more than one IP address, issue the following command:
ifconfig dummy 192.168.1.102 netmask 255.255.255.0
This uses the dummy system interface capability supported in the kernel to setup another virtual interface which operates at IP address 192.168.1.102. Substitute the IP address that you want your virtual interface to be with an appropriate netmask for your network. To disable this, issue the following command.
ifconfig dummy down
Another way to use multiple IP addresses on one ethernet card is to set up a new file in your /etc/sysconfig/network-scripts directory. Copy your ifcfg-eth0 role to ifcfg-eth0:0. Edit that file and rename the device to "eth0:0" and the IP address to the desired IP address. You may also want to modify BROADCAST, NETWORK, or NETMASK. You can continue adding IP addresses by using :1, :2, etc such as ifcfg-eth0:2.

To make it effective, you must reboot your system or issue the command "/etc/rc.d/init.d/network restart" as root.

Dynamically allocated IP addresses

To get the IP address of a dynamically allocated network interface in a script file enter the following:

dynip=`/sbin/ifconfig | grep -A 4 ppp0 | awk '/inet/ { print $2 } ' | sed -e s/addr://`
Substitute the correct interface that you get your dynamic IP address in for ppp0 in the example above. This script line gets your dynamic IP address for use in a masquerade script. You can use the variable $dynip as in any other configuration. The next time you make a new connection you will need to extract the dynip value again and re-run the masquerade script.

Networking file formats, examples and considerations

Below are listed some more in depth information about the networking files.
  • /etc/sysconfig/network
    The /etc/inittab file contains the entry "si::sysinit:/etc/rc.d/rc.sysinit" which causes the system at startup to run the rc.sysinit script. The rc.sysinit file expects to find the file /etc/sysconfig/network if networking is to be enabled.
    The network file looks like this:
    NETWORKING=yes
    FORWARD_IPV4=false
    HOSTNAME=mymachine.mycompany.com
    DOMAINNAME=mycompany.com
    GATEWAY=192.168.1.1
    GATEWAYDEV=eth0
    Where GATEWAYDEV is the network interface card that is attached to the network the gateway machine is on. The GATEWAY is the actual IP address of the gateway machine.

  • /etc/hosts - Defines local hosts.
    127.0.0.1 localhost localhost.localdomain
    192.168.1.100 mymachine.mycompany.com mymachine
    
  • /etc/services - Internet network services list. It associates port numbers with names of services. The file contains three fields which are name, port/protocol, and aliases with an optional comment.
  • /etc/protocols - Describes DARPA internet protocols available from the TCP/IP subsystem. Maps protocol ID numbers to protocol names. It includes protocol name, number, and aliases. The protocol file on my system:
    # /etc/protocols:
    # $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $
    #
    # Internet (IP) protocols
    #
    # from: @(#)protocols 5.1 (Berkeley) 4/17/89
    #
    # Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992).
    
    ip 0 IP  # internet protocol, pseudo protocol number
    icmp 1 ICMP  # internet control message protocol
    igmp 2 IGMP  # Internet Group Management
    ggp 3 GGP  # gateway-gateway protocol
    ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'')
    st 5 ST  # ST datagram mode
    tcp 6 TCP  # transmission control protocol
    egp 8 EGP  # exterior gateway protocol
    pup 12 PUP  # PARC universal packet protocol
    udp 17 UDP  # user datagram protocol
    hmp 20 HMP  # host monitoring protocol
    xns-idp 22 XNS-IDP  # Xerox NS IDP
    rdp 27 RDP  # "reliable datagram" protocol
    iso-tp4 29 ISO-TP4  # ISO Transport Protocol class 4
    xtp 36 XTP  # Xpress Tranfer Protocol
    ddp 37 DDP  # Datagram Delivery Protocol
    idpr-cmtp 39 IDPR-CMTP # IDPR Control Message Transport
    rspf 73 RSPF  #Radio Shortest Path First.
    vmtp 81 VMTP  # Versatile Message Transport
    ospf 89 OSPFIGP  # Open Shortest Path First IGP
    ipip 94 IPIP  # Yet Another IP encapsulation
    encap 98 ENCAP  # Yet Another IP encapsulation
    
  • /etc/named.conf - Used for domain name service to configure named. Other files used are dependent on this file. This file is explained further in the DNS section
  • /etc/resolv.conf - Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.
    domain mycompany.com
    search mycompany.com mynet.net
    nameserver 192.168.1.100
    nameserver 192.168.199.1
    nameserver 192.168.1.10
    
    The third line specifies that DNS should be tried on my machine first then use the normal nameserver on the fifth line. The fourth line specifies that my machine is running nameservices on another network which is using interface 192.168.199.1. This assumes the nameserver is set up on my machine which is explained in another section.
  • /etc/host.conf - Specifies the order nameservice looks to resolve names. An example file:
     order hosts, bind
     multi on
     nospoof on
    
    The order specifies that when resolving names to first look in the /etc/host file, then use BIND8 (DNS) to resolve the name. The line "multi on" specifies that all valid addresses for a host found in the hosts file should be returned.
The files in /etc/sysconfig/network-scripts control your network interfaces. The network interface file is described above in the section "Manual Configuration". If you want or need more in depth knowledge about how these files are used, you will need to read the document "How Linux Works CTDP Guide" or "The CTDP Linux Startup Manual". Otherwise you will need to analyze the system startup scripts which is no small task.

Older X windows configuration

In Xwindows a working configuration is set up as follows:
NAMES:
hostname: mymachine.mycompany.com
Domain: mycompany.com
Nameservers: 192.168.1.10
HOSTS:
IP - 192.168.1.100
Name - mymachine.mycompany.com
INTERFACES:
Interface - eth0
IP- 192.168.1.100
proto - none
atboot - yes
Netmask: 255.255.255.0
Network: 192.168.1.0
Broadcast: 192.168.1.255
ROUTING:
Default gateway: 192.168.1.1
Default gateway device: eth0
Interface - 192.168.1.100
Network Address - 192.168.1.0
Network gateway 192.168.1.1
Netmask - 255.255.255.0

Routing

Routing table information is used to route incoming and outgoing network diagrams to other machines. On most simple configurations, there are three routes. One for sending packets to your own machine, one for sending packets to other machines on your network and one for sending packets to other machines outside your network through the gateway. Two programs (ifconfig and route) are used to configure these parameters. They are described in more detail in the routing section.