You are on page 1of 24

2005 c324F

LinuxXÚSC
Ä·-0

ÄXÚ±9~^^‡SC
iN{z
MplayerSC
rpm^‡+n . . .
Linux linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .
Linuxe windowsiZ
UóäLumaqq

Úm
Ù¦¯K

–¯Ì
IK

¥I‰ÆêƆXډÆïÄ
JJ II

OŽêƆ‰Æó§OŽïĤ J

1 1   24 
I

hhxie@lsec.cc.ac.cn ˆ £
XkäN¯KŒ±–¯Ìlsec.cc.ac.cn/ hhxie,½†ue‡‰·,˜å? ¶w«
Ø)û. ' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .

XÚSC
linux©‡XÚ
wã¡Ú?n©
1 Linux LinuxeWindows^ . . .
Linuxe windowsiZ

£1SC¤ UóäLumaqq
Ù¦¯K
1µBIOSerCD-ROM1˜éÄì
2µ˜\1­é§?\SC§S3µÀJŠóڅ] –¯Ì
4µÀJSCa.£½›µgCÀJ‡SC§íÀJopenoffice^‡ IK
ژ
muóä¤Úã/mu^‡¤
5µÀJ^©«£óäÀJDiskDruid¤§, Œ±wgCM©«
JJ II

L J I

1 2   24 
ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

^©«L(~) rpm^‡+n . . .
linux©‡XÚ

/dev/hda wã¡Ú?n©
LinuxeWindows^ . . .

*Щ«
/dev/hda1 vfat Linuxe windowsiZ
UóäLumaqq
vfat £1˜Ü6©«¤
/dev/hda2
Ù¦¯K
vfat £1Ü6©«¤
/dev/hda5
/dev/hda6
–¯Ì
/dev/hdb
IK
*Щ«
/dev/hdb1 vfat
/dev/hdb2 JJ II
/dev/hdb5 vfat J I

L«´1˜‡M§hdbL«´1‡M.
/dev/hdb6 vfat
hda 1 3   24 
ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC

ÀJ^©«µ–I‡˜‡swap©«Ú˜‡Š©«( / ).swap©«˜„ Ä·-0

