Time of Update: 2018-12-04
ubuntu 終端下快速鍵linux 2009-12-06 10:38:34 閱讀3 評論0 字型大小:大中小 一個系統用久了,總會用到許多快速鍵,可能大家對win下的快速鍵比對linux下的要熟悉一些,所以,我打算整理一些快速鍵的說明。1.關於終端的快速鍵:Tab:tab鍵是比較常用的一個快速鍵,它的作用是補全檔案名稱或者路徑。舉例來說,輸入”cd /ho”在按一下tab鍵,終端裡就會顯示”cd
Time of Update: 2018-12-04
最近一直在玩Gentoo,現將各類問題解決方案集錦如下:## 注釋 (## 後的內容是注釋)# 命令 (# 或 $ 後的內容是命令)一.以普通使用者無法su root$ su rootPassword: #正確輸入密碼su: Permission deniedGentoo 要求wheel組使用者才能su root ,解決方案為編輯/etc/group, 添加username至wheel組:命令:# usermod -a -G wheel
Time of Update: 2018-12-04
前言:Ubuntu 12.04, codeblocks 10.05, opencv 2.3 ( 源 163.com, 這個貌似不該聲明)一.安裝 CodeBlocks安裝 codeblocks# apt-get install codeblocks# apt-get install codeblocks-contrib # wxWidgets 貌似要用# apt-get install libwxbase2.8-dev # 還是 wxWidgets
Time of Update: 2018-12-04
由於某些原因,grub2沒有加入Gentoo portage穩定源中但這並不能阻止我們使用,使用方法如下:一. 自己編譯grub21.從 grub官網 下載 源碼 (目前是grub-1.99), ftp網站2. 編譯安裝# tar -zxvf grub-1.99.tar.gz# cd grub-1.99# ./configure# make# make install# grub-mkconfig # 自己編譯的沒有 update-grub 命令二. 用 Gentoo 的 emerge
Time of Update: 2018-12-04
Gentoo 啟動 init 機制不同於 Debian 和 Redhat, 具體細節尚未總結。現備份一 KVM tap 啟動指令碼:kvm_net#!/sbin/runscript# Copyright chencheng use kvm# Distributed under the terms of the GNU General Public License v2# $Header: $user_id=999dev_num=3depend() { need net.br0
Time of Update: 2018-12-04
本來最先是在 Gentoo 上實現 KVM 的,後來又在 Debian 上玩了玩:http://blog.csdn.net/cenziboy/article/details/6957890後來覺得還是有必要再總結總結,只當是複習罷了,於是乎出現了此文。一 安裝前準備1. KVM需要硬體支援,並在BIOS中開啟CPU虛擬化功能2. 配置 kernel kvm 模組[*] Virtualization ---> --- Virtualization <M>
Time of Update: 2018-12-04
qemu-kvm是當前比較熱門的虛擬化技術,接下來的一段時間裡我將會在這裡為大家呈現系列qemu-kvm內容。這裡所要談到的虛擬化,是指在CPU硬體支援基礎之上的虛擬化技術。KVM(Kernel-based Virtual Machine)官網:http://www.linux-kvm.org/page/Main_Page介紹:KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux
Time of Update: 2018-12-04
http://www.cnblogs.com/bingcaihuang/archive/2010/12/30/1921332.html 2010-12-30 09:02 by bingcaihuang, 223 visits, 收藏, 編輯
Time of Update: 2018-12-04
The right-left rule: Start reading the declaration from the innermost parentheses, go right, and then go left. When you encounter parentheses, the direction should be reversed. Once everything in the parentheses has been parsed, jump out of
Time of Update: 2018-12-04
環境:Win 7 中安裝WMWare 8.0; WMWare 中安裝Debian 6.0;Debian中安裝qemu-kvm; qemu-kvm中安裝Gentoo (如所示)橋接:橋接可以讓Guest OS (KVM中的OS)和Host OS(此處是Debian)位於同一區域網路內,並且可以和區域網路內其他PC相互連信。一. 載入kvm模組# modprobe kvm# modprobe kvm_amd #intel CPU 是
Time of Update: 2018-12-04
http://blog.csdn.net/sshhbb/article/details/6426840網摘錄如下比喻,實在生動貼切..... select模型 WSAAsyncSelect模型 WSAEventSelect模型 Overlapped I/O 事件通知模型 Overlapped I/O 完成常式模型 IOCP模型老陳有一個在外地工作的女兒,不能經常回來,老陳和她通過信件聯絡。他們的信會被郵遞員投遞到他們的信箱裡,這和Socket模型非常類似。select模型
Time of Update: 2018-12-04
(轉)http://blog.ednchina.com/yannzi/197679/message.aspx& http://blog.sina.com.cn/s/blog_4117d8560100b432.html1 狀態寄存器傳送至通用寄存器類指令功能:將狀態寄存器的內容傳送至通用寄存器。格式:MRS{<條件碼>}Rd,CPSR}SPSR其中:Rd 目標寄存器,Rd不允許R15。R=0 將CPSR中的內容傳送目的寄存器。R=1
Time of Update: 2018-12-04
一. 何為殭屍進程殭屍進程 zombie 或 defunct ,ps , top 命令可以看到。 說的是處於“僵死”狀態的進程。 這樣的進程已經死亡,但仍然以某種方式存活著。說其已經死亡,是因為其資源(記憶體、外設連結等)已經釋放,其無法也絕不會再次運行。說其存活著,是因為系統進程表中仍然存在該進程描述符。看看Linux定義的進程狀態: include/linux/sched.h/* * Task state bitmask. NOTE! These bits are also *
Time of Update: 2018-12-04
1. GlobalAlloc函數和new()的區別。 1>new是標準的C++分配記憶體函數。GlobalAlloc是WIN下的API函數。 2>new分配記憶體同時會調用類等對象的建構函式。GlobalAlloc不回。 3>new分配的記憶體只能同進程使用,如(A進程new,B進程不能delete),GlobalAlloc能多進程使用,並刪除。 2. GlobalAlloc分配的記憶體需要釋放嗎?
Time of Update: 2018-12-04
http://yamcot.com/qt-drag-drop-event.htmlQt控制項拖拽事件By flyingpig on 2010/06/06 699 Views | Go to Comments (1) 因為編輯器需要在不同的控制項之間支援拖拽操作,所以對Qt的拖拽研究了一下. 這裡實現一種比較簡單的拖拽方案1.拖拽方控制項 拖拽需要支援拖拽的控制項開啟拖拽功能,調用函數 view source print?1setDragEnabled(true);
Time of Update: 2018-12-04
http://jewelseeker.blog.163.com/blog/static/5802709320094191015899/?fromdm&fromSearch&isFromSearchEngine=yes ubuntu終端快速鍵 及常用命令 檔案 & 目錄類命令 pwd:pwd 命令查看您當前所處的路徑(pwd 代表 "列印當前工作目錄")。例如:在案頭檔案夾中執行 "pwd" 命令將輸出 "~/Desktop"。注意,Gnome
Time of Update: 2018-12-04
複製或複製虛擬機器後無 eth0 或 eth0 變eth1 ( 同理eth[x] 變 eth[x+1] )解決方案如下:在虛擬機器裡直接刪除掉檔案 /etc/udev/rules.d/70-persistent-net.rules原因呢,是 udev 在作怪,關於udev的原理,參考:http://blog.csdn.net/absurd/article/details/1587938這裡簡單說明下,看看 /etc/udev/rules.d/70-persistent-net.rules
Time of Update: 2018-12-04
netlink 資源釋放函數 sock_release(my_nfd->sk_socket) 在高版本核心會導致死機。現修改成:#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) netlink_kernel_release(my_nfd);#else sock_release(my_nfd->sk_socket);#endif2.6.25 include/linux/netlink.hextern
Time of Update: 2018-12-04
ARM的44binit.s檔案的詳細注釋2009-07-31 00:30; *******************************************************; * NAME : 44BINIT.S *; * Version : 10.JAn.2003 *; * Description: *; * C start up codes *; * Configure memory, Initialize ISR ,stacks *; * Initialize
Time of Update: 2018-12-04
頻繁重啟apache 後可能會啟動失敗,錯誤記錄檔如下:No space left on device: Couldn't create accept lock運行命令 ipcs -s 會發現 semaphore 佔用來很多, 使用命令清理 semaphore 後就可以正常啟動apache 了for i in `ipcs -s | awk ‘$3=="root" {print $2}’`; do ipcrm -s $i; done當然,以上命令判斷條件不一定是 $3=="root" ,