Monday, October 5, 2015

Toying with omnios

Just some cliff notes for future use:

1)setting up networking:
(as root):
touch /etc/dhcp.e1000g0
touch /etc/hostname.e1000g0

2)edit /etc/hosts, add a line for your host name (replace 'omni01' with whatever name you want):
127.0.0.1       omni01 omni01

3)add a user (there has to be a better way to do this!):
useradd -s `which bash` USERNAME
mkdir /export/home/USERNAME
chown USERNAME.staff /export/home/USERNAME

4)edit /etc/passwd and change USERNAME's home to /export/home/USERNAME (careful with that axe!)

...that's all, so far.

No comments:

automating zfs mounts -a quick and very dirty script

 #!/bin/sh for x in obj xsrc src pkgsrc pkgsrc/distfiles pkgsrc/packages pkg         do zfs create ext/$x zfs set mountpoint=/usr/$x ext/$x ...