One more way to count CPUs in Linux

Here is one more way to find out how many CPUs are used by Linux: cat /proc/cpuinfo | grep “^vendor_id” | wc -l As for me I use this way to make sure that SMP kernel should be installed. You’re welcome to suggest your ways of doing the same in comments. Thank you in advance!

Read more →

 

Fedora Core remote installation howto

Sometimes it happens that it’s necessary to install Fedora Core onto server you have not physical access to and there is to luck to find any person who can do it for you there. Some other distributions like Debian provides remote ssh installation while Fedora (as well as Red Hat and CentOS) allows to install it over telnet from different computer over the network. To get it done it’s enough […]

Read more →

 

CGI Perl scripts debugging (solve 500 Internal Server Error)

When you run your perl scripts in browser you would get “500 Internal Server Error” when something goes wrong. There would be several reasons of this but one thing to be done is to check if your perl script contains errors. To do it login to server you’re running perl script (I hope you use Linux ;] ) and execute command: /usr/bin/perl -w /path/to/script.cgi It will show debug information and […]

Read more →

 

Automatic "zombie" processes killing (shell script)

Here is a shell script example that can be run by cron for automatic killing of “zombie” processes in Linux system: zombies.sh

Read more →

 

Quick shell change for user in Unix or Linux

In order to change shell for a particular user of Unix/Linux system without editing /etc/passwd file manually just use command: chsh -s /path/to/shell username for example, to change shell to ‘sh’ from ‘bash’ for user ‘viper’, use command: chsh -s /bin/sh viper

Read more →