Disable AppArmor in Ubuntu
Answer:
A lot of people don't like AppArmor and think it is too annoying, just like the SELinux, people sometimes want to disable it.
To do so:
# sudo invoke-rc.d apparmor stop
# sudo update-rc.d -f apparmor remove
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Disable AppArmor in Ubuntu
Answer:
A lot of people don't like AppArmor and think it is too annoying, just like the SELinux, people sometimes want to disable it.
To do so:
# sudo invoke-rc.d apparmor stop
# sudo update-rc.d -f apparmor remove
How to change the default Ubuntu's NTP server
Answer:
If you are using the ntpd daemon, edit the file /etc/ntp.conf and change
server uk.pool.ntp.org
server de.pool.ntp.org
You can fine more servers in this link: http://www.pool.ntp.org/en/
Setup time synchronisation in Ubuntu
Answer:
Install the ntp daemon is what you need.
# sudo apt-get install ntp
Open a TCP port in Ubuntu's ufw firewall
Answer:
To open a TCP port, e.g. 8080 in the Ubuntu's UFW firewall (Uncomplicated firewall)
# sudo ufw allow 8080/tcp
# sudo ufw reload
How to generate random password?
Answer:
Install the "makepasswd" package, for example, in Ubuntu, type
sudo apt-get install makepasswd
Then execute command
# makepasswd
ShdDHNt7z
Or you can use another tool called pwgen
sudo apt-get install pwgen
and execute
# pwgen 8 10
It will generate 10 passwords with length equal to 8