loongnix操作系统ISO是怎么构建出来的?预装了哪些办公软件

已邀请:

wanghonghu

赞同来自: woodpecker zzz19760225

您这个问题问得大了点,是想知道如何由rpm包生成ISO,还是想知道Loongnix这些软件包是如何构建的,还是想知道别的? 可以问具体一点。
我们后面会推出专题文章,如何从头构建最小系统、如何搭建自动构建平台、如何制作ISO等,敬请期待

办公软件默认会安装的有: WPS社区版、永中OFFICE社区版(1130版本暂时没有集成,后续会集成)、PDF(开源版)

woodpecker

赞同来自:

非常感谢你的回答,我想知道的是如何由rpm包生成ISO, 因为我同步下来龙芯官网的os仓库后,根据fedora21 ks文件自定义了自己的ks文件,配置好本地仓库,然后通过livecd-creator  -c my-custom.ks构建ISO时出现了一下错误:

Protected multilib versions: qt5-qtlocation-5.6.0-3.fc21.loongson.mips64el != qt5-qtlocation-5.3.2-1.fc21.loongson.mips64el
Protected multilib versions: qt5-qtsensors-5.6.0-3.fc21.loongson.mips64el != qt5-qtsensors-5.3.2-1.fc21.loongson.mips64el
Protected multilib versions: qt5-qtmultimedia-5.6.0-3.fc21.loongson.mips64el != qt5-qtmultimedia-5.3.2-1.fc21.loongson.mips64el
Protected multilib versions: qt5-qtbase-5.6.0-13.fc21.loongson.mips64el != qt5-qtbase-5.3.2-5.fc21.2.mips64el
Protected multilib versions: glib2-2.42.1-1.fc21.loongson.1.mipsel != glib2-2.42.1-1.2.fc21.loongson.mips64el
后面查找os仓库目录,发现仓库中同一目录下确实存在多个版本包的问题:
[root@localhost os]# ll Packages/q/qt5-qtlocation-
qt5-qtlocation-5.3.2-1.fc21.loongson.mips64el.rpm
qt5-qtlocation-5.6.0-3.fc21.loongson.mips64el.rpm
qt5-qtlocation-devel-5.3.2-1.fc21.loongson.mips64el.rpm
qt5-qtlocation-devel-5.6.0-3.fc21.loongson.mips64el.rpm
qt5-qtlocation-doc-5.3.2-1.fc21.loongson.noarch.rpm
qt5-qtlocation-examples-5.3.2-1.fc21.loongson.mips64el.rpm
qt5-qtlocation-examples-5.6.0-3.fc21.loongson.mips64el.rpm
[root@localhost os]# ll Packages/g/gli
Display all 174 possibilities? (y or n)
[root@localhost os]# ll Packages/g/glib2-
glib2-2.42.1-1.fc21.loongson.1.mips64el.rpm
glib2-2.42.1-1.fc21.loongson.1.mipsel.rpm
glib2-2.42.1-1.fc21.loongson.mips64el.rpm
glib2-2.42.1-1.fc21.loongson.mipsel.rpm
glib2-2.42.1-1.fc21.loongson.mipsn32el.rpm
glib2-devel-2.42.1-1.fc21.loongson.1.mips64el.rpm
glib2-devel-2.42.1-1.fc21.loongson.1.mipsel.rpm
glib2-devel-2.42.1-1.fc21.loongson.mips64el.rpm
glib2-devel-2.42.1-1.fc21.loongson.mipsel.rpm
glib2-devel-2.42.1-1.fc21.loongson.mipsn32el.rpm
glib2-doc-2.42.1-1.fc21.loongson.1.noarch.rpm
glib2-doc-2.42.1-1.fc21.loongson.noarch.rpm
glib2-fam-2.42.1-1.fc21.loongson.1.mips64el.rpm
glib2-fam-2.42.1-1.fc21.loongson.mips64el.rpm
glib2-static-2.42.1-1.fc21.loongson.1.mips64el.rpm
glib2-static-2.42.1-1.fc21.loongson.1.mipsel.rpm
glib2-static-2.42.1-1.fc21.loongson.mips64el.rpm
glib2-static-2.42.1-1.fc21.loongson.mipsel.rpm
glib2-static-2.42.1-1.fc21.loongson.mipsn32el.rpm
glib2-tests-2.42.1-1.fc21.loongson.1.mips64el.rpm
glib2-tests-2.42.1-1.fc21.loongson.1.mipsel.rpm
glib2-tests-2.42.1-1.fc21.loongson.mips64el.rpm
glib2-tests-2.42.1-1.fc21.loongson.mipsel.rpm
然后导致构建失败, 所以想问下你们构建的ISO中有没有预装qt? glib2的问题是怎么解决的?
 

RayWang

赞同来自:

