Search This Blog

Monday, March 24, 2014

Unable to run a 32-bit program on 64-bit machine

Qs. I compiled a small "hello world" C program on Ubuntu 10.04 32 bit machine. Then I put the executable(a.out) on Ubuntu 12.10(64 bit) VMWare virtual machine and tried to execute it(./a.out). The OS does not identify the file and says 'No such file or directory'. But when I put the same executable on a Ubuntu 12.10(64 bit) running on a 64 bit laptop, it runs fine and I get the desired output. The VM is running on IBM Blade Servers. I wanted to know why the results for a VM?

Ans:
The message No such file or directory does not refer to your executable file: a.out. Instead it refers to a helper program that's needed to run the 32 bit dynamically linked executable a.out.

Source: http://askubuntu.com/questions/351827/unable-to-run-a-32-bit-program-on-64-bit-vm

Tuesday, March 4, 2014

PHP is running with user ID=33, but this directory is owned by the system user with ID=0

Error:PHP is running with user ID=33, but this directory is owned by the system user with ID=0

Solution:
 sudo chown -R  www-data:www-data  /var/www/X2Engine/

before changes it was
drwxrwxrwx 3 root root    4096 Mar  4 16:24 X2Engine



--
Pranaw Kumar
C-DAC MUMBAI
Ph-(+91) (22) 26201606

Monday, February 24, 2014

Thursday, January 30, 2014

Sunday, December 29, 2013

Not able to login via GUI : Error in locking Xauthority file

1. Switch to command line "Ctrl" + "Alt" + "F6″

2. enter login, provide user name and password
3. type startx
   it should switch to GUI mode
but if you get Error in locking Xauthority file, try following:

The error i got means i do not have authorize to access $HOME/.Xauthority file in my user directory.

If you have the same problem, simply run chown as root to change the ownership back to the user. At the terminal as root, go to /home/user
# cd /home/user

list all files with ownership
# ls -a -lh

change file/files ownership to your user
# chown user:user .Xau*

reboot the machine, everything should be working as normal now.

Source: http://namhuy.net/1077/fixing-error-in-locking-authority-file-xauthority.html