How to generate Random/Secured passwords in Linux? Copy and paste the following code at the end of /root/.bashrc file genpasswd() { local l=$1 [ "$l" == "" ] && l=20 tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs } Then type, genpasswd 12 Output: zzCKSosOXTEK Yo...
Apache self signed certificate HOWTO? Generate the keys for the Certificate Authority (the key that will do the signing) openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt Generate the private key for your server openssl genrsa -des3 -out server.key 4096...
How to install/add php modules on Ubuntu? Update the update repository #sudo apt-get update Install PHP modules Ex: # apt-get install php5-curl php5-gd php5-mcrypt Enable rewrite module # a2enmod rewrite (After this only that modules will be enabled and comes effective) Then, #/etc/init.d/apache2 r...