<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > linux學(xué)習(xí)總結(jié)

          linux學(xué)習(xí)總結(jié)

          作者: 時(shí)間:2012-08-02 來(lái)源:網(wǎng)絡(luò) 收藏

          操作系統(tǒng)文章專(zhuān)題:操作系統(tǒng)詳解(不再難懂)

          本文引用地址:http://www.ex-cimer.com/article/148660.htm

          問(wèn)題1:linux系統(tǒng)的定制和安裝

          STep 1> IBM PC按F12,來(lái)選擇從CD-ROM起動(dòng);

          step 2> Fedora

          問(wèn)題2:基本命令

          1> shutdown -h now 在關(guān)閉完成后停止(Halt)系統(tǒng)

          shutdown -r now 在關(guān)閉完成后重啟動(dòng)(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

          問(wèn)題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)改為可寫(xiě)支持,在make menuconfig中有2個(gè)選項(xiàng)

          NTFS file system supPort (read only)

          NTFS write support (DANGEROUS)

          問(wèn)題4:/boot/grub/grub.conf中有從什么系統(tǒng)起動(dòng)的選擇

          問(wèn)題5:怎么mount/umount NTFS系統(tǒng)

          step 1> 先通過(guò)硬件瀏覽器來(lái)看機(jī)器硬盤(pán)的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> 自動(dòng)mount ntfs文件系統(tǒng)的文件是/etc/fstab

          問(wèn)題6:怎么測(cè)試聲卡安裝?

          運(yùn)行 redhat-config-soundcard

          位置在 /usr/bin/redhat-config-soundcard

          問(wèn)題7:這臺(tái)IBM PC機(jī)器顯卡驅(qū)動(dòng)安裝,只能支持256色,無(wú)法支持16bits和24bits

          在BIOS設(shè)置中Video Setup中將Shared System Memory改為8192K,原因是這臺(tái)IBM PC用的是集成顯卡,它需要和操作系統(tǒng)共用memory。

          redhat-config-xfree86,在/etc/X11目錄下產(chǎn)生XF86Config,這個(gè)文件很重要,可認(rèn)真看下。

          問(wè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

          問(wèn)題9:打包/解包

          打包

          tar cdvf [目標(biāo)] [源]

          c create

          解包

          tar zxvf RealPlay9.tar.gz

          x extract

          Z用compress程序來(lái)壓縮和解壓

          z用zip程序來(lái)壓縮和解壓

          問(wèn)題10:用Mozilla瀏覽器上網(wǎng)

          當(dāng)網(wǎng)卡驅(qū)動(dòng)安裝完畢后,在Mozilla中 Edit->Preferences->Advanced->Proxies中設(shè)置

          HTTPProxy: lps1.hkg.st.com Port 8080

          問(wèn)題11:軟件包管理

          1> redhat-config-packages

          2> rpm

          -q The general form of an rpm query command

          -i This install a new package

          問(wèn)題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

          問(wèn)題13:movie播放

          安裝RealPlayer.i586.rpm

          問(wèn)題14:

          / 根目錄

          ./ 當(dāng)前目錄

          / 上一級(jí)目錄

          問(wèn)題15:中文輸入

          step 1> 在系統(tǒng)設(shè)置->語(yǔ)言中選擇中文

          step 2> Ctrl+空格

          問(wèn)題16:webmail1.sha.st.com收郵件

          問(wèn)題17:無(wú)法支持瀏覽中文目錄和文件?

          在mount時(shí)增加 -o utf8

          UTF8 is the filesystem safe 8-bit encoding of unicode that used by the console.

          問(wèn)題18:進(jìn)程管理

          ps -A

          ps -a

          kill ID

          問(wèn)題19:安裝星際譯王

          問(wèn)題20:與公司ftp服務(wù)器建立連接,通過(guò)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

          問(wèn)題21:如何編寫(xiě)純文本文件?

          保存文件為*.txt即可。

          問(wèn)題22:安裝網(wǎng)絡(luò)打印機(jī)2300

          IP 138.198.199.44

          PostScript Printer

          step 1> 系統(tǒng)設(shè)置->打印->新建->添加一個(gè)新打印隊(duì)列->…

          step 2> 隊(duì)列類(lèi)型選擇聯(lián)網(wǎng)的CUPS(IPP)

          step 3> 服務(wù)器 138.198.199.44

          step 4> 打印機(jī)選擇 PostScript Printer

          問(wèn)題23:如何在linux環(huán)境下進(jìn)行ST軟件開(kāi)發(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來(lái)設(shè)置環(huán)境變量

          其它和在windows環(huán)境開(kāi)發(fā)類(lèi)似了。

          問(wèn)題24:使用Emacs和kwrite來(lái)編寫(xiě)

          linux操作系統(tǒng)文章專(zhuān)題:linux操作系統(tǒng)詳解(linux不再難懂)

          linux相關(guān)文章:linux教程




          關(guān)鍵詞: 總結(jié) 學(xué)習(xí) linux

          評(píng)論


          相關(guān)推薦

          技術(shù)專(zhuān)區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();