среда, 18 ноября 2015 г.
Materials for Unix courses
среда, 7 октября 2015 г.
Userland incorporation in OpenIndiana Hipster and what does it mean for developer
$ pkg list -avf pkg://openindiana.org/consolidation/userland/userland-incorporation FMRI IFO pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151006T203007Z --- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151005T203207Z --- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T163056Z i-- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T150924Z --- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T132353Z --- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T122350Z --- pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151004T095518Z --- ....
We can see that this system has incorporation with 20151004T163056Z timestamp installed and two more recent versions are available. So I can do something like:
$ sudo pkg update -v \ pkg://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0:20151005T203207Z
to move to the 5th October package versions.
Why developers doesn't like incorporations (and IPS generally)? Because it doesn't allow you to do what you want with your system. For example, you can't install another package version.
In case of userland incorporation, you have some freedom. You can just uninstall it (and entire, as entire depends on userland-incorporation). But you can get issues during new zone setup if your NGZ misses entire. So, you have three options:
- stay with old entire, which doesn't depend on userland-incorporation (pkg freeze it);
- uninstall entire and userland-incorporation;
- use facets to relax incorporate dependencies.
Let's look on the last option more attentively. For example, I'm going to experiment with new mesa. But userland-incorporation has the following dependency:
$ pkg contents -m userland-incorporation |grep mesa depend facet.version-lock.x11/library/mesa=true fmri=x11/library/mesa@10.5.9,5.11-2015.0.1.0:20150927T212600Z type=incorporate
As you see, it is marked by facet. So you can do
$ sudo pkg facet facet.version-lock.x11/library/mesa FACET VALUE SRC version-lock.x11/library/mesa True system $ sudo pkg change-facet facet.version-lock.x11/library/mesa=false $ sudo pkg install pkg://userland/x11/library/mesa $ sudo pkg info mesa Name: x11/library/mesaBut beware, if you would like to change facet back, you can't do it:
Summary: The Mesa 3-D Graphics Library
Category: System/X11
State: Installed
Publisher: userland
Version: 11.0.2
Branch: 2015.0.1.0
Packaging Date: October 7, 2015 03:00:58 PM
Last Install Time: October 7, 2015 06:49:24 PM
Size: 34.82 MB
FMRI: pkg://userland/x11/library/mesa@11.0.2-2015.0.1.0:20151007T150058Z
Project URL: http://www.mesa3d.org/
Source URL: ftp://ftp.freedesktop.org/pub/mesa/11.0.2/mesa-11.0.2.tar.xz
$ sudo pkg change-facet version-lock.x11/library/mesa=true Creating Plan (Solver setup): / pkg change-facet: Package entire must be uninstalled before the requested operation can be performed. Reject: pkg://openindiana.org/entire@0.5.11-2015.0.2.1:20151003T221212Z Reason: No version matching 'require' dependency consolidation/userland/userland-incorporation can be installed Package x11/server/xorg/driver/xorg-video-ati must be uninstalled before the requested operation can be performed. Reject: pkg://openindiana.org/x11/server/xorg/driver/xorg-video-ati@6.14.6-2015.0.1.0:20150927T212825Z Reason: No version matching 'require' dependency x11/server/xorg@1.14.7-2015.0.1.0 can be installed ---------------------------------------- Reject: pkg://openindiana.org/x11/server/xorg@1.14.7-2015.0.1.0:20150927T184317Z Reason: No version matching 'optional' dependency x11/library/mesa@7.4.4-2014.1.3.0 can be installed ---------------------------------------- Reject: pkg://userland/x11/library/mesa@11.0.2-2015.0.1.0:20151007T150058Z Reason: This version is excluded by installed incorporation consolidation/userland/userland-incorporation@0.5.11-2015.0.2.0 ---------------------------------------- ---------------------------------------- .....
Firstly, you have to install mesa version offered by openindiana.org publisher.
Update (2016-01-26). If you use your host as test station, it's easier just to uninstall userland-incorporation. Now you can do this without touching entire. Just do
$ sudo pkg change-facet facet.require.consolidation/userland/userland-incorporation=false $ sudo pkg uninstall userland-incorporation
пятница, 2 октября 2015 г.
Don't think for me...
четверг, 23 июля 2015 г.
On attaching zones and linked images
OK, I've set the publishers according to this rule, but today was surprised by fact that I can't longer set openindiana.org publisher to be non-sticky in NGZ. I've set openindiana.org publisher to non-sticky in GZ, NGZ, but still IPS complains on "pkg install":
pkg install: Invalid child image publisher configuration. Child image publisher
configuration must be a superset of the parent image publisher configuration.
Please update the child publisher configuration to match the parent. If the
child image is a zone this can be done automatically by detaching and
attaching the zone.
The parent image has the following enabled publishers:
PUBLISHER 0: openindiana.org
PUBLISHER 1: userland (non-sticky)
The child image has the following enabled publishers:
PUBLISHER 0: openindiana.org (non-sticky)
PUBLISHER 1: userland (non-sticky)
PUBLISHER 2: hipster-encumbered
I've rechecked. Both GZ and NGZ had openindiana.org publisher set to non-sticky. I've followed IPS advice - detached and attached zone. And zone attach -u failed with the same error.
OK. Time for black magic. I've unset userland publisher. Set GZ and NGZ publisher list only to openindiana.org (non-sticky). The same issue - IPS doesn't see that GZ publisher is non-sticky now. So, I concluded that information about parent image is recorded or cached in some local zone configuration file. Looked at zone's /var/pkg and found /var/pkg/linked/linked_ppubs, which listed [["openindiana.org", true], [userland, false]]. I changed this file to [["openindiana.org", false]] and after that could attach zone.
I think I still doesn't understand as linked images work (or should work), but they are starting annoying me...
вторник, 31 марта 2015 г.
Hipster 2015.03 is here
We released our last snapshot ISO almost half a year ago. I believe, you want something new. You'll get it. New ISOs were just uploaded to dlc server. Let's see what has changed.
First of all, most evident changes were made in desktop area. We've updated Xorg server and libraries, which allowed us to incorporate some important security fixes from Oracle x-s12-clone and Debian Xorg. Also we've moved much more closely to Gnome 2.32. Most packages were updated to this level, excluding packages which either have a lot of specific patches (like gdm) or just dropped some significant functionality (like cheese, which dropped HAL support in version 2.32). Not everything has gone smoothly. We had to drop trusted desktop support during update. I believe nobody seriously used it under OI. The most annoying thing is that updated Xorg and Intel driver require some DRM updates, which are still not ready. So, if you have Intel video card, either pkg freeze X-incorporation and xorg, or use vesa driver.
General system changes
Desktop software and libraries
- A lot of desktop libraries were updated
- GTK2 is updated to 2.24.27
- libdrm is updated to 2.4.58
- libX11 is updated to 1.6.2, xcb support is enabled in libX11
- xf86-video-ati driver updated to 6.4.16
- nvidia proprietary driver was updated to 340.76
- Mesa is updated to 10.5.1
- Xorg is updated to 1.12.4. This requires updating xorg drivers and modules. OI-shipped modules will be updated automatically, but if you use VirtualBox, you'll have to update your guest additions to at least 4.3.22 version.
- Glib2 is updated to 2.43.4
- Enlightenment 0.19.3 is added as alternative desktop environment
- fontconfig was updated to 2.11.1
- libid3tag and libmtp were imported from SFE, gmtp is added
- rdesktop is updated to 1.8.3
- transmission is updated to 2.52
- XScreensaver is updated to 5.32
- gnome-commander is updated to 1.4.5
- QT 4.8.6 is added
- emacs is updated to 24.3
Input Method Selector was added from upstream input-method gate. Bug in svc:/application/desktop-cache/input-method-cache:default service preventing correct input methods functioning in recent OI was fixed. In fact, gtk input modules cache was moved from /etc/(amd64/)gtk-2.0/gtk.immodules to /usr/lib/(amd64/)gtk-2.0/2.10.0/immodules.cache and service has to regenerate these cache files in new locations . So, after update you can safely remove /etc/(amd64/)gtk-2.0/gtk.immodules.
Development tools
- Subversion is updated to 1.7.19
- SQLite is updated to 3.8.8.3
- Python 3.4 is updated to 3.4.3
- Binutils are updated to 2.25
- OpenBLAS 0.2.13 is added
- Mercurial is updated to 3.3
- Ruby 1.9.3 is added
- Ruby 1.8 is marked obsolete, all OI software is switched to Ruby 1.9.3
- Ruby 2.2.1 is added
- Curl is updated to 7.39
- libncurses.so links are moved to /usr/lib(/amd64)
- gawk is updated to 4.0.2, this fixes issues with pkgsrc bootstrap
- MPICH is updated to 3.1.3
- Sun Studio indent in /usr/bin was replaced by GNU indent. Old one is preserved in /opt/sunstudio12.1/prod/bin/indent
Server software
- A lot of packages were updated, including apache 2.4, php 5.4, php 5.5, postgresql 9.3, samba 3.6, mariadb 5.5
- PostgreSQL 9.4 is added
- PostgreSQL 8.4 is marked obsolete
- ISC dhcp server is updated to 4.2.7
- BIND DNS server is updated to 9.9.6-P2
- rsyslog is updated to 7.4.10
- NTP is updated to 4.2.8p1
понедельник, 17 ноября 2014 г.
Trip to Japan. Part one - Tokyo
Day 1
Day 2
Day 3
Day 4
Day 5
понедельник, 13 октября 2014 г.
There and back again
Once upon a time in a galaxy far far away there has been OpenSolaris distribution. This was the first Unix-like desktop which allowed me to completely replace Windows on my desktop. It wasn't perfect, but a magic of ZFS and IPS made it very attractive. As we now, the sun sets... So, with the end of OpenSolaris era I've moved to FreeBSD and has never regretted about it.
But I always liked illumos and was interested in OpenIndiana distribution. So, now, when I seem to be one of the last interested in it, I tried to go back. Really, migration was smooth. I've bought Nvidia GeForce 740-based video adapter, 4 more GB of RAM and after this I was sure that my hardware is supported by OI.
OI could recognize FreeBSD ZFS pool, so I've detached one disk from zpool, installed OI Hipster from October ISO, imported data and looked at software. As always, software choice for OI if you don't want to compile it yourself is not wast. Yes, there are pkgsrc builds, but they seems foreign in IPS world. So, I used sfe and sfe-encumbered repositories for OI /dev. I hope to use vlc, but vlc 1.1 from sfe-encumbered was a complete garbage. It didn't want to play anything or when it played something it was awful (like no sound or no video or no navigation in DVD menu...) So I stopped on totem/rhythmbox combination and used additional gstreamer codecs from sfe-encumbered. This works, however you should set sfe-encumbered before sfe in your publisher's list.
When speaking about OI one should mention IIMF/IIMD and other IIIM shit. Luckily, it can be turned off. I've finished just adding setxkbmap command to the list of startup applications.
Unfortunately, our Apache OpenOffice from /hipster is still buggy, so I had to use one from AdfinisSyGroup. VirtualBox 4.3.18 from Oracle for Solaris/x64 works fine. I was pleased with our Firefox 24.8.1. Adobe flash plugin 10.1 r85 sometimes crashes. Especially annoying is that it crashes on the flash games which I have to support. At least I've expected that it would not work - the application require Flash 11+. But for other use cases it works. Having working evince, xchm and FBreader seems enough to read documentation. zpool resilvering has completed by 50%. So, now I'm eating my own dog's food.