Sunday, July 21, 2013

Installing Gambit 64 bit on CentOS (or on any Linux)

Installing Gambit 64 bit on linux machines is little tricky as you need libraries for both 64 bit and 32 bit, and also compatible libraries. You will often face irritating problems like  'file libXp.so.6 not found' or 'lnamd64/fluentlm-helper90: No such file or directory' etc. 

I searched various platforms to get the solution (including cfd-online) and here is one which works best (I think) to solve these problems. This is for CentOS, you can use other similar package installers (like apt-get) to install these libraries.  
  
Step 1: Install gambit 64 bit from command line

Step 2: Search for libraraies which are missing, you can use 'yum whatprovides $libraryname' for the same and then install using 'yum install'. Note you need to install both 32 and 64 bit libraries so instead of doing 
 yum install packagename.i686 or   yum install packagename.64

do yum install packagename - it will install both 64 bit as well as 32 bit.

Here are the libraries you need 

$yum whatprovides libstdc*
$yum install compat-libstdc++-33-3.2.3-69.el6
$yum whatprovides libXm.so.3
$yum install openmotif22-2.2.3-19.el6
$yum whatprovides libXpm.so.4
$yum install libXpm-3.5.8-2.el6

Step 3: Run Gambit

and it should work. :)

Running tecplot on Ubuntu

I was facing this problem of running Tecplot on Ubuntu 12.04 as the background screen becomes transparent (both with and without -mesa command), which makes it very difficult to post-process and visulalize data.

No transparent background 

With transparent background

One solution was to switch off the 3D unity effects by running the command

$metacity --replace

However it will change disable entire 3D effects and you may lose important buttons. A better solution is given in tecplot knowledge base.

http://www.tecplot.com/knowledgebase/2012/07/20/translucency-when-using-ubuntu-unity/

In summary running these commands will help you to get the desired result.

$export XLIB_SKIP_ARGB_VISUALS=1
$tec360

On a similar note, below is also interesting as I found similar problem in making animation from tec360. 



Wednesday, July 29, 2009

Changing Vista Password in dual boot

Steps :

1. Login to your linux system. Check your windows system is mounted.

rajesh@rajesh ~]$ vi /etc/fstab

ABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda9 /windows vfat defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/usr/local /usr/local ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
LABEL=SWAP-sda4 swap swap defaults 0 0
/dev/sda1 /mnt/windows ntfs-3g rw,defaults,umask=0000 0 0
/dev/sdb1 /mnt/sdb1 ext3 defaults 0 0
/dev/sdb2 /mnt/sdb2 ext3 defaults 0 0


1. install 'chntpw', if it is not in your system
http://rpm।pbone.net/index.php3/stat/4/idpl/10811089/com/chntpw-0.0.20080526-2.fc7.rf.i386.rpm.html

2.

[rajesh@rajesh]$ cd /mnt/windows/Windows/System32/config
[rajesh@rajesh config]$ chntpw -l SAM

chntpw version 0.99.6 080526 (sixtyfour), (c) Petter N Hagen
Hive name (from header): <\SystemRoot\System32\Config\SAM>
ROOT KEY at offset: 0x001020 * Subkey indexing type is: 666c

Page at 0x22000 is not 'hbin', assuming file contains garbage at end
File size 262144 [40000] bytes, containing 9 pages (+ 1 headerpage)
Used for data: 261/118912 blocks/bytes, unused: 19/15968 blocks/bytes.


* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0
| RID -|---------- Username ------------| Admin? |- Lock? --|
| 03e8 | Admin | ADMIN | |
| 01f4 | Administrator | ADMIN | dis/lock |
| 01f5 | Guest | | dis/lock |
| 03eb | rajesh | | |

3. [rajesh@rajesh config]$ chntpw -u rajesh SAM
chntpw version 0.99.6 080526 (sixtyfour), (c) Petter N Hagen
Hive
name (from header): <\SystemRoot\System32\Config\SAM>
ROOT KEY at offset: 0x001020 * Subkey indexing type is: 666c

Page at 0x22000 is not 'hbin', assuming file contains garbage at end
File size 262144 [40000] bytes, containing 9 pages (+ 1 headerpage)
Used for data: 261/118912 blocks/bytes, unused: 19/15968 blocks/bytes.


* SAM policy limits:
Failed logins before lockout is: 0
Minimum password length : 0
Password history count : 0
| RID -|---------- Username ------------| Admin? |- Lock? --|
| 03e8 | Admin | ADMIN | |
| 01f4 | Administrator | ADMIN | dis/lock |
| 01f5 | Guest | | dis/lock |
| 03eb | rajesh | | |

---------------------> SYSKEY CHECK <----------------------- br="">SYSTEM SecureBoot : -1 -> Not Set (not installed, good!)
SAM Account\F : 0 -> off
SECURITY PolSecretEncryptionKey: -1 -> Not Set (OK if this is NT4)
Syskey not installed!

RID : 1003 [03eb]
Username: rajesh
fullname: rajesh
comment :
homedir :

User is member of 1 groups:
00000221 = Users (which has 3 members)

Account bits: 0x0210 =
[ ] Disabled | [ ] Homedir req. | [ ] Passwd not req. |
[ ] Temp. duplicate | [X] Normal account | [ ] NMS account |
[ ] Domain trust ac | [ ] Wks trust act. | [ ] Srv trust act |
[X] Pwd don't expir | [ ] Auto lockout | [ ] (unknown 0x08) |
[ ] (unknown 0x10) | [ ] (unknown 0x20) | [ ] (unknown 0x40) |

Failed login count: 0, while max tries is: 0
Total login count: 145

- - - - User Edit Menu:
1 - Clear (blank) user password
2 - Edit (set new) user password (careful with this on XP or Vista)
3 - Promote user (make user an administrator)
(4 - Unlock and enable user account) [seems unlocked already]
q - Quit editing user, back to user select
Select: [q] > 2
New Password: passw0rd123
Password changed!

Hives that have changed:
# Name
0
Write hive files? (y/n) [n] : y
0 - OK

Thursday, August 21, 2008

X-forwarding problem with Fedora 7

I am working on Fedora 7 and mostly use remote machines to submit my jobs and various pre and post-processing of CFD problems.

Last few days I faced a strange problem. While sshing the remote systems with X-forwarding(ssh -X user@host or ssh -Y user@host), it was successfully displaying the x-things on remote computer. While it was not able to do x-operation on IBM-AIX m/c. I did everything to make it including -

on server : xhost +
on client : export DISPLAY=server_host:0.0

but it was not able to display and while running any x-operation, it was returning this error-

xterm Xt error: Can't open display: localhost:0.0

I followed all advice on diftt forums including this great one (
http://www.oreillynet.com/linux/blog/2006/08/ ) which I thought should work but not [:-(].


Finally I found a solution which is as follows :

edit /etc/gdm/custom.conf on server
add 'DisallowTCP=False' just below '[security]'
restart the machine

Then do -

on server : xhost +
on client : export DISPLAY=server_host:0.0

and you're done.Run 'xclock' on client to check

You can do the same by running gdmsetup also I think(if you can't locate custom.conf)

Hope this will help