Debian

From embeddedTS Manuals
Revision as of 15:44, 13 May 2016 by Mpeters (talk | contribs) (→‎Overview: added a blurb about default user configuration.)
Debian.jpg
[[1]]
Documentation
Debian Wiki

Overview

Debian is a lightweight, stable, and mature linux distribution that has been around since 1993 and has over 29,000 software packages. The package design is quite modular, which allows developers to pick exactly what is needed for their project without building everything from source. Technologic Systems' default user account is 'root' with no password. Some pre-2014 systems also include a user account 'eclipse' with the password 'eclipse'.

Network Configuration

You can change the default IP address of 192.168.0.50 to something that suits your network a little more. If you're interested in setting up a dynamic IP address, simply use the "dhclient" command from within Debian or "udhcpc" from within the busybox/fastboot environment. Older versions of Debian will use "pump" instead of dhclient. If you'd like a bit more control over the IP address, you can set the SBC up with a static IP address. From within Debian, edit "/etc/network/interfaces" to reflect the changes you'd like to make:

  # Used by ifup(8) and ifdown(8). See the interfaces(5) man page or
  # /usr/share/doc/ifupdown/examples for more information.
  auto eth0
  #iface eth0 inet dhcp
  iface eth0 inet static
          address 192.168.1.100
          network 192.168.1.0
          netmask 255.255.255.0
          broadcast 192.168.1.255
          gateway 192.168.1.1


  #auto eth1
  #iface eth1 inet dhcp

Then, edit the "/etc/resolv.conf" file to reflect the DNS servers:

  #domain ts-local.net
  #search ts-local.net
  nameserver 208.67.222.222
  nameserver 208.67.220.220

Now, reset the eth0 interface by using the command:

ifdown eth0; ifup eth0

Test the connection using the command:

ping google.com

For more advanced networking, see Debian's documentation

Package Management

Debian will offer better documentation on this subject, but this should be enough to get started.

Update packages

apt-get update
apt-get upgrade

Install packages

apt-get update
apt-get install python2.4

Remove packages

apt-get remove python2.4

Search for packages

apt-cache search nmap