Linux

Installing build-essentials in CentOS or Ubuntu

This post desrcibes how to install “build-essentials” on CentOS/RedHat og Ubuntu/Debian. build-essentials provides the packages you need to build or compile source code (make and gcc) and create binary files. The build-essentials package is a quick way to install the packages needed to compile VMware Tools on a VMware guest. In Ubuntu $ sudo aptitude […]

Read More
Linux

Mount VMware virtual disk VMDK-file in a physical linux machine

This example has been used on a machine with VMware Workstation 9 installed locally. To mount a VMDK-file you can use the VMware command vmware-mount like this $ sudo vmware-mount /path/to/vmdk/file/name-of-vmdk-file.vmdk 1 /path/to/mount/point In the example above we have mounted partition 1 in the VMDK-file from the disk /path/to/vmdk/file/name-of-vmdk-file.vmdk The files are now accessible from […]

Read More
Linux

Add new harddisk to linux without reboot

This is a short post on how you can add a new SATA og SCSI harddisk in your running/live linux machine without a reboot. The BIOS of the machine is not aware of new hardware being added, but you can ask the disk controllers to rescan and become aware of new harddisks. This is how […]

Read More
Linux

Another way to randomize filenames

This post describes an easier way to randomize filenames using the command openssl compared to my previous post named Randomize filenames. #!/bin/bash for filename in *.JPG do mv “$filename” $(echo “$filename” | openssl rand -hex 3).JPG done After running this script the filenames can look something like this 26333c.JPG a8c7a0.JPG b16b22.JPG d69a67.JPG … The rand […]

Read More