ubuntu 13.10 64位安装及配置 google拼音输入法及Adobe flash player、mp3 插件安装、中文GBK编码等 -转

以前一直在虚拟机下玩ubuntu,今天兴起,在硬盘上直接安装了ubuntu 13.10版本,安装时将电脑的一个盘清空,有68G,用于安装ubuntu,将下载来的系统镜像使用ultraiso制作启动盘,制作方法参照这篇博客,简要步骤为,ultraiso->打开iso文件->(启动)写入硬盘镜像,在弹出的窗口中点击“便捷启动按钮”->写入新的驱动器引导扇区->Syslinux。然后点击下面的写入按钮,等待完成即可。注意此过程会覆盖u盘内容,请注意备份! 

接下来就是重启电脑,选择u盘启动,怎么选择请百度or google,为了快速安装,拔掉网线再开始安装,否则会在安装时下载语言包等,如果网络不好,此过程是很漫长的,这些可以留到系统安装完成后自己更新就好了,切记!进入安装程序,选择时区,语言,设置帐号密码很简单的事情,其中需要注意的就是分区了,我是将68G的分区分成两个区,由于之前已经有安装系统,所以此处分区都为逻辑分区,logic partition,两个分区为64G ext4的系统分区和 4G swap交换分区,什么是交换分区搜索解决。其余都是一路下一步解决。安装完成拔掉u盘,重启系统,安装更新语言包,添加中文语言。

!~注意:一下所以用到 sudo 开头的命令的时候,都有可能要求输入密码,此密码即为你的系统登录密码,命令行输入的地方为Terminal,可在启动器中直接搜索,类似于windows的dos命令cmd ~!

=================== google 拼音 安装 ===================

然后就是安装输入法了,我使用的是 fcitx ,命令安装 sudo apt-get install fcitx

然后安装google拼音,打开ubuntu software center 软件中心,搜索fcitx google,将找到的“Fcitx wrapper for Google Pinyin IM engine”,并安装.

OK,安装完成,接下来就是卸载系统自带的输入法,在软件中心中的已安装中找到scim,然后卸载,或者i命令sudo apt-get removefcitx。

ok,大功告成,注销系统,重新登入,就可以按 ctrl+space 切换输入法咯~~

如不成功需语言设置 键盘选项fcitx 重启系统

=============== flash player 安装 ==========================

每次打开FireFox,浏览器都提示确实Flash 插件,安装浏览器提示,这货告诉我找不到合适的插件,纠结,然后就只有自己动手咯,首先下载Flash Player插件,我下载的是压缩包.tar.gz文件,解压到本地,按照其中的 ReadMe.txt文件的提示,一步步安装。插件下载地址:http://get.adobe.com/cn/flashplayer/

1.解压:


[plain] view plaincopy

  1. tar -zxvf install_flash_player_11_linux.x86_64.tar.gz  

2.打开ReadMe文件,找到第30行的“Installation instructions”内容,安装里面的步骤一步步来:



[plain] view plaincopy

  1. Installation instructions  

  2. -------------------------  

  3.   

  4. Installing using the plugin tar.gz:  

  5.     o Unpack the plugin tar.gz and copy the files to the appropriate location.    

  6.     o Save the plugin tar.gz locally and note the location the file was saved to.  

  7.     o Launch terminal and change directories to the location the file was saved to.  

  8.     o Unpack the tar.gz file.  Once unpacked you will see the following:  

  9.         + libflashplayer.so  

  10.         + /usr  

  11.     o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version  

  12.     o Copy libflashplayer.so to the appropriate browser plugins directory.  At the prompt type:  

  13.         + cp libflashlayer.so <BrowserPluginsLocation>  

  14.     o Copy the Flash Player Local Settings configurations files to the /usr directory.  At the prompt type:  

  15.         + sudo cp -r usr/* /usr  


3.从第5步开始,确认firefox的插件目录plugins directory。我的ubuntu 13.10 64bit完整目录为/usr/lib/mozilla/plugins/,接下来复制libflashplayer.so到该目录,替换命令中的<BrowserPluginsLocation>即可,复制完成可通过命令” file /usr/lib/mozilla/plugins/libflashplayer.so “检查是否成功。然后复制解压后得到的 usr目录到 /usr目录,“/usr“目录为系统根目录下的usr。命令贴出来:


[plain] view plaincopy

  1. sudo mv libflashplayer.so /usr/lib/mozilla/plugins/    

  2. sudo cp -r usr/* /usr  

OK,重启火狐浏览器,上youku,是不是视频出来啦~~

Flash 安装参考文章:http://www.linuxidc.com/Linux/2012-11/73629.htm


另推荐firefox翻译插件:

Quick Translator,划词翻译,很方便~~    https://addons.mozilla.org/zh-cn/firefox/addon/quick-translator/

用于整页翻译,gTranslator       http://mozilla.com.cn/addon/24/


=============== mp3 插件安装 ==========================

Ubuntu系统默认不支持mp3解码,蛋疼货,打开mp3文件,提示

[plain] view plaincopy

  1. Rhythmbox requires to install plugins to play media files of the following type: MPEG-1 Layer 3 (MP3) decoder  

网上搜了半天,有人说安装 gstreamer 插件,搞了半天,不行,在 Ubuntu Software Center 中搜到了这个插件,也安装上了,结果还是不行,最后在官网的问答贴中找打了方法:安装 ubuntu-restricted-extras ,可以直接在 Ubuntu Software Center 中搜索安装,也可命令解决



[plain] view plaincopy

  1. sudo apt-get install ubuntu-restricted-extras  

还有个蛋疼的问题,就是中文乱码,按网上的,如下方法:


[plain] view plaincopy

  1. sudo apt-get install python-mutagen  

然后在放置mp3文件的那个文件夹,执行下面的命令。注:如果有子文件,则还需在子文件夹内执行相同命令



[plain] view plaincopy

  1. mid3iconv -e GBK *.mp3  

OK,中文乱码问题解决.

 参考:http://www.cnblogs.com/peixiuen/archive/2013/05/21/3091435.html

另参照这个也设置了,不知以后会不胡有效,现在看不到效果了。http://my.oschina.net/fanxiao/blog/61494


=============== 安装配置GBK 解决中文乱码 ==========================

linux下默认支持的中文编码是UTF-8编码,而windows支持的是GBK编码。

我们可以自己安装GBK的编码,然后设置成默认,切记不要将这个编码设置成全局的,不然会引发很多问题。

安装GBK locale,


[plain] view plaincopy

  1. sudo vi /var/lib/locales/supported.d/local   

  2. 添加下面内容  

  3. zh_CN.GBK GBK  

  4. zh_CN.GBK2312 GBK2312  

  5. zh_CN.GB18030 GB18030   


然后执行:


[plain] view plaincopy

  1. sudo locale-gen   

就好了。


然后在终端中临时设置编码:


[plain] view plaincopy

  1. export LANG=zh_CN.GB18030    

这里根据需要选择 GBK或GBK18030 GBK2312
然后在终端中启动程序,如eclipse,这时eclipse中的编码就默认为该编码了,如果你的工程是从windows导过来的话,中文编码问题就能解决了。


以后只需在终端里启动程序,启动之前export LANG一下就好了,可以写个shell脚本自动执行这些内容,比较方便。
参考:http://blog.chinaunix.net/uid-20314312-id-1967279.html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值