Posted on February 25, 2008 by linuxconfig
” Insufficient privileges to install the required version of D3DX ” this error message appears when you try to run EVE ONLINE game and you are missing d3dx9_35.dll win32 library in:
/.cedega/EVE\ Online/c_drive/windows/system32/
Make sure that you download d3dx9_35.dll NOT d3dx9_30.dll since d3dx9_30.dll is not he version required. Here are some resources to help with this problem:
http://www.cedegawiki.sweetleafstudios.com/wiki/Eve_Online
http://www.m3fe.com/760/ [...]
Filed under: Games, Linux | Tagged: cedega, Games, install, wine | Leave a Comment »
Posted on February 25, 2008 by linuxconfig
Here is a simple how to add repositories to a OpenSuse linux.
1) Check what version / release of OpenSuse linux you have:
cat /etc/SuSE-release
2) opensuse -> applications -> system -> administration settings
3) enter admin password and navigate to:
Tab Software -> software repositories
4) click on Add
6) find your appropriate OpenSuse repositories for your OpneSuse Linux version [...]
Filed under: Administration, Linux, SuSe | Tagged: add, Howto, Linux, Open Suse, package, packages, repositories | Leave a Comment »
Posted on February 24, 2008 by linuxconfig
As I need from time to time compress my vmware virtual machine I needed to find out the way to compress it to a minimum size possible. Even, I removed all unnecessary files from my file system the actual compressed file of my vmware virtual machine did not reduce on size. The reason for this [...]
Filed under: Administration, Commands, Linux, vmware | Tagged: compression, file system, how to, reduce, virtual machine, vmware | Leave a Comment »
Posted on February 21, 2008 by linuxconfig
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 | Tagged: Bash, floating point, how, number, round, script | Leave a Comment »
Posted on February 20, 2008 by linuxconfig
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 | Tagged: virtual disk vmware vmware-vdiskmanager create command | Leave a Comment »
Posted on February 8, 2008 by linuxconfig
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 | Tagged: Debian, driver, GeFroce 8800 GTX, install linux, support, Ubuntu | Leave a Comment »
Posted on February 4, 2008 by linuxconfig
Apache complains on the restart:
/etc/init.d/apache2 restart
Forcing reload of web server (apache2)…Syntax error on line 48 of /etc/apache2/sites-enabled/000-default:
Invalid command ‘PerlHandler’, perhaps misspelled or defined by a module not included in the server configuration
failed!
Have a look what perlhandler it is in apache config file. In this case apache was missing : ModPerl::Registry .
Solution to this is to [...]
Filed under: Administration, Debian, Linux, Perl | Tagged: apache, error, missing, ModPerl::Registry, PerlHandler, problem, restart, server | Leave a Comment »
Posted on February 4, 2008 by linuxconfig
Debian Apache will not start and it complains in log file:
[error] Can’t load Perl module Apache::DBI for server exiting…
This is because it can not find perl module which apache will use to connect DBI database. Solution for this is to install package:
libapache-dbi-perl – Connect apache server to database via perl’s DBI
apt-get install libapache-dbi-perl
Filed under: Administration, Debian, Linux, Perl | Tagged: apache, DBI, error, exits, libapache-dbi-perl, module, Perl, problem, start | Leave a Comment »
Posted on February 1, 2008 by linuxconfig
Simple perl to postgresql examples:
#!/usr/bin/perl
#load perl postgresql module
use DBI;
$postgresql_database=yourpostgresdatabase;
$postgresql_user=yourpostgresuser;
$postgresql_password=yourpostgrespass;
$postgresql_host=localhost;
# connect to perl to postgresql database
my $dbh = DBI->connect(“DBI:Pg:dbname=$postgresql_database;
host=$postgresql_host”, “$postgresql_user”, “$postgresql_password”);
# EXAMPLE PERL and POSTGRESQL
# CREATE TABLE EXAMPLE
$sth = $dbh->prepare(“CREATE TABLE perl_postgres
( language varchar(40), version integer);”);
$sth->execute();
# EXAMPLE PERL and POSTGRESQL
# INSERT DATA INTO TABLE
$dbh->do(“INSERT INTO perl_postgres(language, version)
VALUES (?, ?)”, undef, (‘perl’, 5)) or die (“Cannot INSERT”);
# [...]
Filed under: Administration, Database, Linux, Perl | Tagged: CREATE, INSERT, SELECT, UPDATE Perl and PostgreSQL database examples linux | Leave a Comment »
Posted on February 1, 2008 by linuxconfig
Instead of burning all images to cd / dvd disks is sometimes better and quicker to just mount row iso 9660 file system to your Linux. Lets say that we want to mount myiso9660.iso image.
First create mount point:
mkdir /mnt/myiso
Then mount iso with linux mount command:
mount -t iso9660 myiso9660.iso /mnt/myiso -o loop
All files can be accessed [...]
Filed under: Administration, Commands, Linux | Tagged: mount iso image 9660 linux command mount point file sys | Leave a Comment »