Sudo user on Ubuntu server
sudo adduser foo_username
sudo usermod -aG sudo foo_username
How To Create a Sudo User on Ubuntu https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
sudo adduser foo_username
sudo usermod -aG sudo foo_username
How To Create a Sudo User on Ubuntu https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
rm -rf *
How To Delete the Contents of a Linux Directory https://ccm.net/faq/11147-linux-delete-the-contents-of-a-directory
Stopmotion is available from the official Debian repository (testing/unstable).
Type the following command to install: apt-get install stopmotion : http://developer.skolelinux.no/info/studentgrupper/2005-hig-stopmotion/index.php?side=3
user blog: http://matangdilis.blogspot.hu/2009/09/stopmotion-animation-with-webcam-in.html
Thread: stopmotion-webcam not working : https://ubuntuforums.org/showthread.php?t=931208
sudo apt-get update
sudo apt-get install postfix
sudo nano /etc/postfix/main.cf
remove the alias_maps parameter and replace it with virtual_alias_maps!!
virtual_alias_maps = hash:/etc/postfix/virtual
sudo nano /etc/postfix/virtual
@example.com yourusername
sudo service postfix restart
sudo apt-get install mailutils
How To Install and Setup Postfix on Ubuntu 14.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04
How To Install and Configure Postfix on Ubuntu 16.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04
Setup mail server on ubuntu 14.04 ( Postfix – dovecot ) : http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14-04/
PostfixBasicSetupHowto : https://help.ubuntu.com/community/PostfixBasicSetupHowto
GNU Mailutils : http://mailutils.org/manual/html_node/Reading-Mail.html
firewall!!! sudo ufw allow Postfix
Mail forward:
virtual_alias_maps = hash:/etc/postfix/virtual
To catch and forward emails to any address for a given domain, use the following notation
@mydomain.com myself@gmail.com mystaff@gmail.com
http://www.binarytides.com/postfix-mail-forwarding-debian/
Configure a Postfix Relay through Gmail on Ubuntu : https://devops.profitbricks.com/tutorials/configure-a-postfix-relay-through-gmail-on-ubuntu/
Configure Postfix to use Gmail as a Mail Relay 2016: https://www.howtoforge.com/tutorial/configure-postfix-to-use-gmail-as-a-mail-relay/
sudo nano /etc/apache2/conf-available/phpmyadmin.conf
Alias /whateveryouwant /usr/share/phpmyadmin
https://www.digitalocean.com/community/questions/how-do-i-change-phpmyadmin-access-url
Remove domain/phpmyadmin link:
sudo unlink /var/www/phpmyadmin
How To Install and Secure phpMyAdmin on Ubuntu 14.04 : https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04
The mbstring extension is missing. – Solution:
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install php7.0-mbstring
and then sudo service apache2 restart.
the solution:
sudo apt-get install software-center
http://askubuntu.com/questions/760776/just-installed-ubuntu-16-04-but-no-software-center
Write in the console: apt-get moo
user::~$ apt-get moo
(__)
(oo)
/——\/
/ | ||
* /\—/\
~~ ~~
…”Have you mooed today?”…
How To Set Up a Firewall with UFW on Ubuntu 14.04?: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-14-04
Some UFW command:
sudo apt-get install ufw [install]
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 22 [or your ssh port]
sudo ufw allow http
sudo ufw allow https
sudo ufw allow [port for your web admin!]
sudo ufw allow ftp
sudo ufw deny ftp
sudo ufw allow 22
sudo ufw deny 22
sudo ufw disable
sudo ufw status verbose
sudo ufw enable
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install deborphan
sudo deborphan | xargs sudo apt-get -y remove –purge (2 line)
sudo reboot (or from VNC console)
*****************************
The command du “summarizes disk usage of each FILE, recursively for directories:
du -hs /path/to/directory
http://askubuntu.com/questions/1224/how-do-i-determine-the-total-size-of-a-directory-folder-from-the-command-line
Find the top 10 largest files and directories on Ubuntu:
sudo du -a / | sort -n -r | head -n 10
http://wiki.ddenis.com/index.php?title=Find_the_top_10_largest_files_and_directories_on_Ubuntu
What’s eating my disk space?
should tell you where the space is consumed: sudo du -x -d1 -h /
http://unix.stackexchange.com/questions/113840/whats-eating-my-disk-space
Cleaning up Ubuntu 14.10,14.04,13.10 system : http://www.ubuntugeek.com/cleaning-up-a-ubuntu-gnulinux-system-updated-with-ubuntu-14-10-and-more-tools-added.html
******************************
Remove “orphaned” packages
If you want to remove orphaned packages you need to install deborphan package.
Install deborphan in Ubuntu
sudo apt-get install deborphan
Using deborphan
Open Your terminal and enter the following command
sudo deborphan | xargs sudo apt-get -y remove –purge
*****************************
sudo apt-get autoremove