Board logo

標題: 身痕裝緊 gentoo [打印本頁]

作者: 閒魂    時間: 2008-5-8 21:24     標題: 身痕裝緊 gentoo

今次裝既原因為係左 Gentoo 2008.0 beta2 同 KDE-4

用一種好奇怪既方法…就係用 VMware,但當然係裝去真的 partition 度,唔係裝入去 VM 度…
咁做只係因為我可以邊裝邊用 Windows!


現有的 Partition table















  1. fdisk -l                  # 看多次 partition table
  2. mke2fs -j /dev/hda3
  3. mke2fs -j /dev/hda7
  4. cd /mnt/
  5. mount /dev/hda3 gentoo
  6. cd gentoo
  7. mkdir boot
  8. mount /dev/hda1 boot
  9. cd /mnt/gentoo
  10. mkdir tmp
  11. cd tmp
  12. wget http://ftp.jaist.ac.jp/pub/Linux/Gentoo/releases/amd64/2008.0_beta2/stages/stage3-amd64-2008.0_beta2.tar.bz2
  13. wget http://ftp.jaist.ac.jp/pub/Linux/Gentoo/snapshots/portage-latest.tar.lzma
  14. # 首次見 lzma 的壓縮檔,壓縮率比 bzip2 更高,7zip 正是使用這個,看過測試顯示這種壓縮技術在壓縮和解壓時都比 bzip2 快得多!
  15. tar xvjpf stage3-amd64-2008.0_beta2.tar.bz2
  16. lzmadec < portage-latest.tar.lzma | tar xvf - -C /mnt/gentoo/usr
  17. # 這樣解壓 .tar.lzma
  18. vi etc/make.conf
複製代碼

其餘 make.conf 的設定
  1. CFLAGS="-march=athlon64 -msse3 -O3 -pipe"
  2. ]CXXFLAGS="${CFLAGS}"
  3. ACCEPT_KEYWORDS="~amd64"
  4. PORTDIR_OVERLAY=/usr/local/portage
  5. GENTOO_MIRRORS="http://ftp.cs.pu.edu.tw/Linux/Gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
  6. SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
  7. MAKEOPTS="-j3"
  8. PORTAGE_TMPFS="/dev/shm"
  9. FEATURES="sandbox ccache distlocks parallel-fetch"
  10. CCACHE_SIZE="2G"
  11. CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"
複製代碼
Commands... cont'd
  1. cp -L /etc/resolv.conf /mnt/gentoo/etc/
  2. mount -t proc none /mnt/gentoo/proc
  3. mount -o bind /dev /mnt/gentoo/dev
  4. chroot /mnt/gentoo /bin/bash

  5. env-update
  6. mkdir /usr/local/portage
  7. env-update
  8. source /etc/profile
  9. export PS1="(chroot) $PS1"
  10. emerge --sync
  11. emerge -av portage
  12. etc-update
  13. cd /etc
  14. ln /usr/share/zoneinfo/Asia/Hong_Kong ./localtime -s
  15. emerge -av gentoo-sources ccache vim
  16. cd /usr/src/linux
  17. make menuconfig
複製代碼
下一步就是 configure the kernel
作者: 閒魂    時間: 2008-5-9 00:12

但 configure kernel 太複雜…而且部部機都唔同…
所以唔多講我點 configure…
不過可以講點用 genkernel
  1. emerge genkernel
  2. genkernel all
複製代碼
PS: 要等好耐…

----------------------------------------------------------------------

裝 kde-4

