Thursday, September 28, 2006

Wine - Running exe on Linux

If you feel the need to run some specific windows application(*.exe)
on linux, then wine may be very full.

Steps I followed in Fedora core 5 to run firefox.exe is given below:

[root@sriram sriram]# yum -y install wine

Dependencies Resolved
Transaction Summary
===========================================
Install 10 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 11 M
Downloading Packages:
(1/10): wine-tools-0.9.20 100% |=============| 535 kB 00:55
(2/10): wine-esd-0.9.20-1 100% |============| 32 kB 00:02
(3/10): wine-nas-0.9.20-1 100 |=============| 20 kB 00:01
(4/10): wine-capi-0.9.20- 100% |============| 21 kB 00:00
(5/10): wine-jack-0.9.20- 100% |============| 21 kB 00:02
(6/10): wine-cms-0.9.20-1 100% |===========| 34 kB 00:03
(7/10): wine-core-0.9.20- 100% |============| 9.8 MB 18:42
(8/10): wine-0.9.20-1.fc5 100% |============| 16 kB 00:01
(9/10): wine-ldap-0.9.20- 100% |============| 82 kB 00:08
(10/10): wine-twain-0.9.2 100% |============| 25 kB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature:
NOKEY, key ID 1ac70ce6
Public key for wine-tools-0.9.20-1.fc5.i386.rpm is not installed
Retrieving GPG key from file:///etc/pki/rpm-gpg/
RPM-GPG-KEY-fedora-extras
Importing GPG key 0x1AC70CE6 "Fedora Project
"
Key imported successfully
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded


Running Transaction
Installing: wine-core ####################### [ 1/10]
Installing: wine-tools ####################### [ 2/10]
Installing: wine-esd ####################### [ 3/10]
Installing: wine-nas ####################### [ 4/10]
Installing: wine-capi ####################### [ 5/10]
Installing: wine-jack ####################### [ 6/10]
Installing: wine-cms ####################### [ 7/10]
Installing: wine-ldap ####################### [ 8/10]
Installing: wine-twain ####################### [ 9/10]
Installing: wine ####################### [10/10]

Installed: wine.i386 0:0.9.20-1.fc5
Dependency Installed: wine-capi.i386 0:0.9.20-1.fc5 wine-cms.i386 0:0.9.20-1.fc5
wine-core.i386 0:0.9.20-1.fc5 wine-esd.i386 0:0.9.20-1.fc5 wine-jack.i386 0:0.9
.20-1.fc5 wine-ldap.i386 0:0.9.20-1.fc5 wine-nas.i386 0:0.9.20-1.fc5 wine-tools.
i386 0:0.9.20-1.fc5 wine-twain.i386 0:0.9.20-1.fc5
Complete!

Wine Installation Directory :

[root@sriram sriram]# cd /root/.wine
[root@sriram .wine]# ls
dosdevices drive_c regba80000.tmp system.reg userdef.reg user.reg
[root@sriram c:]# pwd
/root/.wine/dosdevices/c:

I downloaded Firefox_Setup 1.5.0.6.exe for windows in
/root/.wine/dosdevices/c:

To install firefox for windows
[root@sriram c:]# wine Firefox_Setup 1.5.0.6.exe
(Follow procedure as you would follow in windows).

This will create 2 directories :
1) Program Files
2) windows

Now to execute Firefox for windows
#cd /root/.wine/dosdevices/c:/Program Files/Mozilla Firefox

#wine firefox.exe

This will start the firefox version of windows.

Saturday, September 23, 2006

How Linux Boots

  1. The BIOS loads and execute the first 512 bytes off the disk

    (/dev/hda), a.k.a. the Master Boot Record (MBR)

  2. The boot loader executes the first 512 bytes of the partition that

    you selected (if more than one is available).

    Advanced boot loaders like Grub or System Commander offer more features

    than the DOS boot loader. Some boot loaders save their configuration in

    the MBR (hence the need to remember to run the lilo command after

    editing it to save your changes to the master boot record on disk), while others

    save their data in a partition

  3. The partition loader now decompresses the kernel in RAM, and runs it

  4. The kernel initialises devices, loads the root partition,

    loads the /sbin/init process (PID=1) that reads its configuration

    information from /etc/inittab to know which boot scripts to run

    and at which run-level to start, and which processes to spawn.

    The actual scripts are in /etc/rc.d/init.d, and /etc/rc.d/rc#.d

    only contains links

  5. Init launches Getty to open consoles, and launches Login

    to present the user with a logon prompt

Note that once the Linux kernel has been loaded by lilo,

it looks in "all the usual places" for init and runs the first copy it finds.

More information: Inside the Linux boot process by Tim Jones


Flash Plugin with Fedora Core release 5 (Bordeaux)

A week back I installed Fedora Core 5, but one thing that
kept annoying was the Flash Plugins for Mozilla Firefox,
It would not allow me to view flash sites even after I installed
the Flash Player 7 for Linux.

So to overcome that heres what we need to do :
Step 1
"Systems" > "Administration" > "Security Level and Firewall".
Enter your root password and click "ok". On the "SELinux" tab click
on "Modify SELinux Policy", click on "Compatibility"
to open it and tick the check box next to
"Allow the use of shared libraries with Text Relocation". Click "ok".
Reboot your machine to implement the new SELinux policy.

install plugins thereafter



Step 2
I have pasted below the Installations given in README file
for Flash Plugin 7.


Installation
------------

To install the Plug-in Player for Linux via an install script,
follow these directions:

- This installer is script-based and cannot be run from a GUI.
- Uncompress install_flash_player_7_linux.tar.gz.
A directory called install_flash_player_7_linux
is created. Navigate to this directory.
- From the command line,
type ./flashplayer-installer to run the installer.

The installer will instruct you to shut down your browser(s).
- Once the installation is complete, the plug-in will be installed in your
Mozilla browser. To verify,
choose Help > About Plug-ins from the browser's menu.


To manually install the Plug-in Player for Linux,

- Copy the following files to your browser's plugins folder:
libflashplayer.so
flashplayer.xpt

My Mozilla Plugin directory was here :
/usr/lib/mozilla-1.7.12

Sunday, September 10, 2006

Playing Realplayer Audio in Linux Mozilla Firefox

There are some music sites where you need
realplayer plugins to be configured on your (Mozilla Firefox/Linux)
browser to play songs :

I did the following to get this working :
1) Download and Install RealPlayer10G RPM from
http://www.real.com/linux/

2)Once you Install RealPlayer
Copy nphelix.so to your Mozilla plugins directory
and nphelix.xpt to your Mozilla components directory.

Heres the Path I copied from :
(I use Fedora Core release 5 (Bordeaux) )

[root@sriram sriram]# cp /usr/local/RealPlayer/mozilla/nphelix.xpt
/usr/lib/mozilla-1.7.12/components/

[root@sriram sriram]# cp /usr/local/RealPlayer/mozilla/nphelix.so
/usr/lib/mozilla-1.7.12/plugins/

Restart the browser to use the Music Site and see now if this works.