Showing posts with label openindiana. Show all posts
Showing posts with label openindiana. Show all posts

Wednesday, March 19, 2014

Openindiana: "tree connect failed: syserr = No such file or directory"

I was trying to mount a CIFS (Samba) share from an Openindiana host,
 
-bash-4.0# mount -F smbfs //user:password@networkserver.my.domain/share /mnt/samba

I got this error

mount: //networkserver.my.domain/share: tree connect failed: syserr = No such file or directory

To solve this, I had to restart the samba client service.

svcadm restart svc:/network/smb/client:default

Monday, February 3, 2014

Map sd names to Solaris disk names

Map sd names to Solaris (SmartOS, Openindiana) disk names

paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}')

https://stackoverflow.com/questions/555427/map-sd-sdd-names-to-solaris-disk-names

Tuesday, January 29, 2013

batch convert dv to avi xvid using ffmpeg

I am using Openindiana.

find bk/Video -type f -exec ~/mmpeg.sh {} \;

The mmpeg.sh script is based on sandipb script.
(Some variables may be unuseful).

https://github.com/alcir/mystuff/blob/master/mmpeg.sh

The converted files will go in /media/003-9VT166/converted/ directory using as name the full path starting from where find was launched.

So, the file
./bk/Video/2012_12/video01.dv
will become
/media/003-9VT166/converted/bk_Video_2012_12_video01.avi 

Please note: I had no time to handle spaces in file names.

Openindiana: install ffmpeg

pfexec pkg set-publisher -p http://pkg.openindiana.org/sfe
pfexec pkg set-publisher -p http://pkg.openindiana.org/sfe-encumbered
pfexec pkg install ffmpeg

Friday, November 23, 2012

openindiana, virtualbox and bridged network

openindiana, virtualbox and bridged network

As far I can see, there are problems assigning the physical guest interface (i.e. igb0) to the bridged virtualbox VM network interface.



To avoid problems (i.e. the virtual machine hangs), you must first create a vnic

dladm create-vnic -l igb0 vnic0

... but ... it is not sufficient: you must assign the MAC address of the vnic to the bridged network interface of the VM

dladm show-vnic
LINK         OVER    SPEED  MACADDRESS        MACADDRTYPE    VID
vnic0        igb0    1000   2:8:20:68:25:9b   random    0



If you don't assign the vnic MAC address to the VM network adapter, simply the VM networking doesn't work.

Friday, August 17, 2012

openindiana zfs nfs share root

Server

sharectl set -p nfsmapid_domain=your.domain nfs

zfs create rpool/nfsshare

zfs set sharenfs=rw,root=client.your.domain  rpool/nfsshare

sharectl get nfs

dfshares


Client

sharectl set -p nfsmapid_domain=your.domain

mount -F nfs -overs=4,rw server.your.domain:/mnt/nfsshare /mnt/nfs


Note

root=client.your.domain

if I use the IP address it doesn't work (?)



nfs mount: mount: /mnt/nfs: Permission denied
touch: cannot create /mnt/nfs/aaa: Permission denied

Monday, August 13, 2012

Openindiana: Too many authentication failures

From an Openindiana host, and connecting to some Linux hosts, often I receive this error from the ssh client

Received disconnect from 10.11.12.13: 2: Too many authentication failures for yourfuckingusername

The fact is that ssh try to first authenticate using keys, and if you have many keys he tries every one of them, so... maybe the server or the Openindiana (I've never seen this problem on Mac OS X, in example) ssh command exit after two or three failed keys authentication.

The solution is to use PubkeyAuthentication options in the ssh command

ssh -oPubkeyAuthentication=no 10.11.12.13

Or to edit ~/.ssh/conf file

Host 10.11.12.13
    PubkeyAuthentication=no

Install additional fonts (like Arial) in Openoffice

Download webfonts form http://www.freedesktop.org/software/fontconfig/webfonts/

Unpack it

Open each desired font file (like arial32.exe) with Archive Manager and extract font files to a temp directory.

Select all desired TTF files and open them with Font viewer.

In the bottom right of the application window, click on "Install Font"

Files will be copied under ~/.fonts/ directory.

Then, use Openoffice "Printer Administration" to add new fonts.
Files will be placed under ~/.openoffice.org/3/user/fonts