cribs

Duplicate name exists

After starting windows xp pro, I got:

Duplicate name exists.

Solution:

If changing name for sth random (for example 376huf2e) does not help, check if the workgroup name is not same as one of computers in your network. For me - it solved the problem.

Tags: , ,

Monday, November 10th, 2008 Tips, cribs, windows No Comments

enabling interrupts - vmware esx 3.5i hangs at this

After making my magic usb key with vmware :) I was trying to install vmware esx 3.5i at HP ProLiant DL160 G5 (two quadcore processors, a lot of ram, and 4 sata 1TB disks). But with no success… The problem was that installer hanged up at “enabling interrupts” screen.
The solution I found here you should just add acpi=off to your bootloader promt, as it is said in the vmware communities:

to enable installing ESX on HP Proliant DL160 G5 you should:

1. Press Tab on very first screen of ESXi install
2. Move cursor just after first tgz filename and write “acpi=off”
3. press Enter and ESXi successfully install on DL160G5
4. Be careful because after this setting is lost and problem appears again - solution:
a) disconnect HDD, connect to computer with Win XP (Marti: or another else!), then edit boot.cfg on second partition andin second line set “kernelopt=acpi=off”
b) after starting ESX go to console (Alt-F1, see also “usupported” mode and “enable SSH in ESX” topics) type vi /bootbank/boot.cfg and set “kernelopt=acpi=off”

Tags: , , ,

Tuesday, September 16th, 2008 Linux, cribs, vmware No Comments

unscrew the IBM U320 disks screw, and connect it to simple u320 controller

I have two unused U320 SCSI drives from IBM (73GB 15 000 rpm), and would like to use it in server which does not supply the hot swap IBM U320 scsi 80 pin backplane. What is more, I have a controler which has just 68 pin u320 plug. If you have a problem how to connect hot swap drive into standard 68 pin u320 scsi this is the solution:

First: buy the adapter like this:

Connect one side to power plug and 68pin cable, and the disk to another side, and that’s all, your drive should be seen by your contoller.

Next thing is to uscrew this strange screws! To do this you will need a T10 TORX with a hole iside of it - that is all!

Tags: , , , ,

Friday, September 12th, 2008 IBM, Tips, cribs No Comments

pcl5 and pcl6 difference

Yeah… today is a printer day :) :]

Almost every printer in my printerhood has avaliable to download driver pcl5 and pcl6 version… so what is the difference, and what driver I should use. There is an answer in hp docs.

and followed by this site:

Descriptions of the different drivers
PCL drivers
HP to provide an efficient way to control printer features across many different printing devices created PCL. PCL was originally devised for the HP Dot Matrix and Inkjet series printers. The first printer HP LaserJet series printer was released in 1984 with the PCL 3 language.
PCL commands are compact escape sequence codes that are embedded in the print job before being sent to the printer. HP PCL formatters and fonts are designed to quickly translate application output into high-quality, device-specific, raster print images.
The PCL printer language is common to all HP printers and provided the commands needed to support color printing. There are six versions (1 thru 6) of PCL. Each subsequent version of the language includes commands not found in older versions as well as the older PCL commands. As a result, printers with more recent versions of PCL are backwards compatible with software that supports older versions of the language.
There are currently two versions of PCL that are used:
PCL 6 driver - PCL 6 uses a new modular architecture that can be easily modified for future HP printers and exhibits the following characteristics:
  • Returns faster to the application after spooling data
  • Prints complex graphics faster
  • Data streams are more efficient for reduced network traffic
  • Better WYSIWYG printing
  • Improved print quality
  • Truer document fidelity
  • Complete backward compatibility
