原创 安裝Ubuntu14.04win10雙系統
1.去掉uboot的安全啓動 2.使用U盤及Ultroliso做安裝盤 3.機械盤中留出一部分作爲安裝盤300G 4.Ubuntu分區情況: 掛載點 / 主分區 30G EXT4 掛載點 / home 邏輯分區 剩餘EXT4 掛載點
原创 vmvare 安裝Ubuntu14.04 安裝vmvaretool
https://jingyan.baidu.com/article/6079ad0e39242268fe86db78.html
原创 IPMItool在linux虛擬機中的使用
加載模塊 # modprobe ipmi_watchdog # modprobe ipmi_poweroff # modprobe ipmi_devintf # modprobe ipmi_msghandler # modprobe ip
原创 ubuntu14.04集成顯卡驅動
https://www.bbsmax.com/A/x9J2xb8Wd6/
原创 命名UNIX域套接字通信
《UNIX環境高級編程》中開發的三個函數 #include "apue.h" #include <sys/socket.h> #include <sys/un.h> #include <time.h> #include <errno.
原创 linux 動態加載模塊
my_driver.c #include <linux/module.h> int __init hello_init(void) { printk("hello world init!!!\n"); return 0; }
原创 把管道作爲標準輸入輸出
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> int main() { int data_processed
原创 UDP Server和Client源碼實例
server #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.
原创 Nodejs的npm安裝模塊時候報錯:npm ERR! Error: CERT_UNTRUSTED的解決方法
解決 npm config set strict-ssl false
原创 內網外圍上網
https://zhidao.baidu.com/question/693760490626402324.html
原创 消息隊列
接收者1:按順序接收 /* Here's the receiver program. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #includ
原创 FIFO服務器程序以及客戶端程序
服務器程序: #include "client.h" #include <ctype.h> #include <fcntl.h> int main() { int server_fifo_fd, client_fifo_f
原创 父子進程對文件描述符的影響
#include <fcntl.h> #include <stdio.h> #include <assert.h> #include <string.h> int main(int argc, char **args) {
原创 CSDN 如何轉載他人文章
前言 對於喜歡逛CSDN的人來說,看別人的博客確實能夠對自己有不小的提高,有時候看到特別好的博客想轉載下載,但是不能一個字一個字的敲了,這時候我們就想快速轉載別人的博客,把別人的博客移到自己的空間裏面,當然有人會說我們可以收
原创 close on exec
close on exec, not on-fork 意思是如果對描述符設置了FD_CLOEXEC,使用execl執行的程序裏,此描述符被關閉,此描述符不能再被使用. 但是在使用fork產生的子進程中此描述符不被關閉,仍然可以