Network Config and Programs-EN

Da PoliArch.

Configuration

If your system offers a well-supported hardware, network card or wifi controller will be automatically detected and the drivers loaded. The interface, however, need to be configured with an IP address, a default gateway and dns.

Automatic configuration (DHCP)

To groped to configure the network automatically we can use the DHCP client in this way:

# dhcpcd eth0

Manual Configuration

If the procedure in DHCP does not work, you can manually configure the network settings.

Set a new static IP:

# ip addr add <ip>/<netmask> dev <interface>

and a default gateway with:

# ip route add default via <ip>

verify that the /etc/resolv.conf contains your DNS server and add it if it is not present.

Check with your network configuration:

# ping -c 3 www.google.com

SSH Server

By default PoliArch automatically starts the SSH server to allow us to work remotely on the machine.

To connect from a linux pc you can use this command:

# ssh root@ <ip-computer-poliarch>

To connect to a Windows PC, you can use an SSH client (eg PuTTY)

Accessing network shares

PoliArch includes cifs and samba client that allow easy access to network shares, assuming you want to access to \\192.168.1.10\Documents:

# mkdir /mnt/share
# mount.cifs //192.168.1.10/Documents /mnt/share -o user=<username>

You will then be prompted for the password for your user (if the user has no password, simply press <ENTER>) after you type it in our share will be navigable by navigating to the folder /mnt/share

# cd /mnt/share

Remember to remove the share once no longer used:

# cd; umount /mnt/share

Mounting a remote filesystem with SSHFS

Load module fused

# modprobe fuse

Mount the remote folder with sshfs:

# mkdir /mnt/ssh_folder
# sshfs root@remote_server:/tmp /mnt/ssh_folder

The above command will cause the /tmp directory on the remote server is being mounted as /mnt/ssh_folder on the local machine. A copy of any file in this folder, will lead to a Transparent copy over the network using SFTP. The same will have to modify the file, copying and deleting.

Remember to remove the share once no longer used:

# fusermount -u /mnt/ssh_folder

Altre Pagine: · Home Page · Documentazione · Downloads · Screenshots · Contatti