1、下载并解压apache-maven-3.2.5-bin.tar.gztar -xzvf apache-maven-3.2.5-bin.tar.gz2、设置环境变量sudo gedit ~/.profileexport M2_HOME=/opt/apache-maven-3.2.5export M...
分类:
系统相关 时间:
2014-12-29 22:56:53
阅读次数:
542
在Ubuntu系统下,使用gedit对文件进行编辑并保存后,总是会生一个file.txt~这样子的临时文件,很是烦躁
经过查找发现可以去年的,方法如下:
批量删除这类文件 的方法如下:
$find / -name "*~" -print -exec rm -f {} \;...
分类:
其他好文 时间:
2014-12-26 13:04:34
阅读次数:
170
首先你应该知道在天朝有些网站是被墙了的,被包括谷歌的dl.google.com , dl-ssl.google.com这个我们需要下载SDK的网站都无法访问。所以
需要修改hosts。修改完之后要重启网络。
1、修改hosts
sudo gedit /etc/hosts
2、添加解析记录( . )
203.208.48.134 dl.google.com
203.208.48.134 d...
分类:
移动开发 时间:
2014-12-24 11:51:07
阅读次数:
202
在中文支持配置还不完整的Ubuntu 14.04中,使用gedit打开带有中文字符的文件有时会出现乱码的情况,这是由于gedit对字符编码匹配不正确导致的,解决方法如下: 在终端中输入如下命令,然后重新打开gedit即可: gsettings set org.gnome.gedit.prefere....
分类:
系统相关 时间:
2014-12-23 15:16:02
阅读次数:
187
原文网址:http://blog.chinaunix.net/uid-26963688-id-3221439.html1.设置当前用户环境变量(对root用户无效)打开终端输入:light@chaozang:~$ sudo gedit ~/.bashrc[sudo] password for lig...
分类:
系统相关 时间:
2014-12-23 10:20:08
阅读次数:
208
Ubuntu 11.04 (Natty) 已经停止支持,但可以使用old-releases源了,先备份源列表文件:sudo cp /etc/apt/sources.list /etc/apt/sources.list.backupsudo gedit /etc/apt/sources.list把里面...
分类:
其他好文 时间:
2014-12-21 17:55:08
阅读次数:
156
配置ant1. 下载ant(http://ant.apache.org/bindownload.cgi)例如我下载的是:apache-ant-1.9.4-bin.tar.gz解压ant,将文件夹名称改为apache_ant,并移动到/home目录下2. 设置环境变量sudo gedit /etc/p...
分类:
系统相关 时间:
2014-12-18 18:41:58
阅读次数:
272
ubuntu如何修改计算机名? sudo gedit /etc/hostname如何查看ubuntu操作系统位数 方法1:#查看long的位数,返回32或64getconf LONG_BIT方法2:#查看文件信息,包含32-bit就是32位,包含64-bit就是64位file /sbin/initv...
分类:
系统相关 时间:
2014-12-18 01:32:55
阅读次数:
204
一、使用命令设置UbuntuIP地址1.修改配置文件blacklist.conf禁用IPV6sudovi
/etc/modprobe.d/blacklist.conf表示用vi编辑器(也可以用其他编辑器,如gedit)编辑etc文件夹下modprobe.d文件夹中blacklist.conf文档的内容。注意:只能在root用户模式下才可以修改在文档最后添加bl..
分类:
系统相关 时间:
2014-12-12 01:33:01
阅读次数:
314
Ubuntu系统的Hosts只需修改/etc/hosts文件,在目录中还有一个hosts.conf文件,刚开始还以为只需要修改这个就可以了,结果发现是需要修改hosts。修改完之后要重启网络。具体过程如下:1、修改hostssudo gedit /etc/hosts2、添加解析记录( . )完整案例...
分类:
系统相关 时间:
2014-12-10 19:45:19
阅读次数:
161