20151031本地编译freescale的i.MX6Q的android4.2.2&android4.4.2 && 全志a80的步骤x1
2015/10/31 15:07 开始整理
1、安装ubuntu
已经验证过的系统:ubuntu-14.04-desktop-amd64.iso(如果没有特殊理由,推荐使用ubuntu长期支持的版本(LTS版本)。)
http://old-releases.ubuntu.com/releases/14.04.0/
ubuntu-14.04-desktop-amd64.iso
ubuntu的官方下载地址:
http://releases.ubuntu.com/releases/10.04/
http://cdimage.ubuntu.com/releases/
http://old-releases.ubuntu.com/releases/lucid/
安装Ubuntu的教程请参考:
http://digi.163.com/11/0127/18/6RE3LQL400162OUT.html
图文教程:手把手教你用U盘安装Ubuntu
http://www.linuxidc.com/Linux/2012-11/74695.htm
U盘安装Ubuntu 12.10
http://jingyan.baidu.com/article/a3761b2b66fe141577f9aa51.html
怎么用u盘安装ubuntu
手动分区的建议设置:
EFI boot partiton 100MB(>3TB的硬盘在安装ubuntu的时候回提示分这个区,小容量的硬盘不用考虑这个分区。如果分区有问题,可以考虑让ubuntu自动分区安装。完成之后删除所有分区再安装。)
/boot 分配100M即可
swap 交换分区 4G左右
/home 剩下的容量-20GB(最后的20GB需要挂在“/”分区)
/ 20GB。(注意这里需要设置为主分区!!!!)
小知识:
查看ubuntu的版本:
rootroot@wenyb1903:~$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l
查看ubuntu是32位还是64位(x86_64):
rootroot@wenyb1903:~$ uname -a
Linux wenyb1903 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
http://www.360doc.com/content/13/0921/23/6496277_316103639.shtml
查看ubuntu是32位还是64位的方法及其版本号
http://www.cnblogs.com/zero1665/archive/2010/05/24/1742962.html
查看ubuntu版本号
http://www.2cto.com/os/201502/378178.html
Linux_查看系统cpu个数、核心数、线程数
http://blog.csdn.net/sunboy_2050/article/details/6081989
linux 下查看cpu位数 内核等参数命令
2、编译android的所需要环境搭建:
可以参考:A80 H8开发系统使用说明.pdf
(1)
建议:update Manager不要更新。
(2)
首先安装openssh-server,这样就可以在Windows下通过SSH软件连接Ubuntu的电脑操作了。
sudo apt-get install openssh-server
http://www.linuxidc.com/Linux/2014-04/100645.htm
Ubuntu 14.04 LTS下安装Google Chrome浏览器
https://www.virtualbox.org/
virtualbox
sudo apt-get install uboot-mkimage
sudo apt-get install meld
sudo apt-get install nautilus-open-terminal
sudo apt-get install wine(根据自己的需要可选安装)
(3)
安装samba:
sudo apt-get install samba
sudo smbpasswd -a rootroot
(输入密码2次:rootroot)
New SMB password:
Retype new SMB password:
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo gedit /etc/samba/smb.conf
(在最后面添加以下内容:)
[rootroot]
comment = Root Directories
path = /
public = yes
browseable = yes
writable = yes
valid users = rootroot
重启samba:
sudo /etc/init.d/smbd restart
获取当前电脑配置的IP地址:
sudo ifconfig
(4)
开启ubuntu系统的root用户的方法:
sudo passwd root
[sudo] password for rootroot:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
(5)
Ubuntu下手动安装jdk6:jdk-6u45-linux-x64.bin
http://www.cnblogs.com/earl86/archive/2008/10/26/1666550.html
Ubuntu 手动安装jdk6
sudo cp jdk-6u45-linux-x64.bin /opt
cd /opt
sudo chmod 777 jdk-6u45-linux-x64.bin
sudo ./jdk-6u45-linux-x64.bin -s /opt
配置classpath,修改所有用户的环境变量
配置一:
sudo cp /etc/profile /etc/profile.bak
sudo gedit /etc/profile
配置二:
sudo cp .bashrc bak1.bashrc
sudo gedit .bashrc
在文件最后添加
#set java environment
export JAVA_HOME=/opt/jdk1.6.0_45
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
测试(重启系统之后):java -version
(6)
Ubuntu14.04下还需要安装:sudo apt-get install libswitch-perl
http://www.cnblogs.com/kobe8/p/3998379.html
在Ubuntu14.04上编译Android4.0.1出现的几个问题 sudo apt-get install libswitch-perl
以下出错信息:
Import includes file: out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/import_includes
target Generated: libwebcore <= external/webkit/Source/WebCore/css/tokenizer.flex
<span style="rgb(255, 255, 51);">Can't locate Switch.pm in @INC (you may need to install the Switch module)</span> (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] Error 2
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/mx3/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/platform/ColorData.cpp] Error 2
target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in
解决方法是安装perl的switch库:
sudo apt-get install libswitch-perl
(7)
将shell从DASH切换到BASH:
http://blog.csdn.net/smilettxp/article/details/19118057?reload
ubuntu 12.04编译MTK6582——FAQ
现象:
加载MT6582_Android_scatter.txt文件后,Flash_tool无法显示下载内容时,查看XXXX_preloader.log中有如下提示:
/bin/sh: 1: [: -a: unexpected operator
awk: line 4: function strtonum never defined
awk: line 4: function strtonum never defined
解决办法:/bin/sh: 1: [: -a: unexpected operator 分析原因为/bin/sh的链接到/bin/dash,而不是/bin/bash(可以用命令ls /bin/sh -lh查看链接的时bash还是dash)
修改sh默认指向到/bin/bash,如下:
sudo dpkg-reconfigure dash 选择no,即可。
awk:line的解决办法是安装gnu awk,如下:
sudo apt-get install gawk 即可。
(8)
freescale的i.MX6Q代理商科通的李国涛总结的软件集合:
A) Yocto
$ sudo apt-get update
$ sudo apt-get install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl
$ sudo apt-get install lzop
$ sudo apt-get install asciidoc
B) LTIB
$ sudo apt-get update
$ sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
$ sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
$ sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
$ sudo apt-get install uuid-dev liblzo2-dev
$ sudo apt-get install tcl dpkg
$ sudo apt-get install asciidoc texlive-latex-base dblatex xutils-dev
$ sudo apt-get install texlive texinfo
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
$ sudo apt-get install libc6-dev-i386
$ sudo apt-get install u-boot-tools
$ sudo apt-get install scrollkeeper
$ sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so /usr/lib/librt.so
$ sudo apt-get install gparted
$ sudo apt-get install nfs-common nfs-kernel-server
$ sudo apt-get install git-core git-doc git-email git-gui gitk
$ sudo apt-get install meld atftpd
C) Android (for JB4.2 to KK4.4)
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
sudo apt-get install libc6-dev-i386 zlib1g-dev g++-multilib lib32z1-dev lib32ncurses5-dev libxml2-utils uuid-dev liblzo2-dev
sudo apt-get install curl git bison flex gperf u-boot-tools minicom openssh-server
(9)
MY-I.MX6-DEMO-V2.5 Android环境搭建.pdf
明远智睿的飞思卡尔i.MX6Q开发板
sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev
sudo apt-get install libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386
sudo apt-get install libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos
sudo apt-get install python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
sudo apt-get install gcc:i386 linux-libc-dev:i386
sudo apt-get install uuid uuid-dev
sudo apt-get install zlib1g-dev liblz-dev
sudo apt-get install liblzo2-2 liblzo2-dev
sudo apt-get install uuid-dev:i386
sudo apt-get install liblzo2-dev:i386
sudo ln -sf /lib/i386-linux-gnu/libuuid.so.1 /usr/lib/libuuid.so
3、全志编译步骤:
rootroot@rootroot-Inspiron-3847:~$
rootroot@rootroot-Inspiron-3847:~$ cd wyb/a80_merrii_android442/
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442$ cd lichee/
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun9iw1p1
Choice: 0
All available platforms:
0. android
1. dragonboard
2. linux
Choice: 0
All available kernel:
0. linux-3.4
Choice: 0
All available boards:
0. merrii
1. optimus
2. p1
3. perf
4. perf5
5. perf-lpddr3
Choice: 0
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/lichee$
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/lichee$ ./build.sh
……
CC [M] /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/services/server/env/linux/physmem_ion.o
CC [M] /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/services/system/rgx_sunxi/sunxi_init.o
CC [M] /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/services/system/rgx_sunxi/sysconfig.o
LD [M] /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/pvrsrvkm.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/pvrsrvkm.mod.o
LD [M] /home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/binary_sunxi_android_release/target/kbuild/pvrsrvkm.ko
make: Leaving directory `/home/rootroot/wyb/a80_merrii_android442/lichee/linux-3.4/modules/rogue_km/build/linux/sunxi_android'
Copy modules to target ...
INFO: build kernel OK.
INFO: build rootfs ...
INFO: skip make rootfs for android
INFO: build rootfs OK.
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/lichee$
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/lichee$ cd ../android4.4/
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$ source build/envsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/softwinner/kylin-merrii/vendorsetup.sh
including device/softwinner/kylin-common/vendorsetup.sh
including device/softwinner/kylin-perf/vendorsetup.sh
including device/softwinner/kylin-optimus/vendorsetup.sh
including device/softwinner/kylin-p1/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including sdk/bash_completion/adb.bash
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. aosp_tilapia-userdebug
6. aosp_grouper-userdebug
7. aosp_flo-userdebug
8. aosp_deb-userdebug
9. aosp_hammerhead-userdebug
10. aosp_mako-userdebug
11. mini_x86-userdebug
12. mini_mips-userdebug
13. mini_armv7a_neon-userdebug
14. kylin_merrii-eng
15. kylin_perf-eng
16. kylin_perf-user
17. kylin_optimus-eng
18. kylin_p1-eng
19. kylin_p1-user
20. aosp_manta-userdebug
Which would you like? [aosp_arm-eng] 14
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=kylin_merrii
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=out
============================================
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$ extract-bsp
/home/rootroot/wyb/a80_merrii_android442/android4.4/device/*/kylin-merrii/bImage copied!
/home/rootroot/wyb/a80_merrii_android442/android4.4/device/*/kylin-merrii/modules copied!
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$ make -j16
(公司服务器是双CPU,共12核心,24线程。128GB的内存。硬盘已经由300G更换为3TB的RAID-1磁盘阵列。编译完成大概是40分钟。)
rootroot@rootroot-Inspiron-3847:~/wyb/a80_merrii_android442/android4.4$ pack
辨已完成,pack打包之后的系统在:
Z:\wyb\a80_merrii_anroid422\lichee\tools\pack\sun9iw1p1_android_merrii.img
pack -d的系统文件名为:sun9iw1p1_android_merrii_card0.img
3、烧录全志a80:
PhoenixSuit最好升级为最新版本。
请参考:开发板固件烧写作业指导书.pdf
(1)、正常开机状态下直接刷机:
(2)、上图中可以看到工具提示 “设备已经连接成功”和开发板基本软硬件信息。进入 “一键刷机”界面,点击 “立即升级”进入烧写固件状态。如下图:
选 “是”进入格式化升级模式,会清除原有的资料;选 “否”进入普通升级模式,保留原有的用户资料不被删除。待升级进度条走完,工具提示 “升级完成”,说明固件烧写成功。
(3)、强制刷机模式一:无需上电,按住 “Uboot”键别松手,等插好Micro-usb2.0线再松手,直至进入固件烧写模式(以蜂鸟H8为例)。
商业开发版的“Uboot”键为KEY4的下面。
(4)、强制刷机模式二:当板子不能正常开机或Uboot键失去作用时,可用镊子短接NANDFLASH焊盘的第29与30PIN,焊盘小圆点为第1PIN,顺数下去,第二边顺数上去。或短接Uboot键的两端。无需上电,先短接别松手,等插好Micro-usb2.0线再松手,直至进入固
件烧写模式(以蜂鸟H8为例)。但不是专业人员和没有把握的情况下不建议此操作。
(注意:这种模式没有测试过!!!!)
4、参考资料:
(1)更新源后安装编译anroid所需要的软件:
注意:Ubuntu 12.04.2必须增加源,否则有些软件安装不上!!!!
请参考这2个帖子增加源:
http://blog.sina.com.cn/s/blog_6c41c7510101bilw.html
中国地区的官方ubuntu源
http://bbs.21ic.com/icview-708728-1-1.html
[i.MX] 关于android编译环境的安装
楼主你好,这里出现这个是由于apt-get 依赖版本过高的原因,你在google一下是可以搜索到的。解决办法,建议你下载android前,先更新一下你的源:
A、首先备份Ubuntu 11.10源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表)
B、修改更新源
#sudo gedit /etc/apt/sources.list
#Delete all item in this file, then copy the following server addresses to it (163 or Souhu):
#163:
deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
C、保存退出。然后执行命令:
#sudo apt-get update
(2)、参考链接:
http://blog.csdn.net/man_embedded/article/details/40111023
linux下编译MTK android的环境搭建
http://jingyan.baidu.com/article/624e7459abb8eb34e8ba5aa2.html
Ubuntu10.04搭建MTK android编译环境
http://blog.csdn.net/doon/article/details/8053174
ubuntu 12.04 64位设置兼容32位的实现
http://blog.csdn.net/yimiyangguang1314/article/details/39996851
Ubuntu 12.04 64bit 无法识别交叉编译器解决办法
http://pkgs.org/download/ia32-libs
ia32-libs Download (DEB)
http://source.android.com/source/initializing.html
Initializing a Build Environment
http://processors.wiki.ti.com/index.php/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide
TI-Android-JB-4.2.2-DevKit-4.1.1 DeveloperGuide
5、
备用知识:
(貌似不好使)
(1)、给浏览器Firefox安装插件Tab Mix Plus 0.4.0.4:
https://addons.mozilla.org/zh-CN/firefox/addon
https://addons.mozilla.org/zh-CN/firefox/addon/tab-mix-plus/?src=search
Tab Mix Plus 0.4.0.4
作者: onemen, Gary Reyes
Tab Mix Plus 加强Firefox 的标签页浏览功能。它包括的功能有复制标签、集中控制标签、标签点击选项卡、撤销关闭的标签和窗口等等。它还包括一个功能全面的会话管理器。
(2)、在ubuntu下安装Flash,以阅读BAIDU文库:
http://hi.baidu.com/jhting/item/2047ff0a3381dcdd73e676c1
CentOS 6.2 安装 Flash Player插件(64)
把 libflashplayer.so 复制到 /usr/lib64/mozilla/plugins/libflashplayer.so
sudo cp libflashplayer.so /usr/lib/mozilla/plugins
rootroot@rootroot-Barebone-name:~/Downloads$ tar zxvf install_flash_player_11_linux.x86_64.tar.gz
libflashplayer.so
readme.txt
usr/
usr/bin/
usr/bin/flash-player-properties
usr/share/
usr/share/pixmaps/
usr/share/pixmaps/flash-player-properties.png
usr/share/kde4/
usr/share/kde4/services/
usr/share/kde4/services/kcm_adobe_flash_player.desktop
usr/share/applications/
usr/share/applications/flash-player-properties.desktop
usr/share/icons/
usr/share/icons/hicolor/
usr/share/icons/hicolor/32x32/
usr/share/icons/hicolor/32x32/apps/
usr/share/icons/hicolor/32x32/apps/flash-player-properties.png
usr/share/icons/hicolor/22x22/
usr/share/icons/hicolor/22x22/apps/
usr/share/icons/hicolor/22x22/apps/flash-player-properties.png
usr/share/icons/hicolor/24x24/
usr/share/icons/hicolor/24x24/apps/
usr/share/icons/hicolor/24x24/apps/flash-player-properties.png
usr/share/icons/hicolor/16x16/
usr/share/icons/hicolor/16x16/apps/
usr/share/icons/hicolor/16x16/apps/flash-player-properties.png
usr/share/icons/hicolor/48x48/
usr/share/icons/hicolor/48x48/apps/
usr/share/icons/hicolor/48x48/apps/flash-player-properties.png
usr/lib/
usr/lib/kde4/
usr/lib/kde4/kcm_adobe_flash_player.so
usr/lib64/
usr/lib64/kde4/
usr/lib64/kde4/kcm_adobe_flash_player.so
rootroot@rootroot-Barebone-name:~/Downloads$
rootroot@rootroot-Barebone-name:~/Downloads$ cp libflashplayer.so /usr/lib/mozilla/plugins
cp: cannot create regular file `/usr/lib/mozilla/plugins/libflashplayer.so': Permission denied
rootroot@rootroot-Barebone-name:~/Downloads$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins
(3)、Ubuntu 12.04中文输入法的安装
http://www.2cto.com/os/201207/144189.html
1、是安装语言包。我们选择System Settings-->Language Support-->Install/Remove Languages,将弹出以下窗口:
输入密码后,系统会安装简体中文语言包。
2、安装IBus框架,在终端输入以下命令:
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4
启动IBus框架,在终端输入:
im-switch -s ibus
安装完IBus框架后注销系统,保证更改立即生效。
3、安装拼音引擎
有下面几种常用选择:
IBus拼音:sudo apt-get install ibus-pinyin
IBUS五笔:sudo apt-get install ibus-table-wubi
谷歌拼音输入法:sudo apt-get install ibus-googlepinyin
Sun拼音输入法:sudo apt-get install ibus-sunpinyin
4、设置IBus框架
ibus-setup
此时,IBus Preference设置被打开。我们在Input Method选项卡中,选择自己喜欢的输入方式,并配置自己喜欢的快捷键即可。如下图所示: