linux學(xué)習(xí)總結(jié)
出處:wang_4972 發(fā)布于:2011-08-16 10:45:21
問題1:linux系統(tǒng)的定制和安裝
step 1> IBM PC按F12,來選擇從CD-ROM起動;
step 2> Fedora
問題2:基本命令
1> shutdown -h now 在關(guān)閉完成后停止(Halt)系統(tǒng)
shutdown -r now 在關(guān)閉完成后重啟動(Reoot)系統(tǒng)
2> uname 用途是:print system information
-a, --all
print all information, in the following order
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type
-i, --hardware-platform
print the hardware platform
-o, --operating-system
print the operating system
--help
display this help and exit
--version
output version information and exit
3> vi
其中wq!強(qiáng)制修改
4> clear
5> ifconfig
6> reboot
7> man
8> startx
9> fdisk -l
10> redhat-config-xfree86
11> mkbootdisk
12> cp
13> mkdir
14> rm -rf
15> which
16> pwd --- print name of current/working directory
17> find
18> grep
問題3:內(nèi)核的重新編譯,目的是支持NTFS系統(tǒng)和支持USB接口的keyboard mouse
step 1> 必須進(jìn)入到這個(gè)目錄 /usr/src/linux-2.4
step 2> make menuconfig 選擇NTFS支持和選擇USB keyboard mouse支持,多保存幾次
step 3> make dep
step 4> make clean
step 5> make bzImage
step 6> make modules
step 7> make modules_install
step 8> make install
如果想將NTFS文件系統(tǒng)改為可寫支持,在make menuconfig中有2個(gè)選項(xiàng)
NTFS file system support (read only)
NTFS write support (DANGEROUS)
問題4:/boot/grub/grub.conf中有從什么系統(tǒng)起動的選擇
問題5:怎么mount/umount NTFS系統(tǒng)
step 1> 先通過硬件瀏覽器來看機(jī)器硬盤的DEVICE名,for example,hda5,hda6
step 2> 先在 /mnt目錄下用mkdir建立ntfs_hda5 ntfs_hda6
step 3> 掛載
mount -t ntfs -o utf8 /dev/hda6 /mnt/ntfs_hda6
mount -t ntfs -o iocharset=cp936 /dev/hda6 /mnt/ntfs_hda6
卸載
umount /mnt/ntfs_hda6
step 4> 自動mount ntfs文件系統(tǒng)的文件是/etc/fstab
問題6:怎么測試聲卡安裝?
運(yùn)行 redhat-config-soundcard
位置在 /usr/bin/redhat-config-soundcard
問題7:這臺IBM PC機(jī)器顯卡驅(qū)動安裝,只能支持256色,無法支持16bits和24bits
在BIOS設(shè)置中Video Setup中將Shared System Memory改為8192K,原因是這臺IBM PC用的是集成顯卡,它需要和操作系統(tǒng)共用memory。
redhat-config-xfree86,在/etc/X11目錄下產(chǎn)生XF86Config,這個(gè)文件很重要,可認(rèn)真看下。
問題8:網(wǎng)絡(luò)配置舉例
ifconfig ----- configure a network interface
ifconfig eth0 add 192.168.2.28
ping 192.168.2.29
mount 192.168.2.29:/opt/STM/ST40Linux-1.0/devkit/sh4/target /mnt/cdrom
ifconfig eth0 down
問題9:打包/解包
打包
tar cdvf [目標(biāo)] [源]
"c" create
解包
tar zxvf RealPlay9.tar.gz
"x" extract
Z用compress程序來壓縮和解壓
z用zip程序來壓縮和解壓
問題10:用Mozilla瀏覽器上網(wǎng)
當(dāng)網(wǎng)卡驅(qū)動安裝完畢后,在Mozilla中 Edit->Preferences->Advanced->Proxies中設(shè)置
HTTPProxy: lps1.hkg.st.com Port 8080
問題11:軟件包管理
1> redhat-config-packages
2> rpm
-q The general form of an rpm query command
-i This install a new package
問題12:mp3播放
step 1> 首先知道 XMMS是 an audio player for X
step 2> which xmms
step 3> 得到
xmms-mp3-1.2.8-3.p.i386.rpm
step 4> rpm -i xmms-mp3-1.2.8-3.p.i386.rpm
step 5> xmms amour.mp3
問題13:movie播放
安裝RealPlayer.i586.rpm
問題14:
/ 根目錄
./ 當(dāng)前目錄
/ 上目錄
問題15:中文輸入
step 1> 在系統(tǒng)設(shè)置->語言中選擇中文
step 2> Ctrl+空格
問題16:webmail1.sha.st.com收郵件
問題17:無法支持瀏覽中文目錄和文件?
在mount時(shí)增加 -o utf8
UTF8 is the filesystem safe 8-bit encoding of unicode that used by the console.
問題18:進(jìn)程管理
ps -A
ps -a
kill ID
問題19:安裝星際譯王
問題20:與公司ftp服務(wù)器建立連接,通過ftp進(jìn)行文件傳輸
step 1> ftp 138.198.199.186
step 2> user name: xiangning_lai password: xiangning_lai
文件傳輸功能的實(shí)現(xiàn)參閱<>
或者當(dāng)進(jìn)入ftp>提示狀態(tài)后敲help
問題21:如何編寫純文本文件?
保存文件為*.txt即可。
問題22:安裝網(wǎng)絡(luò)打印機(jī)2300
IP 138.198.199.44
PostScript Printer
step 1> 系統(tǒng)設(shè)置->打印->新建->添加一個(gè)新打印隊(duì)列->…
step 2> 隊(duì)列類型選擇聯(lián)網(wǎng)的CUPS(IPP)
step 3> 服務(wù)器 138.198.199.44
step 4> 打印機(jī)選擇 PostScript Printer
問題23:如何在linux環(huán)境下進(jìn)行ST軟件開發(fā)?
step 1> 安裝st20 toolset for linux;
step 2> 閱讀st20 toolset for linux的安裝文檔 install.htm
Before the tools are used, there are several environment variables that must be set.
ST20ROOT must point to the root of the installed toolset (/opt/STM/ST20R2.0.5 in the above example)。
The PATH should contain /opt/STM/ST20R2.0.5/bin.
The LD_LIBRARY_PATH should contain /opt/STM/ST20R2.0.5/lib.
step 3> 用source來設(shè)置環(huán)境變量
其它和在windows環(huán)境開發(fā)類似了。
問題24:使用Emacs和kwrite來編寫
問題25:推薦網(wǎng)站
https://www.linuxeden.com
https://www.linuxforum.net
https://www.stlinux.com
版權(quán)與免責(zé)聲明
凡本網(wǎng)注明“出處:維庫電子市場網(wǎng)”的所有作品,版權(quán)均屬于維庫電子市場網(wǎng),轉(zhuǎn)載請必須注明維庫電子市場網(wǎng),http://www.hbjingang.com,違反者本網(wǎng)將追究相關(guān)法律責(zé)任。
本網(wǎng)轉(zhuǎn)載并注明自其它出處的作品,目的在于傳遞更多信息,并不代表本網(wǎng)贊同其觀點(diǎn)或證實(shí)其內(nèi)容的真實(shí)性,不承擔(dān)此類作品侵權(quán)行為的直接責(zé)任及連帶責(zé)任。其他媒體、網(wǎng)站或個(gè)人從本網(wǎng)轉(zhuǎn)載時(shí),必須保留本網(wǎng)注明的作品出處,并自負(fù)版權(quán)等法律責(zé)任。
如涉及作品內(nèi)容、版權(quán)等問題,請?jiān)谧髌钒l(fā)表之日起一周內(nèi)與本網(wǎng)聯(lián)系,否則視為放棄相關(guān)權(quán)利。
- ARM技術(shù)架構(gòu)與應(yīng)用開發(fā)實(shí)踐指南2026/1/6 10:40:19
- 嵌入式實(shí)時(shí)操作系統(tǒng)(RTOS)選型與移植技術(shù)指南2025/12/31 10:42:31
- 工業(yè)嵌入式系統(tǒng):通信接口技術(shù)選型與抗干擾設(shè)計(jì)實(shí)踐2025/12/15 14:36:53
- 深入解析嵌入式 OPENAMP 框架:開啟異核通信新時(shí)代2025/7/22 16:27:29
- 一文快速了解OPENWRT基礎(chǔ)知識2025/7/14 16:59:04
- 高溫環(huán)境下電源IC選型建議
- 安防監(jiān)控設(shè)備連接器應(yīng)用分析
- 高速PCB信號完整性(SI)設(shè)計(jì)核心實(shí)操規(guī)范
- 鎖相環(huán)(PLL)中的環(huán)路濾波器:參數(shù)計(jì)算與穩(wěn)定性分析
- MOSFET反向恢復(fù)特性對系統(tǒng)的影響
- 電源IC在惡劣環(huán)境中的防護(hù)設(shè)計(jì)
- 連接器耐腐蝕性能測試方法
- PCB電磁兼容(EMC)設(shè)計(jì)與干擾抑制核心實(shí)操規(guī)范
- 用于相位噪聲測量的低通濾波器設(shè)計(jì)與本振凈化技術(shù)
- MOSFET在高頻開關(guān)中的EMI問題









