`
- 浏览:
977245 次
- 性别:
- 来自:
北京
-
Minimal OpenSolaris200811 install
Using instructions from Edward Pilatowicz' blog I got small working OpenSolaris 2008.11 in the console version: without Xorg (and Gnome of course).
First of all the list of the core packages for normal work in the console is necessary. My computer has Realtek ethernet adapter and I also have added a SUNWrtls package. Here's example list (pkg.txt):
SUNWcsd
SUNWcs
SUNWzone
SUNWcsl
SUNWlibsasl
SUNWlibms
SUNWpr
SUNWlxml
SUNWzlib
SUNWtls
SUNWopenssl
SUNWpool
SUNWzfs
SUNWsmapi
SUNWtecla
SUNWckr
SUNWpicl
SUNWmd
SUNWinstall-libs
SUNWwbsup
SUNWgccruntime
SUNWcar
SUNWcakr
SUNWusbs
SUNWusb
SUNWaudd
SUNWkvm
SUNWos86r
SUNWrmodr
SUNWpsdcr
SUNWpsdir
SUNWcnetr
SUNWesu
SUNWkey
SUNWnfsckr
SUNWnfsc
SUNWgss
SUNWgssc
SUNWbip
SUNWbash
SUNWloc
SUNWsshcu
SUNWsshd
SUNWssh
SUNWtoo
SUNWzfskr
SUNWipf
SUNWrtls
SUNWipkg
SUNWpython-pyopenssl
SUNWpython-cherrypy
SUNWadmr
SUNWadmap
SUNWadmlib-sysid
SUNWPython
SUNWbzip
SUNWxwrtl
SUNWTk
SUNWTcl
SUNWlexpt
SUNWperl584core
As last versions of packages have dependences, for example SUNWcs is installing SUNWgccruntime, SUNWPython is installing packages SUNWTk and SUNWTcl. But finally I got installed system with size about 280 mb - it's a smaller than 3 Gb;)
I use the same commands as in Edward's blog (I'm running Solaris Express):
zpool create -f rpool c1t1d0s0
zfs set compression=on rpool
zfs create -p rpool/ROOT/indy/opt
zfs set canmount=noauto rpool/ROOT/indy
zfs set canmount=noauto rpool/ROOT/indy/opt
zfs set mountpoint=legacy rpool/ROOT/indy
zfs set mountpoint=legacy rpool/ROOT/indy/opt
# we're going to do our install in /a
PKG_IMAGE=/a; export PKG_IMAGE
# mount our zpool on /a
mkdir -p $PKG_IMAGE
mount -F zfs rpool/ROOT/indy $PKG_IMAGE
mkdir -p $PKG_IMAGE/opt
mount -F zfs rpool/ROOT/indy/opt $PKG_IMAGE/opt
For Solaris Express you must install pkg (not required if you're booting from OpenSolars or MilaX LiveCD):
hg clone ssh://anon@hg.opensolaris.org/hg/pkg/gate
cd gate/src
make install
# create the basic opensolaris install image..
pkg image-create -F -a opensolaris.org=http://pkg.opensolaris.org $PKG_IMAGE
pkg refresh
Note: I use here list of basic packages - pkg.txt (see above):
for pkg in `cat pkg.txt`; do pkg install $pkg; done
Next:
# seed the initial smf repository
cp $PKG_IMAGE/lib/svc/seed/global.db $PKG_IMAGE/etc/svc/repository.db
chmod 0600 $PKG_IMAGE/etc/svc/repository.db
chown root:sys $PKG_IMAGE/etc/svc/repository.db
# setup smf profiles
ln -s ns_files.xml $PKG_IMAGE/var/svc/profile/name_service.xml
ln -s generic_limited_net.xml $PKG_IMAGE/var/svc/profile/generic.xml
ln -s inetd_generic.xml $PKG_IMAGE/var/svc/profile/inetd_services.xml
ln -s platform_none.xml $PKG_IMAGE/var/svc/profile/platform.xml
# mark the new system image as uninstalled
sysidconfig -b $PKG_IMAGE -a /lib/svc/method/sshd
touch $PKG_IMAGE/etc/.UNCONFIGURED
# configure our new /etc/vfstab
printf "rpool/ROOT/indy -\t/\t\tzfs\t-\tno\t-\n" >> $PKG_IMAGE/etc/vfstab
chmod a+r $PKG_IMAGE/etc/vfstab
# turn off root as a role
printf "/^root::::type=role;\ns/^root::::type=role;/root::::/\nw" |\
ed -s $PKG_IMAGE/etc/user_attr
# delete the "jack" user
printf "/^jack:/d\nw" | ed -s $PKG_IMAGE/etc/passwd
chmod u+w $PKG_IMAGE/etc/shadow
printf "/^jack:/d\nw" | ed -s $PKG_IMAGE/etc/shadow
chmod u-w $PKG_IMAGE/etc/shadow
# copy of my existing host sshd keys
cp -p /etc/ssh/*key* $PKG_IMAGE/etc/ssh
# configure /dev in the new image
devfsadm -R $PKG_IMAGE
ln -s ../devices/pseudo/sysmsg@0:msglog $PKG_IMAGE/dev/msglog
# update the boot archive in the new image
bootadm update-archive -R $PKG_IMAGE
# update to the latest version of grub (this command generated
# some errors which i ignored).
$PKG_IMAGE/boot/solaris/bin/update_grub -R $PKG_IMAGE
# create an informational grub menu in the install image that
# points us to the real grub menu.
cat <<-EOF > $PKG_IMAGE/boot/grub/menu.lst
#########################################################################
# #
# For zfs root, menu.lst has moved to /rpool/boot/grub/menu.lst. #
# #
#########################################################################
EOF
# create the new real grub menu
cat <<-EOF > /rpool/boot/grub/menu.lst2
default 0
timeout 10
splashimage /boot/grub/splash.xpm.gz
title Solaris 2008.11 console
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/indy
kernel\$ /platform/i86pc/kernel/\$ISADIR/unix -k -B \$ZFS-BOOTFS,console=ttya
module\$ /platform/i86pc/\$ISADIR/boot_archive
EOF
# make the grub menu files readable by everyone.
chmod a+r $PKG_IMAGE/boot/grub/menu.lst
chmod a+r /rpool/boot/grub/menu.lst
# setup /etc/bootsign so that grub can find this zpool
mkdir -p /rpool/etc
echo pool_rpool > /rpool/etc/bootsign
umount $PKG_IMAGE/opt
umount $PKG_IMAGE
reboot
After reboot you get the console version of OpenSolaris with which you can do all that you want. Next you can install only those packages which are necessary for you. For example it's useful to owners of old notebooks. This installation can be made from an OpenSolaris LiveCD in text mode or with help of a MilaX LiveCD (where's ipkg is included).
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
install-ppc64-minimal-2006.0.iso
install-ppc64-minimal-2006.0.iso
install-ppc64-minimal-2006.0.iso第五部分
install-ppc64-minimal-2006.0.iso第六部分
install-ppc64-minimal-2006.0.iso比较难下 很少能找到资料
朋友,如果你从官网下载(mysql-8.0.20-linux-x86_64-minimal.tar)不成功,或觉得官网下载速度太慢,可以直接在这里下载。本人会做一个搜集,为广大开发者提供一个便利。
2. 应用管理:使用adb install命令可以安装APK文件,而adb uninstall则可卸载应用,包括系统应用,如索尼手机上的谷歌全家桶。 3. 日志收集:adb logcat用于收集设备的日志信息,这对于调试和问题排查至关重要。 4. ...
2. **最小化安装**: Minimal Install是CentOS的一种安装方式,只包含基础系统组件,如bash、coreutils、filesystem等,不包括图形界面、桌面环境和其他非必要软件,便于用户根据需求自定义安装。 3. **x86_64架构**...
install-ppc64-minimal-2006.0第八部分
重置工具:reset_minimal.zip reset_minimal.zip 是一个压缩包文件,它包含了用于系统重置或恢复的工具。这个工具可能被设计为简洁、轻量级的解决方案,适用于那些希望快速恢复计算机到初始状态的用户。"minimal"一...
Bootstrap Minimal v1.3 是一个基于Bootstrap框架的前端设计模板,专为网页开发人员和设计师设计。Bootstrap是最流行且广泛使用的HTML、CSS和JS框架,它简化了网页开发过程,提供了响应式布局和一系列预定义的组件,...
安装过程中,用户可以选择不同的安装类型,如“最小安装”(Minimal Install),这将只安装最基础的系统组件,或者选择“开发工具”(Development Tools)存储库,这会安装额外的开发和编译工具。安装完成后,用户...
install-ppc64-minimal-2006.0.iso第七部分
install-ppc64-minimal-2006.0.iso比较难下 很少能找到资料
ZXPSignLib-minimal.dll 文件是动态链接库(DLL)文件,主要在Windows操作系统中用于支持特定的功能或程序。在本例中,该文件与Adobe Photoshop相关,可能为Adobe的图像处理软件提供数字签名或安全相关的功能。DLL...
**标题解析:** "CentOS-7.9-x86_64-minimal" 这个标题代表的是CentOS操作系统的第7版本的第9次更新(也称为7.9或2009版本),针对x86_64架构的计算机系统,采用的是精简版(Minimal)安装镜像。 **描述解读:** ...
CentOS-7-x86_64-Minimal-2009.iso是一个针对x86_64架构系统的CentOS 7版本的ISO镜像文件。它包含了运行CentOS操作系统所需的最基本组件和软件包,相较于完整版或桌面版,它没有预装许多额外的应用程序和图形界面,...
CentOS 7 x86_64 Minimal 1810
标题“reset_minimal.rar”暗示了这是一个用于系统重置或恢复的基本工具,可能是为了帮助用户在Windows操作系统中解决常见问题。解压缩后得到的是一个名为“reset_minimal.cmd”的CMD批处理文件,这通常是由一系列...
Bootstrap后台模板Minimal是一款基于Bootstrap框架设计的简洁后台管理界面模板,特别适合美工人员和初学者作为参考。Bootstrap是Twitter推出的一个开源的用于前端开发的工具包,它包含了一系列CSS和JavaScript组件,...