ubuntu_tips_tricks_and_notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ubuntu_tips_tricks_and_notes [2024/12/26 08:26] – mike | ubuntu_tips_tricks_and_notes [2026/01/10 19:26] (current) – mike | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Ubuntu Tips, Tricks and Notes ====== | ====== Ubuntu Tips, Tricks and Notes ====== | ||
| ---- | ---- | ||
| + | ==== Mirrors ==== | ||
| + | The default mirror is **%%http:// | ||
| + | |||
| + | The preferred mirror is **%%http:// | ||
| + | |||
| + | | ||
| ==== 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: | ||
| Line 8: | Line 14: | ||
| === Disable IPv6 === | === Disable IPv6 === | ||
| - | The recommend method to disable IPv6 on Ubuntu | + | To disable IPv6 on Ubuntu during boot time, open the / |
| - | + | ||
| - | To do so open the / | + | |
| FROM: | FROM: | ||
| GRUB_CMDLINE_LINUX_DEFAULT="" | GRUB_CMDLINE_LINUX_DEFAULT="" | ||
| Line 17: | Line 21: | ||
| GRUB_CMDLINE_LINUX_DEFAULT=" | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| GRUB_CMDLINE_LINUX=" | GRUB_CMDLINE_LINUX=" | ||
| - | Once you have made the above change within the / | + | Once you have made the above change within the / |
| sudo update-grub | sudo update-grub | ||
| + | | ||
| + | Reboot the system afterwards. | ||
| === Enable console screen blanking === | === Enable console screen blanking === | ||
| - | Edit the / | + | Edit the / |
| + | |||
| + | Once you have made the above change within the / | ||
| sudo update-grub | sudo update-grub | ||
| + | |||
| + | Reboot the system afterwards. | ||
| === To install Samba: === | === To install Samba: === | ||
| Line 48: | Line 58: | ||
| === Install phpmyadmin === | === Install phpmyadmin === | ||
| + | |||
| sudo apt update | sudo apt update | ||
| - | sudo apt install phpmyadmin | + | sudo apt install phpmyadmin |
| + | sudo phpenmod mbstring | ||
| + | sudo systemctl restart apache2 | ||
| mysql | mysql | ||
| + | mysql> SELECT user, | ||
| mysql> ALTER USER ' | mysql> ALTER USER ' | ||
| + | |||
| + | === Installing Portainer to manage Docker containers === | ||
| + | |||
| + | 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 === | ||
| Line 63: | Line 81: | ||
| '' | '' | ||
| + | |||
| + | ==== Ubuntu Desktop (Gnome/GUI) Stuff ==== | ||
| + | |||
| + | === Set login screen default resolution === | ||
| + | - Login and set the screen resolution as desired. | ||
| + | - Once set, copy the file **~/ | ||
| + | - Ensure the user/group ownership is set to **gdm.gdm**. | ||
| + | - Reboot the system to apply the changes. | ||
| + | |||
| + | === Eliminating the annoying repeated authentication dialogs when logging in via xrdp === | ||
| + | Edit the file **/ | ||
| + | |||
| + | [Allow Colord all Users] | ||
| + | Identity=unix-user: | ||
| + | Action=org.freedesktop.color-manager.create-device; | ||
| + | ResultAny=no | ||
| + | ResultInactive=no | ||
| + | ResultActive=yes | ||
| + | |||
| + | If the issue persists afterwards, a reboot of the system should resolve it. | ||
| + | |||
| + | === Fixing the Low Battery Alert === | ||
| + | Found on Reddit; will "clean it up" later... | ||
| + | |||
| + | cd / | ||
| + | sudo nano UPower.conf\\ | ||
| + | If you set UsePercentageForPolicy=true then edit the percentage lines to your liking, such as:\\ | ||
| + | PercentageLow=50\\ | ||
| + | PercentageCritical=35\\ | ||
| + | If you prefer a time based approach, then set UsePercentageForPolicy to false and set the time notification options to your liking, such as:\\ | ||
| + | TimeLow=1200\\ | ||
| + | TimeCritical=300\\ | ||
| + | Hit ctrl+X to save the UPower.conf file and close out of nano editor.\\ | ||
| + | Reboot computer or sudo systemctl restart upower for changes to take effect.\\ | ||
| + | |||
ubuntu_tips_tricks_and_notes.1735230417.txt.gz · Last modified: by mike
