SARPi Project - Slacking on a Raspberry Pi


Setting up the NIC for (remote) Slackware Linux 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 guide and continue to the Information on available drives section.

If you're performing a headless installation (i.e. remotely) then go to the Remote Slackware setup, configuration & install section on this page.

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

SARPi Project muse views ... 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 browser is automagically directed to that website/page/file on the Internet. Without DNS you would only be able to access websites and files via their IP addresses.

With that in mind, you're going to create a file called resolv.conf and edit it by adding a line or two. This will be done easily using 'echo' and specifying a nameserver and OpenDNS IP addresses. Type the following on the command line:

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

Only one nameserver is required, but in this case two is always better than one.

Now you should be able to access the Internet and you can test this by typing:

root@slackware:~# ping -c 5 google.com

You should see 5 ping results from using this command and hopefully something similar to the following screenshot:

ping -c 5 google.com

SARPi Project muse views ... If you receive a timeout error then something went wrong and you should check your settings (IP addresses). If those are correct then go back to the ifconfig section on this page and go through this process again.

If it's all good and you have a ping replies from google.com then your NIC and Internet connection has 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 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 small SSH server and client). A 'dropbear' executable script is already included in the Slackware initial RAM disk files. To start 'dropbear' 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 guide... Information on available drives

Back to Top


Updated: 2024-03-08 16:16:50 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. SARPi Project is in no way affiliated with Slackware Linux, Inc, or the Linux Foundation, or Raspberry Pi Ltd., or any of their respective members, trustees, partners, or associates.


Accept!

SARPi Project uses cookies for website traffic data analytics purposes only. Cookies from this website do not collect or store any of your personal data.

Please read the SARPi Project website [ Cookie Policy ] for more details.