先 unmask kde4 的 ebuild
  1. # Masked qca-2.0 and dependencies for further testing, bug #129536
  2. app-crypt/qca:2
  3. app-crypt/qca-cyrus:2
  4. app-crypt/qca-gnupg:2
  5. app-crypt/qca-logger:2
  6. app-crypt/qca-ossl:2
  7. app-crypt/qca-pkcs11:2
  8. ~app-text/poppler-0.8.0
  9. ~app-text/poppler-bindings-0.8.0

  10. # Unmask KDE 4.0.0
  11. kde-base/amor:kde-4
  12. kde-base/ark:kde-4
  13. kde-base/blinken:kde-4
  14. kde-base/bovo:kde-4
  15. kde-base/cervisia:kde-4
  16. kde-base/dolphin:kde-4
  17. kde-base/drkonqi:kde-4
  18. kde-base/gwenview:kde-4
  19. kde-base/juk:kde-4
  20. kde-base/kalgebra:kde-4
  21. kde-base/kalzium:kde-4
  22. kde-base/kamera:kde-4
  23. kde-base/kanagram:kde-4
  24. kde-base/kappfinder:kde-4
  25. kde-base/kapptemplate:kde-4
  26. kde-base/kate:kde-4
  27. kde-base/katomic:kde-4
  28. kde-base/kbattleship:kde-4
  29. kde-base/kblackbox:kde-4
  30. kde-base/kbounce:kde-4
  31. kde-base/kbruch:kde-4
  32. kde-base/kbugbuster:kde-4
  33. kde-base/kcachegrind:kde-4
  34. kde-base/kcalc:kde-4
  35. kde-base/kcharselect:kde-4
  36. kde-base/kcheckpass:kde-4
  37. kde-base/kcminit:kde-4
  38. kde-base/kcmshell:kde-4
  39. kde-base/kcolorchooser:kde-4
  40. kde-base/kcontrol:kde-4
  41. kde-base/kcron:kde-4
  42. kde-base/kdeaccessibility-colorschemes:kde-4
  43. kde-base/kdeaccessibility-iconthemes:kde-4
  44. kde-base/kdeaccessibility-meta:kde-4
  45. kde-base/kdeaccounts-plugin:kde-4
  46. kde-base/kdeadmin-meta:kde-4
  47. kde-base/kdeartwork-colorschemes:kde-4
  48. kde-base/kdeartwork-emoticons:kde-4
  49. kde-base/kdeartwork-icewm-themes:kde-4
  50. kde-base/kdeartwork-iconthemes:kde-4
  51. kde-base/kdeartwork-kscreensaver:kde-4
  52. kde-base/kdeartwork-kworldclock:kde-4
  53. kde-base/kdeartwork-meta:kde-4
  54. kde-base/kdeartwork-sounds:kde-4
  55. kde-base/kdeartwork-styles:kde-4
  56. kde-base/kdeartwork-wallpapers:kde-4
  57. kde-base/kdebase-data:kde-4
  58. kde-base/kdebase-kioslaves:kde-4
  59. kde-base/kdebase-meta:kde-4
  60. kde-base/kdebase-startkde:kde-4
  61. kde-base/kdebugdialog:kde-4
  62. kde-base/kdeedu-meta:kde-4
  63. kde-base/kdegames-meta:kde-4
  64. kde-base/kdegraphics-meta:kde-4
  65. kde-base/kinfocenter:kde-4
  66. kde-base/kdelibs:kde-4
  67. kde-base/kde-l10n:kde-4
  68. kde-base/kde-menu:kde-4
  69. kde-base/kde-menu-icons:kde-4
  70. kde-base/kde-meta:kde-4
  71. kde-base/kdemultimedia-kioslaves:kde-4
  72. kde-base/kdemultimedia-meta:kde-4
  73. kde-base/kdenetwork-filesharing:kde-4
  74. kde-base/kdenetwork-meta:kde-4
  75. kde-base/kdepasswd:kde-4
  76. kde-base/kdepimlibs:kde-4
  77. kde-base/kdesdk-kioslaves:kde-4
  78. kde-base/kdesdk-meta:kde-4
  79. kde-base/kdesdk-misc:kde-4
  80. kde-base/kdesdk-scripts:kde-4
  81. kde-base/kdessh:kde-4
  82. kde-base/kdesu:kde-4
  83. kde-base/kdetoys-meta:kde-4
  84. kde-base/kdeutils-meta:kde-4
  85. kde-base/kde-wallpapers:kde-4
  86. kde-base/kdf:kde-4
  87. kde-base/kdialog:kde-4
  88. kde-base/kdm:kde-4
  89. kde-base/kdnssd:kde-4
  90. kde-base/keditbookmarks:kde-4
  91. kde-base/kfile:kde-4
  92. kde-base/kfind:kde-4
  93. kde-base/kfloppy:kde-4
  94. kde-base/kfourinline:kde-4
  95. kde-base/kgamma:kde-4
  96. kde-base/kgeography:kde-4
  97. kde-base/kget:kde-4
  98. kde-base/kgoldrunner:kde-4
  99. kde-base/kgpg:kde-4
  100. kde-base/khangman:kde-4
  101. kde-base/khelpcenter:kde-4
  102. kde-base/khotkeys:kde-4
  103. kde-base/kig:kde-4
  104. kde-base/kioclient:kde-4
  105. kde-base/kiriki:kde-4
  106. kde-base/kiten:kde-4
  107. kde-base/kjots:kde-4
  108. kde-base/kjumpingcube:kde-4
  109. kde-base/klettres:kde-4
  110. kde-base/klines:kde-4
  111. kde-base/klipper:kde-4
  112. kde-base/kmag:kde-4
  113. kde-base/kmahjongg:kde-4
  114. kde-base/kmenuedit:kde-4
  115. kde-base/kmilo:kde-4
  116. kde-base/kmimetypefinder:kde-4
  117. kde-base/kmines:kde-4
  118. kde-base/kmix:kde-4
  119. kde-base/kmousetool:kde-4
  120. kde-base/kmouth:kde-4
  121. kde-base/kmplot:kde-4
  122. kde-base/knetattach:kde-4
  123. kde-base/knetwalk:kde-4
  124. kde-base/knetworkconf:kde-4
  125. kde-base/knewsticker:kde-4
  126. kde-base/knewstuff:kde-4
  127. kde-base/knotify:kde-4
  128. kde-base/kolf:kde-4
  129. kde-base/kolourpaint:kde-4
  130. kde-base/kompare:kde-4
  131. kde-base/konqueror:kde-4
  132. kde-base/konquest:kde-4
  133. kde-base/konsole:kde-4
  134. kde-base/kopete:kde-4
  135. kde-base/kpasswdserver:kde-4
  136. kde-base/kpat:kde-4
  137. kde-base/kpercentage:kde-4
  138. kde-base/kppp:kde-4
  139. kde-base/kquitapp:kde-4
  140. kde-base/krdc:kde-4
  141. kde-base/kreadconfig:kde-4
  142. kde-base/kreversi:kde-4
  143. kde-base/krfb:kde-4
  144. kde-base/kruler:kde-4
  145. kde-base/krunner:kde-4
  146. kde-base/ksame:kde-4
  147. kde-base/kscd:kde-4
  148. kde-base/kscreensaver:kde-4
  149. kde-base/kshisen:kde-4
  150. kde-base/ksmserver:kde-4
  151. kde-base/ksnapshot:kde-4
  152. kde-base/kspaceduel:kde-4
  153. kde-base/ksplash:kde-4
  154. kde-base/ksquares:kde-4
  155. kde-base/kstars:kde-4
  156. kde-base/kstart:kde-4
  157. kde-base/kstartupconfig:kde-4
  158. kde-base/kstyles:kde-4
  159. kde-base/ksudoku:kde-4
  160. kde-base/ksysguard:kde-4
  161. kde-base/ksystraycmd:kde-4
  162. kde-base/kteatime:kde-4
  163. kde-base/ktimer:kde-4
  164. kde-base/ktimezoned:kde-4
  165. kde-base/ktip:kde-4
  166. kde-base/ktouch:kde-4
  167. kde-base/ktraderclient:kde-4
  168. kde-base/kttsd:kde-4
  169. kde-base/ktuberling:kde-4
  170. kde-base/kturtle:kde-4
  171. kde-base/ktux:kde-4
  172. kde-base/kuiserver:kde-4
  173. kde-base/kuiviewer:kde-4
  174. kde-base/kurifilter-plugins:kde-4
  175. kde-base/kuser:kde-4
  176. kde-base/kwallet:kde-4
  177. kde-base/kweather:kde-4
  178. kde-base/kwin:kde-4
  179. kde-base/kwordquiz:kde-4
  180. kde-base/kworldclock:kde-4
  181. kde-base/kwrite:kde-4
  182. kde-base/libkcddb:kde-4
  183. kde-base/libkcompactdisc:kde-4
  184. kde-base/libkdeedu:kde-4
  185. kde-base/libkdegames:kde-4
  186. kde-base/libkmahjongg:kde-4
  187. kde-base/libkonq:kde-4
  188. kde-base/libkscan:kde-4
  189. kde-base/libkworkspace:kde-4
  190. kde-base/libplasma:kde-4
  191. kde-base/libtaskmanager:kde-4
  192. kde-base/lilo-config:kde-4
  193. kde-base/lskat:kde-4
  194. kde-base/marble:kde-4
  195. kde-base/nepomuk:kde-4
  196. kde-base/nsplugins:kde-4
  197. kde-base/okular:kde-4
  198. kde-base/parley:kde-4
  199. kde-base/phonon:kde-4
  200. kde-base/plasma:kde-4
  201. kde-base/poxml:kde-4
  202. kde-base/qimageblitz
  203. kde-base/secpolicy:kde-4
  204. kde-base/solid:kde-4
  205. kde-base/soliduiserver:kde-4
  206. kde-base/strigi-analyzer:kde-4
  207. kde-base/superkaramba:kde-4
  208. kde-base/svgpart:kde-4
  209. kde-base/sweeper:kde-4
  210. kde-base/systemsettings:kde-4
  211. kde-base/umbrello:kde-4
