SARPi Project - Slackware ARM on a Raspberry Pi


Setting up the NIC for (remote) Slackware ARM installation [optional]

You will require access to the network or the Internet (for example: if you wish to perform a remote installation from another computer, or you don't have a USB stick and wish to use a FTP/HTTP server as your source media) so you may want to setup the network interface card (NIC) at this point. If not, you can safely skip this section of the installer tutorial and continue to the Information on available drives section.

Before you can start configuring the NIC, you're going to need 2 pieces of information.
• The IP address of your internet gateway
• The IP address you want to assign to your Raspberry Pi

The default gateway is a device on a network (i.e. your router), through which another device on the network (i.e. your Raspberry Pi) can access or send data packets to another device on a different network (i.e. a web server on the Internet). This may seem mind-boggling but it's relatively easy to setup, as long as you have the correct default gateway IP address. Linux users can type 'route -n' at the command prompt on any system already connected to the Internet to find out their default gateway IP address. Windows users can run the command 'ipconfig' within Windows Command Processor (cmd.exe) to find out their default gateway IP address.

Assuming you have the correct network information required to setup your NIC, you are now going to type the following command:

root@slackware:~# ifconfig eth0 <RPi IP address> netmask 255.255.255.0 up

ifconfig is a command line tool used to configure a network interface in Linux. eth0 (that's a ZERO on the end and not an "O" as in Orange) is the identity of the Ethernet interface on the Raspberry Pi. <RPi IP address> is the IP address you want to assign to your Raspberry Pi. netmask 255.255.255.0 denotes the network mask which decides the potential size of your network. up is the flag which enables the Ethernet card and makes it ready to send and receive data.

Next you need to specify the default gateway IP address and you're going to set this up by typing the following command:

root@slackware:~# route add default gw <Internet gateway IP address>

Next you need to add a Domain Name Server (DNS) which is for managing the names of Web sites. DNS technology allows you to use names (like sarpi.penthux.net or slackware.com) and your computer automatically finds that address on the Internet and takes you to the Web site/page/file. Without DNS you would only be able to access Web sites by their IP address and that is something which we're not going to get into here.

You're going to create a file called resolv.conf and edit it by adding a single line of text. This will be done in one easy command using 'echo' and specifying an OpenDNS IP address. Type the following on the command line:

root@slackware:~# echo nameserver 208.67.222.222 > /etc/resolv.conf

Now you should be able to access the Internet and you can test this by typing:
ping -c 3 google.com

You should see 3 results of something like "64 bytes from lhr08s03-in-f4.1e100.net (173.194.41.132)". If you receive a timeout error then something is wrong and you need to check your settings (IP addresses) and go back to the ifconfig section and do it again. If all is good and you have a ping reply from google.com then your NIC and Internet connection have been setup successfully.

Remote Slackware setup, configuration & install [optional]

Now that you have successfully setup your NIC it is possible to carry on with the setup, configuration and installation of Slackware Arm Linux remotely, using PuTTY for example, or any other SSH client.

In order to start a SSH server on your Raspberry Pi which allows you to login remotely all you have to do is start dropbear, a script already included in the Slackware ARM installer files. To do this type the following at the command prompt:

root@slackware:~# /etc/rc.d/rc.dropbear start

You should now be able to log in via SSH on your Raspberry Pi. Use 'root' as the log-in username and just hit enter when asked for a password. If you're not already familiar with remotely logging in via SSH then it's probably not something you want to get into at this point.

Continue to the next section of this installer tutorial... Information on available drives


Updated: 2021-04-06 12:46:17 UTC

Disclaimer: The SARPi Project website is for non-commercial and general information purposes only. The content is provided by Penthux.NET and while we endeavour to keep information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or any information, software, products, services, or related graphics which is available on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk. In no event will Penthux.NET be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website or any of its contents. Through this website you are able to visit other websites which are not under our control. Penthux.NET has no influence over the nature, content or availability of any external URLs. The inclusion of any URLs does not necessarily imply a recommendation or endorsement of any content therein. Every effort is made to ensure the SARPi Project website remains accessible. However, Penthux.NET takes no responsibility for, and will not be liable for, the SARPi Project website being temporarily unavailable due to technical issues beyond our control. Penthux.NET is in no way affiliated with Slackware Linux, Inc, or the Linux Foundation, or the Raspberry Pi Foundation, or any of their members, trustees, partners, or associates.


Accept!
SARPi Project uses cookies for website traffic & data analysis. [ Cookie Policy ]