gCSü§Ù¦˜gCS..
6: iN{z
MplayerSC
rpm^‡+n . . .

7:SCGRUBÚ§S£ÀJÅìpXÚ¶¡§XWindowsXP¤
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .

8:䘣kgCIPŒ±WgCIP/Œ§ÃIPŒ±aL¤ Linuxe windowsiZ


UóäLumaqq
9:˜gCÌŶ£%@localhost¤
Ù¦¯K

10:ÀJ“»pÚÙ¦<Œ±ÏL“»p§ÑÖ£XSSH¤
–¯Ì
IK
11:ÀJN\Šó|±£X{N¥©§„N¥©¤ JJ II

12:ž«ÀJ J I

13:˜Š-£root ‡?^r-¤
1 4   24 
ˆ £
14:SC§SÖSC^‡ ¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .

15:‚ªz©‡XÚ linux©‡XÚ
wã¡Ú?n©

16:SC^‡
LinuxeWindows^ . . .
Linuxe windowsiZ
UóäLumaqq
17:­#éħ?1ʵžm§w«ì©EǧÿÁ(k§,
Ù¦¯K

?\XÚ –¯Ì
18:ÄSC¤. IK
JJ II

SCL§†windowsSCL§ƒ§â`Mandrake‡LinuxSC\N´
Ú¯„.
J I

1 5   24 
ˆ £
¶w«
' 4
ò Ñ
2 Ä·-0
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

w«c8¹µpwd. rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .

UCc8¹: cd /home/hhxie cd ..?\þ˜ 8¹ Linuxe windowsiZ


UóäLumaqq
Ù¦¯K
cd Ì8¹ –¯Ì
w«8¹SN:ls or ls -l or ls -a IK

w«©‡[SN£õëêwls -help ¤ JJ II

©‡é: find filename J I

ïá#8¹:mkdir [8¹¶] 1 6   24 
ˆ £
íØ8¹:rmdir [8¹¶] ¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
©‡8¹£Ä:mv (kž^5?U©‡¶) . MplayerSC
rpm^‡+n . . .
linux©‡XÚ

mv [À‘] [ ©‡8¹¶] [8I©‡8¹¶] wã¡Ú?n©


LinuxeWindows^ . . .

E›©‡Ú8¹: cp Linuxe windowsiZ


UóäLumaqq
Ù¦¯K
cp [À‘] [ ©‡8¹¶] [8I©‡8¹¶]
–¯Ì
ëêµ -i pª IK
-f rݻ JJ II

w©‡a.µ J I

1 7   24 
file [©‡¶] ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

3 iN{z
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
,饩|±§´LinuxXÚiNvkWindows¤ §ù‡Ì‡ LinuxeWindows^ . . .
Linuxe windowsiZ

´‡¯K. UóäLumaqq
Ù¦¯K

)û{:Œ±þe1˜‡gÄiN{z –¯Ì
linuxsir-fontconfig-3.4.run IK

, $1µ
JJ II

J I

sh linuxsir-fontconfig-3.4.run 1 8   24 
ˆ £
¶w«
' 4
ò Ñ
Ó ž  Œ ± rwindowse  i N \  g C linuxX Ú ¥ § ' X
À Jwindowse  i Nsimsun.ttc,simhei.ttfÚsimkai.ttf £ ˜ 3 X Ú © LinuxXÚSC
Ä·-0
‡windows/fonts/8¹e¤. iN{z
MplayerSC

1,#ï8¹/usr/share/fonts/TrueType
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
2,lwindows€simsun.ttf(simsun.ttc in windows,so change it’s name to sim-
LinuxeWindows^ . . .

sun.ttf)9Ù¦\Ž‡iN©‡#ï8¹/usr/share/fonts/TrueType
Linuxe windowsiZ
UóäLumaqq
Ù¦¯K
3,ttmkfdir -d /usr/share/fonts/TrueType/ -o/usr/share/fonts/TrueType/fonts.dir
ttmkfdir -d /usr/share/fonts/TrueType/ -o /usr/share/fonts/TrueType/fonts.scale –¯Ì

$1ùü‡·-5)fonts.dir fonts.scaleùü‡©‡ IK

4,chkfontpath –add /usr/share/fonts/TrueType $1ù‡·-,riN´»\


JJ II

\X iNÑÖì´»¥,Ù¢Ò´\\
/etc/X11/fs/configù‡©‡¥.
J I

1 9   24 
5.­åxwindow ˆ £

6$1fc-cache /usr/share/fonts
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .

o ( µ 3Linuxe § † i N k '   ˜ © ‡ ´:/etc/fonts/fonts.conf, linux©‡XÚ


wã¡Ú?n©
/etc/X11/fs/config,iN¥´/usr/share/fonts/. LinuxeWindows^ . . .
Linuxe windowsiZ

/etc/fonts/fonts.conf p¡½Â
XÚiN¥´»Úw«iN`k?.
UóäLumaqq
Ù¦¯K

/etc/X11/fs/configp¡½Â
ã/.¡eiN¥8¹. –¯Ì

/usr/share/fonts/ iN¥.
IK

¤±XJŽ\\iN¥§ÒŒ±gC5?Uþ¡A‡˜©‡£&
JJ II

^¤.Œ±^chkfontpath –add=”dir”5\#iN¥. J

1 10   24 
I

ˆ £
¶w«
' 4
ò Ñ
4 N¥©Ñ\{ LinuxXÚSC

g‘¥©Ñ\{§ØÐ^§Ø´é­½§ïƌ[^fcitx" Ä·-0
{Xeµ
Linux iN{z
MplayerSC
rpm^‡+n . . .

1:íØXÚg‘Ñ\{µ
linux©‡XÚ
wã¡Ú?n©
#rpm -e r̀pm -qa iiim*‘ LinuxeWindows^ . . .
Linuxe windowsiZ
#rpm -e ‘rpm -qa minichinput*‘ UóäLumaqq
Ù¦¯K
­#éÄXÚ§,  ̐þe1˜‡­½‡rpm"SCƒ
#rpm -e ‘rpm -qa xcin*‘

§M漢
fcitx
–¯Ì
IK
¿3©‡¥\\µ
/etc/X11/Xinit/Xinput.d/default
JJ II
#!/bin/sh
J I
export XIM=fcitx
1 11   24 
2r ©‡¥ U¤ ­#éÄX.
export XIM PROGRAM=fcitx
i18n GB1830 GBK,
4.1. ?è=† ¶w«
ˆ £

kžÿ‡^?è=z§Œ±^gedit‹m§2,,˜‡©‡§ÒŒ
±­#ÀJ?è
" ' 4
ò Ñ
LinuxXÚSC
Ä·-0

5 Mplayer SC iN{z


MplayerSC
rpm^‡+n . . .

´LinuxeõUr>K˜짏Œ±Â˜mp3,wma(т linux©‡XÚ
wã¡Ú?n©
ª©‡
Mplayer
LinuxeWindows^ . . .
. Linuxe windowsiZ

1.http://www.mplayerhq.hu/homepage/design7/dload.htmle1SC¤I©
UóäLumaqq
Ù¦¯K
‡µ –¯Ì
(1)̧S:MPlayer v1.0pre6a source o (2)iN©‡£Arial - Western (ISO
8859-1) (14 sizes) o (3)Skin©‡£|±GUI¤
IK

(4))èì:essential codecs package£XJŽ|±rm‚ª>KŒ±Óže


JJ II

1|±rm‚ª)èì¤
J I

1 12   24 
(5) |±aviwin32õxN‚ª‡µwin32codecs ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

)؀©‡µ
2.
rpm^‡+n . . .
linux©‡XÚ

-.tar.bz2©‡Ò^tar -jxvf ?1)Ø. Xµ wã¡Ú?n©


LinuxeWindows^ . . .
Linuxe windowsiZ
[root@localhost root]# tar -jxvf MPlayer-1.0pre5.tar.bz2 UóäLumaqq

€)èìgC½8¹e£X/usr/lib/¤
Ù¦¯K

[root@localhost root]# mkdir /usr/lib/codecs –¯Ì


[root@localhost root]# mkdir /usr/lib/real IK
, r)Ø )è§S€\þ¡Mï8¹" JJ II

3!€w32codec|±¥£win32codecs-20040703¤
J I

[root@localhost root]# cp /win32codecs-20040703/* /usr/lib/win32 1 13   24 


ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

˜ÚSC
4: rpm^‡+n . . .
linux©‡XÚ

?\)Ø SC§S£ÐS.´3SCƒcwREADME©‡§p wã¡Ú?n©


LinuxeWindows^ . . .

¡0
SCÄL§¤. Linuxe windowsiZ
UóäLumaqq
./conf igure − enable − gui − −disable − gcc − checking − −with − Ù¦¯K
reallibdir = /usr/lib/real/ − −with − codecsdir = /usr/lib/codecs −
−language = zh CN − −pref ix =( SC8¹ –¯Ì
žm'
)
make ( ) IK
make install
JJ II

€iN©‡ÚSkinSC8¹(5¿SkinÄi1‡Œ). J I

̇¯K:i4?n£ëwiN?n¡©Ù¤. 1 14   24 
ˆ £
¶w«
' 4
ò Ñ
6 rpm ^‡+nÚrealplayerSC
´˜‡rŒ^‡+nXÚ§3éõlinuxXÚþѴ̇^‡
+nóä.
rpm LinuxXÚSC
Ä·-0
·-‚ª: rpm -i SC˜‡#^‡ iN{z
rpm -U ,?˜‡^‡§XJvkÒ?1SC
MplayerSC
rpm^‡+n . . .

rpm -F #˜‡^‡§XJvkÒØ?1SC linux©‡XÚ

-v w«SC&E£XSC´»9SC
˜
ŸoSN¤
wã¡Ú?n©

-h w«SC?Ý
LinuxeWindows^ . . .
Linuxe windowsiZ

˜„¦^‚ª: rpm -Uvh ^‡¶ UóäLumaqq


Ù¦¯K

íØ^‡: –¯Ì

ε
rpm -e
IK
rpm -qa £ΤkSC^‡L¤
rpm -q (Îü‡^‡¶)
JJ II

J I

¡0 : 1 15   24 
rpm –help ˆ £

SCRealplayer§†3þe1˜‡linuxerealplayerSC^‡ ¶w«
£±rpm(—©‡¤§, ' 4
rpm -Uvh RealPlay,,
Ҍ±
" ò Ñ
LinuxXÚSC

©‡XÚ
Ä·-0
iN{z
7 linux MplayerSC
rpm^‡+n . . .

linux¥vk©«Vg,Jø´˜«ä. g8¹(. linux©‡XÚ


wã¡Ú?n©

©‡XÚIO: LinuxeWindows^ . . .
Linuxe windowsiZ

1)Š©‡
UóäLumaqq
/ ¹ÚÚ$1unixXÚ¤I©‡.Š©‡XÚ̇)±e8¹.
Ù¦¯K

/bin ˜~^XÚ·- –¯Ì


/dev ˜†M‡°Ä§Sk'AÏ©‡ÚiΩ‡.
/etc ù‡8¹¥kéõXÚ˜©‡,)˜
unixXÚ§S,/àÅ
IK
ìXÚG. JJ II

/lib ˜~^§S¥¼ê©‡
/mnt ^uSCž©‡XÚ8¹,Ï~œ¹e˜.
J I

/sbin ˜XÚgÚXÚ¡Ež¤^§S
1 16   24 

/tmp 6« ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .

©‡XÚ linux©‡XÚ
wã¡Ú?n©
©‡Xڝ¹Œ±·-ÚXÚ+nêâ¥
2)usr
LinuxeWindows^ . . .

©‡)±e8¹
/usr Linuxe windowsiZ
UóäLumaqq
˜˜„^r~^·-Ú¢^§S
/usr
Ù¦¯K
˜cŠóÞ©‡
/usr/bin

