Unix
All UxOra articles related to Unix and Linux operating system and Shell Script will be published under this category.
- Details
- Written by Michel VONGVILAY
- Category: Admin
This article will show how to use persistent naming with UUID.
Adding disk controller or new hard disk may result on a different device mapping on next reboot, for example /dev/sda
can switch with /dev/sdb
.
In order to avoid theses issues, we will use persistent naming.
- Details
- Written by Michel VONGVILAY
- Category: Admin
This article will show to configure a simple lightweight local DNS with DNSMASQ in Oracle Linux 7.
This is handy for a small private network and quite useful for a oracle homelab, especially to resolv hostname and domain name.
- Details
- Written by Michel VONGVILAY
- Category: Admin
This article will show step by step how to configure a virtual machine on VirtualBox in order to install Oracle Enterprise Linux 7 (OEL7).
Before going through those steps, you will need to have:
- Oracle VM VirtualBox installed, it can be downloaded from virtualbox.org
- OEL7 (V46135-01) iso image, it can be downloaded from edelivery.oracle.com with a free oracle account
(warning: images-intensive article)
- Details
- Written by Michel VONGVILAY
- Category: Admin
After installing Oracle Enterprise Linux 7 (OEL7) virtual machine on VirtualBox (as explained here), I would recommend to install the VirtualBox Guest Additions.
For any serious and interactive use, the VirtualBox Guest Additions will make your life much easier by providing closer integration between host and guest and improving the interactive performance of guest systems.
Virtualbox
- Details
- Written by Michel VONGVILAY
- Category: Shell Script
In older ksh or bash, the builtin command getopts
can usually only handle short option.
But newer Korn shell may be able to handle long options as show in an other article.
If you don't have the chance to get a recent shell, or if you want to write more portable script, this article will show how to handle GNU-style long options ( --
double hyphen) using getopts with few extra lines of scripting.
(foobar_any_getopts.sh zip file attachement in this article)