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/24 10:40] – removed - external edit (Unknown date) 127.0.0.1 | ubuntu_tips_tricks_and_notes [2024/12/27 20:40] (current) – mike | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Ubuntu Tips, Tricks and Notes ====== | ||
+ | ---- | ||
+ | ==== Post-Installation ==== | ||
+ | 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'" | ||
+ | | ||
+ | Make sure to set the " | ||
+ | === Disable IPv6 === | ||
+ | To disable IPv6 on Ubuntu during boot time, open the / | ||
+ | FROM: | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT="" | ||
+ | GRUB_CMDLINE_LINUX="" | ||
+ | TO: | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | GRUB_CMDLINE_LINUX=" | ||
+ | Once you have made the above change within the / | ||
+ | sudo update-grub | ||
+ | | ||
+ | Reboot the system afterwards. | ||
+ | |||
+ | === Enable console screen blanking === | ||
+ | Edit the / | ||
+ | |||
+ | Once you have made the above change within the / | ||
+ | sudo update-grub | ||
+ | |||
+ | Reboot the system afterwards. | ||
+ | |||
+ | === To install Samba: === | ||
+ | |||
+ | sudo apt-get install samba cifs-utils | ||
+ | |||
+ | === To install NFS: === | ||
+ | |||
+ | sudo apt-get install nfs-common nfs-kernel-server | ||
+ | |||
+ | === To install mysql: === | ||
+ | |||
+ | sudo apt install mysql-server | ||
+ | sudo mysql_secure_installation | ||
+ | |||
+ | === Customizing the MOTD === | ||
+ | Put any customization data into /etc/motd | ||
+ | |||
+ | === Installing apache and php === | ||
+ | sudo apt update | ||
+ | sudo apt install apache2 | ||
+ | sudo apt install php libapache2-mod-php | ||
+ | sudo apt install php-mysql php-gd php-xml | ||
+ | sudo apt install phpmyadmin php-mbstring php-gettext | ||
+ | |||
+ | === Install phpmyadmin === | ||
+ | sudo apt update | ||
+ | sudo apt install phpmyadmin | ||
+ | mysql | ||
+ | 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 === | ||
+ | The trouble in this case is with the '' | ||
+ | |||
+ | To change this behavior, we can edit the ''/ | ||
+ | |||
+ | ''# | ||
+ | |||
+ | to | ||
+ | |||
+ | '' |