Convert and mount bin & cue file
Posted: January 31, 2012 Filed under: Fedora Core, General Admin, Linux | Tags: bin and cue file, bin image, cue image, image bin, image cue, iso9660 image Leave a comment »I have a bin and cue file that I need to mount in Linux, there is probably a way to do this but the way that I found was to convert the file to an iso and then mount it. This was done on Fedora Core 16 but will work on others distro’s I am sure.
To install
sudo yum install bchunk
To convert the files
bchunk image.bin image.cue image.iso
Then to mount the ISO in linux you run the command:
sudo mkdir /mnt/images
sudo mount -o loop -t iso9660 image.iso /mnt/images
Creating a LAMP server Fedora Core
Posted: May 27, 2011 Filed under: Fedora Core, General Admin, IT Survival, Linux, Uncategorized Leave a comment »This was done on Fedora Core 10 OS but I suspect will work with most version above. The original guide is here
But the brief guide is as follows
yum install httpd
chkconfig httpd on
yum install mysql mysql-server
chkconfig mysqld on
yum install php php-mysql
if you want python and perl
yum install mod_python MySQL-python
yum install perl mod_perl perl-DBD-mysql
service httpd start
To just test if this works turn off the firewall
service iptables stop
If you want to perminatly turn it off
chkconfig iptables off
Then issue this
echo “<?php phpinfo(); ?>” > /var/www/html/index.php
Open a web browser and http://x.x.x.x where x is the server ip address or name, you should get a php config page. If you don’t then you are on your own I am afraid, start by checking the httpd logs.
To remove the text file
rm -f /var/www/html/index.php
You now have a working LAMP server
Sometime you will need the mod_rewrite module
vi /etc/httpd/conf/httpd.conf
Add this line
RewriteEngine on
Also change this line
AllowOverride None to AllowOverride all
Note I think this should only be done on internal and test servers, please check this setting out before you put it into production
For more details on the RewriteEngine see here
Don’t forget to restart the httpd service everytime you make a change to this file
service httpd restart
