Login or Register

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

Special device UUID does not exist

Linux

Wednesday, 09 May 2012 20:30

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

Read more: Special device UUID does not exist

 

Convert SSL certificate from CRT format to PEM

Web Servers

Tuesday, 08 May 2012 12:23

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

Read more: Convert SSL certificate from CRT format to PEM

   

Measure disk I/O in Ubuntu

Linux

Monday, 30 April 2012 12:05

Q. I think I'm having disk I/O problems on my system. How do I check what it is or measure it?

A. First, you'll have to install some applications/tools:

apt-get install sysstat
apt-get install iotop

iotop command, much like top, will give you the real-time overview of your Read/Write requests. It's fun to look at, but we find useless for measuring I/O.

Read more: Measure disk I/O in Ubuntu

   

Enable Internet Explorer in Windows 2008 Server

Windows

Tuesday, 17 April 2012 15:12

internet explorer 9Q. How can I disable all those warning in Internet Explorer on my server and just the browser?

A. You have to disable Internet Explorer Enhanced Security Configuration (IE ESC).

1. To do that, go to Start -> Administrative Tools -> Server Manager

Read more: Enable Internet Explorer in Windows 2008 Server

   

Change access permissions in command prompt

Windows

Thursday, 29 March 2012 07:02

Q. Command-Prompt-iconI'm logged in as a non-privileged user and would like to change file permissions. How do I do that without logging out?

A. 1. First you have to open the command prompt as a privileged user. That can be found under Start -> "All Programs" -> Accessories. Right-click on the "Command prompt" icon and select "Run-As".

2. Once prompted, enter username and password.

3. On the command line, you can use a comman called CACLS. Here's the full list of things that it can do:

Read more: Change access permissions in command prompt

   

Parsing Apache access log files using PHP

PHP

Friday, 24 February 2012 13:34

php-logoThis is a bit dated, but I still come back to it. A small script (using regex) that parses apache log files. The data breakdown required:

IP ADDRESS - -
Server Date / Time [SPACE]
"GET /path/to/page
HTTP/Type Request"
Success Code
Bytes Sent To Client
Referer
Client Software

Read more: Parsing Apache access log files using PHP

   

Exchange 2010 Error: Unable to mount database

Windows

Tuesday, 20 December 2011 09:34

exchange2010Q. My Exchange server crashed and I'm trying to mount the database, with no luck.

This is the error that I get:

 

--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
Failed to mount database 'Mailbox Database'.
Mailbox Database 0610509261
Failed
Error:
Couldn't mount the database that you specified. Specified database: Mailbox Database; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)
. [Database: Mailbox Database, Server: server.domain.local].

An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)
. [Database: Mailbox Database, Server: server.domain.local]

An Active Manager operation failed. Error: Operation failed with message: MapiExceptionCallFailed:
. [Server: server.domain.local]

MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)

Read more: Exchange 2010 Error: Unable to mount database

   

Iterate through Hash of Hashes

Perl

Tuesday, 20 December 2011 09:10

perl logoHere's how you would iterate through multidimensional hashes in Perl:

Create a hash first:

#!/usr/bin/perl
use warnings;
use strict;

my %HoH = (
    flintstones => {
        husband   => "fred",
        wife   => "wilma",
        pal   => "barney",
    },
    jetsons => {
        husband   => "george",
        wife      => "jane",
        "his boy" => "elroy",  # Key quotes needed.
    },
    simpsons => {
        husband   => "homer",
        wife      => "marge",
        kid       => "bart",
    },
);

Read more: Iterate through Hash of Hashes

   

Connecting one system to multiple networks

Linux

Monday, 28 November 2011 15:17

Q. I have a Linux server that connects to the external network and internal. Both network cards have a gateway. How can I set it up, so that it can access both networks?

A. You would need to set up source routing. This can be done fairly easily, following those steps:

Open up /etc/iproute2/rt_tables, add those two at the bottom: 

Read more: Connecting one system to multiple networks

   

Page 1 of 11

  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »