Getting Started with OpenIndiana
This is a DRAFT document which may contain errors!
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
This is a DRAFT document which may contain errors!
Please see the Contrib section for more details about joining the OpenIndiana Documentation Team.
This collection of documents is aimed at providing a comprehensive source of guidance for both new and seasoned Unix administrators. While our aim is to address as many facets of OpenIndiana use and administration as possible, some topics are simply too complex and beyond the scope of an introductory end user handbook. In such cases external sources of information will be provided in the form of references to other web sites, man pages, or printed books.
Commandlines starting with a # character means that they should be run as root. Most of these examples can also be invoked with pfexec(1) or sudo(1m) instead.
An example of a commandline intended to be invoked as root:
dd if=image.usb of=/dev/sdb
Commandlines starting with a $ character means that they should be run as a regular user.
An example of a commandline intended to be invoked as a regular user:
$ prstat
Hipster Software Releases
Approximately every six months, the OpenIndiana project releases a snapshot of the Hipster rolling release branch. Ideally suited for both workstations and servers, simply choose the installer type which best serves your needs.
For a full list of links to the various installer images, visit the OpenIndiana Downloads page.
Hipster is a rapid development branch where software versions are frequently updated. While every package is tested to ensure stability, caution is nevertheless warranted when deploying Hipster into mission critical production environments.
There are several ways in which you can explore OpenIndiana without having to perform a bare metal install.
While the Live Media environment provides an opportunity to use and explore many of the features of OpenIndiana, it is not possible to install additional software into the Live Media environment.
Available in both DVD and USB formats, the OpenIndiana GUI installer also functions as live media. This allows you try OpenIndiana without the need to install it. Exploring OpenIndiana via the live media is an especially good way to test your hardware compatibility prior to installing the operating system.
OpenIndiana is known to work with the following virtualization software:
Virtual machines provide a PC emulation layer in which you install OpenIndiana just as you would on physical 'bare metal' hardware.
Vagrant provides an excellent way to explore OpenIndiana as it fully automates the process of bringing a virtual machine online. OpenIndiana comes with an official Vagrant box, which can be used for exploring OpenIndiana before installing it.
At this time, the OpenIndiana Vagrant box is only available in the form of a text based console. But because Vagrant supports X11 forwarding over ssh, graphical user interface applications can still be ran on this vagrant box over ssh. Additionally, Virtualbox is the only currently supported Vagrant provider. In the future the OpenIndiana project hopes to provide additional Vagrant box options.
Vagrant is officially available for Mac OS X, Windows and Linux. Vagrant is currently not packaged for OpenIndiana itself, but it can be compiled from source, and it works on OpenIndiana itself as well.
Older versions of Vagrant (as packaged by many LTS Linux distributions), may not support downloading the Vagrant box instance. To work around this limitation, be sure to remove any previously installed instances of Vagrant and obtain the latest Vagrant software directly from the Vagrant website.
$ mkdir ~/openindiana_test $ cd ~/openindiana_test $ vagrant init openindiana/hipster $ vagrant up --provider virtualbox
This will create a file titled Vagrantfile under the ~/openindiana_test directory. The Vagrant box will also be booted.
$ vagrant ssh
To destroy the OpenIndiana Vagrant instance, issue the following command:
$ vagrant destroy
Preparing to Install Hipster
Prior to installing OpenIndiana:
Installing OpenIndiana on unsupported hardware may cause excessive CPU usage, instability, or other problems.
Please be sure to consult the hardware compatibility list (HCL):
Before attempting to install OpenIndiana, first ensure you backup any important data. Do not save the data on another partition or on another disk within the same system. Instead save the data to an external device such as a USB hard drive, or external system (network backup service, or a networked system). Always verify your backed up data.
By default the OpenIndiana installer creates an EFI partition using a GPT partition table. Using this option, OpenIndiana will use the entire disk. No other operating system can share the same disk.
Optionally you may use an existing zpool.
Another option is to use a legacy MBR partition. MBR partitions will allow you to create multiple partitions. MBR will also support dual booting another operating system.
Another option is to install to a virtual machine.
If your network uses a DHCP server, OpenIndiana can be configured to automatically obtain it's network information. If a DHCP server is not available, then you will need to manually configure your network settings.
For a full list of links to the various installer images, visit the following page:
For a complete list of alternate mirrors (Asia, Europe, North America, etc.)
$ wget "http://dlc.openindiana.org/isos/hipster/20170502/OI-hipster-gui-20170502.iso" $ wget "http://dlc.openindiana.org/isos/hipster/20170502/OI-hipster-gui-20170502.iso.sha256sum"
Checking the MD5/SHA
Checksum verification example:
$ sha256sum --check OI-hipster-gui-20170502.iso.sha256sum OI-hipster-gui-20170502.iso: OK $
Creating a Hipster DVD
BSD/illumos/Solaris
UNIX Console
The command to use for writing a CD or DVD is cdrecord. The syntax of the command is: cdrecord dev=device imagefile.iso
cdrecord dev=/dev/rdsk/c4t1d0p0 imagefile.iso
If you are re-using a DVD-RW, be sure to blank it first.
For example: cdrecord dev=/dev/rdsk/c4t1d0p0 blank=fast
Warning: Blanking the disk will destroy all data on the disk.
$ cdrecord -scanbus Cdrecord-ProDVD-ProBD-Clone 3.00 (i386-pc-solaris2.11) Copyright (C) 1995-2010 Jörg Schilling Warning: Using USCSI interface. Using libscg version 'schily-0.9'. scsibus4: 4,0,0 400) 'ATA ' 'HITACHI HTS72321' 'C50B' Disk 4,1,0 401) 'HL-DT-ST' 'DVDRAM GSA-U20N ' 'HX12' Removable CD-ROM 4,2,0 402) * 4,3,0 403) * 4,4,0 404) * 4,5,0 405) * 4,6,0 406) * 4,7,0 407) * $
Note
When using cdrecord -scanbus to determine the device name, specify the device using the SCSI bus ID.
For example: cdrecord dev=4,1,0 imagefile.iso
$ rmformat -l Looking for devices...
- Logical Node: /dev/rdsk/c4t1d0p0 Physical Node: /pci@0,0/pci17aa,20f8@1f,2/cdrom@1,0 Connected Device: HL-DT-ST DVDRAM GSA-U20N HX12 Device Type: CD Reader Bus: <Unknown> Size: 810.2 MB Label: <None> Access permissions: Medium is not write protected. $
Note
When using rmformat -l to determine the device name, specify the device using the Logical Node.
For example: # cdrecord dev=/dev/rdsk/c4t1d0p0 imagefile.iso
Use the application specific to your desktop (Brasero, K3B, etc.)
The command to use to write a CD or DVD on Linux is wodim.
The syntax of the command is: wodim -v dev=device -dao imagefile.iso
wodim -v dev=/dev/sr0 -dao imagefile.iso
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 232.9G 0 disk ├─sda1 8:1 0 227.8G 0 part / ├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 4G 0 part sr0 11:0 1 1024M 0 rom $
Linux GUI
There are several different CD/DVD writer applications available for Linux.
Other desktops may offer additional choices. For further information, please consult the help documentation for your Linux distribution.
growisofs -Z /dev/dvdrw=image.iso
MAC GUI
Isoburn is a Windows GUI utility which can be launched via the command prompt as follows:
ISOBURN.EXE [/Q] [<drive letter>:] <disk image file name>
Windows GUI
Old versions of OpenIndiana Hipster prior to the 2016.10 release (including legacy oi-dev-151x) require a different procedure for for creating bootable USB flash drives, see this page for details
Although that the current OpenIndiana Hipster releases support UEFI without secure boot, old versions of OpenIndiana Hipster did not support UEFI.
In illumos, the whole disk device name is depending on partition type.
If any file systems are located on the USB storage device, they must first be unmounted.
In the command below, replace X with the appropriate letter for your USB device. At least on Linux and FreeBSD you can add status=progress operand to print basic transfer statistics, refer to dd(1) man page of your platform for more information.
dd bs=4M if=./image.usb of=/dev/sdX && sync
illumos/Solaris
In the command below, replace each X with appropriate number for your USB device.
/usr/bin/dd if=./image.usb of=/dev/rdsk/cXtXdXpX bs=4194304
Windows
Newer releases can be written using Win32 Disk Imager.
By default the Win32 Disk Imager utility is looking for .img files and won't see files with a .usb extension. To resolve this issue, be sure to select the . (all files) option from the file extension drop down menu.
Insert the bootable media (DVD or USB flash drive) and boot (start/restart) your computer. When you see the OpenIndiana boot menu, select a boot entry, and press the enter key to start OpenIndiana on your computer. As it runs, you will be prompted with a few questions.
For the computer to successfully boot from the media, you may be required to perform one of the following tasks:
OpenIndiana supports UEFI (Unified Extensible Firmware Interface) without secure boot:
Secure boot (UEFI boot path validation) must be disabled (if it is enabled by default) because UEFI secure boot is currently not yet supported.
For further information, consult the manufacturer's documentation for your computer hardware.
The most efficient way to boot a virtual machine is to boot directly from the DVD ISO file. Alternately, you may use host-to-guest DVD/USB passthrough to boot from physical media. See the notes below for optimizing OpenIndiana for several popular hypervisors.
The OpenIndiana Project recommends the Oracle Virtualbox hypervisor as it provides the best support for illumos based distributions such as OpenIndiana.
If you experience difficulties booting OpenIndiana on virtual hardware, or find virtual hardware devices which are either not properly recognized, or fail to function as expected, please report the problem to the upstream illumos Project. You may do so by submitting an issue using the illumos project bug tracker.
Introduced with the Hipster 2016.10 release, the FreeBSD boot loader has been ported to OpenIndiana.
The new boot loader provides many new capabilities:
The OpenIndiana installer will automatically boot option # 1. Boot Multi User within 10 seconds.
The OpenIndiana installer boot menu offers multiple choices.
Select your boot option by pressing the associated number key.
Toggle (enable/disable) these options by selecting the associated number key.
Toggle (enable/disable) these options by selecting the associated number key.
Even when booting the Mate Live Image, selecting option # 3 (text console) option will boot the system to a text based console. The logon credentials required to access the shell are jack/jack.
OpenIndiana offers 47 different keyboard layouts.
Once you have selected a keyboard layout, press the Enter key to continue.
OpenIndiana offers 22 different language options.
Once you have selected a language, press the Enter key to continue.
After selecting the keyboard layout and language, OpenIndiana will begin to search for hardware and configure devices. When the configuration process is complete, the system will load to either the Mate desktop, or a logon console.
The Live Media DVD and USB installers provide a graphical live environment where you can explore OpenIndiana and
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。