複製代碼
run emerge -avD kde-base/kde-meta:kde-4

作者: ANTI@#    時間: 2008-5-9 00:25

睇黎我成世都唔會識用linux
作者: 馬高仔    時間: 2008-5-9 00:26

原帖由 ANTI@# 於 2008-5-9 12:25 AM 發表
睇黎我成世都唔會識用linux
慢慢啦~ 不過一開波太難會死人的
作者: kelvinlok    時間: 2008-5-9 00:48

係咪裝完改boot loader就可以用真機boot得起?
作者: 閒魂    時間: 2008-5-9 01:02

原帖由 kelvinlok 於 2008-5-9 00:48 發表
係咪裝完改boot loader就可以用真機boot得起?
Yes !

其實而家可以裝 grub 再 reset,不過我想 compile 埋個 kde4 先攪…
作者: 閒魂    時間: 2008-5-9 01:04

另外,即使 VMware set 左用 2 粒 CPU,都唔會真實地用 2 粒的…即係唔會有 2 粒 U 既 perforamce…
即係話... 果 2 粒 U 都係模擬出黎…
作者: 閒魂    時間: 2008-5-9 15:00

kde-4 的各頂組件在 compile 時會有進度顯示…


作者: Katecca    時間: 2008-5-9 15:06

用一種好奇怪既方法…就係用 VMware,但當然係裝去真的 partition 度,唔係裝入去 VM 度…
好正 #yup#
作者: 紅豆    時間: 2008-5-9 18:10

