您的位置:首页 > 运维架构 > Linux

Linux-Ubuntu 和 安装 genymotion 的一些问题和一些命令

2015-09-14 19:40 609 查看
1.安装Ubuntu14.04 后 电脑发热厉害?

  目的是 关闭多独显;

sudo add-apt-repository ppa:bumblebee/stable

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates 

sudo apt-get update

sudo apt-get install bumblebee bumblebee-nvidia

2.安装的Sougou 输入法 ,候选字乱码?

  更新 语言支持就行了;

3.Ubuntu声音小问题?
http://blog.sina.com.cn/s/blog_63c6038c0100p6w7.html
4.Hosts 翻墙 地址
http://laod.cn/hosts/2015-google-hosts.html
------------------Unbuntu Genymotion 安卓模拟器------------

1.eclipse  安装 插件问题?

 输入: http://plugins.genymotion.com/eclipse/ 访问不了?

 解决:将下面的 Group item by category 不要打勾即可;

2.解决安卓4.3 软件不兼容问题?

 下载Genymotion-ARM-Translation.zip ,将 其拖入 模拟器即可;

-----------------Unbuntu eclipse 候选框 背景黑色----------------

1.yuan@labelnet:~$ cd /usr/share/themes/Radiance

2.yuan@labelnet:/usr/share/themes/Radiance$ sudo gedit gtk-2.0/gtkrc 

2.第二行

  tooltip_bg_color:#000000 改为 tooltip_bg_color:#f2edbc;

------------------Ubuntu 挂载硬盘没有执行权限--------------

1.问题

  android Sdk 在其他硬盘下,读取adb 需要执行权限;

2.解决

  给硬盘添加读写执行权限:

  安装两个插件 : sudo apt-get install ntfs-3g (ubuntu14.04已经有了);

                sudo apt-get install ntfs-config

  进入 root :

        输入  ntfs-config;打开NTFS权限 图形界面(两个窗口);

        (1)点击自动配置,后关闭;

        (2)点击高级,都选上 关闭即可;

--------Ubuntu Android genymotion 模拟器安装---------------

1.安装virtualBox

  在ubuntu 软件安装中心 搜索就可以安装

  

2.安装genymotion

  1)官方下载 genymotion :

   https://www.genymotion.com/#!/download/premium/linux/ubuntu/x64

  2)执行命令:示例:

   yuan@labelnet:~$ chmod +x geny/genymotion-2.5.2_x64.bin 

   yuan@labelnet:~/geny$ ./genymotion-2.5.2_x64.bin 

  3)运行进入geny 文件夹 ,会发现有 genymotion 文件夹,双击 genymotion 文件夹下的 genymotion 即可;

  4)其他的就是 图形话操作了;

-----------------ubuntu 基本操作----------

1.新建文件夹

  yuan@labelnet:/usr/local$ sudo mkdir android_sdk

2.移动文件

  yuan@labelnet:/usr/local$ sudo mv android-sdk_r24.3.3-linux.tar android_sdk/

3.解压 tar 

 sudo tar -zxvf xxx.tar 

4.解压移动

 sudo tar -zxvf xxx.tar.gz -C /usr/local 

5.修改hosts 文件

sudo gedit /etc/hosts

6.删除文件

 rm 文件名

  删除文件夹

 rm -r 文件夹名

7.杀死进程

---------------Ubuntu 添加图标到桌面-------------------

1.新建文件

[Desktop Entry]

Categories=Development;

Comment[zh_CN]=

Comment=

//执行文件地址

Exec=/home/yuan/genymotion/genymotion

//改

GenericName[zh_CN]=genymotion

//改

GenericName=genymotion

//图标设置

Icon=/home/yuan/genymotion/icon.xpm

MimeType=

//改

Name[zh_CN]=genymotion  

//改                  

Name=genymotion

Path=

StartupNotify=true

Terminal=false

Type=Application

X-DBUS-ServiceName=

X-DBUS-StartupType=

X-KDE-SubstituteUID=false

X-KDE-Username=owen

2.添加权限

yuan@labelnet:~/genymotion$ chmod +x genymotion.desktop
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息