Posted on February 21st, 2008 by linux
There is a simple trick how to round floating point numbers within bash script. I’m sure that there are other ways how to round floating point number in bash, if you know other way let me know :
#!/bin/bash
# obtain floating point number
floating_point_number=`echo “2153.6 * 0.98″ | bc`
echo $floating_point_number
# get rounded number
for rounded_number in $(printf %.0f [...]
Filed under: Administration, Bash, Linux, Scripting | No Comments »
Posted on February 20th, 2008 by linux
Here is a simple way to create virtual disk for vmware:
vmware-vdiskmanager -c -t 0 -s 1GB -a ide vmware_virtual_disk.vmdk
this creates 1GB IDE disk.
to create SCSI virtual disk with vmware-vdiskmanager use command:
vmware-vdiskmanager -c -t 0 -s 1GB -a buslogic vmware_virtual_disk.vmdk
Filed under: Administration, Linux, vmware | No Comments »
Posted on February 8th, 2008 by linux
Installing a drivers for GeForce 8800 GTX on debian or ubuntu can not get easier these days.
1) install envy script:
http://albertomilone.com/nvidia_scripts1.html
2)
run envy from a command line as a root and follow simple steps
# envy
3)
reboot you linux box
Filed under: GNOME, KDE, Linux | No Comments »