Time of Update: 2018-12-04
一般通過預設安裝的ubuntu是不能解壓rar檔案的,只有在安裝了rar解壓工具之後,才可以解壓。其實在ubuntu下安裝rar解壓工具是非常簡單的,只需要兩個步驟就可以迅速搞定。ubuntu 下rar解壓工具安裝方法:壓縮功能安裝 sudo apt-get install rar卸載 sudo apt-get remove rar解壓功能安裝 sudo apt-get install unrar卸載 sudo apt-get remove
Time of Update: 2018-12-04
#include "alsa/asoundlib.h"//11KHz支援,發聲時間加長,音速變慢#define SAMPLE_RATE 48000//#define SAMPLE_RATE 11000//的確是兩個聲道交叉響#define CHANNELS 1//#define CHANNELS 2//如果latency過小,會使得snd_pcm_writei()丟發聲資料,產生short write現象#define LATENCY
Time of Update: 2018-12-04
step 1: download FFMPEG source code: http://download.csdn.net/detail/a6243620/3970118#comment : FFmpeg-FFmpeg-n0.8-4913-g175cc37.zip file.step 2: unzip FFmpeg-FFmpeg-n0.8-4913-g175cc37.zip: unzip FFmpeg-FFmpeg-n0.8-4913-g175cc37.zip.step 3: sudo
Time of Update: 2018-12-04
在上次開發 drvier 的時候,我參考了一個 kernel 中原有的類似 drvier code, 把 driver 目錄下的整個這個目錄(暫時取名叫AAA) cp 為 xxx_AAA (前面是公司名稱,公司規定的). 然後, 對 xxx_AAA 裡面的 Kconfig 和 Makefile 只是簡單的修改了一下,集中精力開發和調試我自己新增和修改的 .h .c 檔案. 今天,閑來沒事,就開始整理我的這個 driver, 然後順便把 xxx_AAA 裡面的用來產生
Time of Update: 2018-12-04
cross compile tcpdump:step 1: down libpcap-1.3.0.tar.gz form http://www.tcpdump.org/step 2: down tcpdump-4.3.0.tar.gz form http://www.tcpdump.org/step 3: tar xvf libpcap-1.3.0.tar.gzstep 4: tar xvf tcpdump-4.3.0.tar.gzstep 5: cd libpcap-1.3.0, touch
Time of Update: 2018-12-04
windows平台上用“電驢”軟體(如Emule)下載喜歡的電影、音樂、軟體的經曆。在Ubuntu系統中,使用開源的“電驢”軟體Amule,一樣可以讓我們輕鬆下載網上資源。在Ubuntu 8.10案頭作業系統中,安裝、配置和使用Amule只需幾步操作,我們不妨一起來看一看。 第一步:安裝Amule Ubuntu系統預設沒有安裝Amule軟體,我們可以使用apt-get命令或新立得軟體包管理器來安裝它。如使用apt-get命令,則在“應用程式”→“附件”下找到“終端”項,單擊該項,
Time of Update: 2018-12-04
身為中國第一職業經理人,唐駿卻說他的人生沒有奇遇,也不曾走過任何捷徑。 “如果我可以成功,你為什麼不可以?” 當年,我進入微軟時,只是一個寫原始碼編軟體的普通工程師。看到和微軟其他員工的差距,我沒有放棄。我只能認為自己在公司排名倒數第一,事實上我也就是倒數第一。如何脫穎而出?我告訴自己只有勤奮這一條路。3年為界 步步為營
Time of Update: 2018-12-04
ubuntu上使用用小企鵝中文IME(Free Chinese Input Toy for X,fcitx), 發現經常有問題,因此,把系統升級到支援中文IME,方法如下:1.從system -->administraion –>language support 點擊 install/remove languages 勾選 chinese(simplified) 點擊apply changes
Time of Update: 2018-12-04
step1: sudo apt-getinstall subversionstep2: svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ xbmcstep3: sudo apt-get install subversion make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl-dev
Time of Update: 2018-12-04
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdlib.h>#include <string.h>#include <linux/kernel.h>static int print_memory_size(void){
Time of Update: 2018-12-04
http://www.atsc.org/cms/index.php/standards/published-standards/48-atsc-a52-standard This document specifies coded representation of audio information and the decoding process, as well as information on the encoding process. The coded
Time of Update: 2018-12-04
http://www.kernel.org/pub/software/network/ethtool/ethtool - utility for controlling network drivers and hardwareIntroductionethtool is the standard Linux utility for controlling network drivers and hardware, particularly for wired Ethernet devices.
Time of Update: 2018-12-04
總是忘記了,在這記下來. 1.調日期是把錶冠往外拉一格,按照我自己寫 "0"的順序擰一下就往前調一天(31日變為1日).2.調時間和星期是一起調,時間變了,星期也會變,方法是把錶冠往外拉兩格,可以按照不同的寫 "0" 方向來調整時間和星期向前變化或向後變化.注意,有一個小錶盤是24小時制,因此在調整大錶盤時間的時候注意和它一致,上午9點和晚上9點不一樣,這個會決定星期和日期的變化.
Time of Update: 2018-12-04
一般情況下,一個彙編來源程式需要定義3個段:.text.data.bss這個源自UNIX的傳統(和a.out的結構有關)。不過在現在的LINUX裡,這三個部分不叫“段”(segment),而叫作“區”(section)。這可能和Linux使用ELF(Execution and Linking Format)有關吧:一個ELF格式的可執行程式通常劃分為如下幾個部分:.text、.data 和 .bss,其中.text 是唯讀代碼區,.data 是可讀可寫的資料區,.bss
Time of Update: 2018-12-04
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdlib.h>#include <string.h>#include <linux/kernel>static unsigned long get_file_size(const
Time of Update: 2018-12-04
核心模組代碼:netlink_drv.c#include <linux/kernel.h>#include <linux/module.h>#include <linux/types.h>#include <linux/sched.h>#include <net/sock.h>#include <net/netlink.h>#define NETLINK_TEST 21struct sock *nl_sk =
Time of Update: 2018-12-04
step1: sudo apt-get install kdelibsstep2: sudo apt-get install xorg-devstep3: sudo apt-get install kdelibs4-dev kdelibs4c2astep4: download kscope-1.6.2 from http://download.chinaunix.net/download/0006000/5469.shtmlstep5: cd kscope-1.6.2, ./configure
Time of Update: 2018-12-04
#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdlib.h>#include <string.h>#include <linux/kernel.h>static unsigned long get_file_size(const
Time of Update: 2018-12-04
1.只保留錯誤資訊: make ... 2>log.txt #(注意2和>之間不要空格)2.保留錯誤資訊和警告資訊: make ... > log.txt 2>&1 命令文法command > filename 把標準輸出重新導向到一個新檔案中command >> filename 把標準輸出重新導向到一個檔案中(追加)command 1 > fielname
Time of Update: 2018-12-04
Ffmpeg編譯詳解針對ffmpeg無論是win還是linux下編譯都會出現很多問題,因此這裡設立編譯選項,力圖構建一個標準化編譯過程,使初學者快速消除對應用ffmpeg的恐懼感,至於其中遇到的問題,則放到下面一個選項FAQ裡目錄[隱藏]1Linux1.1查看configure協助1.2選項列表1.3開發人員注意選項1.3.1make之後會產生以下檔案[編輯]Linux[編輯]查看configure協助cd ffmpeg./configure --help