Solaris NFSv4
um unter Solaris ein ZFS Dataset via NFS freizugeben reicht folgender Befehl aus:
zfs set sharenfs=ro=plex.intra.net,root=plex.intra.net data/oliver
ro kann dabei natürlich durch rw ersetzt werden. hinter den Parametern ro/rw/root kann man mit = IP/FQDN/@Subnet die Rechner eingrenzen die …
Laufwerke unter Mac OS X auf der Kommandozeile ein- und aushängen
Natürlich ist es am einfachsten, die Laufwerke über den Finder oder durch ziehen des Icons auf den Papierkorb auszuhängen. Manchmal möchte man dies aber auch von der Kommandozeile aus tun, z.B. wenn man in einem anderen Raum sitzt und per ssh eingeloggt ist oder das aushängen per Finder nicht …
ZFS ACLs setzen
/usr/bin/chmod -R A=group@:rwxpdDaARWcCos:fd:allow /data/transfer
alternativ:
/usr/bin/chmod -R A=owner@:full_set:fd:allow /data/transfer
Erklärung zu den Parametern:
- /usr/bin/chmod (nicht /usr/gnu/bin)
- -R = Rekursiv
- A = ACL
- = genau so, nicht hinzufügen (+) oder entziehen (-)
- group@ = aktuelle Gruppe (nicht durch Gruppennamen …
Serviio UPnP/DLNA Media Server on Openindiana
is searching in $InstallPath for a ffmpeg and dcraw binary. Those are needed for encoding (ffmpeg, essentially) and converting raw images (dcraw, optional).
Of course they cannot be found at $InstallPath so you need to pass an option to serviio to run. Open file serviio-1.2/bin/serviio.sh and …
zypper & rpm tricks
Finding all packages installed from one repository:
zypper se -i -r <Repo>
show all repos that providing a package (wp=what provides):
zypper wp <pkg>
Use following syntax to list the files for already INSTALLED package:
rpm -ql package-name
Use following syntax to list the files for RPM package …
Migrating rpool to smaller drive
There is a very good tutorial at:
http://virtuallyhyper.com/2012/08/migrating-the-root-zfs-pool-to-a-smaller-drive/
Just one addition: After creating the Slices (e.g. changing slice 0) don’t forget to run ‘label’ from the ‘format’ utility, otherwise your changes won’t be written!
You can find a PDF of the blog …
Set PATH environment for all users on Solaris
The $PATH variable can be changed for all users on your system by editing the “/etc/default/login” (for console and ssh login) and “/etc/default/su” (when using the “su -“command).
In this files search for PATH (normal users) and SUPATH (superusers) and edit the files to your needs …
Spinning down Hard Disks in Solaris 11 / Openindiana
Just add a few lines in the /etc/power.conf:
# device-thresholds
The PCI-IDs can be found by typing in “format”:
root@galactica ~ # format
Searching for disks…done …
vboxwebsrv on Solaris
You can use the inegrated vboxwebsrv from Virtualbox e.g. with phpVirtualbox or RemoteBox. Enableing it on Solaris is very easy you just have to set the username of your virtualbox user. This is done with the svccfg command, followed by a reload of the service:
svccfg -s svc:/application …
start a second Firefox Profile while running another
This is quite easy:
firefox -Profile ~/.mozilla/firefox/cyat0ucb.Home -no-remote &
where “-no-remote” means that a second instance of Firefox is started insted of just opening another windows of the old one.