我也玩過,裝到想死,最後是失敗
作者: 絕心    時間: 2008-5-10 05:47

OFF POST 講下
你可以試下用virtualbox replace vmware
virtualbox 系opensource,而且真系幾好用
作者: 閒魂    時間: 2008-5-10 05:56

first stage ok.. only installed kde-4
skim can't be merge so far

in fact.. not very good to use compared with kde-3.5
also not very beautiful
and seem intended to copy some from vista and mac
作者: 三隻眼    時間: 2008-5-11 15:55

Gentoo係幾多野玩


但最近upgrade 部Linux, 都係打算用回Centos吧 =.= 容易好多...
Ubuntu都唔錯家用一流, 但Centos比較接一般客戶的RHEL
作者: 閒魂    時間: 2008-5-12 04:22

given up kde-4


作者: 閒魂    時間: 2008-5-12 09:59

頂佢…最後要完全 unmerge 先可以裝到 skim 打到中文,之前 scim 同 skim 都會 failed to compile!
攪左一大輪都係要用返 KDE3.5,但 KDE 3.5 正常得多…
作者: 馬高仔    時間: 2008-5-12 13:01

我想問裝linux果陣自己切好晒隻disk先
定等佢自動攪好

如果自己攪又應該點切先對#question#
作者: kelvinlok    時間: 2008-5-12 13:01

