It is currently Sun Dec 22, 2024 5:55 am

News News of Linux specific

Site map of Linux specific » Forum : Linux specific

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives
Forum rules
All information is given AS IS

PDSH (Parallel Distributed SHell)

PDSH (Parallel Distributed SHell) issues commands to groups of hosts in parallel. It is a rewrite of IBM's dsh implementation done at LLNL.

pdsh is a variant of the rsh(1) command. Unlike rsh(1), which runs commands on a single remote host, pdsh can run multiple remote commands in parallel. pdsh uses a "sliding window" (or fanout) of threads to conserve resources on the initiating host while allowing some connections to time out.

...
Read more : PDSH (Parallel Distributed SHell) | Views : 3767 | Replies : 0


SMART basics

SMART basics

SMART is the abbreviation for "Self Monitoring And Reporting Technology". It is a standard interface protocol and set of the disk features that allows disk to check its status and report it to a host system. SMART information consists of "attributes", each one describing some particular aspect of drive condition. Some attributes may be designated "life-critical", which implies that the corresponding parameters are more important than other ones.

Three values are associated with ...
Read more : SMART basics | Views : 2906 | Replies : 0


Make an ISO Image

To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.
Code: Select all
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi

To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
Code: Select all
mkisofs -o /tmp/cd.iso /tmp/directory/

This results in ...
Read more : Make an ISO Image | Views : 2743 | Replies : 0


Common vi commands

Common vi commands

Image
Read more : Common vi commands | Views : 2690 | Replies : 0


How to extract an RPM package without installing it

As the name implies, rpm2cpio takes an RPM package file and converts it to a cpio archive. Because it's written to be used primarily as a filter, there's not much to be specified. rpm2cpio takes only only one argument.

Code: Select all
rpm2cpio php-pdo-5.1.6-24.el5_4.5.i386.rpm| cpio -idmv

./etc/php.d/pdo.ini
./etc/php.d/pdo_sqlite.ini
./usr/lib/php/modules/pdo.so
./usr/lib/php/modules/pdo_sqlite.so
202 blocks


Output of rpm2cpio piped to cpio command with following options:
i: Restore archive
d: Create leading directories where needed
m: Retain previous file modification times when ...
Read more : How to extract an RPM package without installing it | Views : 3281 | Replies : 0


Adaptec RAID controller monitoring

Download the Storage Manager RPM for your card model and architecture from the official site http://www.adaptec.com/en-US/support/raid/.
If you run /usr/StorMan/arcconf and get this error:
./arcconf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

You need to preload additional library:
Code: Select all
export LD_PRELOAD="/usr/StorMan/libstdc++.so.5"

Help information can be obtained with the help of the following command:
Code: Select all
/usr/StorMan/arcconf

| UCLI | Adaptec uniform command line interface
| UCLI | ...
Read more : Adaptec RAID controller monitoring | Views : 8586 | Replies : 1


Cron syntax helper

You can insert following code to simplify cron times edit:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command ...
Read more : Cron syntax helper | Views : 2181 | Replies : 0


Centos4 to Centos5 upgrade

How to update Centos4 to Centos5 without complete OS reload/re-setup

1. First of all we need to ensure that we have the latest Centos4 system:
Code: Select all
yum -y update

2. Make sure you disable all other repos and only have CentOS Base and Updates repositories enabled. It will require a bit more manual steps to perform an update in case other (non-default ones) repos were in use.
Code: Select all
cd/etc/yum.repos.d/

/etc/yum.repos.d/CentOS-Base.repo :
# CentOS-Base.repo
#
# The mirror ...
Read more : Centos4 to Centos5 upgrade | Views : 5365 | Replies : 0


Linux force fsck on the next Reboot/Boot

Force fsck on boot using /forcefsck

By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check.

Login as the root. Create a file called forcefsck:
Code: Select all
touch /forcefsck

Now reboot the system:
Code: Select all
reboot


Force fsck on next boot using shutdown command

The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:
Code: Select all
shutdown -rF now
Read more : Linux force fsck on the next Reboot/Boot | Views : 3010 | Replies : 0


Install FFMPEG FFMPEG-PHP on Centos

Install FFMPEG FFMPEG-PHP on Centos

Recently it became available to use binary packages for FFmpeg and other related codecs for media content management without need to compile all of them from the sources. Here is an instruction and packages set. Enjoy.

Enable RPMforge repos:

http://wiki.centos.org/AdditionalResour ... s/RPMForge
i386:
Code: Select all
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

x86_64
Code: Select all
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Installing packages:
yum install yasm faad2 faad2-devel opencore-amr opencore-amr-devel libtheora ...
Read more : Install FFMPEG FFMPEG-PHP on Centos | Views : 15235 | Replies : 1


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22

cron