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/30 14:24] – 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" | * 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 63: | Line 63: | ||
---- | ---- | ||
- | ===== Install VIM ===== | + | ===== Change the default shell to bash ===== |
- | <code bash> | + | By default, Ubuntu has Dash as the default shell. |
- | sudo apt install vim-nox | + | |
- | </ | + | |
- | <WRAP info> | + | |
- | **NOTE:** | + | * The reason that dash was set as the default |
+ | * 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. | ||
- | * Of course, different text editor such as joe or nano can be installed as well. | ||
- | </ | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Change the default shell ===== | ||
- | |||
- | Go into root mode: | ||
- | |||
- | <code bash> | ||
- | sudo -i | ||
- | </ | ||
- | |||
- | ---- | ||
- | ===== Check the current default values for debconf ===== | + | ==== Check what /bin/sh links to ==== |
<code bash> | <code bash> | ||
- | debconf-show debconf | + | ls -al /bin/sh |
</ | </ | ||
Line 97: | Line 82: | ||
< | < | ||
- | debconf-apt-progress/ | + | lrwxrwxrwx 1 root root 4 Mar 31 2024 /bin/sh -> dash |
- | debconf/frontend: Dialog | + | |
- | debconf-apt-progress/ | + | |
- | debconf-apt-progress/ | + | |
- | debconf/ | + | |
- | debconf-apt-progress/media-change: | + | |
</ | </ | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
- | + | ||
- | * This needs to be changed | + | |
</ | </ | ||
---- | ---- | ||
- | ===== Change the debconf frontend | + | ==== Change the Link for / |
<code bash> | <code bash> | ||
- | echo ' | + | sudo ln -sf bash /bin/sh |
</ | </ | ||
- | and recheck the debconf values: | + | ---- |
+ | |||
+ | ==== Recheck what /bin/sh links to ==== | ||
<code bash> | <code bash> | ||
- | debconf-show debconf | + | ls -al /bin/sh |
</ | </ | ||
Line 129: | Line 108: | ||
< | < | ||
- | debconf-apt-progress/ | + | lrwxrwxrwx 1 root root 4 May 30 15:15 /bin/sh -> bash |
- | * debconf/frontend: Noninteractive | + | |
- | debconf/priority: high | + | |
- | debconf-apt-progress/ | + | |
- | debconf-apt-progress/ | + | |
- | debconf-apt-progress/ | + | |
</ | </ | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
- | </WRAP> | + | |
- | ---- | + | * On older Ubuntu systems the following could be used, but this no longer works on new versions: |
- | + | ||
- | <code bash> | + | |
sudo dpkg-reconfigure dash | sudo dpkg-reconfigure dash | ||
</ | </ | ||
- | When asked **Install dash as /bin/sh?** specify **No**. | + | * When asked **Install dash as /bin/sh?** specify **No**. |
- | + | ||
- | <WRAP info> | + | |
- | **NOTE: | + | |
- | + | ||
- | * 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. | + | |
</ | </ | ||
- | |||
- | < | ||
- | debconf: unable to initialize frontend: Dialog | ||
- | debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at / | ||
- | debconf: falling back to frontend: Readline | ||
- | </ | ||
- | |||
- | |||
- | **NOTE: | ||
Line 226: | Line 181: | ||
---- | ---- | ||
- | ===== Install multimedia codecs ===== | + | ==== Set the timezone |
<code bash> | <code bash> | ||
- | sudo apt install ubuntu-restricted-extras -y | + | sudo dpkg-reconfigure tzdata |
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- |
systems/media_server/install_ubuntu_server.1748615071.txt.gz · Last modified: 2025/05/30 14:24 by peter