˜^r§S¥¼ê,†/libƒ'§;’˜:
/usr/include
–¯Ì
˜XÚ+n·-
/usr/lib
IK
˜ØÓNX(Œ±©‡,䐩‡˜„˜3
/usr/sbin

T8¹½ö¦f8¹e
/usr/share JJ II

/usr/local Ï~˜/^r¦^©‡
J I

1 17   24 
ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .

©‡XÚ Linuxe windowsiZ

̇^u˜^r©‡,3%@œ¹e,z‡^r5þ8¹˜
3) home
UóäLumaqq

3 8¹e.
/home Ù¦¯K

©‡XÚ
/home
–¯Ì
ù‡8¹š~AÏ,¹
XÚÚSØ9ƒ'óä,XÚ+n§
4)/boot

SGrubÚLilo,éÄ©‡Ú‰1Ø%§SÑ7I3ù‡8¹eâU IK

yLinuxXÚØ%¤õC1. JJ II

J I

1 18   24 
ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
wXÚ^¦^œ¹ iN{z
MplayerSC

1.iη- df -h rpm^‡+n . . .

2.ã/.¡XÚiÀì,„Œ±wcpuÚS¦^œ¹
linux©‡XÚ
wã¡Ú?n©
3.^M‡èAì LinuxeWindows^ . . .
Linuxe windowsiZ
UóäLumaqq

8 wã¡Ú?n© Ù¦¯K

–¯Ì

ewã/©‡~„óäk: Nautilus ÚKonqueror ´S¡‚¸ IK


%@©‡wìÚèAì. GQview,GIMP 3A^§S¥ã/˜‘
Linux

¥kéõã”wì,Ù¥GIMP´˜‡õUrŒã”?n^‡(Œ
JJ II

Úphotoshop|{). J I

LinuxekÚwindowseofficeƒÓõU© ?nóäopenoffice§˜
1 19   24 
Œ±PPT§..... ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC

9 LinuxeWindows^©«(FAT32)\1
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .

3linuxe\1windows©«^ Linuxe windowsiZ


UóäLumaqq
Ù¦¯K
?U/etc8¹efstab=ŒéÄLinux gÄ\1FAT32©«.
~X:b‡\1WindowseD(FAT32©«,˜„hda5 )ŒXe?U: –¯Ì
3fstab¥V\: IK

, 3/mnt8¹eïᩇYWinD,­é=ŒgÄ\1fat32©«.
/dev/hd5 mnt/WinD vfat codepage=936,iocharset=cp936 1 1
JJ II

£NTFS‚ª©‡Xڄ™¢‚L¤
J I

1 20   24 
ˆ £
¶w«
' 4
ò Ñ
10 Linuxe windowsiZ
±(Su~£ÆSlinux¿Ø´
iZ§´L²Œ± iZ). LinuxXÚSC
Ä·-0
iN{z
1.3\windowseCÐ(Su,bC3d: brood e. MplayerSC

2.3linuxeCþwine. ·^´wine-20050211-1fc3winehq.i386.rpm
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
3.3/mnteMïü‡©‡Y:
rpm -Uvh wine-20050211-1fc3winehq.i386.rpm LinuxeWindows^ . . .
Linuxe windowsiZ

mkdir WinC UóäLumaqq


Ù¦¯K

C1 
mkdir WinD

C1 
mount -t vfat /dev/hda1 mnt/WinC ( c ) –¯Ì

r\ã/S¡w«ª˜ ©Eǧ¿¦^8 
mount -t vfat /dev/hda5 /mnt/WinD ( d )
IK
Ú Ú
4. 640*480

3·-I¥$1
(256 ). JJ II

5. : J I

, iZ
wine /mnt/d/brood/starcraft.exe
1 21   24 
.
ˆ £
XJ´gÄ\1CÚD§ÒŒ±†?\D§$1µ ¶w«
wine /mnt/d/brood/starcraft.exe
' 4
J«µÅì5UØ´ép{§ØJ†3Linuxe §Ï„Ý'ú. ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .

UóäLumaqq
Linuxe windowsiZ
UóäLumaqq
11 Ù¦¯K

eŒ±?1QQU,Œ±þe1Lumaqq^‡§†?\‰ –¯Ì
1 Ҍ±
,=
Linux
lumaqq IK
./lumaqq
JJ II

J I

1 22   24 
ˆ £
¶w«
' 4
ò Ñ
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .

12 Ù¦¯K
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .
Linuxe windowsiZ

>fe‡Âuµ UóäLumaqq
Ù¦¯K
Œ±^Evolution,Ù˜ÚoutlookĘ.
ftpe1µ –¯Ì
gftp ã/.¡§aqlepftp^{.
Œ±¦^iÎ.¡e·-µ IK
JJ II
ftp
open ***.***.**... J I

1 23   24 
ˆ £
¶w«
' 4
ò Ñ
 !
LinuxXÚSC
Ä·-0
iN{z
MplayerSC
rpm^‡+n . . .
linux©‡XÚ
wã¡Ú?n©
LinuxeWindows^ . . .
Linuxe windowsiZ
UóäLumaqq
Ù¦¯K

–¯Ì
IK

­3?Ø!! JJ II

J I

1 24   24 
ˆ £
¶w«
' 4
ò Ñ