Network configuration and programs


With the SystemRescueCd, you will be able to use the network. Here is the most important information about the network.

Network configuration tools

If your system has supported hardware, the Ethernet or Wifi network adapter should be automatically detected, and the driver loaded. The interface needs to be assigned an IP address and a default gateway.

SystemRescueCd uses Network-Manager as the default network configuration tool. It provides a very user friendly graphical interface to configure the network. It makes the configuration easier especially for wireless networks. For instance, wireless networks will be automatically detected and connecting to them is very easy. The Network-Manager is available as a small icon in the taskbar just next to the clock. It also provides nmcli and nmtui if you want to configure the network using a command line or a semi-graphical interface from a terminal.

You can also configure the network with other tools such as the standard ifconfig or ip commands. In that case you will have to stop the Network-Manager service first, else it will conflict and you will loose your settings. You can stop it by running systemctl NetworkManager stop in the shell.

The following sections of this chapter explain how to use the network using Linux commands. You do not have to read it if you prefer to use the Network-Manager.

Firewall

Since version 6.0.4 SystemRescueCd comes with the iptables firewall enabled to block incoming connections requests by default. You need to update the iptables configuration or stop the iptables and ip6tables services if you need to be able to receive incoming connections from outside. You can boot SystemRescueCd using the nofirewall option on the command line if you need the firewall to be stopped automatically.

Setting up the network by hand

To use dynamic configuration, dhclient eth0. Use ifconfig -a to display the IP address the DHCP server leased to the interface.

To assign a specific static IP address, enter something such as: ifconfig eth0 192.168.10.17. Next the default route is configured. For example, for an interface at address 192.168.10.17 connected to a gateway at 192.168.10.2 enter: route add default gw 192.168.10.2.

SystemRescueCd provides network boot options such as ethx, dns, gateway, dodhcp that allow you to automatically configure the network when SystemRescueCd starts. It is very useful if you want to boot SystemRescueCd from the network using PXE but it can be used in any case. It can be very useful if you plan to make custom version of the rescue system.

Read the chapter about Basic IP configuration tools on Linux for details about how to configure TCP/IP from the command line on a machine running Linux.

Running an SSH Server

SSH allows you to use a shell on another computer (as telnet does), and you can copy files (with scp or rsync over ssh). If you want to run an SSH server, you have to change the root password. Just type passwd and give a valid password. You can also use the rootpass=xxx boot option before SystemRescueCd starts to define the root password.

The ssh server is automatically started but you can type the following command anyway: systemctl sshd restart. You can stop it with systemctl sshd stop Of course you can also use SystemRescueCd as an SSH client to connect to an SSH server: just use ssh login@ssh.server.org or scp source dest. Both source and dest may be local or remote. Use login@ssh.server.org:/path/filename for remote files.

Accessing a Share on a Windows computer with CIFS

SystemRescueCd comes with the smbfs/cifs client package that allows you to connect to a Windows machine having shared drives. In recent kernels, support for smbfs has been replaced with cifs so you should try not to use smbfs.

The mount-cifs package allows you to access a Windows computer on the network. Here is an example to explain how to access Windows shared folders. Let’s consider the Windows box is on 192.168.10.3 and has a shared directory called mydata accessible by the user called robert:

mkdir /mnt/windows
mount -t cifs //192.168.10.3/mydata /mnt/windows -o username=robert,password=passwd
cd /mnt/windows

Now you should be able to see files in /mnt/windows. Do not forget to unmount the directory when you have finished what you are doing in the shared directory.

umount /mnt/windows

Mounting remote FTP/SSH shares as local file systems

If you want to access files located on an FTP server, there is a new very powerful way to do this. The “Userland FileSystem” allows you to mount the share, and work on the remote files just as you would work on any local files. With all these file systems, you can umount the share with the standard umount command. Here is an example showing how to mount an FTP file system in /mnt/ftp as anonymous (read only)

mkdir /mnt/ftp
lufis fs=ftpfs,host=ftp.kernel.org /mnt/ftp -s
cd /mnt/ftp
umount /mnt/ftp

Here is an example of how to mount an SSH file system in /mnt/ssh as anonymous (read only)

mkdir /mnt/ssh
passwd root
sshfs login@ssh.server.org:/path/to/dir /mnt/ssh
cd /mnt/ssh
umount /mnt/ssh

Documentation
Manual (EN)
LVM Guide
Disk partitioning
Networking

Project
Git repository
Bug reports