1.ubuntuå¹³å°å¦ä½ä½¿ç¨å½ä»¤ä¸è½½è½¯ä»¶
2.å¦ä½å¨ubuntuä¸è£
rpmå
3.å¨Linux ç¯å¢ä¸è½ç¨ Homebrew å
4.ubuntuä¸å®è£
wine
5.ATI Radeon Xpress 200M (RS400) ( 1933750 MB ) NEC è¿ä¸ªç©ç«èè¡åï¼
ubuntuå¹³å°å¦ä½ä½¿ç¨å½ä»¤ä¸è½½è½¯ä»¶
1. 使ç¨apt-get installæ¥å®è£ åºç¨ç¨åºæ¯æ常è§çä¸ç§å®è£ æ¹æ³ï¼æ¯å¦è¦å®è£ buildessentialè¿ä¸ªè½¯ä»¶ï¼ä½¿ç¨ä»¥ä¸ï¼ä»ä¼å¸®ææææçä¾èµå é½ä¸èµ·å®è£ äºã
sudo apt-get install build-essential
æ§è¡ä¸è¿°å½ä»¤ä»¥åï¼æ们å¯ä»¥çå°ä¸ä¸ä¿¡æ¯ï¼
The源码简易html源码 following extra packages will be installed:表示ææéè¦åå®è£ çä¾èµå ã
sudo apt-get install build-essential
[sudo] password for enadmin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc gcc-4.6
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libc-bin libc-dev-bin libc6 libc6-dev libdpkg-perl libgomp1 libmpc2 libmpfr4
libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-4.6-locales debian-keyring g++-multilib
g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib autoconf
automake1.9 libtool flex bison gdb gcc-doc gcc-4.6-multilib
libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath0-dbg
libmudflap0-dbg binutils-gold glibc-doc libstdc++6-4.6-doc
The following NEW packages will be installed:
binutils build-essential cpp cpp-4.6 dpkg-dev fakeroot g++ g++-4.6 gcc
gcc-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libc-dev-bin libc6-dev libdpkg-perl libgomp1 libmpc2
libmpfr4 libquadmath0 libstdc++6-4.6-dev linux-libc-dev manpages-dev
The following packages will be upgraded:
libc-bin libc6
2 upgraded, newly installed, 0 to remove and not upgraded.
Need to get .3 MB of archives.
After this operation, .6 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
ä¸é¢ç»åºapt-getççåç§åæ°ï¼
apt-get install xxx å®è£ xxx ãå¦æ带æåæ°ï¼é£ä¹-d è¡¨ç¤ºä» ä¸è½½ ï¼-f 表示强å¶å®è£
apt-get remove xxx å¸è½½xxx
apt-get update æ´æ°è½¯ä»¶ä¿¡æ¯æ°æ®åº
apt-get upgrade è¿è¡ç³»ç»å级
apt-cache search æ索软件å
Tipsï¼å»ºè®®æ¨ç»å¸¸ä½¿ç¨âapt-get updateâå½ä»¤æ¥æ´æ°æ¨ç软件信æ¯æ°æ®åº ã
apt-getç论ä¸æ¯è¦æ±è½å¤èç½ï¼ä½æ¯å¦æå¶ä½äºæ¬å°æºï¼å°±ä¸éè¦èç½ï¼å¶ä½æ¬å°æºå¯ä»¥åèï¼ubuntuå¶ä½æ¬å°æºã
2. dpkgå®è£ debå
Ubuntu软件å æ ¼å¼ä¸ºdebï¼å®è£ æ¹æ³å¦ä¸ï¼
sudo dpkg -i package.deb
dpkgç详ç»ä½¿ç¨æ¹æ³ï¼ç½ä¸æå¾å¤ï¼ä¸é¢ç®ååäºå 个ï¼
dpkg -i package.deb å®è£ å
dpkg -r package å é¤å
dpkg -P package å é¤å ï¼å æ¬é ç½®æ件ï¼
dpkg -L package ååºä¸è¯¥å å ³èçæ件
dpkg -l package æ¾ç¤ºè¯¥å ççæ¬
dpkg âunpack package.deb è§£å¼ deb å çå 容
dpkg -S keyword æç´¢æå±çå å 容
dpkg -l ååºå½åå·²å®è£ çå
dpkg -c package.deb ååº deb å çå 容
dpkg âconfigure package é ç½®å
æ ¹æ®Ubuntuä¸æ论åä¸ä»ç»ï¼ä½¿ç¨apt-getæ¹æ³å®è£ ç软件ï¼ææä¸è½½çdebå é½ç¼åå°äº/var/cache/apt/archivesç®å½ä¸äºï¼æ以å¯ä»¥æ常ç¨çdebå å¤ä»½åºæ¥ï¼çè³åæISOå·¥å ·å ãå»çï¼ä»¥åå®è£ Ubuntuæ¶å°±å¯ä»¥å¨æ²¡æç½ç»ç¯å¢çæ åµä¸è¿è¡äºãä¸é¢çå½ä»¤æ¯æ·è´archivesè¿ä¸ªç®å½å°/var/cache/apt/ç®å½ä¸ï¼æ¿æ¢åæçarchives
enadmin@ubuntu-server:~/ftp$ sudo cp -r archives/ /var/cache/apt/
3. make installæºä»£ç å®è£ ã
å¦æè¦ä½¿ç¨makeå®è£ çè¯ï¼é£ä¹å¿ é¡»å¾å®è£ build-essentialè¿ä¸ªä¾èµå ï¼å®è£ æ¹æ³å·²ç»å¨åé¢è¯´è¿äºãå¨å®è£ å®æ¯ä»¥åï¼æ们就å¯ä»¥è¿è¡æºç å®è£ ãæºç å®è£ 大è´å¯ä»¥å为ä¸æ¥éª¤ï¼ï¼./configureï¼âï¼ ç¼è¯ï¼sudo makeï¼ âï¼ å®è£ ï¼sudo make installï¼ã
é ç½®ï¼è¿æ¯ç¼è¯æºä»£ç ç第ä¸æ¥ï¼éè¿ ./configure å½ä»¤å®æãæ§è¡æ¤æ¥ä»¥ä¾¿ä¸ºç¼è¯æºä»£ç ä½åå¤ã常ç¨çé项æ --prefix=PREFIXï¼ç¨ä»¥æå®ç¨åºçå®è£ ä½ç½®ãæ´å¤çé项å¯éè¿ --help æ¥è¯¢ãä¹ææäºç¨åºæ éæ§è¡æ¤æ¥ã
ç¼è¯ï¼ä¸æ¦é ç½®éè¿ï¼å¯å³å»ä½¿ç¨ make æ令æ¥æ§è¡æºä»£ç çç¼è¯è¿ç¨ãè§è½¯ä»¶çå ·ä½æ åµèå®ï¼ç¼è¯æéçæ¶é´ä¹åæå·®å¼ï¼æ们æè¦åçå°±æ¯èå¿çååéè§å ¶åãæ¤æ¥è½ç¶ä» ä¸ç®åçæ令ï¼ä½ææ¶åæéå°çé®é¢å´ååå¤æãè¾å¸¸ç¢°å°çæ å½¢æ¯ç¨åºç¼è¯å°ä¸éå´æ æ³å满ç»æãæ¤æ¶ï¼éè¦æ ¹æ®åºéæ示åæ以便æ¾å°åºå¯¹ä¹çã
å®è£ ï¼å¦æç¼è¯æ²¡æé®é¢ï¼é£ä¹æ§è¡ sudo make install å°±å¯ä»¥å°ç¨åºå®è£ å°ç³»ç»ä¸äºã
ä¸é¢ä»¥å®è£ nagios为ä¾è¿è¡è¯´æã
//1.解å缩
tar -zxf nagios-4.0.2.tar.gz
//2.è¿å ¥ç®å½
cd nagios-4.0.2
//3.é ç½®
./configure --prefix=/usr/local/nagios
//4.ç¼è¯
make all
//5.å®è£
make install && make install-init && make install-commandmode && make install-config
以ä¸å°±æ¯æºä»£ç å®è£ æ¹å¼ã
å¦ä½å¨ubuntuä¸è£ rpmå
Ubuntuç软件å æ ¼å¼æ¯debï¼å¦æè¦å®è£ rpmçå ï¼åè¦å ç¨alienærpm转æ¢ædebã
sudo apt-get install alien #aliené»è®¤æ²¡æå®è£ ï¼æ以é¦å è¦å®è£ å®
sudo alien xxxx.rpm #å°rpm转æ¢ä½debï¼å®æåä¼çæä¸ä¸ªååçxxxx.deb
sudo dpkg -i xxxx.deb #å®è£
注æï¼ç¨alien转æ¢çdebå 并ä¸è½ä¿è¯%顺å©å®è£ ï¼æ以å¯ä»¥æ¾å°debæ好ç´æ¥ç¨deb
ææ¶åï¼æ们æ³è¦ä½¿ç¨ç软件并没æ被å å«å° Ubuntu çä»åºä¸ï¼èç¨åºæ¬èº«ä¹æ²¡ææä¾è®© Ubuntu å¯ä»¥ä½¿ç¨ç deb å ï¼ä½ åä¸æ¿ä»æºä»£ç ç¼è¯ãä½åå¦è½¯ä»¶æä¾æ rpm å çè¯ï¼æ们ä¹æ¯å¯ä»¥å¨ Ubuntu ä¸å®è£ çã
æ¹æ³ä¸ï¼
1. å å®è£ alien å fakeroot è¿ä¸¤ä¸ªå·¥å ·ï¼å ¶ä¸åè å¯ä»¥å° rpm å 转æ¢ä¸º deb å ãå®è£ å½ä»¤ä¸ºï¼
sudo apt-get install alien fakeroot
2. å°éè¦å®è£ ç rpm å ä¸è½½å¤ç¨ï¼å设为 package.rpmã
3. ä½¿ç¨ alien å° rpm å 转æ¢ä¸º deb å ï¼
fakeroot alien package.rpm
4. ä¸æ¦è½¬æ¢æåï¼æ们å¯ä»¥å³å»ä½¿ç¨ä»¥ä¸æ令æ¥å®è£ ï¼
sudo dpkg -i package.deb
æ¹æ³äºï¼
1.CODE:
sudo apt-get install rpm alien
2.CODE:
alien -d package.rpm
3.CODE:
sudo dpkg -i package.deb
转åç
å¨Linux ç¯å¢ä¸è½ç¨ Homebrew å
åªæ¯æè§å¨Linuxä¸ç¨è¿ä¸ªæä¹ä¸å¤§ï¼å¼ç¨æ论åç½åç说æ³ï¼
å¨Linuxä¸ä½¿ç¨Homebrewæä¹ä¸å¤§ãHomebrewä¹æ以è¿ä¹è®¾è®¡ï¼å¾å¤§ç¨åº¦ä¸æ¯ä¸ºäºç»å¼Mac OS Xç³»ç»è®¾è®¡ä¸çé®é¢ãä½æ¯æLinuxçæ åæ¥çï¼Homebrewæ¯ä¸ä¸ªå®ç°çå¾ç³ç³çå 管çå¨ï¼
使ç¨ç¨æ·æ¬èº«æéç¼è¯è½¯ä»¶ï¼èéfakerootç¼è¯ç¯å¢ï¼å¸¦æ¥å®å ¨éæ£
ç ´å/usr/localçæéï¼åå 容ï¼
åç³»ç»æ¬èº«ç软件å 常常å²çª
å¾å¤è½¯ä»¶ä»ç¶éè¦å¤§ééç¼è¯
ç±äºä¾èµOS Xçåºï¼å级系ç»å¾å®¹æ带æ¥è½¯ä»¶å ä¹è³homebrewèªèº«çè¿è¡é®é¢
åå¨å¯ä»¥å®ç°homebrewç软件å 管çå¨ï¼æ²¡æå¿ è¦ç»§ç»éé è½®å
æ ¹æ¬åå æ¯å 为ï¼OS X没æå ç½®ç软件å 管çæºå¶ï¼æ以任ä½å ¶ä»ç软件å 管çå¨é½ä¸å¾è¿å°±OS Xæ¬èº«èªå¸¦ç软件çæ¬ï¼èå¨Linuxä¸ï¼ä¸è¬ç³»ç»ä¸ææç软件å çæ¬ï¼é½ç±åè¡çæ¬èº«ç软件å 管çå¨åååç»´æ¤ï¼è¿æ ·ä¿è¯äºç³»ç»ç稳å®ã没æå²çªã
ãã对äºCentOSæ¥è¯´ï¼ç³»ç»èªå¸¦çyumå·²ç»å¯ä»¥å®æ大é¨åç软件管çå·¥ä½ PackageManagement
ããCentOSæ¯ä»¥ã稳å®ã为第ä¸èéçåè¡çï¼æ以ä¸å»ºè®®éæ°ç¼è¯è½¯ä»¶ï¼åè§ PackageManagement/SourceInstalls
ããä½ å¯ä»¥èªå·±å¯¹è½¯ä»¶è¿è¡æå ï¼ç¶åå®è£ HowTos/SetupRpmBuildEnvironment
ããå¦æä½ å欢ææ°ç软件çæ¬ï¼è¯·å°è¯Arch Linux
ããå¦æä½ å欢æºç ç¼è¯ï¼ç±»ä¼¼portsçç³»ç»ï¼è¯·å°è¯Gentoo Linuxåè¡
ubuntuä¸å®è£ wine
Ubuntuå®è£ wineä¸è¬ä½¿ç¨ä¸¤ç§æ¹å¼ï¼æºç ç¼è¯æè ä»ç½ç»æºå®è£ ã æºç ç¼è¯å®è£ ç¸å¯¹æ¯è¾ç¨³å®ï¼é度快ãæçé«ï¼ä½æ¯éè¦æ¶é´ç¼è¯ï¼ç¸æ¯ä¸åéçæºå®è£ ï¼å ååéçç¼è¯ç¡®å®å¾é¿ãæºå®è£ æ¯å«äººå·²ç»å¸®ä½ ç¼è¯å¥½çäºï¼ä½æ¯å®è£ 以ååºç°åéå¥æªé®é¢çå çè¾é«ãä¸è¬æ¥è¯´æ¯è¿æ ·ï¼æ以è¿æ¯ç¼è¯å®è£ æ¯è¾å¥½ã
ç¼è¯å®è£ æ让人头ççæ¯è§£å³å çä¾èµæ§é®é¢ãå®è£ wineä½ éè¦å®è£ ä¸é¢çå ï¼åªè¦ä½ çubuntuè½å¤ä¸ç½ï¼æå¯ç¨çå®è£ æºï¼é£å°±å¯ä»¥æ¯è¾è½»æ¾äºã
1ãæå¼ç»ç«¯ï¼è¾å ¥
代ç :
sudo apt-get install flex bison
代ç :
sudo apt-get install build-essential
代ç :
sudo apt-get install gcc libc6-dev fakeroot libglib1.2-dev libglib2.0-dev libltdl3-dev libmad0-dev libmng-dev libodbcinstq1c2 libogg-dev libpng-dev libqt3-headers libqt3-mt-dev libvorbis-dev libxft-dev libxi-dev libxinerama-dev libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxtrap-dev libxtst-dev libxv-dev libxxfdga-dev qt3-dev-tools render-dev unixodbc-dev x-dev xproto-record-dev xproto-trap-dev xproto-video-dev xproto-xfdga-dev xlibs-dev fontforge flex bison libxext6
æ示è¾å ¥å¯ç æ¶è¾å ¥å¯ç ï¼è¾å ¥æ¶å±å¹ä¸ä¼åºç°æåï¼ç¡®è®¤è¾å ¥æ£ç¡®åæå车就å¯ä»¥äºã注ææ¯ä¸ªå çååä¹é´è¦æç©ºæ ¼ã
2ãä¸è½½ææ°çWineçæºç å ï¼ææ°çæ¯1.1.0ï¼æå å¥æ³¨éï¼å½æ¶ä»åæ¶è¿æ¯1.0æ£å¼åå¸çç)
åºç°å¯¹è¯æ¡åï¼ç¹å»installï¼ç¨åºä¼èªå¨ä¸è½½å®è£ geckoï¼å¤§æ¦éè¦åéï¼å®è£ æåä¼åºç°googleçä¸æ主页ã
4ãä¸æ设置
è¿ä¸ªæ¹æ³çä¸æ设置ï¼å¯ä»¥è§£å³CS1.6çä¸ææ¾ç¤ºï¼å¯ä»¥å®å ¨æ¾ç¤ºã
æä¸é¢è¿æ®µä»£ç å¦å为zh.reg ï¼ç¶åå¨ç»ç«¯ä¸é¢è¾å ¥ï¼âregedit zh.regâ ä»Windowsç®å½ä¸çFontséçsimsun.ttcå¤å¶å°/home/user/.wine/drive_c/windows/fontséé¢ã
代ç :
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,"="simsun"
"Arial CYR,"="simsun"
"Arial Greek,"="simsun"
"Arial TUR,"="simsun"
"Courier New"="simsun"
"Courier New CE,"="simsun"
"Courier New CYR,"="simsun"
"Courier New Greek,"="simsun"
"Courier New TUR,"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,"="simsun"
"Times New Roman CYR,"="simsun"
"Times New Roman Greek,"="simsun"
"Times New Roman TUR,"="simsun"
"Tms Rmn"="simsun"
5ãé¨åDLL设置
å°çå®windowsä¸çsystemæ件夹ï¼C:\WINDOWS\systenmï¼éå¤å¶ mfc.dll,msvcp.dll,riched.dll,riched.dllè¿å 个æ件å°/home/user/.wine /drive_c/windows/systemæ件éï¼éè¦è¦çæ¶ç¡®å®ãå ¶ä»dllæ件ä¸è¦é便è¦çï¼è¦åå¤ä»½ã
6ãå¦æç¼è¯å®è£ éä¸åºç°ç±»ä¼¼ä¸é¢çé误ï¼æ¤æ®µè±è¯æ¯å ä¸ºä½ æ²¡æå®è£ ç¸å ³çdevelæ¯æï¼å¦ææ¯ç¨gonmeæ¡é¢çï¼è¯·å¨æ¡é¢è¾å ¥ï¼sduo apt-get install gnome-devel ä¸è½½å®è£ å®åå次æ§è¡ç¼è¯å®è£ wineå³å¯ã
configure: WARNING: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree at the very least
ATI Radeon Xpress M (RS) ( MB ) NEC è¿ä¸ªç©ç«èè¡åï¼
çå°å¾å¤ç½åä¸ä¼è£ ATIæ¾å¡é©±å¨ï¼è¯´å®å¨çATI驱å¨ç¡®å®å¾è®©äººéé·ï¼ï¼æå°±åäºè¿ç¯è´´åï¼æ²¡å¥ææ¯å«éï¼åªæ¯è¿å带æãå¨è¿éæè°¢é£äºæä¾æ¹æ³çç½ååææ¯æ¯æè ï¼1.ä¸è¬æ¥è®²èçATIæ¾å¡å¨è£ 好系ç»ä»¥åå°±å¯ä»¥å¾å¥½çå·¥ä½äºï¼è¿æ¯å 为AMD对èå¡ç驱å¨å ¬å¸äºæºç ï¼ä½¿å¼æºé©±å¨è½å¤å¾å¥½çæ¯æ3Dãå¼å¯ç¹æå¾ç®åï¼åªè¦å¨ç³»ç»é¦é项ââ主é¢ââç¹æééæ©å°±å¯ä»¥äºã2.大é¨åAå¡æ²¡æè¿ä¹å¹¸è¿ï¼éè¦å¾å¤è®¾ç½®ï¼è¿è¦ç¥éubuntuçä¸äºåºæ¬æ¦å¿µï¼ç¼è¯é©±å¨å°æ ¸å¿ä¸æ¦åºéï¼æ¯è¾éº»ç¦ãæä½æ¥éª¤å¦ä¸ï¼ï¼1ï¼æ³¨æï¼ATIéæºé©±å¨ä¸åæ¯æTATI Radeon -, X-X, Xpress. å ·ä½å¦ä¸ï¼ATI Radeon Series ATI Radeon Series ATI Radeon Series ATI Radeon Series ATI Radeon Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon X Series ATI Radeon Xpress Series ATI Radeon X Series å¦æä½ çæ¾å¡å¨æ¤åï¼å°±éº»ç¦ä½ ç¨å¼æºé©±å¨ãï¼2ï¼å®è£ åçåå¤ï¼å®è£ å¿ è¦è½¯ä»¶sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms ï¼3ï¼ä¸è½½ææ°çATI驱å¨ï¼ /us/gpudownload/Pages/index.aspxï¼:Catalyst 9.6 -- File: ati-driver-installer-9-6-x.x_.run.è¿ä¸ªå æ¯æXåX.ç¶åå¨ç»ç«¯éå®ä½å°æ件ä¸è½½çä½ç½®ï¼ç¨cdå½ä»¤ï¼ãè¿è¡ç¼è¯debå ï¼sh ati-driver-installer-9-6-x.x_.run --buildpkg Ubuntu/jaunty ï¼4ï¼å®è£ ä½ï¼sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb ä½ï¼sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb ï¼5ï¼æ¶å°¾sudo gedit /etc/X/xorg.conf å¨xorgæ件ä¸æ·»å ä¸é¢çè¯å¥ï¼å¦æä½ çæ件é没æï¼ï¼ä¸è¦[...]Section "Device" [...] Identifier "SOME IDENTIFIER" [...] Driver "fglrx" [...]EndSectionä¿åéåºãï¼6ï¼éå¯ï¼è¾å ¥fglrxinfo åºè¯¥æ以ä¸ä¿¡æ¯display: :0.0