系统中默认集成了qt,qt的版本是升级过的,依赖qt的程序没有重新编译过,可能会造成依赖问题(之前的依赖qt的程序可能还会依赖5.3版本)
 
以下是我们制作iso时使用的ks安装列表,试过是没有问题的,不清楚你安装使用软件造成的这个问题
%packages
######################
# Install
######################
@base-x
@guest-desktop-agents
@standard
@core
@fedora-release-nonproduct
@fonts
@input-methods
@dial-up
@multimedia
@hardware-support
@printing
@mate-desktop
@networkmanager-submodules
#@libreoffice
@anaconda-tools
# Some development tools
@c-development
# web browser
@firefox
@eclipse
@java
@system-tools

# some apps from mate-applications
@mate-applications

# Explicitly specified here:
# <notting> walters: because otherwise dependency loops cause yum issues.
kernel

# fcitx input method
fcitx
fcitx-table-chinese
fcitx-configtool

# The point of a live image is to install
usermode
anaconda

# Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts

# FIXME; apparently the glibc maintainers dislike this, but it got put into the
# desktop image at some point. We won't touch this one for now.
nss-mdns

# audio and video player
smplayer
gstreamer1-libav

# chrome
chromium

# chinese support
adobe-source-han-sans-cn-fonts
ibus-table-chinese-wubi-jidian
wqy-microhei-fonts
eclipse-nls-zh

# printer driver
foo2*
fp560k-cups-drive
bp900k2-cups-drive

# scan driver
Uniscan_MLD
scanux-base

# camera driver
ZL-LOONGSON-1000RTS
CamScan

# mozilla openh264 plugin
mozilla-openh264

# other packages
hunspell-en
hunspell-en-GB
hunspell-en-US
pptp-setup
remmina
remmina-plugins-rdp
NetworkManager-wifi
NetworkManager-pptp-gnome

# loongson
loongson-themes
loongson-app
wps-office
xorg-x11-drv-2h
p7zip
thunderbird
unar
owncloud
mirall
stardict
stardict-dic-en
stardict-dic-zh_CN
loongson-notebook-tools-1.0
qt-creator-translations
######################
# Remove
######################
-sox
-autofs
-audacious
-claws-mail
# remove ibus
-ibus*

# scanning takes quite a bit of space :/
-xsane
-xsane-gimp
-sane-backends
-PackageKit* # we switched to yumex, so we don't need this
-ConsoleKit # ConsoleKit is deprecated
-ConsoleKit-x11 # ConsoleKit is deprecated
# First, no office
-planner

# Drop things for size
-@libreoffice
-@3d-printing
-brasero
-fedora-icon-theme
-gnome-bluetooth-libs
-gnome-software
-gnome-themes
-gnome-user-docs
-atril-thumbnailer
-transmission-gtk
-bluedevil
-hexchat
-pidgin
-tigervnc
-gnote
-caja-actions
-caja-terminal
-*beesu-*
-firewall-*

# Drop the Java plugin
-icedtea-web

# Drop things that pull in perl
-linux-atm

# Dictionaries are big
# we're going to try keeping hunspell-* after notting, davidz, and ajax voiced
# strong preference to giving it a go on #fedora-desktop.
# also see http://bugzilla.gnome.org/681084
-aspell-*

# Help and art can be big, too
-gnome-user-docs
-evolution-help
-desktop-backgrounds-basic
-*backgrounds-extras

# Legacy cmdline things we don't want
-krb5-auth-dialog
-krb5-workstation

-ypbind
-yp-tools

# Drop some system-config things
-system-config-rootpassword
-system-config-services
-policycoreutils-gui

# Add for remix
-fedora-logos
-fedora-release*
generic-logos
generic-release

%end

woodpecker

赞同来自:

谢谢,您给出的ks文件中涉及qt的只有qt-creator-translations, 而这个包刚好在os仓库中不存在multiple versions protected的问题,
[root@localhost os]# ll Packages/q/qt-creator-translations-4.1.0-2.fc21.loongson.noarch.rpm
-rw-r--r-- 1 502 502 1828596 11月 11 09:33 Packages/q/qt-creator-translations-4.1.0-2.fc21.loongson.noarch.rpm
难道预装qt仅仅只是预装qt-creator-translations吗?

 

woodpecker

赞同来自:

我测试了一下,qt-creator-translations安装后确实会安装qt5开头相关的大概13包,但没有包含开发需要的qt-creator, 构建ISO的install过程中安装fp560k-cups-drive时会停止, 出现"lpinfo:Unauthorized:
Password for root on localhost ? "
需要输入两次root密码才可继续安装, 不知道你们是怎么控制的?

按照你上面给出的ks文件,构建出的ISO挂载起来后,构建方式:livecd-creator -c my-custom.ks, 发现/boot目录下没有initrd, 不知道你们是怎么解决的?

要回复问题请先登录注册