新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > linux學習總結

        linux學習總結

        作者: 時間:2012-08-02 來源:網絡 收藏

        操作系統文章專題:操作系統詳解(不再難懂)

        本文引用地址:http://www.104case.com/article/148660.htm

        問題1:linux系統的定制和安裝

        STep 1> IBM PC按F12,來選擇從CD-ROM起動;

        step 2> Fedora

        問題2:基本命令

        1> shutdown -h now 在關閉完成后停止(Halt)系統

        shutdown -r now 在關閉完成后重啟動(Reoot)系統

        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!強制修改

        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:內核的重新編譯,目的是支持NTFS系統和支持USB接口的keyboard mouse

        step 1> 必須進入到這個目錄 /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文件系統改為可寫支持,在make menuconfig中有2個選項

        NTFS file system supPort (read only)

        NTFS write support (DANGEROUS)

        問題4:/boot/grub/grub.conf中有從什么系統起動的選擇

        問題5:怎么mount/umount NTFS系統

        step 1> 先通過硬件瀏覽器來看機器硬盤的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文件系統的文件是/etc/fstab

        問題6:怎么測試聲卡安裝?

        運行 redhat-config-soundcard

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

        問題7:這臺IBM PC機器顯卡驅動安裝,只能支持256色,無法支持16bits和24bits

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

        redhat-config-xfree86,在/etc/X11目錄下產生XF86Config,這個文件很重要,可認真看下。

        問題8:網絡配置舉例

        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 [目標] [源]

        c create

        解包

        tar zxvf RealPlay9.tar.gz

        x extract

        Z用compress程序來壓縮和解壓

        z用zip程序來壓縮和解壓

        問題10:用Mozilla瀏覽器上網

        當網卡驅動安裝完畢后,在Mozilla中 Edit->Preferences->Advanced->Proxies中設置

        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:

        / 根目錄

        ./ 當前目錄

        / 上一級目錄

        問題15:中文輸入

        step 1> 在系統設置->語言中選擇中文

        step 2> Ctrl+空格

        問題16:webmail1.sha.st.com收郵件

        問題17:無法支持瀏覽中文目錄和文件?

        在mount時增加 -o utf8

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

        問題18:進程管理

        ps -A

        ps -a

        kill ID

        問題19:安裝星際譯王

        問題20:與公司ftp服務器建立連接,通過ftp進行文件傳輸

        step 1> ftp 138.198.199.186

        step 2> user name: xiangning_lai password: xiangning_lai

        文件傳輸功能的實現參閱>

        或者當進入ftp>提示狀態后敲help

        問題21:如何編寫純文本文件?

        保存文件為*.txt即可。

        問題22:安裝網絡打印機2300

        IP 138.198.199.44

        PostScript Printer

        step 1> 系統設置->打印->新建->添加一個新打印隊列->…

        step 2> 隊列類型選擇聯網的CUPS(IPP)

        step 3> 服務器 138.198.199.44

        step 4> 打印機選擇 PostScript Printer

        問題23:如何在linux環境下進行ST軟件開發?

        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來設置環境變量

        其它和在windows環境開發類似了。

        問題24:使用Emacs和kwrite來編寫

        linux操作系統文章專題:linux操作系統詳解(linux不再難懂)

        linux相關文章:linux教程




        關鍵詞: 總結 學習 linux

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 金湖县| 温泉县| 尖扎县| 栾川县| 济宁市| 藁城市| 克拉玛依市| 福贡县| 绥化市| 云和县| 华安县| 双牌县| 阿瓦提县| 夏津县| 泸溪县| 兴义市| 中山市| 湘潭市| 鹿邑县| 凌海市| 昌江| 靖西县| 白城市| 富蕴县| 蕉岭县| 绥中县| 玉龙| 崇仁县| 嘉义市| 浦城县| 建德市| 民丰县| 万安县| 合山市| 兴安盟| 普兰店市| 嘉禾县| 威信县| 台东市| 满洲里市| 洪湖市|