Sysresccd-manual-en Network
From SystemRescueCd
With the System Rescue CD, you will be able to use the network. Here are the main important information about the network.
Contents |
[edit] Setting up the network
If you have standard hardware, your network card will be auto-detected, and the driver loaded. You will have to configure your IP address. If you use dynamic configuration, you should type dhcpcd eth0. If you want to give a static IP address, just type ifconfig eth0 192.168.10.1. Once your IP address is set, you should make sure the default route is configured properly. For example, if your computer has a network card (address 192.168.10.1) that is connected to a gateway (192.168.10.2) which shares its internet connection, you can type this: route add default gw 192.168.10.2.
SystemRescueCd-0.4.2 introduced boot options such as ethx, dns, gateway, dodhcp that allows you to automatically configure the network when SystemRescueCd starts. It can be very useful if you plan to make a make customized versions of the CD.
[edit] Running an SSH Server
SSH allows you to use a shell on another computer (as telnet does), and you can copy files (with scp). 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 option to define the root password from the boot prompt. Then, check the sshd server is running with /etc/init.d/sshd start. You can stop it with /etc/init.d/sshd stop Of course, this computer can be an SSH client: 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.
[edit] Access a Windows computer with Samba
The samba package allows you to access a Windows computer on the network. For example, if the Windows server (192.168.10.3) has a share named my-share, then you can mount it with these commands:
mkdir /mnt/win mount -t smbfs -o lfs //192.168.10.3/my-share/ /mnt/win/ cd /mnt/win umount /mnt/win
Samba is supported in the kernel, and samba tools are provided (smbcacls, smbcontrol, smbfilter, smbmount, smbspool, smbtar, smbclient, smbd, smbmnt, smbpasswd, smbstatus, smbumount). It's important not to forget option "lfs" (Large File Support), because it allows to handle files that are larger than 2 GB. Big file are often used when making a backup or an image file. Without this option, the copy would fail, with an error. Large files are supported since version 0.2.12 (linux kernel 2.4.25). More help with samba: http://www.samba.org/
[edit] Mount 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 of 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
[edit] Using an ADSL USB modem
Since version 0.2.19, the system comes with drivers for several USB modems, such as SagemFast800 that is based on an Eagle chipset. These drivers have been merged in Linux-2.6.16. If you have such a modem, you will probably need firmware images, that are not provided with this disc. You will have to download these files, and access it by mounting a partition of your harddisk, where you have downloaded these files.
