Pages

Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, July 19, 2014

Set up htaccess permissions in ubuntu 14.04

We need to enable mod_rewrite

sudo a2enmod rewrite 

Then we need to restart Apache using following command

 
sudo service apache2 restart 

Then add following lines to /etc/apache2/sites-available/000-default.conf

<Directory "/var/www">
   Options FollowSymLinks 
   AllowOverride All
</Directory>

My apache directory is "/var/www" if yours is different change it to taste

Restart Apache again

sudo service apache2 restart 

Sunday, January 26, 2014

Debian/Linux/Ubuntu-Configure Postfix to use Gmail

Configure Postfix to use Gmail

Install necessary packages first

 sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules  

 Configure Postfix using


 sudo dpkg-reconfigure postfix  


Navigate to Postfix Directory

 cd /etc/postfix  

Open Postfix config file using following command

 sudo gedit main.cf  

Add following lines to it


 relayhost = [smtp.gmail.com]:587  
 smtp_sasl_auth_enable = yes  
 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd  
 smtp_sasl_security_options = noanonymous  
 smtp_tls_CAfile = /etc/postfix/cacert.pem  
 smtp_use_tls = yes  

Now we need to create a file called sasl_passwd


 sudo vi /etc/postfix/sasl_passwd  

Add the following line to the same


 [smtp.gmail.com]:587  USERNAME@gmail.com:PASSWORD  

Configure permissions for sasl_passwd


 sudo chmod 400 /etc/postfix/sasl_passwd  
 sudo postmap /etc/postfix/sasl_passwd  

Validate Certificates


 cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem  

Reload Postfix


 sudo /etc/init.d/postfix reload  

Test Mail from Terminal


 echo "Test mail from postfix" | mail -s "Test Postfix" you@example.com  

Copy of my php.ini mail section


 SMTP = ssl://smtp.gmail.com  
 smtp_port = 587  
 auth_username = usrname  
 auth_password = pwd  
 sendmail_from = from_mail  

Wednesday, April 3, 2013

Ubuntu Unity Indicators Missing-Power,Time,Shutdown

If you are in a mess with unity and some of your indicators have vanished here is a some commands to bring them back

For Shutdown and user profile use following command

sudo apt-get install indicator-session

for  Time use

sudo apt-get install indicator-datetime

For Battery and Power use 

sudo apt-get install indicator-power

Ubuntu-Unity Issues-Font Issues-Dash Home not Finding Applications

Recently I went through this error during Ubuntu update to version 12

A text of white on white was appearin also Dash Home was not finding applications.The result was due to corrupted Unity User Interface.

To correct the same I ran following 2 commands from Terminal

rm ~/.cache/software-center -R
 
which sorted out my issue of ubuntu sodtware center not running
 
and then
 
unity --reset &
 
which told me to do a complete reinstall of unity via following command
 
sudo apt-get install unity