First what is IPMI?

IPMI stands for Intelligent Platform Management Interface standardized computer interface for administrators to manage computer system and monitor its operation.

It is supported by most major providers – Intel (of course), Dell, HP…

Installation

Installation is really simple:

yum install OpenIPMI OpenIPMI-tools
chkconfig ipmi on
service ipmi start

If you see error at last command check system log – it is possible that your hardware does not support IPMI.

Usage

To to see what you can do with it:

ipmitool help
man ipmitool

Enjoy:)

Recently I had to create a bash script to copy some files based on date.

The rule was copy yesterday’s files to …

But How to determine what was the yesterdays date?

The answer was in date man page.

Here are the parts from the script related to yesterday date:

$date -d '1 day ago' +'%Y/%m/%d'
2011/06/02

on Internet I’ve found also:

date --date='yesterday'
Thu Jun  2 14:01:28 EDT 2011

And (Bonus!!) if you want to go in future ;)

date --date='tomorrow'
Sat Jun  4 14:04:29 EDT 2011

Happy scripting…

After release of Debian 6.0 (squeeze) the question of how to upgrade from previous version to the latest.

It appears to be fairly simple process:

1. Edit sources.list

vi /etc/apt/sources.list

2. Replace distribution name (I appeared to have Lenny) with Squeeze.

%s/lenny/squeeze/g

Note: DebianVolatile has been superseded by squeeze-updates since Debian Squeeze.

To use squeeze-updates just add

deb http://mirrors.kernel.org/debian squeeze-updates main contrib

to sources.list

Then as usual:

apt-get update
apt-get dist-upgrade

When working from Linux to a windows machine via remote desktop the obvious choice is tsclient.

In windows you just move your cursor at the top of the screen to the control bar and there you can click the button for windowed mode.

But tsclient does not have that instead you can use following keyboard combination: “Ctrl-Alt-Enter”.

Tip: To improve tsclient performance just go to performance tab and check enable bitmap caching.

Recently I had to check DNS records on specific server from Debian.
Excellent tool for this job is dig – it allows you to see all DNS records like: A, MX, TXT…

Unfortunately the tool was not installed.
The proper way of installing it is:

apt-get update && apt-get install dnsutils

In case you did update recently you can skip the first command.

From long time I did not update KompoZer page, but there was no stable version.

Anyway I’ve decided to publish an updated (even it is considered
development) version.

And for those of you who do not know the program:

KompoZer is a complete web authoring system that combines web file management and easy-to-use WYSIWYG web page editing.

KompoZer is designed to be extremely easy to use, making it ideal for non-technical computer users who want to create an attractive, professional-looking web site without needing to know HTML or web coding.

Visit my Kompozer RPM package page to download.

I love screen – it allows you to detach you console and still have the program running.

For more info:
man screen

Recently I experienced following error:
$ screen -r
Cannot open your terminal '/dev/pts/0' - please check.

After searching for solution I found several instructing to change permissions etc.

But different solution, almost “hack” is the one I like.
Before starting screen type:
script /dev/null
And after that you can type:
screen -r
Only drawback is that you need to type one additional exit for script to terminate.

Credits for this to Harry Jackson. Unfortunately the resource was not available so i did to put a link to the site.

find is LINUX/UNIX command to find files in file system.

Here you will find few tricks:

find ~ -type f mtime 0

Will show all files in your home folder created today.

find ~ -type f mtime 0 -iname '*.mp3'

Will narrow the search to .mp3 files only and iname is not case sensitive.

And if you want to search for files that are not belonging to you use:

find ~ ! -user ${USER}

Lot more options you can find in find man page

man find

All new computers do not have FDD (Floppy Disk Drive) and even you find one it could be rally hard to find good media.

As remedy to this you could still boot from a CD

But sometimes you even do not have CD/DVD drive.

And then you need to boot from floppy to update your BIOS.

So what to do?

Do not run to your basement looking for floppies. There is another way. You can use grub and syslinux.

First you need Linux installed (OR probably you already have it). Examples here are for Ubuntu.

Next step is to install needed software:
sudo aptitude install syslinux

Then download a floppy image:
http://www.allbootdisks.com/downloads/Disks/MS-DOS_Boot_Disk_Download47/Diskette%20Images/Dos6.22.img

Then mount the image:
sudo mount Dos6.22.img /mnt -o loop

You can remove everything except:

  • autoexec.bat
  • command.com
  • config.sys
  • himem.sys
  • io.sys
  • mscdex.exe
  • msdos.sys

After that in case of upgrading BIOS you need to copy new bios file and flash program.

Finally we will prepare the boot image.
sudo cp /usr/lib/syslinux/memdisk /boot/
sudo cp Dos6.22.img /boot/

Reboot and on grub screen press c and boot the image using:
root (hd0,0)
kernel memdisk
initrd Dos6.22.img

Sometimes is annoying having all this popups when VLC is minimized and track changes.

Here is how to disable them:
Go to Tools-> Preferences -> All -> Interfaces -> Main Interfaces -> Qt
and uncheck Notify on track change.

Next Page →

Switch to our mobile site