Differences
This shows you the differences between two versions of the page.
— | tech:linux:setup_new_box [2023/02/12 12:30] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Setting up a new Linux box ====== | ||
+ | This page goes through the various settings that take place to setup a new Ubuntu box. In this case I was setting Ubuntu 12.04 Precise Pangolin. | ||
+ | |||
+ | ===== Install Configuration / Steps ===== | ||
+ | * Hardware details | ||
+ | * AMD 3 core CPU | ||
+ | * 2 x 500 GB Hard disk | ||
+ | * 1 DVD R/W | ||
+ | * 16 GB RAM | ||
+ | * Software install configuration | ||
+ | * RAID 1 array with the two disks | ||
+ | * Allocated 20 GB for SWAP and 480 GB for / | ||
+ | * Include LAMP, Samba, Mail (Postfix) as default services to be installed | ||
+ | * Configure server as " | ||
+ | |||
+ | ===== System Configuration ===== | ||
+ | * Update system by running " | ||
+ | * Completed Security Upgrades | ||
+ | * Complete Package Upgrades | ||
+ | * Reboot | ||
+ | * Network configuration | ||
+ | * Update settings on router to designate IP address for server MAC address (ensure same IP allocation) | ||
+ | * Optionally do this for other devices on the network too | ||
+ | * Update Port forwarding on router to server for HTTP, HTTPS, SSH and SMTP | ||
+ | * Update info with DNS registry (such as godaddy) with WAN IP for A & MX records | ||
+ | * Install svn (using aptitude) | ||
+ | * Put [[tech: | ||
+ | * Update /etc/skel with [[etc_skel|this]] set | ||
+ | * Creating new users | ||
+ | * Update / | ||
+ | * Create additional [[commands_to_add_users_and_groups# | ||
+ | * Remember to delete the .svn directory inside the users home directory (of the new user). | ||
+ | * Install the [[most_common_packages|most common packages]] that will the required | ||
+ | |||
+ | ===== DNS Server Configuration ===== | ||
+ | Currently '' | ||
+ | Update ''/ | ||
+ | < | ||
+ | nameserver 192.168.1.48 | ||
+ | nameserver 192.168.1.49 | ||
+ | nameserver 192.168.1.1 | ||
+ | nameserver 8.8.8.8 | ||
+ | options timeout:1 | ||
+ | options attempts:1 | ||
+ | </ | ||
+ | |||
+ | Update ''/ | ||
+ | < | ||
+ | iface enp0s3 inet static | ||
+ | address 192.168.1.47 | ||
+ | netmask 255.255.255.0 | ||
+ | network 192.168.1.0 | ||
+ | gateway 192.168.1.1 | ||
+ | broadcast 192.168.1.255 | ||
+ | dns-nameservers 192.168.1.48 | ||
+ | dns-nameservers 192.168.1.1 | ||
+ | dns-nameservers 8.8.8.8 | ||
+ | </ | ||
+ | ===== apt related ===== | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | |||
+ | ===== More items ===== | ||
+ | * Kernel | ||
+ | * To avoid kernel update do this | ||
+ | * Debian: <code bash> | ||
+ | * Ubuntu: <code bash> | ||
+ | * Reason: VirtualBox GA will need to be reinstalled every time kernel is updated | ||
+ | |||
+ | * Setup postfix | ||
+ | * Setup alias such that local mail gets forwarded (/ | ||
+ | * SSH | ||
+ | * Generate SSH private and public keys | ||
+ | * Tuning | ||
+ | * Change swapiness and other parameters based on server needs - [[tech: | ||
+ | * Others | ||
+ | * Optionally ask server to reboot automatically on [[tech1: | ||
+ | * [[tech1: | ||
+ | * Install NRPE to be monitored | ||
+ | * nagios-nrpe-server nagios-plugins | ||
+ | * Install x11-utils x11-xserver-utils | ||
+ | * Packages to install | ||
+ | * If Physical Machine | ||
+ | * cpp dkms gcc make heirloom-mailx mysql-common nmap postfix smartmontools sysstat unzip telnetd | ||
+ | * If VM | ||
+ | * cpp gcc make heirloom-mailx mysql-common nmap postfix sysstat unzip telnetd | ||
+ | |||
+ | ===== Other Items configuration ===== | ||
+ | * Remove cloud-init < | ||
+ | * Remove snapd < | ||
+ | * [[apache_configuration|Apache Configuration]] | ||
+ | * [[etc_skel# | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | * [[tech: | ||
+ | * Install telnetd - To be used in case SSH server is down. Remember to change password immediately if doing a remote connection. | ||
+ | * [[tech: | ||
+ | * Stop/Purge Ubuntu error reporting daemon < | ||
+ | * [[apt_update_resource_overload|Disable APT update resource overload]] | ||
+ | * Nagios | ||
+ | * If only setting this up for being monitored install nagios-nrpe-server nagios-plugins | ||