Blog

how to change date on linux

Open your terminal gnome-terminal Type date for show the current date and time date Tue Apr 12 Mon Mar 16:00:00 GMT 2011 To change the date type some think like below date 041218002013 In details is sudo date 04 (Month) 12 (Day) 1800 (Time in 24hour) 2013 (Year)

Change 404 Page on Apache – Linux

Use the ErrorDocument directive in your conf file to set a custom error message. The easiest way to do this: Create a file with your custom error message. Save it in: vim /var/www/not_found.html  Edit  vim /etc/apache2/httpd.conf : Find the line that says: #ErrorDocument 404 /not_found.html Remove the leading “#”. ErrorDocument… Read More »Change 404 Page on Apache – Linux

Sendmail Masquerading

After install sendmail .. follow the below procedure to simply avoid your emails to get spammed. Also avoid email address to shown as root@example.domain.com with masquerading. This feature allows multiple hosts to send mail from the same domain name. Configure sendmail.mc file. # vim/etc/mail/sendmail.mc and at the bottom of the… Read More »Sendmail Masquerading

Disable Suspend and Hibernate – Ubuntu

Open a Terminal from Applications>Accessories>Terminal. Become a root with su – or sudo su – vim /usr/share/polkit-1/actions/org.debian.aptxapianindex.policy Find the lines: <allow_active>yes</allow_active> Change this entry from “yes” to “no” to disable hibernate/suspend. <allow_active>no</allow_active>