Linux and Windows Support  

make-it-great-again

Login or Register  

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

Who's Online  

We have 49 guests online

Measure disk I/O in Ubuntu

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.

Monday, 30 April 2012 12:05
 

Enable Internet Explorer in Windows 2008 Server

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

Tuesday, 17 April 2012 15:12
   

Change access permissions in command prompt

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:

Thursday, 29 March 2012 07:02
   

Parsing Apache access log files using PHP

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

Friday, 24 February 2012 13:34
   

Exchange 2010 Error: Unable to mount database

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)

Tuesday, 20 December 2011 09:34
   

Iterate through Hash of Hashes

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",
    },
);

Tuesday, 20 December 2011 09:10
   

Connecting one system to multiple networks

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: 

Monday, 28 November 2011 15:17
   

Page 6 of 19

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