Chromium OS 沒有把 Flash Player 包在裡面,而 CloudReady 是做成 選裝 。
#!/bin/bashbase="$(dirname "$(readlink -f "${0}")")"# Clear the ugly screen.clear#Are we root?if (( $EUID != 0 )); thenecho - "You need to run this script as root!"exitfi# Make sure the filesystem is RW#echo "1 - Remounting root fs as read/write.\n"mount -o remount,rw /## Download the appropriate files (based on arch)## Check 32 vs 64-bit and set paths accordinglyif [ `uname -m` == 'x86_64' ]; thenecho -e "64-bit system\n"baseurl="http://www.brash.ca/x64.tar.gz"elif [ `uname -m` == 'i686' ]; thenecho -e "32-bit system\n"baseurl="http://www.brash.ca/x86.tar.gz"elseecho -e "Sorry, only x86 compatible CPUs are supported\n"exitfi# Do the downloading...mkdir -p /opt/tmpcd /opt/tmpecho -e "\nDownloading pepper-flash libraries and codecs...\n \n"wget -qnv --show-progress "$baseurl" -O data.tar.gztar xzf data.tar.gzecho -e "Creating folders...\n"# Create directories (create all regardless of architecture - let's be lazy)mkdir -p /usr/lib/mozilla/plugins/mkdir -p /usr/lib64/mozilla/plugins/mkdir -p /usr/lib/cromo/mkdir -p /usr/lib64/cromo/mkdir -p /opt/google/chrome/pepper/echo -e "Copying codec file...\n"# Media Codecs (all arch)cp libffmpegsumo.so /usr/lib/cromo/ -fcp libffmpegsumo.so /usr/lib64/cromo/ -fcp libffmpegsumo.so /usr/lib/mozilla/plugins/ -fcp libffmpegsumo.so /usr/lib64/mozilla/plugins/ -fecho -e "Copying Flash files...\n"# Flash playercp PepperFlash/* /opt/google/chrome/pepper/ -f#cp PepperFlash/manifest.json /opt/google/chrome/pepper/ -f# Create flash version file#flashversion=`cat PepperFlash/manifest.json | grep version | sed 's/[^0-9.]*//g'`#echo -e "FILE_NAME=/opt/google/chrome/pepper/libpepflashplayer.so\nPLUGIN_NAME=\"Shockwave #Flash\"\nVERSION=\"$flashversion\"\nVISIBLE_VERSION=\"$flashversion\"\nMIME_TYPES=\"application/x-shockwave-flash\"" >/opt/google/chrome/pepper/pepper-flash.info# Delete temp filesecho -e "Cleanup time!\n"cd /optrm -fR tmpecho -e "Remounting the filesystem as read-only...\n"# Remount the filesystem as ROmount -o remount,ro /echo -e "All done. You should restart the user interface by running 'restart ui'."
1 則留言:
CloudReady 要安裝 Flash Player 比較容易,透過溝選就可以了。
ChromiumOS 要安裝 Flash Player 必須要用文字介面登入, Ctrl + Alt + F2 ,帳號用 root 直接登入,沒有密碼。
再輸入指令
# curl -L http://www.brash.ca/flash.sh |bash
重新開機,這樣就有 Flash Player 可以用囉。
張貼留言