Pages

Saturday, March 10, 2012

Creating launcher for Matlab/any application in Linux: Fine and easy


 Hello folks,
In this post we'll a small lesson on
"How to create a launcher for an application".
In few application's we'll find no application launcher will be installed or copied in to the system.
For example here we'll take MATLAB as an example.
To open such type of applications we have run the required binary file in the terminal.









For example to open MATLAB we have to run the following command in terminal


Tuesday, December 20, 2011

Removing Windows Admin/User Passwords Using LInux/Ubuntu11.10

Hello Folks,

Here we shall see a small tutorial on "How to remove windows passwords Using a linux CD".
Requirements to do is a Linux CD and of course the system whose password is to be removed/changed.

Basically the list of users and their passwords are saved in the operating systems in a file call SAM.
So coming to the point, this SAM file has to be edited in order to change or remove the password of the users ( we can view the list of users also).

Now lets start step wise.
1. Insert the Linux CD and boot into the CD-ROM.
2 .After booting into the live CD of the Linux we'll be able to browse the file system.
3. Now open the terminal by pressing ctrl+alt+t or user the super key/windows button there appears a screen and there you can type terminal of open it.
4. After opening the terminal navigate to the folder containing SAM file( it is in the location C:/Windows/System32/config).
5. Now type 
chntpw -l sam.
it will show the list of users, their status whether disabled/enabled etc.
If the terminal says command not found or any thing like just type the following command to install chntpw.
sudo apt-get install chntpw
 6. Now select the user name whose password is to be disturbed.
after selected type the following command
chntpw -u <username> sam

Saturday, December 10, 2011

Handling ISO images in linux/ubuntu 11.10

Using an ISO image on Ubuntu Linux is pretty easy. It can be done by just typing few commands in terminal.
Open up a terminal window and type in the following commands

sudo mkdir /media/iso

sudo modprobe loop

sudo mount filename.iso /media/iso -t iso9660 -o loop

That it now we should be able to navigate to the /media/iso folder and see the contents of the ISO image.
Now if we want to unmount the iso, use the following command:

sudo umount /media/iso

That's it.
If you  think it was plenty work. You can just install a software FURIOUS ISO MOUNT.
You can install using apt-get using the following command
sudo apt-get install furiusisomount
or by downloading the package. You can download it here.

Installing Matlab on ubuntu 11.10



 Hello,

Here is a small hint in installing matlab in Linux platforms ( of course i used ubuntu11.10).
However coming to the point we can install matlab with sufficient privileges only.
So now just insert the cd of mount the image that consists the setup files. now just type the following command to start the instalation.
sudo /<full_path>/install\ 
then there appears the window which is self explanative.
Just follow the instructions  in that window to fully complete the instalation.
But there won't be any launcher of icon installed.
Though typing matlab in the terminal would be able to run the matlab program.
Totally there are two problems that will arise after installation.
1.NO LAUNCHER
2.AN ERROR SAYING
"MATLAB desktop keyboard shortcuts, such as Ctrl+S, are now customizable.
In addition, many keyboard shortcuts have changed for improved consistency
across the desktop.

To customize keyboard shortcuts, use Preferences. From there, you can also
restore previous default settings by selecting "R2009a UNIX Default Set"
from the active settings drop-down list. For more information, see Help.

Click here if you do not want to see this message again.
Cannot write to preference file "matlab.prf" in "/home/jodiaq/.matlab/R2010a".
Check file permissions."
Now we shall take a look at the solution for these problems.
Solution to problem 1:

Adding New OS(Operating System) to grub

Hello,
"i am having two/three operating systems But grub loader is showing only one of them what do i do now. Please help me in this regard!!!!"
Here is the solution for these sort of questions.
Just we have to do is type a simple command.
sudo grub-update.
in the terminal. It will automatically check the os in your hard drive. This will also work for the new operating systems that have added because of another hard disk connected to your cpu.
this is how it should display in the terminal.

jodiaq@jodiaq-nl:~$ sudo update-grub

[sudo] password for jodiaq:

Generating grub.cfg ...

Found linux image: /boot/vmlinuz-3.0.0-12-generic

Found initrd image: /boot/initrd.img-3.0.0-12-generic

Found memtest86+ image: /boot/memtest86+.bin

Found Microsoft Windows XP Professional on /dev/sda1

Found Windows 7 (loader) on /dev/sdb1

done

jodiaq@jodiaq-nl:~$




We can more help on this grub editing here