• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 298  文章 - 377  trackbacks - 0
            <2011年10月>
            2526272829301
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345

            常用鏈接

            留言簿(34)

            隨筆分類

            隨筆檔案

            文章檔案

            相冊

            收藏夾

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

             

            在終端執(zhí)行命令

            備份當(dāng)前的源列表,以便日后需要時(shí)恢復(fù):

            sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

            編輯源列表

            Ubuntu 和debian 中執(zhí)行:
            gedit /etc/apt/sources.list

            Kubuntu 中執(zhí)行:
            kdesu kate /etc/apt/sources.list

            Xubuntu 中執(zhí)行:
            gksu mousepad /etc/apt/sources.list

            適用于所有版本:
            sudo vim /etc/apt/sources.list

            從以下各服務(wù)器列表內(nèi)容中選擇一段替換文件中的所有內(nèi)容,一般來說加入一至兩組即可,加多了影響更新速度。為防止非官方源中軟件包不全的問題,請?jiān)趕ources.list文件中尾部添加一組官方源。
            # deb file:/cdrom/ etch main contrib


            #deb http://mirrors.cn99.com/debian/ lenny main non-free contrib
            #deb-src 
            http://mirrors.cn99.com/debian/ lenny main non-free contrib
              
            deb http://mirrors.163.com/debian stable contrib main non-free
            deb-src 
            http://mirrors.163.com/debian stable contrib main non-free
             
            deb http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib
            deb-src 
            http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib          
            deb 
            http://debian.ustc.edu.cn/debian/ lenny main non-free contrib
            deb-src 
            http://debian.ustc.edu.cn/debian/ lenny main non-free contrib

            deb http://ftp.tw.debian.org/debian lenny main 

            deb-src http://ftp.tw.debian.org/debian lenny main

            以上是目前debian lenny 速度穩(wěn)定的源


            IP Address (/etc/network/interfaces)
            # This file describes the network interfaces available on your system
            # and how to activate them. For more information, see interfaces(5).

            # The loopback network interface
            auto lo
            iface lo inet loopback

            # The primary network interface
            allow-hotplug eth0
            iface eth0 inet static
            address 192.168.18.4
            netmask 255.255.255.0
            gateway 192.168.18.1
            DNS (/etc/resolve.conf)
            domain localdomain
            search localdomain
            nameserver 192.168.18.1
            修改好后可能需要執(zhí)行:
            #/etc/init.d/networking restart
            甚至是重啟。

             

            /etc/sudoers

            chmod +w /etc/sudoers
            vim /etc/
            sudoers
            添加一行     username       ALL=(ALL) ALL
            其中username是你的用戶名,更改
            sudoers文件權(quán)限  chmod 0440 /etc/sudoers


             

            c++開發(fā)環(huán)境配置

            1: debian lenny 5.0 選擇文字安裝界面, 安裝到最后階段時(shí), 選擇桌面環(huán)境和文件服務(wù)器項(xiàng), 會將samba, NFS和gnome安裝好
            2: 編程工具 
            apt-get install build-essential      安裝gcc g++ libc-dev make
            apt-get install autoconf
            apt-get install automake

             

            3: 其他工具

            apt-get install tcpdump
            apt-get install unzip 
            apt-get install tree 
            apt-get install tofrodos        安裝dos2unix
            
            
            apt-get install manpages manpages-dev	 函數(shù)man手冊
            4: gtk+開發(fā)庫
            libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev libgconf2-dev

             


            完整的開發(fā)環(huán)境配置(轉(zhuǎn)載)

            小郭安裝Ubuntu系統(tǒng)時(shí)記下了環(huán)境的配置,我針對Debian對該記錄進(jìn)行修改后驗(yàn)證通過
             
            1.安裝系統(tǒng)
            別的沒什么說的,就是安的時(shí)候把網(wǎng)線拔了,不然到
            configure apt的時(shí)候會卡起很久不走的
             
            2.配置網(wǎng)絡(luò)
            編輯
            /etc/network/interface
            auto eth0
            iface inet eth0 static  
            #設(shè)置靜態(tài)IP地址
            address 192.168.1.235
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
            如果是要設(shè)置為自動獲取ip地址就應(yīng)該為
            auto eth0
            iface eth0 inet dhcp
            保存,退出,重啟網(wǎng)絡(luò)
            $/etc/init.d/networking restart
            此時(shí)已經(jīng)可以ping通局域網(wǎng)地址,但外網(wǎng)仍不行
            Debian和Ubuntu一樣,設(shè)置nameserver是在/etc/resolv.conf 里面,在其中添加一行:
            nameserver 192.168.1.1
             
            3.配置apt源
            vim /etc/apt/sourcelist
            然后進(jìn)行更新源
            apt-get -s upgrade
            apt-get update
             
            4.安裝常用軟件
            apt-get install openssh-server,openssh-client
            apt-get install lrzsz
            apt-get install tcpdump
            apt-get install unzip 
            apt-get install tree 
            apt-get install valgrind
            apt-get install more
            apt-get install openssl ca-certificates openssl-doc
            apt-get install mysqlserver,mysqlclient
             
            5.配置vim + ctags + taglist 
            apt-get install vim
            apt-get install ctags
            在vim的主網(wǎng)站下載插件taglist
            http://www.vim.org/scripts/script.php?script_id=273
            然后上傳進(jìn)行解壓
            unzip taglist.zip -d ~/.vim解開;
            :helptags ~/.vim/doc安裝文檔。 
            如果要配置的更詳細(xì),這個(gè)不錯(cuò)
            http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx
             
            6.安裝gcc
            apt-get install gcc
            apt-get install g++
            apt-get install gdb
            apt-get install make
            apt-get install autoconf
            apt-get install automake
            apt-get install libboost-dev
            apt-get install libboost-doc
            apt-get install libxml2
            apt-get install libmysqlclient15-dev
            apt-get install manpages-dev
            apt-get install glibc-doc
             
            7.安裝Python
            我使用的是Debian4.0的r4版本,默認(rèn)安裝的是2.4的Python,需要更新
            apt-get install python2.5 
            apt-get install python-docutils 
            apt-get install python2.5-dbg 
            apt-get install python2.5-dev 
            apt-get install python2.5-examples

            8.安裝twisted
            apt-get install python-twisted-bin
            apt-get install python-twisted-runner
            安裝完后,進(jìn)入Python交互環(huán)境中,輸入
            >>>import twisted.internet
            結(jié)果報(bào)告說無法載入該模塊,我暈死。小郭在安裝的時(shí)候是是先安裝Zope interface,
            下載地址http://zope.org/Products/ZopeInterface,下載zope.interface-3.3.0.tar.gz
            安裝:
            $python setup.py build
            $python setup.py install

            沒有安裝成功,因?yàn)樾枰猵ython2.4 ,而當(dāng)時(shí)他的Ubuntu的Python是2.5。
            直接安裝twisted也出錯(cuò),因?yàn)闆]有找到Python.h文件,所以他重新下了Python2.5進(jìn)行源碼安裝
            我從他那里拷貝來Twisted-8.1.0.tar.bz2(tar -jxvf)解壓后安裝
            >>>import twisted.python
            posted on 2009-06-10 16:38 聶文龍 閱讀(1200) 評論(0)  編輯 收藏 引用

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久亚洲国产成人影院| 久久中文字幕一区二区| 久久久久久久久久久免费精品| 久久精品国产网红主播| 国产精品视频久久久| 中文字幕无码精品亚洲资源网久久| 2021国内久久精品| 无码人妻久久一区二区三区免费| 中文字幕乱码人妻无码久久| 国产99精品久久| 中文精品99久久国产 | 日韩精品无码久久一区二区三| 久久久久无码国产精品不卡| 日韩精品无码久久久久久| 99久久精品免费看国产一区二区三区 | 狠狠色综合久久久久尤物| 欧美黑人激情性久久| 亚洲天堂久久精品| 99国产欧美精品久久久蜜芽| 99精品久久久久久久婷婷| 思思久久精品在热线热| 久久亚洲国产精品123区| 99热热久久这里只有精品68| 久久精品无码一区二区日韩AV| 91精品免费久久久久久久久| 国产精品成人99久久久久| 大蕉久久伊人中文字幕| 伊色综合久久之综合久久| 日韩av无码久久精品免费| 久久久久亚洲av无码专区导航| 无码伊人66久久大杳蕉网站谷歌| 久久久青草久久久青草| 91精品国产91久久久久久青草| 91精品日韩人妻无码久久不卡| 久久久久亚洲AV综合波多野结衣| 777午夜精品久久av蜜臀| 国产∨亚洲V天堂无码久久久| 国产99久久久国产精品~~牛| 久久婷婷午色综合夜啪| 亚洲国产成人久久综合碰| 99久久精品免费看国产|