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)
Add a service to auto start in linux Add the below #comment lines on top of the script which always located /etc/init.d/ #chkconfig: 2345 20 80 #description: Saves and restores system 2,3,4,5 are starting levels 20 startup priority 80 stop priority causes the line to be continued Finally add services to “autostart” chkconfig –add service1
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 404 /not_found.html Save. Restart apache.
After install sendmail .. follow the below procedure to simply avoid your emails to get spammed. Also avoid email address to shown as firstname.lastname@example.org 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 file you will find :
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>