How to convert .bin to iso image, whithout having .cue file in Linux

26 03 2008

Sometimes you need to make an iso image out of a .bin file, where you usually use bchunk (binchunker).

To get binchunker, type the following command :

sudo apt-get install bchunk

now to use is it , either:

(1) You have the .cue file ,then you just type the following command :

bchunk filename.bin filename.cue filename

(2)Or, If you don’t have the .cue file, .cue file usually contains the track layout information, and it only contains the following lines :

FILE ”BinFileName.bin” BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00

Where MODE1 , is the track mode when it is a computer cd, and MODE2 if it is a PlayStation cd.
you can write a one file of shell script to do all of this foe you , just make a new file :

gedit biniso &

Paste the following lines,(you can always use the ampersand at the end of your command to keep the acess to your command line , you don’t need to open a new shell. It is very useful when you run programs from the terminal like “sudo nautilus”, or “mathematica” ):

echo FILE ”$1.bin” BINARY >> $1.cue
echo TRACK 01 MODE1/2352 >> $1.cue
echo INDEX 01 00:00:00 >> $1.cue
bchunk $1.bin $1.cue $1_
rm $1.cue

Where the first three lines are to write the .cue file, the fourth line is the bchunk conversion command ,and the last line is to remove the .cue file.
Save and close , make it executable:

sudo chmod a+x biniso

Now all what you need to do is to run the following command:
./biniso binfilename

You can also place your biniso file in the /usr/local/bin, in the following way :

sudo mv biniso /usr/local/bin

where if you do so you can access it from any path , but the run command is a little different :

biniso binfilename

By now , most probably you have your iso image, you can either burn it , or mount it.

To mount it, first make a directory for the iso image to be mounted to :

sudo mkdir /media/iso

Then you mount the image :
sudo mount -t iso9660 isofilename /media/iso -o loop

To unmount it :

sudo umount /media/iso

Notice that the unmount command is umount with no n.

Source: Linux Lab


How to open-create rar files in Ubuntu-Linux

26 03 2008
Ok, this is pretty easy )
just install the rar library :

sudo apt-get install rar

rar package supports multiple volume archives and damage protection. It can also create SFX-archives. There are versions which run on DOS, Windows (3.1x,95,NT), FreeBSD, BSDI.

to make a  new rar archive

rar a new.rar file1 file2

to extract a rar archive file

rar  e new.rar

or you can make archives or extract them, by clicking right on the archives and choose from the menu, as you are doing with the .tar.gz archives )

How to run .exe files on Ubuntu-Linux

26 03 2008
Now you can exploit the benefits of the powerful stable linux operating systems and use in the same time your favorite windows programs with the .exe extensionYou just need to install a program which is called wine by writing the following command in your terminal

sudo apt-get install wine

then to run a .exe file you just need to be in the same directory where your program is located then write the following command in your terminal

wine your_exe_filename

If you need to know more about wine .. just use the man command after installing wine

man wine

Have fun

Source: Linux Lab