Protocol major versions differ: 1 vs. 2

Protocol major versions differ: 1 vs. 2.  The error above normally comes up when you try to ssh into a machine which has it’s allowed ssh protocol versions locked down to a single version, today it’s normally version 2. In the /etc/ssh/sshd_config file there’s a “Protocol” parameter which governs the allowed protocol version. It’s normally…

cannot allocate memory error

Had a weird memory error my Linux servers at work today. These were heavy duty machines running  heavy jobs throughout the day. /var/log/messages kept reporting that the kernel had no more memory to process new jobs. Most of the errors read ” cannot allocate memory “ Some digging around later we found the fix. Kernel…

How to install Adobe AIR 1.5 on Ubuntu 8.10

1. Download Adobe AIR 1.5 at http://get.adobe.com/air/ or use the direct Link . 2. Assign execute rights to  the “AdobeAIRInstaller.bin”file to start the installer. danesh@python:~/Desktop$ chmod +x AdobeAIRInstaller.bin 3. Execute  the “AdobeAIRInstaller.bin” file to start the installer. danesh@python:~/Desktop$ ./AdobeAIRInstaller.bin Related: How to install twhirl

How to install GScrot – Screenshot Tool

Update [  Feb 16 2009 ] – GScrot has been renamed to Shutter. GScrot is a popular screen-shot tool for Linux. GScrot is currently at version 0.64. It runs best on GNOME and has a good feature list. Capture a website, whole desktop, individual window or a custom selection. Support for delayed screen-shots. Plug-ins for…

How to find the number of physical CPUs in Linux

With multicore CPUs it’s easy for newbies to get confused when faced with questions like; 1. How many physical CPUs does the server have? 2. How many cores on each CPU? Duo/Quad In Linux it’s actually quite easy to get this info. You could go through the /var/log/dmesg file or the /proc/cpuinfo file. For this…