Linux常见问题

1.

adb: No such file or directory for existing executable

64位系统,缺少ia32-libs。安装即可。

sudo apt-get install ia32-libs

2.

svn: 'Folder " does not exist remotely', Connection refused error

svn的需要使用主机IP进行访问,不能直接用windows下的访问方式。格式如下:

svn://localhost/myrepository/java

https://192.168.1.2/svn/Code/project

3.

开机出现:Stopping CPU interrupts balancing daemon

ctr+alt+f1,尝试进入控制台,并安装gdm:

sudo apt-get install gdm

sudo dpkg-reconfigure lightdm

4.

ibus设置开机启动:

方法一.  System >> Administration >> Language Support 
然后设置"Keyboard Input Method System"为ibus。
方法二:当然你也可以设置开机自己启动ibus
System >> Preferences >> Startup Applications
Click the button: Add
Name: IBus daemon
Command: /usr/bin/ibus-daemon -d
Comment: 注释随便写

5.解压命令

unrar e test.rar   #解压到当前文件夹

unrar x test.rar /tmp   #解压到指定文件夹
unzip test.zip -d /tmp
6.中文乱码
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
7.Linux下访问Windows共享目录。
首先需要Windows的IP,然后打开文件浏览器(随便打开一个文件夹即可),按CTR + L,在Location(位置)那里输入:
 smb:/192.168.1.2/
8.
ibus默认使用简体中文,使用时变成繁体,重启ibus应用即可。
9.
使用linux mint, 系统语言为英语,某些应用程序出现中文乱码:
gedit乱码:缺少中文编码。命令: gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]"
Chrome的tab栏和书签乱码,而firefox缺正常:系统缺少相应的字库。安装即可:sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
10.
LInux  Mint 17配置fcitx中文输入法:
sudo add-apt-repository ppa:fcitx-team/nightly
sudo aptitude update
sudo aptitude install fcitx fcitx-sogoupinyin fcitx-config-gtk fcitx-frontend-all fcitx-module-cloudpinyin fcitx-ui-classic
然后可以装个google拼音:sudo apt-get install fcitx-googlepinyin
或者可以使用搜狗输入法的linux版
sudo apt-get install fcitx fcitx-config-gtk fcitx-config-gtk2 fcitx-config-common 
sudo apt-get install -f fcitx-module-dbus fcitx-libs-qt libopencc1
sudo apt-get install fcitx-sunpinyin  fcitx fcitx-sogoupinyin
sudo apt-get install fcitx-config-gtk fcitx-frontend-all fcitx-module-cloudpinyin fcitx-ui-classic
sudo apt-get install fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-ui-classic
11.
配置dns,重启系统后失效:
不要在 /etc/resolv.conf中配置,应该通过修改:/etc/resolvconf/resolv.conf.d/base(这个文件默认是空的)
在里面插入:
nameserver 8.8.8.8
nameserver 8.8.4.4
12.
Linux 64位系统下,eclipse安装svn出现错误:
1)
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
需要安装libsvn-java: sudo apt-get install libsvn-java
然后在eclipse.ini中指定参数:(参考链接)
-vmargs
-Djava.library.path=/usr/lib/jni
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
</pre><pre name="code" class="java"><span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">2)</span>
Incompatible JavaHL library loaded.  1.7.x or later required.
一种可能是libsvn-java的版本太低,而svn的版本较高,可安装低版本的svn插件。
试试1.6版本:name:subclipse     url:http://subclipse.tigris.org/update_1.6.x
还有一种原因是svn插件没有装全,安装是把所有的子条目全部选中。对于提示“Not Required”组件,同样选择安装。
之后在Window->Preference->Team->svn, svn interface中选择SVNKit.
13.
Linux Mint 17使用ADT Eclipse频繁崩溃:
原因是GTK与Eclipse不兼容,Eclipse默认使用webkitgtk,就是-Dorg.eclipse.swt.browser.DefaultType=webkit
而Linux的webkitgtk与Eclipse所需要的不兼容。
打开 eclipse/configuration/config.ini 文件,
在最后一行添加 org.eclipse.swt.browser.DefaultType=mozilla
14.
使用新版本的genymotion出现adb连接不上问题:
这是由于genymotion使用它自带的adb与Android sdk中的adb有冲突。
解决方法:
1.备份genymotion/tools/目录下的adb文件
2.在genymotion/tools/目录下建立Android sdk自带的adb软链接:
cd ~/genymotion/tools/
ln -s ~/development/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb adb
参考链接
15.
在Mint 17.1中,把guake加入Startup Application中,开机自启动失败: 在配置选项中,指定Startup Delay进行启动延迟,比如10s。
16.
android模拟器使用xxhdpi 1080P时,启动出现黑屏,可以尝试调整ram为1024M或2048M, 或者启用“Host GPU"。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值