Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

產生的 ISO 檔過大 #3

Open
acelan opened this issue May 16, 2018 · 6 comments
Open

產生的 ISO 檔過大 #3

acelan opened this issue May 16, 2018 · 6 comments

Comments

@acelan
Copy link
Contributor

acelan commented May 16, 2018

目前
5d9a492 add clean after installed ezgo packages
產生的檔案大小為 4888461312 bytes 約 4.6G
對還在使用 FAT32 的系統而言 超過 4G 的檔案沒有辦法操作
所以希望 ISO 大小能維持在 4G 以下

@acelan
Copy link
Contributor Author

acelan commented May 16, 2018

拿掉 supertuxkart
4888461312(4.6G) -> 4378042368(4.1G)

diff --git a/build.sh b/build.sh
index d624473..bce40b6 100755
--- a/build.sh
+++ b/build.sh
@@ -32,7 +32,7 @@ installpackages+="fcitx-chewing fcitx-googlepinyin fcitx-table-array30 fcitx-tab
 # sigil, kazam, blender, and ffdiaporama
 installpackages+="sigil kazam blender ffdiaporama "
 # kdegames
-installpackages+="supertux supertuxkart pingus tuxmath tuxtype "
+installpackages+="supertux pingus tuxmath tuxtype "
 # office
 installpackages+="scribus dia planner gnucash calibre pdfshuffler qtqr scribus-template dia-shapes "
 # edu

@tonghuix
Copy link
Contributor

拿掉很多包,包括去掉 Xmind,但是保留 supertuxkart,因为我觉得 supertuxkart 是一款非常好玩的自由游戏,对推广桌面 Linux 有很大帮助。

4649508864 (4.4G)

diff --git a/build.sh b/build.sh
index d624473..145fe45 100755
--- a/build.sh
+++ b/build.sh
@@ -30,19 +30,19 @@ installpackages+="vim vim-gtk zenity im-switch chromium-browser language-pack-zh
 # fcitx
 installpackages+="fcitx-chewing fcitx-googlepinyin fcitx-table-array30 fcitx-table-array30-big fcitx-table-cangjie3 fcitx-table-cangjie5 fcitx-table-boshiamy fcitx-tools "
 # sigil, kazam, blender, and ffdiaporama
-installpackages+="sigil kazam blender ffdiaporama "
+installpackages+="sigil kazam ffdiaporama "
 # kdegames
 installpackages+="supertux supertuxkart pingus tuxmath tuxtype "
 # office
-installpackages+="scribus dia planner gnucash calibre pdfshuffler qtqr scribus-template dia-shapes "
+installpackages+="dia planner gnucash calibre pdfshuffler qtqr dia-shapes "
 # edu
-installpackages+="gcompris ktuberling anki parley kanagram marble kgeography stellarium kmplot geogebra rocs rkward r-base-core gnumeric kalzium bkchem avogadro "
+installpackages+="arduino gcompris ktuberling anki parley kanagram marble kgeography stellarium kmplot geogebra rocs rkward r-base-core gnumeric kalzium bkchem avogadro "
 # painting
-installpcakages+="kolourpaint4 krita inkscape gimp imagemagick gwenview digikam ksnapshot shutter freecad fritzing kruler kcolorchooser "
+installpcakages+="kolourpaint4 inkscape gimp imagemagick gwenview digikam ksnapshot fritzing kruler kcolorchooser "
 # video/audio
-installpackages+="vlc openshot kdenlive kazam guvcview ffdiaporama k3b brasero furiusisomount amarok musescore tuxguitar hydrogen audacity lmms rosegarden kmix ardour "
+installpackages+="vlc openshot kdenlive kazam k3b furiusisomount amarok musescore hydrogen audacity lmms kmix "
 # networking
-installpackages+="filezilla gftp ktorrent sylpheed bluedevil krdc sylpheed-i18n "
+installpackages+="ktorrent sylpheed bluedevil krdc sylpheed-i18n "
 # games
 installpackages+="tuxtype tuxmath palapeli kubrick ksquares knetwalk ksudoku blinken picmi katomic kblackbox kigo kreversi kfourinline bovo gnugo "
 # wine
@@ -58,6 +58,5 @@ sync;sync;sync
        $KERNELARGS \
        -p "$installpackages" \
        -f wrapper-ezgo.sh \
-       -f xmind_installer \
        -f ezgo \
        -c wrapper-ezgo.sh

@fweng322
Copy link
Member

supertuxkart 主要大在那個 supertuxkart-data 有超過 500 MB,所以後來我放在推薦軟體。

先不要裝 ezgo office, ezgo-graphics, ezgo-multimedia, ezgo-network, ezgo-education 等 meta packages, 另行建立新的 meta-package 。wine 不要裝到,不然一牽就是近 1GB。

最後,安裝時下 --no-install-recommends

@tonghuix
Copy link
Contributor

@fweng322 wine 确实没装。另外 SuperTuxKart 如果放在推荐里也很好,这样其他一些大型软件也可以如此处理。

因此就需要一个工具来帮助用户选装这些推荐的软件。

@tonghuix
Copy link
Contributor

@fweng322 --no-install-recommends起了很大作用,现在我这边移除了很多包以及 SuperTuxKart 以后,已经缩减到了 3.9 GB(4135878656)。

所有改动:https://github.com/tonghuix/ezgo-image/commit/109fde9363779ea28341022a18674b9d597c72d6

@acelan
Copy link
Contributor Author

acelan commented May 25, 2018

其實加上 --no-install-recommends 並沒有對大小產生影響
本來以為是 docker 的問題 後來發現用 local 來 build 大小還是一樣 都是 4.1G 左右
-rw-r--r-- 1 acelan acelan 4378042368 May 22 12:28 ezgo-201805220428-kubuntu-18.04-desktop-amd64.iso
-rw-r--r-- 1 acelan acelan 4378042368 May 22 20:18 ezgo-201805222018-kubuntu-18.04-desktop-amd64.iso

另外移掉 xmind 大小變成 4G 左右
-rw-r--r-- 1 acelan acelan 4257251328 May 24 17:20 ezgo-201805241721-kubuntu-18.04-desktop-amd64.iso

另外 馬哥提到的 ezgo office, ezgo-graphics, ezgo-multimedia, ezgo-network, ezgo-education 這些 原本就沒有裝了

可以參考一下 @tonghuix 的修改 再移掉一些東西 應該就能縮到安全一點的範圍了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants