Recently Updated Pages
Users and groups
Adding an existing user to an existing group usermod -a -G theExampleGroup theExampleUser Chang...
Basic authentication
To protect some directory with basic authentication we have to edit the virtual host file and add...
Encoding and collation
Changing database encoding and collation ALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = la...
SSH / SCP without known_hosts check
When we want to connect to a remote host using different credentials and we have automatic login ...
Grub
Setting the default runlevel in Ubuntu 16.04 Mapping between runlevels and systemd targetsRu...
Cloning existing machine on Vmware ESXI
http://www.mustbegeek.com/create-copy-of-existing-virtual-machine-in-esxi-server/
Passwords
Use pwgen to generate ramdom passwords pwgen will generate easy to remember passwords # pwgen ...
Linux auto-login on MySQL
Create file ~/.my.cnf and add the following lines, replace mysqluser and mysqlpass values with ...
Reverse proxy
Some apache modules have to be enabled: sudo a2enmod ssl sudo a2enmod proxy sudo a2enmod proxy...
Colours on terminal
<?php /* Black 0;30 Blue 0;34 Green 0;32 Cyan 0;36 Red 0;31 Purple 0;35 Brown 0;33 Li...
Services
Enabling ssh on Ubuntu sudo apt-get install openssh-server sudo service ssh status Rem...
Reset root password
sudo /etc/init.d/mysqld stopsudo /etc/init.d/mysqld statussudo mysqld_safe --skip-grant-tables &a...
Settings
Store passwords Edit the file ~/.my.cnf and adapt the following code: [client]user=rootpasswor...
Bibliography
https://askubuntu.com/questions/788323/change-runlevel-on-16-04http://www.hypexr.org/linux_scp_he...
File management
Scp file copy examples Copy the file "foobar.txt" from a remote host to the local host$ scp your...
Dumping data
One Insert statement for each data row mysqldump --extended-insert=FALSE
Links
http://dstarportugal.com/novo/index.php