New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve commandline examples #71
Merged
+59
−30
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
| @@ -38,6 +38,32 @@ This collection of documents is aimed at providing a comprehensive source of gui | ||
| 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. | ||
|
|
||
| ## Conventions | ||
|
|
||
| ### Commandlines | ||
|
|
||
| Commandlines starting with a # character means that they should be run as root. | ||
frusen
Author
Contributor
|
||
| Most of these examples can also be invoked with | ||
| [pfexec(1)](https://illumos.org/man/1/pfexec) | ||
| or sudo(1m) instead. | ||
|
|
||
| You can login as root using [su(1m)](https://illumos.org/man/1m/su). | ||
|
|
||
| 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. | ||
| @@ -175,10 +201,10 @@ To work around this limitation, be sure to remove any previously installed insta | ||
| * Run the following command to download and boot the OpenIndiana vagrant box: | ||
|
|
||
| ``` | ||
| mkdir ~/openindiana_test | ||
| cd ~/openindiana_test | ||
| vagrant init openindiana/hipster | ||
| vagrant up --provider virtualbox | ||
| $ 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. | ||
| @@ -187,13 +213,13 @@ The Vagrant box will also be booted. | ||
| * Once, the Vagrant box virtual machine is online, connect to it using the following command: | ||
|
|
||
| ``` | ||
| vagrant ssh | ||
| $ vagrant ssh | ||
| ``` | ||
|
|
||
| * To destroy the OpenIndiana Vagrant instance, issue the following command: | ||
|
|
||
| ``` | ||
| vagrant destroy | ||
| $ vagrant destroy | ||
| ``` | ||
|
|
||
|
|
||
| @@ -281,17 +307,18 @@ If you wish to purchase a ready made DVD or USB drive there is also [OSDISC.COM] | ||
| Download example: | ||
|
|
||
| ``` | ||
| wget "http://dlc.openindiana.org/isos/hipster/OI-hipster-gui-20161030.iso" | ||
| wget "http://dlc.openindiana.org/isos/hipster/OI-hipster-gui-20161030.iso.sha256sum" | ||
| $ wget "http://dlc.openindiana.org/isos/hipster/OI-hipster-gui-20161030.iso" | ||
| $ wget "http://dlc.openindiana.org/isos/hipster/OI-hipster-gui-20161030.iso.sha256sum" | ||
| ``` | ||
|
|
||
| ### Checking the MD5/SHA | ||
|
|
||
| Checksum verification example: | ||
|
|
||
| ``` | ||
| sha256sum --check OI-hipster-gui-20161030.iso.sha256sum | ||
| $ sha256sum --check OI-hipster-gui-20161030.iso.sha256sum | ||
| OI-hipster-gui-20161030.iso: OK | ||
| $ | ||
frusen
Author
Contributor
|
||
| ``` | ||
|
|
||
|
|
||
| @@ -307,8 +334,9 @@ The syntax of the command is: `cdrecord dev=device imagefile.iso` | ||
|
|
||
| Examples: | ||
|
|
||
| * `cdrecord dev=/dev/rdsk/c4t1d0p0 imagefile.iso` | ||
| * `cdrecord dev=4,1,0 imagefile.iso` | ||
| ```# cdrecord dev=/dev/rdsk/c4t1d0p0 imagefile.iso``` | ||
| ```# cdrecord dev=4,1,0 imagefile.iso``` | ||
| <i class="fa fa-info-circle fa-lg" aria-hidden="true"></i> **NOTE:** | ||
| @@ -329,10 +357,9 @@ Locating your DVD or CD writing device: | ||
| For example: | ||
| `cdrecord -scanbus` | ||
|
|
||
| ``` | ||
| Cdrecord-ProDVD-ProBD-Clone 3.00 (i386-pc-solaris2.11) Copyright (C) 1995-2010 J�rg Schilling | ||
| $ 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: | ||
| @@ -344,6 +371,7 @@ scsibus4: | ||
| 4,5,0 405) * | ||
| 4,6,0 406) * | ||
| 4,7,0 407) * | ||
| $ | ||
| ``` | ||
| <i class="fa fa-info-circle fa-lg" aria-hidden="true"></i> **NOTE:** | ||
| @@ -359,9 +387,8 @@ For example: `cdrecord dev=4,1,0 imagefile.iso` | ||
| For example: | ||
| `rmformat -l` | ||
|
|
||
| ``` | ||
| $ rmformat -l | ||
| Looking for devices... | ||
| 1. Logical Node: /dev/rdsk/c4t1d0p0 | ||
| Physical Node: /pci@0,0/pci17aa,20f8@1f,2/cdrom@1,0 | ||
| @@ -371,14 +398,15 @@ Looking for devices... | ||
| Size: 810.2 MB | ||
| Label: <None> | ||
| Access permissions: Medium is not write protected. | ||
| $ | ||
| ``` | ||
| <i class="fa fa-info-circle fa-lg" aria-hidden="true"></i> **NOTE:** | ||
| <div class="well"> | ||
| 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` | ||
| For example: `# cdrecord dev=/dev/rdsk/c4t1d0p0 imagefile.iso` | ||
| </div> | ||
| @@ -399,7 +427,7 @@ The syntax of the command is: `wodim -v dev=device -dao imagefile.iso` | ||
| For example: | ||
| `wodim -v dev=/dev/sr0 -dao imagefile.iso` | ||
| `# wodim -v dev=/dev/sr0 -dao imagefile.iso` | ||
| Locating your DVD or CD writing device: | ||
| @@ -408,15 +436,15 @@ Locating your DVD or CD writing device: | ||
| For example: | ||
| `lsblk` | ||
|
|
||
| ``` | ||
| $ 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** <i class="fa fa-linux fa-lg" aria-hidden="true"></i> | ||
| @@ -439,8 +467,9 @@ For further information, please consult the help documentation for your Linux di | ||
| **MAC Console** <i class="fa fa-apple fa-lg" aria-hidden="true"></i> | ||
| ``` | ||
| growisofs -Z /dev/dvdrw=image.iso | ||
| <!-- had to specify java (other langs may work) to fix the formatting --> | ||
| ```java | ||
| # growisofs -Z /dev/dvdrw=image.iso | ||
| ``` | ||
|
|
||
|
|
||
| @@ -593,19 +622,19 @@ In the command below, replace `X` with the appropriate letter for your USB devic | ||
| #### Method 1 (New releases) | ||
|
|
||
| ``` | ||
| sudo dd bs=4M if=./image.usb of=/dev/sdX status=progress && sync | ||
| # dd bs=4M if=./image.usb of=/dev/sdX status=progress && sync | ||
| ``` | ||
|
|
||
| #### Method 2 (Legacy releases) | ||
|
|
||
| ``` | ||
| cat 1G.header image.usb | sudo dd bs=1024k of=/dev/sdX | ||
| # cat 1G.header image.usb | dd bs=1024k of=/dev/sdX | ||
| ``` | ||
|
|
||
| For live images larger than 1GB, use the following command instead. | ||
|
|
||
| ``` | ||
| cat 2G.header image.usb | sudo dd bs=1024k of=/dev/sdX | ||
| # cat 2G.header image.usb | dd bs=1024k of=/dev/sdX | ||
| ``` | ||
|
|
||
|
|
||
| @@ -617,7 +646,7 @@ cat 2G.header image.usb | sudo dd bs=1024k of=/dev/sdX | ||
| In the command below, replace each `X` with appropriate number for your USB device. | ||
|
|
||
| ``` | ||
| sudo /usr/bin/dd if=./image.usb of=/dev/rdsk/cXtXdXpX bs=4194304 | ||
| # /usr/bin/dd if=./image.usb of=/dev/rdsk/cXtXdXpX bs=4194304 | ||
| ``` | ||
|
|
||
| #### Method 2 (Legacy releases) | ||
| @@ -626,9 +655,9 @@ For illumos based distributions including OpenIndiana, a script [(USBCOPY)](http | ||
|
|
||
| Be sure to run as root or with SUDO as the script exits if not run with elevated permissions. | ||
|
|
||
| `sudo ./usbcopy image.usb` | ||
|
|
||
| ``` | ||
| <!-- had to specify java (other langs may work) to fix the formatting --> | ||
| ```java | ||
| # ./usbcopy image.usb | ||
| Found the following USB devices: | ||
| 0: devices/dev/rdsk/c4t0d0p0 3.9 GB USB DISK 2.0 1.00 | ||
| Enter the number of your choice: 0 | ||
| @@ -641,6 +670,7 @@ Finished 1643 MB in 685 seconds (2.3MB/s) | ||
| 0 block(s) re-written due to verification failure | ||
| Installing grub to USB device /dev/rdsk/c4t0d0s0 | ||
| Completed copy to USB | ||
| # | ||
| ``` | ||
|
|
||
| ### Windows | ||
| @@ -2349,4 +2379,3 @@ Write about: | ||
| * Using the `add_drv` command | ||
| * Adding device ID's to `/etc/driver_aliases`, and `/etc/driver_classes`, etc. | ||
| </div> | ||
|
|
||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Why not "Command lines"?