Mint networking: Mintnet

Mint goes Networking

Networking on Mint can very simple as long as you know networking on Unix, because it follows closely the Unix implementation.

Things that you will need are:


Assumptions here are

This guide starts with a detailed installation of the network on Mint, then short description on DHCP for Mint and mapping to a Windozes shared drive.

More generic information on home network here.

Installing Network on Mint

The utility program gzip and tar are needed to extract Unix archives. We can now place these utility program in the /bin folder so that we can use these command in the Unix shell that we installed previously.

The 2 files - gzip and tar will be extracted and copy it into D:\bin folder. These 2 extracted files filename should be in lowercase.

This is chmod in Teradesk, making a binary to be identified as an executable. So for the Unix fans here, please use chmod instead of the GUI.

2. Download and decompress the networking programs for MiNT

The ifconfig and route program files can be obtained from the Mint-NET package, which contains everything you need for networking on Atari.

cd /d

gzip -d /d/net-1.04b.tgz

tar xpf /d/net-1.04b.tar


3. Move the networking files to the correct locations

The networking programs are normally located in /sbin (D:/sbin) and the configuration files in /etc (D:/etc).

So we need to place them in the correct folders for networking to work.


4. Installing the XIF driver file

Warning:

Please save your files in Unix newline otherwise MINT will not read in the configurations correctly. Do not edit in other OS and copy onto your Atari. This normally introduce the wrong newline characters. Best is to edit in QED and save in Unix newlines.

Follow this url to learn how to force for Unix newline in QED.

5. Configure the /etc networking environment files

Modify the following files in your /etc folder to work in your environment. Those copied from the net-1.04b folder will not work without modifications. You can download them from this website but change them to suite your network.

They can be edited by any editor like QED.

copy the following files in your /etc folder. They can used as it. Do not modify.



6. Configure the network setting

The network interface configuration program, ifconfig, is used to bind the IP address for your computer to the network adapter.

./ifconfig  en0  addr  192.168.0.28  netmask  255.255.255.0  up

ifconfig is the interface configuration program.

en0 is the interface name and is defined by the XIF file so is different between adapters.

addr 192.168.0.28 is the IP address of the computer (depends on your home network IP range).

netmask 255.255.255.0 is the subnet mask, and is based on the IP address.

up activates the interface.


7. Configure the network routing

Once the network is up, you will have to setup the routing table so that Mint knows how to route network packages to on the wire.

This can be done by the command route. On the command shell, type

./route add default en0 gw 192.168.0.1 metric 1

route the name of the interface routing program.

add default add the default route so everything goes via this.

en0 is the network interface name (as defined by the XIF file).

gw 192.168.0.1 is the network gateway IP address to the Internet.

metric 1 is the priority of this route/pathway.

If your gateway/router does not route back internal IP address, you may add an extra routing command to enable communication between computers in the same subnet. This can be easily done as follows

./route add 192.168.0.0 en0

To have the network interface start up and the routing added automatically on boot up, the commands must be part of the startup script during boot up. For Mint, it can be easily done by placing the exact command on the MINT.CNF file at the execute section of the configuration file. This was shown in the Personalising Mint web page.

DHCP for Mint

DHCP is available for Mint. It can be found as DHCP client RPM package in the SpareMint archive. With it, you do not need to do any network configuration manually. Installation of it is easy, just run the RPM package. No configuration is required for the DHCP client. After installing it, you will need to remove the 2 network commands ifconfig and route from the MINT.CNF file. Otherwise there may be dificulties binding the hardware adapter to your system. Make sure that DHCP server is running on your home network, and as stated above, will be normally available in your wireless access point.


Mapping a Windows shared drive

Mint can easily maps a Windows shared drives by using SharityLight and NFS. SharityLight can be found as a RPM package in the SpareMint archive. You can read about it in the page Atari Net Use to access Windows shared folders.



Next:  06 Mint and RPM


See you at 

WongCK

updated: 22 Jan 2022

created: 21 Mar 2010