|
|
thewatertower.org.uk |
![]() |
| thewatertower.org.uk |
Opensolaris
new user faq (opens in a new window) To do listPost buildFix screen resolution or disable the GUI services ResearchRoot: hidden in the menus (system|preferences|main menu) I found under system rools a hidden 'root terminal' option. But it doesn't work. I read something about 'roles' restricting access to root. Might be useful to understand whats going on here. What's bootadm? Shell behaviour is really inconsistent TipsThe Open Solaris equivalent of suexec is pfexec Command line access to the new packaging solution Static IP (v.all)Network config is arranged via the Network Auto-Magic daemon by default. Need to set it to manual and set it up correctly. Solaris networking: NWAM, Static IP, DNS, and routing Fix screen resolution. (v.200805)This was superficially easy: simply use the screen resolution tool in system|preferences. (Ubuntu 8.04 .. take note). Tick 'make this the default'. It didn't last a reboot though. Really regretting installing VMWare tools now .. found a really good blog though .. opensolaris.mynotb00k.com (opens in a new window) The fix was simple though. Having tracked down /etc/X11/xorg.conf, it was just a case of finding Section "Monitor" and removing all the ModeLine entries I didn't want. It'd defaulted to the last in the list. I kept 1152x864 and 1152x900 which fit OK on a 1280x1024 screen with all the VMWare console furniture. Shell misbehaviour (v.200805)Shell behaviour is really inconsistent, and ~/.profile and /etc/profile are absent. Within an xterm on the machine, I get a bash shell (nice to see it .. will Sun abandon 'sh' in a mainstream release, I wonder?) with a nicely built prompt. SSH into the machine, and I get an ugly '-bash-3.2$' prompt. 'su' and the prompt fixes itself. So, root's .profile must be OK. Except root doesn't have a .profile, and 'su -' and it stays broken. Like screen resolution (no xorg configuration; its all 'automagic') and network configuration (again, 'automagic' by default) it seems even building one's PATH and PROMPT is automagic. Lightweight installation (v.200805)On a machine with not enough memory, Gnome never starts. It just spins around failing to start and shutting down again. A route round this:
opensolaris forum (opens in a new window) Admire it, and then shut it down again. The installation ground away all night and didn't get more than 40% through, but left the machine unbootable (it was supposed to dual boot Linux) Disabling the GUI (v.200811)I'm not interested in having the GUI running on a server installation, so will disable the applicable services. The following checks all the services on which gdm depends, except for four which are core OS services, and verifies what services depend on those.
No services depend on GDM, and the list generated by the shell script are only required by GDM. (update 18th Jul - the 'system/hal' service has turned up; this has children; updated to exclude that.)
Just GDM, so we can disable that plus all these other extras.
Tweaks (v.?)Configuring an intel system to use a serial console and enabling console root is tackled by dclarke in the following blog posting: dclarke blog (opens in a new window) The root entry in /etc/user_attr changed to:
Text bootOpensolaris 200811 has a text boot option as a second GRUB option. As I've disabled the GUI and am running the machine with a 12" VGA monitor, I'd like to set it as the default. Conspicuous by its absence is /boot/grub/menu.lst There's a /boot/grub/install_menu file which shows some other potential boot configurations, such as setting serial consoles. But they're not ZFS boot, which requires more infrastructure. Turns out its in a separate boot/grub/ folder in the root zpool.
opensolaris.org zfs boot manual - see step 6 (opens in a new window) Kernel panics, dumps etcIf its gonna keel over, it'd be nice to have the corefiles.
sysadmin guide at docs.huihoo.com (opens in a new window) Bug - slow shutdown and errors about GDM [2008.10]
Seems the service manifest and a script is required to ensure GDM shuts down cleanly. Download them from the link above.
That didn't work .. probably need to find out the right way to switch svc configs on the fly! Rebooted, which is the other approach.
Driver aliasesTrying to get a PCI SATA card to work under opensolaris. System is running off onboard PATA (moral: onboard is best) but I want to be able to pop SATA disks into this machine via a caddy. Having failed to get two Adaptec cards to work, I bought a startech.com Silicon Graphics based card which works .. mostly:
The fix is, apparently:
Rebooted. A useful command for querying hardware:
Didn't work. The device driver utility (via the menus, or /usr/ddu/ddu.py) showed it as misconfigured. The dev-fs path shown wasn't in /etc/path_to_inst.
Lets try a reboot! No improvement. Threads on the subject suggested that the firmware needed to be changed to a plain SATA card (when will hardware vendors stop requiring DOS?!) so flashed it in another machine. On booting, an extra entry had been added to /etc/path_to_inst - pci1095,6114 and pci1095,3114 were mapped to ata with instances 2 and 3. Still no extra disk, and 'Misconfigured' in the GUI. Removed the driver alias from /etc/driver_aliases and the two mappings and rebooted. This time, success!
Removing packagesI've downgraded the graphics to an older NVidia card that's not supported by the 180.* driver.
First step to potentially installing the last one that was supported is to remove the current driver.
Also work remembering the following command that may fix problems with the removal of core opensolaris packages provided by the cd.
And while we're here, its good to see the pkg tool following the conventions of zfs and ldoms and succumbing to guess work ..
Published and promoted by Ben Prescott, 14, St James's Square, Bournemouth, BH5 2BX. All rights reserved. The views expressed are solely those of the author, not of the service provider. |