原创 執行repo sync 的時候,錯誤信息:error: Exited sync due to gc errors

執行repo sync 的時候,錯誤信息:error: Exited sync due to gc errors   原因: repo 升級,不兼容GIT  1.7.2 以下的版本。 方案升級git到 1.7.2以及以上的版本。   U

原创 dd 使用介紹

dd   if=/dev/sda   of=/dev/sdb   bs=2048k ps -ef | grep dd kill -USR1 PID

原创 sshfs 遠程mount文件系統

1、安裝軟件 sudo apt-get install sshfs fuse 2、修改屬性 sudo chmod 755 /etc/fuse.conf sudo chown test_user:fuse

原创 ubuntu系統下的ssh登陸慢,解決方法!

sudo vim /etc/ssh/sshd_config 最後一行加上:UseDNS no 然後重啓ssh服務:sudo service ssh restart

原创 linux下,find遞歸搜索文件或目錄,grep遞歸搜索文本

1:遞歸搜索,刪除目錄和文件 find ./test/ -type f -name ".gitignore" find ./test/ -type f -name ".gitignore" | xargs

原创 vnc xrdp遠程桌面,環境變量未加載的問題

xrdp 可以修改並添加 /etc/xrdp/startwm.sh 代碼: #!/bin/sh if [ -r /etc/default/locale ]; then   . /etc/default/l

原创 使用Visual SVN 2.5以上版本,ubuntu客戶端連接失敗的問題解決方法

使用以下命令 sudo apt-get install libneon27-dev sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.old sudo

原创 linux基本命令grep egrep fgrep用法以及正則表達式

一、grep、egrep、fgrep命令   本文中主要介紹了linux系統下grep egrep fgrep命令和正則表達式的基本參數和使用格式、方法。(註釋:文中fg代表例子,) 1.1、基本定義:         grep(

原创 Makefile.am文件的撰寫

先建立Makefile.am和configure.in文件,從其他項目拷貝後進行修改 動態庫的Makefile文件生成: 執行命令: aclocal libtoolize -f -c autoconf

原创 超實用的8個Linux命令行性能監測工具

摘要:本文總結了8個非常實用的Linux命令行性能監測工具,這些命令支持所有的Linux系統,不僅可以用於監控系統,還可以發現導致性能問題的原因所在。 對每個系統/網絡管理員來說,每天監測Linux系統性能是一項非常艱鉅的任務。在IT