≡ Menu

Troubleshooting Unix / Linux Servers

Troubleshooting tips about Linux, *BSD, UNIX, Apple OS X, programming and MS-Windows servers and desktop systems ( rss feed ).

Linux 82801G ICH7 Family Sound Card Not Working On a Laptop

I've 82801G ICH7 family sound card installed on my laptop and not working with both Debian and Ubuntu Linux? How can I fix this problem and make sure 82801G ICH7 chipset based sound card work on a Linux?
[click to continue…]

curl: If-Modified-Since Command Linux / Unix Example

HTTP protocol allows a client to specify a time condition for the document it requests. It is If-Modified-Since or If-Unmodified-Since. How do I use curl Unix/Linux command line option to test a server with If-Modified-Since condition and validate Last-Modified settings?
[click to continue…]

gnome-terminal: There Was An Error Creating The Child Process For This Terminal

I am using CentOS 5 on my laptop. If I open gnome-terminal by right clicking the desktop, I am getting an error that read as follows:

There was an error creating the child process for this terminal

How do I fix this problem and open a terminal by right clicking the Debian / Ubuntu / CentOS / Fedora / RHEL / Red hat Enterprise Linux 5.x desktop system?
[click to continue…]

RHN yum command: Unable to read consumer identity Warning and Solution

I am using yum update command with RHN to upgrade packages installed on my server, but getting the following warning on screen :

yum update -y
Loaded plugins: product-id, protectbase, rhnplugin, security, subscription manager:
Updating certificate-based repositories.
Unable to read consumer identity
0 packages excluded due to repository protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check

How do I get rid of this warning /error under RHEL 6 server?
[click to continue…]

HowTo: Speedup ping and traceroute Command Responses under Linux / Unix

The following question was asked in the Unix networking exam:

How do you speed up ping and traceroute command responses under Unix or Linux operating systems?

[click to continue…]

Debian / Ubuntu: Fatal error: Python.h: No such file or Directory

I'm trying to install 3rd party python apps using pip command and getting the following error:

gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o

src/MD2.c:31:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Where can I find Python.h file and how do I fix this problem under Debian or Ubuntu Linux sever based system?
[click to continue…]

HowTo: Check Swap Usage in Linux

How do I check swap (paging) usage under Linux operating systems using command bash/ksh line options?
[click to continue…]

One of my php script called setoptions.php is hosted on my new vps server. However, it is not working so I setup php error log as described here and, and I see the following warning repeated in my log file:

PHP Warning: fread(): Length parameter must be greater than 0 in /var/www/html/scripts/setoptions.php on line 311

The line no # 311 is as follows in my php script:
$fname = 'myappconfig.php';
$content = fread($fhandle,filesize($fname));

How do I fix this problem under Unix/Apache/php5 server?
[click to continue…]

Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ]

How do I find out my SATA link speed? How do I make sure my sata hard disk is working at 6Gbps speed and how do I verify this on a Linux server running on HP or IBM amd64 hardware?
[click to continue…]

Linux: Find Out What’s Using Up All Virtual Memory

How do I list or display all processes, executables, and shared libraries that are using up all virtual memory under Debian or Ubuntu Linux server for troubleshooting purpose?
[click to continue…]