2009-03-30

Flash 9 for FreeBSD 7.1

Step 1: Enable Linux compatibility and linprocfs

Add linux_enable="YES" to /etc/rc.conf. Add compat.linux.osrelease=2.6.16 to /etc/sysctl.conf. Add OVERRIDE_LINUX_BASE_PORT=f8 to /etc/make.conf. Add this line to /etc/fstab:

linproc /usr/compat/linux/proc linprocfs rw 0 0

Then run these commands:

mkdir -p /usr/compat/linux/proc
mount /usr/compat/linux/proc
/etc/rc.d/abi start
/etc/rc.d/sysctl start

Step 2: Update ports and install all the needed software

You will now need to install the following ports and their dependencies:

cd /usr/ports/emulators/linux_base-f8 && make install clean
cd /usr/ports/www/linux-flashplugin9 && make install clean
( or cd /usr/ports/www/linux-f8-flashplugin10 && make install clean )
cd /usr/ports/www/nspluginwrapper && make install clean

Follow the nspluginwrapper instructions to enable all available plugins:

# nspluginwrapper -v -a -i
Auto-install plugins from /usr/X11R6/lib/browser_plugins
Looking for plugins in /usr/X11R6/lib/browser_plugins
Auto-install plugins from /usr/local/lib/npapi/linux-flashplugin
Looking for plugins in /usr/local/lib/npapi/linux-flashplugin
Install plugin /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
into /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins

Restart or open Firefox 3 and enter about:plugins into your address bar. You should see something like the following:
"Shockwave Flash 9.0 r124"

Original source : http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71

PS(1) : plugin 原本是放在 /usr/local/lib/brower_plugins 之下. 但 firefox 3.x 之後, 似乎要放到 ~/.mozilla/plugins 才可正常運作.

PS(2) : How to disable flash in FreeBSD:
Method1 : install extension : flashblock
Method2 : install FreeBSD port : dummyflash

PS(3) : plugin 可能存放位置
/usr/local/lib/browser_plugins
/usr/local/lib/firefox/plugin
~/.mozilla/plugins
/usr/X11R6/lib/firefox
/usr/X11R6/lib/browser_plugins

2009-03-16

How to Create a linux - bootable USB Memory Key within Windows

These are the basic steps for installing linux system file (.zip in general ) to USB :

  1. Get linux system zip file and Syslinux
  2. Format the drive
  3. Unzip linux system zip file onto the drive
  4. Type Syslinux.exe -ma X: (replace X with your USB drive letter) to make the drive bootable
Example : GParted Live on USB

2009-03-14

How to Create a DOS - bootable USB Memory Key within Windows

Method 1

If you do not have a floppy disk drive, you may want to create a bootable USB memory key which will allow you to boot into a pure DOS environment. This can be very useful if you want to flash your BIOS. Here is a step by step procedure on how to perform this operation.
NOTE: Your computer must support booting from a USB device in order to boot from the USB Memory Key.
Step 1 - Download and install the Windows based HP USB Disk Format Tool.
Step 2 - Download the Windows 98 system files from HERE. This is a zip file that contains all of the system files that you will need. Create a new folder and extract these files into the folder that you just created. Make sure that you preserve the directory structure.
Step 3 - Insert the USB Memory Key into the USB port of your computer.
Step 4 - Launch the HP format tool program.
Step 5 - Under the file system drop down list, select FAT32. This is important to do correctly.
Step 6 - Check the box next to Create a DOS startup disk.
Select "using DOS system files located at:" Then click on the square box with 3 dots on it.
Step 7 - Browse to the folder that you extracted the Win98 system files and then click on the OK button.
Step 8 - Now click the Start button.
Step 9 - You will receive a warning message. Make sure you have the USB memory key selected. If you are sure, then click the Yes button.
Step 10 - Your USB memory key is now being formated and the DOS system files will be copied onto it.

Once the program has completed the operation, click on the Close button.
You now have a bootable USB memory key.
On the USB memory key, you will see COMMAND.EXE, IO.SYS and MSDOS.SYS. These are the basic Win98 system files.
If you want to have CDROM support when you boot from your USB memory key, copy these files, including the CDROM folder to the memory key. These files are the ones that you extracted earlier to a folder.
If you copy all of these files to the memory key, you will have mouse support for any DOS program that support this feature.
You will also have many other DOS utilities that are very useful.

Method 2

Executing bootflashdos

No matter which method you applied. Don't forget to change BIOS setting. In BIOS->Hard Disk Boot Priority, select USB-HDD01 XXXXX as priority 1.

Reference : 1. How to create a boot disk