Time of Update: 2018-12-05
簡單實現Windows和Linux檔案分享權限設定只是做一個筆記,以後查閱起來的時候比較方便.用samba3.0使用兩個不同的作業系統共用硬碟,其時我主要使用它來備份我的Blog和BBS罷了.安裝samba,這個很簡單了,如果你是fedora,就可以從光碟片直接安裝samba的rpm包。rpm -ivh samba-3.0.0-15.i386.rpm大家也可以直接到samba的官方網站(http://www.samba.org)去下載最新的軟體包最新的版本為Samba
Time of Update: 2018-12-05
One of my customers has a VPN which I'd like to access. They provided me with a copy of the Cisco VPN client for Linux, and a "pcf" configuration file for the client. Here's what i had to do to get the Cisco VPN client working in Linux - and it does
Time of Update: 2018-12-05
在寫伺服器端代碼時,服務很可能不是分布在同一台機器上的(譬如說叢集),那麼很有必要將這些機器的系統時間同步,具體方法如下:1,安裝ntpdate命令列:sudo apt-get install ntpdate2,命令列執行:sudo /usr/sbin/ntpdate 192.168.136.111其中192.168.136.111 為想同步系統時間的機器,也就是說,你目前執行命令的這台機器的和192.168.136.111 時間同步後,那麼兩個系統的時間則一模一樣!
Time of Update: 2018-12-05
linux有著強大命令列處理,如果用的好,效率會非常的高,如果用的不好,那很可能造成致命的錯誤。就拿刪除 ".svn" 檔案為例吧!如果你在修改別人寫的源碼,裡面已經有了 svn 檔案,那麼你想把這些檔案上傳到你自己的版本庫裡面,如果一個一個刪除 .svn 檔案就太挫了。linux下只需要一句命令即可find ./ -name "*.svn" -print -exec rm -fr {} \;這句命令表示在目前的目錄找到尾碼為 .svn 的檔案,並刪除之。千萬記住,find後面是 ./
Time of Update: 2018-12-05
本文主要解決以下幾個問題1 為什麼要使用庫?2 庫的分類3
Time of Update: 2018-12-05
[註:在vi中使用:help expandtab可以查看expandtab的使用說明,其它配置項同理。]1. Tab自動轉換為空白格 在~/.vimrc中加入: set tabstop=4 // Force tabs to be displayed/expanded to 4 spaces (instead of default 8). set expandtab // Use the appropriate number of spaces to insert
Time of Update: 2018-12-05
.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(註:tar是打包,不是壓縮!)---------------------------------------------.gz解壓1:gunzip FileName.gz解壓2:gzip -d FileName.gz壓縮:gzip FileName.tar.gz 和 .tgz解壓:tar zxvf FileName.tar.gz壓縮:tar zcvf
Time of Update: 2018-12-05
Linux下磁碟片的低階格式化、vfat格式化以及掛載的操作。格式化磁碟片# fdformat /dev/fd0Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.Formatting ... doneVerifying ... done格式化為vfat# mkfs.msdos /dev/fd0mkfs.msdos 2.11 (12 Mar 2005)掛載# mkdir /mnt/floppy# mount -t vfat
Time of Update: 2018-12-05
關鍵詞: apache2 mongodb php5 samba ssh 最近 小弟嘗試了下載Linux下的開發環境架設 Linux指令真心強大 讓在windows下的環境架設變得更加簡單 下面會進行一些簡單的流程介紹(我這裡使用的是ubuntu) 僅供和我一樣的新人菜鳥分享一下 前期的網路連接就不提了 進入命令列(ctrl + alt + T): 首先進行安裝包列表更新: sudo apt-get update 安裝ssh ,方便windows下進行遠端連線linux
Time of Update: 2018-12-05
一、SUSE硬碟安裝 1.選中文後,將提示找不到安裝源 解決:先選英文,將不會出現提示。安裝好後更改語言。 二、RHEL硬碟安裝 1.輸入鏡像檔案路徑後,提示找不到鏡像檔案 解決:將鏡像檔案置於系統根目錄下,比如:C:/***.iso,且根目錄下無中文檔案名稱/目錄名,則不必輸入 鏡像檔案路徑,直接斷行符號即可安裝。
Time of Update: 2018-12-05
$編譯裝安linux核心:[bady]# cd /tmp /* 首先將下載的安裝包放在 /tmp/ 目錄下 */[bady]# tar jxvf linux-2.6.16.tar.bz2 -C /usr/src/ /* 解壓縮核心壓縮包至 /usr/src/ 目錄下 */[bady]# cd /lib/modules/[bady]# rm -fr 2.6.16[bady]# cd /usr/src/linux-2.6.16/ /* 進入
Time of Update: 2018-12-05
//在目前的目錄以及子目錄尋找包含main字元的檔案 grep "main" ./ -rgrep -i pattern files :不區分大小寫地搜尋。預設情況區分大小寫, grep -l pattern files :只列出匹配的檔案名稱, grep -L pattern files :列出不匹配的檔案名稱, grep -w pattern files :只匹配整個單詞,而不是字串的一部分(如匹配‘magic’,而不是‘magical’),grep -C number pattern
Time of Update: 2018-12-05
文章首發:http://user.qzone.qq.com/276546441/gift?target=send_5th&senduin=58720861 環境:ubuntu 8.04硬碟空間:40GQT代碼:4.6.2 (:http://qt.nokia.com/downloads)步驟: A. Embedded版 1、修改路徑為[qt-install-dir]/mkspecs/qws/linux-arm-g++/qmake.conf的檔案: # # qmake
Time of Update: 2018-12-05
在核心源碼樹根目錄下,運行make help 查看可以使用的make目標有哪些,其中有幾種文檔格式Documentation targets: Linux kernel internal documentation in different formats: htmldocs - HTML pdfdocs - PDF psdocs - Postscript xmldocs - XML DocBook mandocs
Time of Update: 2018-12-05
find ./ -name "Makefile"搜尋列出目前的目錄下檔案名稱為"Makefile"的檔案路徑grep -nr "test" ./在遞迴搜尋目前的目錄所有包括“test”的檔案perl -pi -e 's|str1|str2|g' `find ./ -type f`在目前的目錄下所有的檔案裡面把“str1”字串替換為"str2" 查看系統磁碟UUIDls -l /dev/disk/by-uuid或 sudo blkid/etc/fstab 檔案預設載入格式UUID=d1ad87f6
Time of Update: 2018-12-05
/** @file mydebug.h * @note HangZhou Hikvision Digital Technology Co., Ltd. All Right Reserved. * @brief 我的錯誤捕捉函數 * * @author liuboyf1 * @date 2012-10-9 * @version V1.0.0 * * @note ///Description here * @note History: *
Time of Update: 2018-12-05
################################################################################ @file Makefile# @note HangZhou Hikvision Digital Technology Co., Ltd. All Right Reserved.# @brief Linux Application Generic Makefile# # @author liuboyf1# @data
Time of Update: 2018-12-05
尋找: 在目前的目錄下的.jsp檔案中尋找“alert”字串grep "alert" *.jsp 在目前的目錄及其多個子目錄中尋找檔案portal.jspfind . -name "portal.jsp" -print 在目前的目錄及其多個子目錄下的.jsp檔案中尋找字串"alert"find . -name "*.jsp" -print | xargs grep "alert" 替換:在目前的目錄下的.jsp檔案中把字串"password"替換成"pwd"perl -pi -e
Time of Update: 2018-12-05
Linux 下建立線程的函數是 pthread_create(),函數原型是:int pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void
Time of Update: 2018-12-05
http://tech.ccidnet.com/art/2583/20071024/1252121_1.html 用C/C++開發其中最令人頭疼的一個問題就是記憶體管理,有時候為了尋找一個記憶體流失或者一個記憶體訪問越界,需要要花上好幾天時間,如果有一款工具能夠協助我們做這件事情就好了,valgrind正好就是這樣的一款工具。 Valgrind是一款基於類比linux下的程式調試器和剖析器的軟體套件,可以運行於x86,amd64和ppc32架構上。valgrind包含一個核心,它提供一個虛擬CP