ubuntu_tips_tricks_and_notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ubuntu_tips_tricks_and_notes [2026/04/27 12:19] – mike | ubuntu_tips_tricks_and_notes [2026/05/22 09:09] (current) – mike | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Ubuntu Tips, Tricks and Notes ====== | ====== Ubuntu Tips, Tricks and Notes ====== | ||
| - | ==== Mirrors ==== | + | ===== Mirrors |
| The default mirror is **%%http:// | The default mirror is **%%http:// | ||
| The preferred mirror is **%%http:// | The preferred mirror is **%%http:// | ||
| - | === Determine the fastest mirror === | + | ==== Determine the fastest mirror |
| snap install mirrorselect | snap install mirrorselect | ||
| mirrorselect --country us | mirrorselect --country us | ||
| | | ||
| - | ==== Post-Installation ==== | + | ===== Post-Installation |
| Make the output of the **df** command more friendly and less cluttered by creating a system-wide alias for it: | Make the output of the **df** command more friendly and less cluttered by creating a system-wide alias for it: | ||
| echo "alias df='df -h -x squashfs -x tmpfs -x devtmpfs'" | echo "alias df='df -h -x squashfs -x tmpfs -x devtmpfs'" | ||
| Line 16: | Line 16: | ||
| Make sure to set the " | Make sure to set the " | ||
| - | === Disable IPv6 === | + | ==== Disable IPv6 ==== |
| To disable IPv6 on Ubuntu during boot time, open the / | To disable IPv6 on Ubuntu during boot time, open the / | ||
| FROM: | FROM: | ||
| Line 29: | Line 29: | ||
| Reboot the system afterwards. | Reboot the system afterwards. | ||
| - | === Enable console screen blanking === | + | ==== Enable console screen blanking |
| Edit the / | Edit the / | ||
| Line 37: | Line 37: | ||
| Reboot the system afterwards. | Reboot the system afterwards. | ||
| - | === To install Samba: === | + | ==== To install Samba: |
| sudo apt-get install samba cifs-utils | sudo apt-get install samba cifs-utils | ||
| - | === To install NFS: === | + | ==== To install NFS: ==== |
| sudo apt-get install nfs-common nfs-kernel-server | sudo apt-get install nfs-common nfs-kernel-server | ||
| - | === To install mysql: === | + | ==== To install mysql: |
| sudo apt install mysql-server | sudo apt install mysql-server | ||
| sudo mysql_secure_installation | sudo mysql_secure_installation | ||
| - | === Customizing the MOTD === | + | ==== Customizing the MOTD ==== |
| Put any customization data into /etc/motd | Put any customization data into /etc/motd | ||
| - | === Installing apache and php === | + | ==== Installing apache and php ==== |
| sudo apt update | sudo apt update | ||
| sudo apt install apache2 | sudo apt install apache2 | ||
| Line 60: | Line 60: | ||
| sudo apt install phpmyadmin php-mbstring php-gettext | sudo apt install phpmyadmin php-mbstring php-gettext | ||
| - | === Install phpmyadmin === | + | ==== Install phpmyadmin |
| sudo apt update | sudo apt update | ||
| Line 70: | Line 70: | ||
| mysql> ALTER USER ' | mysql> ALTER USER ' | ||
| - | === Installing Portainer to manage Docker containers === | + | ==== Installing Portainer to manage Docker containers |
| sudo docker run -d -p 9443:9443 -p 8000:8000 --name portainer --restart=always -v / | sudo docker run -d -p 9443:9443 -p 8000:8000 --name portainer --restart=always -v / | ||
| - | === Disable interactive restart prompt while upgrading packages with apt === | + | ==== Disable interactive restart prompt while upgrading packages with apt ==== |
| The trouble in this case is with the '' | The trouble in this case is with the '' | ||
| Line 85: | Line 85: | ||
| '' | '' | ||
| - | ==== Ubuntu Desktop (Gnome/GUI) Stuff ==== | + | ===== Ubuntu Desktop (Gnome/GUI) Stuff ===== |
| - | === Set login screen default resolution === | + | ==== Set login screen default resolution |
| - Login and set the screen resolution as desired. | - Login and set the screen resolution as desired. | ||
| - Once set, copy the file **~/ | - Once set, copy the file **~/ | ||
| Line 93: | Line 93: | ||
| - Reboot the system to apply the changes. | - Reboot the system to apply the changes. | ||
| - | === Eliminating the annoying repeated authentication dialogs when logging in via xrdp === | + | ==== Eliminating the annoying repeated authentication dialogs when logging in via xrdp ==== |
| Edit the file **/ | Edit the file **/ | ||
| Line 105: | Line 105: | ||
| If the issue persists afterwards, a reboot of the system should resolve it. | If the issue persists afterwards, a reboot of the system should resolve it. | ||
| - | === Fixing the Low Battery Alert === | + | ==== Fixing the Low Battery Alert ==== |
| Found on Reddit; will "clean it up" later... | Found on Reddit; will "clean it up" later... | ||
ubuntu_tips_tricks_and_notes.1777317563.txt.gz · Last modified: by mike