原帖由 閒魂 於 2008-5-12 09:59 發表
頂佢…最後要完全 unmerge 先可以裝到 skim 打到中文,之前 scim 同 skim 都會 failed to compile!
攪左一大輪都係要用返 KDE3.5,但 KDE 3.5 正常得多…
GNOME唔好用咩?
作者: 馬高仔    時間: 2008-5-12 13:02

原帖由 kelvinlok 於 2008-5-12 01:01 PM 發表
GNOME唔好用咩?
用中文用落我都覺得唔太好用
作者: kelvinlok    時間: 2008-5-12 13:05

原帖由 馬高仔 於 2008-5-12 13:02 發表


用中文用落我都覺得唔太好用
我覺得kde又樣衰又唔好用
在學校大部份人都用gnome , 係d solaris server先default用kde
作者: 閒魂    時間: 2008-5-12 13:15

原帖由 kelvinlok 於 2008-5-12 13:01 發表
GNOME唔好用咩?
用左 8 年都係覺得 KDE 好用過 GNOME…
作者: 閒魂    時間: 2008-5-12 18:10

原帖由 馬高仔 於 2008-5-12 13:01 發表
我想問裝linux果陣自己切好晒隻disk先
定等佢自動攪好

如果自己攪又應該點切先對#question#
通常冇乜理由比佢自動攪,我亦對佢所謂既自動非常信唔過…

至於自己點切個 Partition,可以參考以下做法…
hda1 /boot 100M 放在最前
hda2 winxp 40-50G
hda3 linux / 30-50G
hda4 data(ntfs) 淨餘硬碟空間
作者: 馬高仔    時間: 2008-5-12 19:48

原帖由 閒魂 於 2008-5-12 06:10 PM 發表
通常冇乜理由比佢自動攪,我亦對佢所謂既自動非常信唔過…

至於自己點切個 Partition,可以參考以下做法…
hda1 /boot 100M 放在最前
hda2 winxp 40-50G
hda3 linux / 30-50G
hda4 data(ntfs) 淨餘硬碟空間 ...
問多樣野~ linux點搞先睇到ntfs
作者: 閒魂    時間: 2008-5-12 20:22

原帖由 馬高仔 於 2008-5-12 19:48 發表


問多樣野~ linux點搞先睇到ntfs
兩種辦法…

1. 用 kernel 己有的 NTFS(可算是沒有 Write support)
2. 用 NTFS-3G + Kernel 的 FUSE(完整的 Write support)

ntfs-3g 可在這裏找…
http://www.ntfs3g.org/

mount 用的 command 都是…
mount -t ntfs /dev/hda2 /mnt/winxp

mount -t ntfs-3g /dev/hda2 /mnt/winxp
作者: 馬高仔    時間: 2008-5-12 21:21

了解~  

#question#如果想update kernel 同config佢要點做呢
作者: 閒魂    時間: 2008-5-12 21:23

原帖由 馬高仔 於 2008-5-12 21:21 發表
了解~  

#question#如果想update kernel 同config佢要點做呢
cd /usr/src/linux
make menuconfig
揀一大輪…
make
make modules_install
make install
作者: 馬高仔    時間: 2008-5-12 22:00

原帖由 閒魂 於 2008-5-12 09:23 PM 發表

cd /usr/src/linux
make menuconfig
揀一大輪…
make
make modules_install
make install
唔該晒~ 郁得手了~
作者: 馬高仔    時間: 2008-5-18 14:19

原帖由 馬高仔 於 2008-5-12 10:00 PM 發表


唔該晒~ 郁得手了~
衰左




歡迎光臨 PC Infinity (http://pcinhk.com/discuz/) Powered by Discuz! 7.0.0