Posted in Debian Installation

Guide to Debian Installation: Upgrading Squeeze to Sid

1.   We install only the base packages. Now, to upgrade to sid, you’ll need an internet connection. So, we first configure the  ethernet .

Network Setup is done through the interfaces configuration file at /etc/network/interfaces
  • Become root (henceforth ‘#’ represents root).
    #cd etc/network
    /etc/network# ls -l
    You’ll see the interfaces file.
    man interfaces to see what it does.
  • /etc/network# vi interfaces
    or if you don’t know vi editor
    /etc/network# gedit interfaces
  • Type:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth0
    iface eth0 inet static
    address xxx.xxx.xxx.xxx  #your ip-address
    netmask xxx.xxx.xxx.xxx  #subnet mask
    gateway xxx.xxx.xxx.xxx  #default gateway
  • Or you can  also:
    #ifconfig eth0 ipaddress
    man ifconfig to see what it does or see this.
  • etc# vi resolv.conf
    Type:
    namserver xxx.xxx.xxx.xxx  # your default gateway
    nameserver 8.8.8.8              # Google Public DNS IP addresses
  • Ping both your default gateway and 8.8.8.8
    you should be getting replys.
Your ethernet is configured.
2.   Apt is used for managing packages. To see what apt does see this.
The file /etc/apt/sources.list stores a list of repositories from which packages can be obtained.
  • Repositories are places where thousands of programs are stored in software archieves, which is later used for distribution over a specific network.
    Repositories are categorized into four groups:

    • Main: Officially supported software
    • Contrib:  Packages in this area are freely licensed by the copyright holder but depend on other software that is not free.
    • Non-free: Packages in this area have some onerous license condition restricting use or redistribution of the software.
  • deb: These repositories contain binaries or precompiled packages.
    deb-src: These repositories contain the source code of the packages.
  • Host would be the debian mirror.
    You’ll get debian mirrors from here.
    You can also download from CoEP’s college mirror which should be put up soon
  • #apt-get update
    #apt-get install build-essential
    #apt-get dist-upgrade
You’ve now upgraded to Sid.

Setting up wireless network

  • #aptitude install wireless-tools wpasupplicant network-manager network-manager-gnome
  • $lspci
    lspci displays list of devices connected to the system.
    look for Network controller and check if its Broadcom.
  • $apt-cache search broadcom-sta
    will show you the list of Broadcom STA Wireless Drivers.
  • To build the driver:
    # aptitude install broadcom-sta-source module-assistant
    # m-a prepare
    # m-a a-i broadcom-source
  • To Install the driver:
    # modprobe broadcom-sta
  • Use Network Manager to configure the ipaddress,netmask,gateway.
  • Alternatively you can also manually configure it from  /etc/network/interfaces file.
    In the interfaces file, type:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    #iface eth0 inet static
    #address xxx.xxx.xxx.xxx  #your ip-address
    #netmask xxx.xxx.xxx.xxx  #subnet mask
    #gateway xxx.xxx.xxx.xxx  #default gateway
    # wireless interface
    iface eth1 inet static
    address xxx.xxx.xxx.xxx  #your ip-address
    netmask xxx.xxx.xxx.xxx  #subnet mask
    gateway xxx.xxx.xxx.xxx  #default gateway
    wireless-essid network-id
    wireless-key xxxxxxxxxx
    auto eth1
    allow-hotplug eth1
  • Also, add nameservers to /etc/resolv.conf
  • To check if wireless is configured properly:
    #iwconfig
  • Set essid:
    # iwconfig eth1 essid network-id
  • Check access point:
    #iwlist eth1 scan
  • Set mode:
    #iwconfig eth1 mode Managed
  • Set WEP encryption:
    #iwconfig eth1 key restricted XXXXXXXX
  • Bring down any conflicting ethernet interface:
    #ifdown eth0
  • Bring up wireless interface:
    #ifup eth1
  • Testing:
    ping the default gateway
    ping 8.8.8.8
    you should be getting replys. Reboot.

Wireless is configured.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s