User Tools

Site Tools


systems:media_server:install_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
systems:media_server:install_ubuntu_server [2025/05/30 13:55] petersystems:media_server:install_ubuntu_server [2025/05/31 09:48] (current) peter
Line 10: Line 10:
   * Write the ISO image for Ubuntu Server to a USB drive.   * Write the ISO image for Ubuntu Server to a USB drive.
   * Boot from USB drive.   * Boot from USB drive.
-  * Select **Ubuntu Server (minimized)** and **Search for third-party drivers**.+  * Select **Ubuntu Server** and **Search for third-party drivers**.
   * Set a static IP.   * Set a static IP.
   * Guided Storage Configuration - Select to Use the entire disk, and unselect "Set up this disk as an LVM group".   * Guided Storage Configuration - Select to Use the entire disk, and unselect "Set up this disk as an LVM group".
Line 18: Line 18:
   * Clean up.   * Clean up.
   * Reboot again.   * Reboot again.
-  * Install multimedia codecs.+
  
  
Line 26: Line 26:
 **ALERT**:  To prevent accidentally installing Ubuntu on the wrong drive and overwriting data it is recommended to disconnect data drives during installation. **ALERT**:  To prevent accidentally installing Ubuntu on the wrong drive and overwriting data it is recommended to disconnect data drives during installation.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Set a static IP =====
 +
 +<code>
 +Subnet:          192.168.1.0/24
 +Address:         192.168.1.85
 +Gateway:         192.168.1.1
 +Name Servers:    192.168.1.1, 192.168.1.50
 +Search Domains:  <blank>
 +</code>
  
 ---- ----
Line 42: Line 54:
 sudo apt autoremove sudo apt autoremove
 sudo apt clean sudo apt clean
 +sudo reboot
 </code> </code>
  
Line 48: Line 61:
 </WRAP> </WRAP>
  
 +----
 +
 +===== Change the default shell to bash =====
 +
 +By default, Ubuntu has Dash as the default shell.
 +
 +  * Bash is preferred.
 +  * The reason that dash was set as the default is that dash provides faster boot times.
 +  * It does not however have the full feature set offered by bash.
 +  * On a modern server this speed difference in booting is negligible; and not too important as servers usually are not booted very often. 
 +
 +
 +==== Check what /bin/sh links to ====
 +
 +<code bash>
 +ls -al /bin/sh
 +</code>
 +
 +returns:
 +
 +<code>
 +lrwxrwxrwx 1 root root 4 Mar 31  2024 /bin/sh -> dash
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This shows that /bin/sh links to dash.
 +</WRAP>
  
 ---- ----
  
-===== Set a static IP =====+==== Change the Link for /bin/sh to bash ==== 
 + 
 +<code bash> 
 +sudo ln -sf bash /bin/sh 
 +</code> 
 + 
 +---- 
 + 
 +==== Recheck what /bin/sh links to ==== 
 + 
 +<code bash> 
 +ls -al /bin/sh 
 +</code> 
 + 
 +returns:
  
 <code> <code>
-Subnet         192.168.1.0/24 +lrwxrwxrwx 1 root root 4 May 30 15:15 /bin/sh -bash
-Address:         192.168.1.85 +
-Gateway:         192.168.1.1 +
-Name Servers:    192.168.1.1, 192.168.1.50 +
-Search Domains:  <blank>+
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  This shows that /bin/sh now links to bash.
 +
 +  * On older Ubuntu systems the following could be used, but this no longer works on new versions: <code bash>
 +sudo dpkg-reconfigure dash
 +</code>
 +
 +  * When asked **Install dash as /bin/sh?** specify **No**. 
 +
 +</WRAP>
 +
  
 ---- ----
Line 65: Line 127:
 ===== Update inputrc ===== ===== Update inputrc =====
  
-Update /etc/inputrc to support being able to use arrow keys for history searches.+Update **/etc/inputrc** to support being able to use arrow keys for history searches.
  
 Add the following lines to the bottom of the file. Add the following lines to the bottom of the file.
Line 119: Line 181:
 ---- ----
  
-===== Install multimedia codecs =====+==== Set the timezone ====
  
 <code bash> <code bash>
-sudo apt install ubuntu-restricted-extras -y+sudo dpkg-reconfigure tzdata
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  Select the appropriate location.
 +</WRAP>
 +
  
 ---- ----
systems/media_server/install_ubuntu_server.1748613343.txt.gz · Last modified: 2025/05/30 13:55 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki