Pages

Saturday, January 14, 2012

CONFIGURE WORDPRESS IN FEDORA

First for using wordpress fedora we need to install apache(httpd)server,mysqld,php

yum install httpd
yum install mysql mysql-server
yum install php phpmyadmin


check the status of httpd and mysql

service httpd status
service mysql status


add both to startup

chkconfig httpd on
chkconfig mysql on


if needed restart stop and start the both services
service httpd restart
service mysql restart


any problem with httpd use -t to get the reason

httpd -t

type in the browser localhost to get fedora defaul page

go to /etc/httpd/conf.d/welcome.conf and comment all the lines



now downlaod the wordpress form there site

cd /tmp
wget http://wordpress.org/latest.tar.gz


now decompress the fileto /var/www/html/

tar -xvzf latest.tar.gz -C /var/www/html

change the privilage of the folder by

chmod -R 777 /var/www/html/

now we need to create database

mysql
create user user_name identified by password
create database database_name;
grand all on database_name to user_name;
flush privilages;
exit;


now go to borwser and type localhost/wordpress to get the configuration file of the wordpress

database: database_name
username:user_name
password:password
host:localhost:


and click next

to finish installing giving mail id username and password

if the config file is not made open the file /var/www/html/wordpress/wp-config-sample.php and make the need changed u will get the code to replace for the config not created page and save the page as wp-config.php

Friday, January 13, 2012

INSTALLING GOOGLE CHROME IN FEDORA

First make the google repo file(google.repo) and copy it in /etc/yum.repo.d/

and later run

yum install google-chrome-stable


content of google.repo file should be a below

[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Wednesday, January 11, 2012

AUTO PLUS for fedora

Autoplus

This is a simple program to make life easier and quicker for installing (also can unistall) those much needed extra's in fedora,
To install just copy below in a terminal (When asked for a password it is the root password required)

install / uninstall Adobe Flash, codecs, Google Earth, Skype, Sun Java, VirtualBox, WinFF, Imagination, Cinelerra, Hugin Panorama Creator, Lightscribe, Dropbox, extra backgrounds and sudo with or without password for current user. And of course, it also adds all the repositories required to install these applications.

su -c 'yum -y --nogpgcheck install http://dnmouse.org/autoplus-1.3-3.noarch.rpm'

If required here is the signing key(not necessary)


su -c 'rpm --import http://dnmouse.org/RPM-GPG-KEY-dnmouse'


taken from
http://www.dnmouse.org/autoten/autoplus.html

Installing malayalam font in Fedora


  1. yum remove lohit-malayalam

  2. yum install scim-lang-malayalam

  3. su -c 'yum --enablerepo=updates-testing update im-chooser'

  4. yum install ibus yum install smc-fonts*


download swanalekha-ml-1-1.fc8.i386.rpm from 
             http://wiki.smc.org.in/Swanalekha


  1. rpm -i swanalekha-ml-1-1.fc8.i386.rpm 

  2. yum update pango libic

  3. yum install aspell-ml swanalekha-ml

  4. yum install smc-fonts-malayalam xkeyboard-config dhvan NOW go to applications and select "select input method" and select ibus and its done

Monday, January 2, 2012

how to install firefox in fedora

first add the following repos to the yum by following the steps

first become root with su command and put the following 2 commands to download new rpm fusion in terminal

  1. rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

  2. rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm


now try

yum list firefox

if rpm fusion is installed correctly it wiil display current version of firefox installed and available updates

then to update

yum update firefox

 

its doneee

Wednesday, December 21, 2011

Using Grub4DOS to Create a Bootable USB Drive From ISO

Grub4dos is mainly a boot manager which can be installed in a pen drive or portable hard disk to use as a parallel grub if ur on board grub is down.this can be also used to install certain linux os directly from the iso in the hard disk.This mainly work for ubuntu linux mint and puppy iso's.tthe grub can be also used to log in to the xp and windows 7 if the bootloader is lost.

first we need to install the grub4dos into the pendrive.get the grub4dos from following link

http://dl.dropbox.com/u/30579529/grubinst-1.1-bin-w32-2008-01-01.zip

and unzip to get grubinst_gui.exe and run it..

Once the program is started, select the Disk option, then click the Disk Refresh button and then select your flashdrive from the dropdown box

You should be able to tell which disk is your flashdrive by the size shown for each drive.

Now click the Part List Refresh button, then the dropdown box and finally select the Whole disk (MBR) option.

Check the Don't search floppy option, leave all the other options unchecked and cleared and then click the Install button to install Grub4DOS to the MBR of the flashdrive.

and grub is installed .....

now copy the grldr and menu.lst files from the downloaded and put it in the hard disk

edit the menu.lst to boot iso...'

my menu is as below i put my iso's in a folder named ISO in the drive and each iso has its own corresponding folders

color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default

title Fedora 15 LiveCD - extracted
root (hd0,0)
kernel /ISO/fedora/vmlinuz0 rootfs=auto root=UUID= liveimg live_dir=/LiveCD/LiveOS/ ro quiet rhgb
initrd /ISO/fedora/initrd0.img

title Fedora 14 Live CD
root (hd0,0)
kernel (hd0,0)/vmlinuz0 linux askmethod
initrd (hd0,0)/initrd.img
boot

title FIND AND BOOT NT/2K/XP
fallback 1
find --set-root --ignore-floppies /ntldr
chainloader /ntldr
savedefault --wait=2

title FIND AND BOOT BOOTMGR of Windows VISTA/7
fallback 2
find --set-root --ignore-floppies /bootmgr
chainloader /bootmgr
savedefault --wait=2

title find and boot RedHat/Centos/Fedora Linux with menu.lst already installed
fallback 5
find --set-root /grub/menu.lst
savedefault --wait=2
configfile /grub/menu.lst

title Puppy Linux
find --set-root --ignore-floppies /ISO/puppy/initrd.gz
kernel /ISO/puppy/vmlinuz pmedia=usbflash psubdir=ISO/puppy
initrd /ISO/puppy/initrd.gz

title Linux Mint 12
find --set-root --ignore-floppies /ISO/mint/initrd.lz
kernel /ISO/mint/vmlinuz iso-scan/filename=/ISO/mint/linuxmint-12.iso file=/cdrom/preseed/mint.seed boot=casper noprompt
initrd /ISO/mint/initrd.lz

title Ubuntu 11
find --set-root --ignore-floppies /ISO/ubuntu/initrd.lz
kernel /ISO/ubuntu/vmlinuz iso-scan/filename=/ISO/ubuntu/ubuntu-11.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt
initrd /ISO/ubuntu/initrd.lz

title commandline
commandline

title reboot
reboot

title Shutdown
halt

for windows 7 just unzip the iso into the root directory of the drive and use the code above

for ubuntu and linux mint we must unzip the files for vmlinux and initrd and put in same folder as in ISO

For fedora first we need to extract the LiveOS folder to the root of our pendrive and also extract vmlinuz and initrd.img to the LiveOS folder form isolinux folder and the following to the menu.lst

title Fedora default
find --set-root /LiveOS/vmlinuz0
kernel /LiveOS/vmlinuz0  root=live:CDLABEL=BOOT  rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd /LiveOS/initrd0.img

here in the code CDLABEL =BOOT  ,BOOT must be your usb name given to usb

for Redhat first we need to copy the image folder into the root folder and give the code as below as per your path to vmlinuz and initrd.img

title RedHat6.2 default
find --set-root /ISO/redhat6.2/isolinux/vmlinuz
kernel /ISO/redhat6.2/isolinux/vmlinuz  root=live:CDLABEL=BOOT  rootfstype=auto ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd /ISO/redhat6.2/isolinux/initrd.img

and duirng installation select the iso form hard disk or pendrive where you have extracted the image folder

example for menu.lst https://dl.dropbox.com/u/30579529/menu.lst

Sunday, December 11, 2011

Remove Grub loader and get windows 7 boot loader back (uninstalling Linux)

1.Put the Windows 7 installation/Upgrade disc in the disc drive, and then start the computer (set to boot from CD in BIOS).

2. Press a key when you are prompted.

3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.

4. Click Repair your computer.

5. Click the operating system that you want to repair (Windows 7 in this case), and then click Next.

6. In the System Recovery Options dialog box, click Command Prompt.

7. Once in the command prompt, type exactly Bootrec.exe /FixMbr and then press ENTER. You will see "operation completed successfully." (Doesnt even take a second. Dont be alarmed )

8. Reboot and set BIOS to boot from the HDD again.

GRUB will be overwritten in step 7 and Windows boot loader will once again take control of loading your OS(s).

Bootrec.exe /FixMbr


// The /FixMbr option writes a Windows 7 or Windows Vista-compatible MBR to the system partition. This option does not overwrite the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to remove non-standard code from the MBR.