The PCL 6 language is very different from the earlier versions of PCL. One significant difference is the manner in which the commands are sent to the printer. Use the PCL 6 driver to take full advantage of the printer features. The PCL 6 driver is recommended unless backward compatibility with previous PCL drivers or older printers is necessary.
PCL 5 drivers - The PCL 5c driver provided the commands needed to support printing in color. Use the PCL 5e driver to preserve compatibility with documents created for older printers.
PS drivers - The PostScript (PS) was originally designed by Adobe® and is an interpretive programming language with powerful graphic capabilities. A program in this language communicates a description of a document to an output device (such as a printer). Generally, PostScript is recommended for use when the following are necessary:
  • Matching font styles with other users in an organization
  • When printing in a Macintosh environment
  • When rendering graphics in a specific manner
  • When printing with PostScript specific applications

Tags: ,

Thursday, September 4th, 2008 cribs No Comments

Remove Compress Old Files Feature

I found it very annoying… every time i tried to use Disk Cleanup Tool in windows xp it took a long time to find files it could compress… I ask - WHAT FOR?

Compressing is the last thing I need. There is a good way to disable this or even more… just take a look in your registry at key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files

Then delete whole key, or make a file “rm_compress.reg” file and paste there (or you can download mine:

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files]

Tags: ,

Wednesday, August 20th, 2008 Tips, cribs, windows No Comments

niceshaper class file generator

Because I found rather impossible to write almost 100 entries into my class.ns file (form niceshaper 0.6), I did really easy oneliner to to this :)… proof of concept, but you can easly use it.

for i in `seq 10 100`; do echo -e “class download eth1 computer$i \n match dstip 192.168.2.$i \n htb prio 2 \nclass upload eth0 computer$i \n match srcip 192.168.2.$i \n htb prio 2 \n”; done >> class.nc

and the output simple output looks like this (one entry)

class download eth1 computer11
match dstip 192.168.2.11
htb prio 2
class upload eth0 computer11
match srcip 192.168.2.11
htb prio 2

you need explanation? OK…

seq x y - make sequential output from x to y, so if your IP class is from 22 to 38 change it to seq 22 38

everything else is based at number generated from seq so the computerXX identifier is same as its end of IP address, which for me is not a big problem, but there is no problem to take an entries form cat users.txt

Tags: , ,

Wednesday, June 18th, 2008 Linux, Tips, cribs 3 Comments

simple password generator

My own oneliner… a password generator:

tr -cd a-zA-Z0-9 < /dev/urandom | head -c 8

generates the random output and in this example show first 8 signs

example:

$ tr -cd a-zA-Z0-9 < /dev/urandom | head -c 8
GVGlkDw3

Tags:

Monday, June 16th, 2008 Tips, cribs No Comments

make a picture index from your photo gallery

You have a lot of photos, and you would like to make a photo index, but you don’t have any professional photo program. But you have console and imagemagick… It couldn’t be easier ;)

So I have 6 photos (all 1024×768):

and i want to make one jpg with all of them in mini size, just execute in dir that contains this jpgs:

montage -trim -tile 3×2 -background black -geometry 400×320+0+0 *.jpg out_%d.jpg

and here is the effect:

tile - how much rows and colums you need

geometry - one miniature size

%d - mean that if you have more than 40 miniatures than it will make next file starting from 0 to… infinity ;)

Tags:

Sunday, June 8th, 2008 cribs No Comments

adding text to photos from commandline

Imagemagick is kind of stuff that everybody knows from name, but almost nobody know how to use. If you want to generate some text at your photos, change size, add watermark or whatever you want to do with picture (with no need to see this picture), or make some script that automaticaly add something to picture you have to use imagemagick :)

One of my ideas is to make a scripts which add a date to picture, like this:

montage -geometry +0+0 -background gray -label “`date`” source.jpg destination.jpg

power 6

more can be found here

Tags: ,

Sunday, June 8th, 2008 Tips, cribs No Comments

files with no valid users

Totay tip:

sometimes in some migrations, reinstall or sth, or even in backup places, you have some files owned by no valid user for current system. It is rather high security issue (in mulituser systems), so you can find every file that does not have a valid user which can be found in /etc/passwd, how?

find / -nouser > no_no_valid_user

:)

Tags:

Sunday, June 1st, 2008 Linux, Security, Tips, cribs No Comments