Linux Consulting  

Login or Register  

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

Who's Online  

We have 86 guests online

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
   

Convert SSL certificate from CRT format to PEM

Q. Ubuntu 8.04 is setup by default to accept PEM certificates instead of CRT, is there any way to convert it?

A. You can convert the SSL certificates using the following commands:

openssl x509 -in server.crt -out server.der -outform DER

and:

openssl x509 -in server.der -inform DER -out server.pem -outform PEM

Tuesday, 08 May 2012 12:23
   

Page 3 of 17

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