Skip to content

Instantly share code, notes, and snippets.

View makruger's full-sized avatar

Michael Kruger makruger

View GitHub Profile

snipped from oi irc on 8/26/16

<Toasterson> is there a cache for /etc/resolv.conf in OI
<xenol> Toasterson: what do you mean?
<xenol> there is nscd
<xenol> but it caches more things
<Toasterson> well i wanted to install a package in a zone but forgot to add dns to resolvconf. after adding dns pkg still insisted that pkg.openindiana.org was unresolvable. even when host utility proved otherwise.
<Toasterson> even a zone reboot did not help
 have you edited /etc/nsswitch.conf?
@makruger
makruger / useradd.md
Last active August 30, 2016 13:47
Useradd caveats

With ZFS and automounted home directories, we cannot do a simple useradd -m <username>. Instead we must do something like this:

useradd -d /export/home/<username> -m <username>

@makruger
makruger / TTY.md
Last active August 30, 2016 13:49
TTY (add to FAQ as well)

Snipped from Openindiana-discuss irc channel on August 30, 2016

[11:57:57] <dansimon> Hi guys :)
[11:59:43] <nikolam> hi
[11:59:51] <Toasterson> hi
[11:59:54] <dansimon> Do you have tty's in openindiana?
[12:00:20] <Toasterson> yes but you need to start a daemon for that
[12:00:34] <dansimon> Ok, which one?
[12:00:39]  vtdaemon

Snipped from openindiana-discuss IRC channel on August 30th, 2016

[12:34:58] <nikolam> pfexec uses RBAC (Role based acces control) with just enough rights given to user to perform exact task.
[12:35:34] <nikolam> That can be used to fine-grain user access, instead of sudo all or nothing
[12:35:53] <nikolam> RBAC roles are set in /etc/user_attr
[12:36:31] <dansimon> nikolam: Ah, thanks! I heard a talk from Ian Murdock speaking about this...
[12:37:24] <nikolam> Pay attention if user has "Primary Administrator" role and pfexec does NOT ask for password, it is best to give that role , if needed, to separate account form one used for desktop access
[12:37:52] <nikolam> yes, also Linus asked for something like that :)
[12:38:39] <nikolam> alternatively, one can start setting up roles with 'sudo users-admin'
July 28, 2016
This discussion relates to problems using the -m switch with useradd when creating new accounts.
[00:46:52] <d5end> hi. when I try to create a new user: "# useradd -m -s /bin/bash user1" I get the following error: UX: useradd: ERROR: Unable to create the home directory: Operation not applicable.
[00:48:14] <d5end> It was a bug related to this problem (issue 263) but it says it was fixed.
[00:52:24] <d5end> Well it seems it's still there
[08:29:45] <alp> d5end: so far we can't fix it properly, as home directories (/home/$user) are auto-mounted. useradd can't create directories on auto-mounted FS.
[08:36:09] <nikolam> It may be that using /export/home by default , without pointing to /home in any way, could resolve it? Still dunno why /home is there by default anyway, for some compatibility?

Snipped from mailing list late august, 2016 Describles how device_id's are used.

But, on my (other PC installed OI Hipster) in /usr/share/hwdata/pci.ids I can

see it:

     15b8  Ethernet Connection (2) I219-V

pci.ids is just a copy of the device id to name mappings table from

@makruger
makruger / mkdocs.md
Last active August 30, 2016 13:52
mkdocs install errors (Linux Mint 18)
mike@deskmini ~ $ pip install mkdocs
Collecting mkdocs
  Downloading mkdocs-0.15.3-py2.py3-none-any.whl (966kB)
    100% |████████████████████████████████| 972kB 883kB/s 
Collecting tornado>=4.1 (from mkdocs)
  Downloading tornado-4.4.1.tar.gz (456kB)
    100% |████████████████████████████████| 460kB 1.1MB/s 
    Complete output from command python setup.py egg_info:
@makruger
makruger / audio.md
Last active August 21, 2016 20:12
Early draft of audio section

ITEMS TO WRITE ABOUT:

  • How to use the gstreamer-properties configuration utility.
  • Pulse Audio configuration
  • Boomer

Resources to help with this section:

@makruger
makruger / test.xml
Created July 2, 2016 22:34
Working OpenIndiana Hipster (OI-hipster-gui-20160421.iso) on KVM [QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.24)]
<domain type='kvm' id='32'>
<name>test</name>
<uuid>8382c79b-b8bc-bb1b-7355-3b367753f16d</uuid>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f%3De.jQuery)%7C%7Cg>f.fn.jquery%7C%7Ch(f))%7Bc%3Da.createElement("script")%3Bc.type%3D"text/javascript"%3Bc.src%3D"//ajax.googleapis.com/ajax/libs/jquery/"%2Bg%2B"/jquery.min.js"%3Bc.onload%3Dc.onreadystatechange%3Dfunction()%7Bif(!b%26%26(!(d%3Dthis.readyState)%7C%7Cd%3D%3D"loaded"%7C%7Cd%3D%3D"complete"))%7Bh((f%3De.jQuery).noConflict(1),b%3D1)%3Bf(c).remove()%7D%7D%3Ba.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,"1.3.2",function(%24,L)%7Bif(%24(".bootswatcher")%5B0%5D)%7B%24(".bootswatcher").remove()%7Delse%7Bvar %24e%3D%24(%27<select class%3D"bootswatcher"><option>Cerulean</option><option>Cosmo</option><option>Cyborg</option><option>Darkly</option><option>Flatly</option><option>Journal</option><option>Lumen</option><option>Paper</option><option>Readable</option><option>Sandstone</option><option>Simplex</option><option>Slate</option><option>Spacelab</option><option>Superhero</option><option>United</option><option>Yeti</option></selec