secure_ubuntu_system:initial_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
secure_ubuntu_system:initial_setup [2020/05/19 13:40] – [Configure the network] peter | secure_ubuntu_system:initial_setup [2022/07/19 10:21] (current) – [Configure the network] 85.203.36.242 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Secure Ubuntu System - First Configuration ====== | ====== Secure Ubuntu System - First Configuration ====== | ||
+ | |||
+ | {{: | ||
===== Login ===== | ===== Login ===== | ||
Line 5: | Line 7: | ||
Login to the newly installed system with your previously created Administrator' | Login to the newly installed system with your previously created Administrator' | ||
+ | ---- | ||
===== Get root privileges (Optional) ===== | ===== Get root privileges (Optional) ===== | ||
Line 57: | Line 60: | ||
</ | </ | ||
- | This is done for safety. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
---- | ---- | ||
Line 130: | Line 136: | ||
Instead you need to specify your nameservers in your network configuration. | Instead you need to specify your nameservers in your network configuration. | ||
- | * Traditionally, | + | * Traditionally, |
* Nowadays, a computer can switch from one network to another quite often and the resolvconf framework is now being used to track these changes and update the resolver' | * Nowadays, a computer can switch from one network to another quite often and the resolvconf framework is now being used to track these changes and update the resolver' | ||
* It acts as an intermediary between programs that supply nameserver information and applications that need nameserver information. | * It acts as an intermediary between programs that supply nameserver information and applications that need nameserver information. | ||
Line 139: | Line 145: | ||
<WRAP info> | <WRAP info> | ||
- | You may need to manually remove the DHCP record (lease) associated to this Ubuntu server from your DHCP server so the correct IP can be found by other machines on the network. | + | **NOTE: |
Use the command **dhclient -r** for this. | Use the command **dhclient -r** for this. | ||
Line 149: | Line 155: | ||
Lines beginning with the word **auto** are used to identify the physical interfaces to be brought up when **ifup** is run with the **-a** option. | Lines beginning with the word **auto** are used to identify the physical interfaces to be brought up when **ifup** is run with the **-a** option. | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Enable packet forwarding by the kernel ===== | ===== Enable packet forwarding by the kernel ===== | ||
Line 169: | Line 178: | ||
</ | </ | ||
- | To uncomment the line, simply remove the hash mark # from the front of the line. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
IP forwarding essentially turns your server into a router, and can be used as the server has multiple Network Interfaces (NICs). | IP forwarding essentially turns your server into a router, and can be used as the server has multiple Network Interfaces (NICs). | ||
Line 180: | Line 192: | ||
<WRAP safety> | <WRAP safety> | ||
- | **SAFETY**: | + | **SAFETY**: |
+ | |||
+ | It is essential that fire-walling and security measures are in place. | ||
+ | |||
+ | These requirements will be covered through instructions later on in this setup guide. | ||
</ | </ | ||
+ | |||
+ | ---- | ||
===== Refresh sysctl ===== | ===== Refresh sysctl ===== | ||
Line 193: | Line 211: | ||
**sysctl** is used to modify kernel parameters at runtime. | **sysctl** is used to modify kernel parameters at runtime. | ||
+ | ---- | ||
===== Restart the Network ===== | ===== Restart the Network ===== | ||
Line 234: | Line 253: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ---- | ||
===== Check the network interfaces ===== | ===== Check the network interfaces ===== | ||
Line 268: | Line 289: | ||
eth1: no autonegotiation, | eth1: no autonegotiation, | ||
</ | </ | ||
- | |||
- | Ensure that all interfaces are shown. | ||
In the example output above, we can see that both eth0 and eth1 have been picked up, so all well. | In the example output above, we can see that both eth0 and eth1 have been picked up, so all well. | ||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
===== Setup the Network Hosts File ===== | ===== Setup the Network Hosts File ===== | ||
Line 309: | Line 334: | ||
One of the lines for each NIC should show **UP BROADCAST RUNNING MULTICAST**. | One of the lines for each NIC should show **UP BROADCAST RUNNING MULTICAST**. | ||
+ | ---- | ||
===== Check the network is working ===== | ===== Check the network is working ===== | ||
Line 356: | Line 382: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Set the hostname ===== | ===== Set the hostname ===== | ||
Line 364: | Line 393: | ||
</ | </ | ||
+ | ---- | ||
===== Restart the System ===== | ===== Restart the System ===== | ||
Line 375: | Line 405: | ||
Once the system is rebooted simply login again and issue the **sudo -i** command to continue implementing the system. | Once the system is rebooted simply login again and issue the **sudo -i** command to continue implementing the system. | ||
+ | ---- | ||
===== Check the Network Settings ===== | ===== Check the Network Settings ===== | ||
Line 393: | Line 424: | ||
Both should show <color red> | Both should show <color red> | ||
+ | ---- | ||
===== Use an SSH Client from now on ===== | ===== Use an SSH Client from now on ===== | ||
Line 402: | Line 434: | ||
Examples of SSH Clients include Putty. | Examples of SSH Clients include Putty. | ||
+ | ---- | ||
===== Login using a SSH Client ===== | ===== Login using a SSH Client ===== | ||
Line 419: | Line 452: | ||
Go ahead and type **yes**, and then enter the password of the administrator, | Go ahead and type **yes**, and then enter the password of the administrator, | ||
+ | ---- | ||
===== Continue ===== | ===== Continue ===== |
secure_ubuntu_system/initial_setup.1589895640.txt.gz · Last modified: 2020/07/15 09:30 (external edit)