Linux and Windows Support  

looking

Login or Register  

If you wish to contribute an article, please login or register.

Who's Online  

We have 114 guests online

Apache Do Not Log

apacheQ. I'm trying to clean up my Apache logs. How do I not log certain events, such as local IP?

A. This can be achieved by setting a dontlog option in your configuration files:

For example, let's say you are indexing your site and don't want the local network to appear in the logs, you can add something like this:

SetEnvIf Remote_Addr "192\.168\." dontlog

Wednesday, 07 November 2012 10:42
 

How do I change the timezone in Ubuntu?

Q. How can I change the timezone in Ubuntu server?

A. Easy, just run the following command as sudo or root:

dpkg-reconfigure tzdata

Thursday, 25 October 2012 13:37
   

Send email from a command line

gnome terminal

Q. I would like to send an email from a command line in bash, how do I do that?

A. Assuming you have your outgoing server configured and either bsd-mailx or mailx (simple mail user agent for Linux) you can use this command to send out email:

echo "Email body text" | mail -s "Email subject" email@example.com

Tuesday, 18 September 2012 08:34
   

Stop logwatch from sending emails

Q. I would like to stop LogWatch from sending me daily emails.

A. LogWatch runs from cron.daily:

/etc/cron.daily/0logwatch

It's a link to:

/usr/share/logwatch/scripts/logwatch.pl

The simplest solution is to remove the link:

rm /etc/cron.daily/0logwatch

Wednesday, 08 August 2012 08:36
   

rpm command: list packages

Q. How do I search and query the packages installed on my Linux box using rpm? (OpenSUSE, FedoraCore, Red Hat, CentOS, etc).

A. You can query the packages using:

rpm -qa

This will output all packages installed, if you are looking for a particular package, you can pipe your results into grep. Here's for example a search for all packages that have "kernel" in the name:

rpm -qa | grep "totem"

Thursday, 19 July 2012 09:10
   

Save previous choice in GRUB bootloader

Q. I would like GRUB to remember my last OS choice and make that the selected option on the next boot. How do I do that?

A. This example is for GRUB2 - for GRUB 1 the options are slightly different.

Boot into Linux and make a backup of the following file:

sudo cp /etc/default/grub /etc/default/grub.bak

Thursday, 28 June 2012 06:23
   

Special device UUID does not exist

hard-drive-iconQ. I'm trying to mount a drive using UUID, but I get the following error: 

 

mount: special device /dev/disk/by-uuid/87470c42-4b34-475c-86d0-bf0df06d4f3c does not exist

 

A. You've just created the new partition and the OS doesn't see it. You can either reboot or run the following command 

sudo partprobe

Wednesday, 09 May 2012 20:30
   

Page 3 of 18

<< Start < Prev 1 2 3 4 5 6 Next > End >>
   
Copyright © 1999 - 2015 Virtual Helpme | e | Original Template: Allrounder