systems:media_server:install_ubuntu_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
systems:media_server:install_ubuntu_server [2025/05/13 18:49] – peter | systems: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 | + | * 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" | ||
* SSH Config - Select to Install OpenSSH Server. | * SSH Config - Select to Install OpenSSH Server. | ||
* Reboot. | * Reboot. | ||
Line 17: | Line 18: | ||
* Clean up. | * Clean up. | ||
* Reboot again. | * Reboot again. | ||
- | * Install multimedia codecs. | + | |
Line 25: | Line 26: | ||
**ALERT**: | **ALERT**: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Set a static IP ===== | ||
+ | |||
+ | < | ||
+ | Subnet: | ||
+ | Address: | ||
+ | Gateway: | ||
+ | Name Servers: | ||
+ | Search Domains: | ||
+ | </ | ||
---- | ---- | ||
Line 41: | Line 54: | ||
sudo apt autoremove | sudo apt autoremove | ||
sudo apt clean | sudo apt clean | ||
+ | sudo reboot | ||
</ | </ | ||
Line 47: | Line 61: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ===== 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 | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | < | ||
+ | lrwxrwxrwx 1 root root 4 Mar 31 2024 /bin/sh -> dash | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
---- | ---- | ||
- | ===== Set a static IP ===== | + | ==== Change the Link for /bin/sh to bash ==== |
+ | |||
+ | <code bash> | ||
+ | sudo ln -sf bash /bin/sh | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Recheck what /bin/sh links to ==== | ||
+ | |||
+ | <code bash> | ||
+ | ls -al /bin/sh | ||
+ | </ | ||
+ | |||
+ | returns: | ||
< | < | ||
- | Subnet: | + | lrwxrwxrwx 1 root root 4 May 30 15:15 /bin/sh -> bash |
- | Address: | + | |
- | Gateway: | + | |
- | Name Servers: | + | |
- | Search Domains: | + | |
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * On older Ubuntu systems the following could be used, but this no longer works on new versions: <code bash> | ||
+ | sudo dpkg-reconfigure dash | ||
+ | </ | ||
+ | |||
+ | * When asked **Install dash as /bin/sh?** specify **No**. | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- | ||
- | ===== Install multimedia codecs | + | ===== Update inputrc |
+ | |||
+ | Update **/ | ||
+ | |||
+ | Add the following lines to the bottom of the file. | ||
+ | |||
+ | <file bash / | ||
+ | ... | ||
+ | # Peter added these | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Remove snap if installed ===== | ||
+ | |||
+ | ==== List all installed Snap packages | ||
<code bash> | <code bash> | ||
- | sudo apt install ubuntu-restricted-extras -y | + | snap list |
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Remove all the Snap packages ==== | ||
+ | |||
+ | <code bash> | ||
+ | sudo snap remove < | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Purge snapd ==== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt purge snapd | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Set the timezone ==== | ||
+ | |||
+ | <code bash> | ||
+ | sudo dpkg-reconfigure tzdata | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- |
systems/media_server/install_ubuntu_server.1747162185.txt.gz · Last modified: 2025/05/13 18:49 by peter