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.
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”
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!
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:
-
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
-
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
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]
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
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
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 ![]()
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
more can be found here
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
![]()











