Archive for the 'Linux' Category

Ubutnu convert .bin to .iso

If you need to convert a .bin to a .iso you can do the following.

1) Install bchunk:

sudo apt-get install bchunk

2) Create the file:

sudo nano /usr/local/bin/bchunkcue

3) Add the following in the new file:

#!/bin/bash
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

4) Give it execution permission:

chmod a+x /usr/local/bin/bchunkcue

5) Then simply run (without the .bin extension after the filename):

bchunkcue filename

You should now have a .iso file that you can burn. With newer versions of k3b you are able to burn .bin files, I have not tested this myself and did the steps I mentioned above mainly because I did not want the data burnt onto a disk; simply wanted to mount it.

Installing Apache from Source - Broken Echo Command

During a install of apache 1.3.37 from source on an Ubuntu server, I got an error stating that I had a broken echo command:

root@natio:~/apache_1.3.37# ./configure –prefix=/usr/local/apache
Configuring for Apache, Version 1.3.37
+ Warning: Your ‘echocommand is slightly broken.
+ It interprets escape sequences per default. We already
+ tried ‘echo -E’ but had no real success. If errors occur
+ please set the SEO variable in ‘configure’ manually to
+ the required ‘echo’ options, i.e. those which force your
+ ‘echo’ to not interpret escape sequences per default.
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Syntax error — The configuration file is used only to
define the list of included modules or to set Makefile in src
options or Configure rules, and I don’t see that at all:
`$(SRCDIR)/apaci`
default
default
no
no
no
yes
no
default
no
default
default

This was because of some shell script files using the wrong interpreter. To fix this do the following:

rm -f /bin/sh
ln -s /bin/bash /bin/sh

Internet Explorer for Linux

One of the hardest things when developing and using linux is not being able to test on IE browsers. In the past I had to just go on a backup PC where I have winxp installed and even that can be a hassle at times. Especially if that PC is turned OFF. :) Anywho a few days ago I was installing fedora core 6 and stumbled across something while browsing FC6 tips on google.

A project called IEs4linux. Project is developed by Sérgio Luís Lopes. I found not only can we use IE6 on linux we can also test IE5 and IE5.5 which I couldn’t even do when on my winxp. :)

For those that do a little design with their web development and using a linux OS this might be a very useful tool. You can download the package here. The install was nice and easy.