SmartOS-ChangeLog

Just a little  note:

https://github.com/bahamas10/smartos-changelog

https://us-east.manta.joyent.com/Joyent_Dev/public/SmartOS/smartos.html

well done Dave Eddy !!

 

SmartOS-ChangeLog

ZeroShell 3.0 upgrade “in a hurry”

Hi,

you need to upgrade Zeroshell from RC3 to 3.0.0 inside Virtualbox 4.3.10.

1) download the new version of ZeroShell  ZeroShell-3.0.0-Disk-2GB.img.gz

2) gunzip the file …. and you have the file img

3) ???? How to convert img into vdi

4) VBoxManage convertfromraw

This command converts a raw disk image to a VirtualBox Disk Image (VDI) file.

The syntax is as follows:

VBoxManage convertfromraw <filename> <outputfile>
[--format VDI|VMDK|VHD]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--uuid <uuid>]

VBoxManage convertfromraw --format VDI ZeroShell-3.0.0-Disk-2GB.img ZeroShell-3.0.0-Disk-2GB.vdi

URRA !

5) unlink  the old  disk from   IDE  controller and add this new one.

6) add a new SCSI controller and link the old one disk ( where is your old profile )

ZS_UPGRADE

7)  boot the virtual machine and rescan/add the old profile

 

 

that’s all  !!!

 

 

Dad, why don’t find a work near me ?

:-(

Why OpenSource ?

Hi,

trouble this morning #The Heartbleed Bug   then this day THE solution.

On SmartOS freenode channel

21:04 < nahamu> 2013Q4 openssl-1.0.1fnb1 is available.
21:05 < nahamu> #heartbleed

 

pkgin install openssl
calculating dependencies... done.
1 packages to be upgraded: openssl-1.0.1enb2
2 packages to be removed: p5-Authen-SASL-2.16nb1 p5-GSSAPI-0.28nb4
1 packages to be installed: openssl-1.0.1fnb1 (3373K to download, 83K to install )
proceed ? [Y/n] Y
downloading packages...
openssl-1.0.1fnb1.tgz 100% 3373KB 421.6KB/s 632.5KB/s 00:08
removing packages to be upgraded...
removing p5-Authen-SASL-2.16nb1...
removing p5-GSSAPI-0.28nb4...
removing openssl-1.0.1enb2...
===========================================================================
The following directories are no longer being used by openssl-1.0.1enb2,
and they can be removed if no other packages are using them:
/opt/local/etc/openssl/certs
===========================================================================
pkg_install warnings: 0, errors: 0
installing packages...
installing openssl-1.0.1fnb1...
openssl-1.0.1fnb1: copying /opt/local/share/examples/openssl/openssl.cnf to /opt /local/etc/openssl/openssl.cnf
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
updating database: 100%
marking openssl-1.0.1fnb1 as non auto-removable

 

At last many thanks …  Richard Matthew Stallman 

Free As Freedom not Free as Beer

Samba4 Book

Hi,

if you don’t know  Samba4 and you want learn about “Opening Windows to Wired Word”  then you have to buy this book

“Implementing Samba4″  by Marcelo Leal.

 

Copertina

 

p.s.

So I know  what to buy next week …. plaese bank account +€€   :D

 

p.p.s.

I got it !!!!

Two monitor ONE program

Hi,

just fantastic !!!!!

<< Dual Monitor Tools is a software package for Windows user with dual or miltiple monitor setups. All the tools are open source and free, and each tool is independent so you need to install or run What You Want>>

 

http://dualmonitortool.sourceforge.net/

 

Dual

 

 

Samba4 on SmartOS

Hi,

some dirty notes about how to compile Samba4 on  a SmartOS “zones” .

this is my way to compile samba 4.1.5 on SmartOS (SunOS samba-dev 5.11 joyent_20140221T042147Z i86pc i386 i86pc Solaris)

- I don’t know more about pkgrsc so my way is  “obscure”   but you can learn more :

- Tom Schulz – [https://groups.google.com/forum/?hl=en-GB#!topic/linux.samba/UtEvaw4BP14]
[https://bugzilla.samba.org/show_bug.cgi?id=10261]

- J Perkins – http://pkgsrc.joyent.com/installing.html

1 – install smartOS :-)

2 – install a zone standard64 – 13.3.1

3 – follow the JP istruction to have on zone /content/pkgsrc/wip

4 – cd  /content/pkgsrc/wip/samba and run bmake install

5 – look the error :-(

6 – downlaod in /content di Python-2.7.6.tgz  and then tar -xzvf Python-2.7.6.tgz && cd Python-2.7.6 && ./configure –enable-shared –prefix=/opt/local && make && make  install

7  – downlaod  in /content samba-4.1.5.tar.gz  and then tar -xzvf samba-4.1.5.tar.gz && cd samba-4.1.5

8 -  patch ( thanks Tom) the file  /content/samba-4.1.5/lib/replace/wscript
#############################################################################################
529     #if conf.CHECK_CFLAGS(‘-fvisibility=hidden’):
530     #    conf.env.VISIBILITY_CFLAGS = ‘-fvisibility=hidden’
531     #    conf.CHECK_CODE(”’void vis_foo1(void) {}
532     ##                       __attribute__((visibility(“default”))) void vis_foo2(void) {}”’,
533     #                    cflags=conf.env.VISIBILITY_CFLAGS,
534     #                    define=’HAVE_VISIBILITY_ATTR’)
535     ##############################################################################################

9  ./configure –prefix=/opt/local/samba && make && make install

10 – add into .profile on PATH=XXXXXX:/opt/local/samba/sbin:/opt/local/samba/bin
11  – reload .profile

12 – samba-tool domain provision –use-ntvfs –use-rfc2307 –interactive

…..

13-  add /opt/local/samba/private/krb5.conf to /etc/krb5/krb5.conf

14     Urra !!!
[root@samba-dev ~]# samba -i -M single
samba version 4.1.5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
samba: using ‘single’ process model

14 -
[root@samba-dev /opt/local/samba]# samba -b
Samba version: 4.1.5
Build environment:
Build host:  SunOS samba-dev 5.11 joyent_20140221T042147Z i86pc i386 i86pc Solaris
Paths:
BINDIR: /opt/local/samba/bin
SBINDIR: /opt/local/samba/sbin
CONFIGFILE: /opt/local/samba/etc/smb.conf
NCALRPCDIR: /opt/local/samba/var/run/ncalrpc
LOGFILEBASE: /opt/local/samba/var
LMHOSTSFILE: /opt/local/samba/etc/lmhosts
DATADIR: /opt/local/samba/share
MODULESDIR: /opt/local/samba/lib
LOCKDIR: /opt/local/samba/var/lock
STATEDIR: /opt/local/samba/var/locks
CACHEDIR: /opt/local/samba/var/cache
PIDDIR: /opt/local/samba/var/run
PRIVATE_DIR: /opt/local/samba/private
CODEPAGEDIR: /opt/local/samba/share/codepages
SETUPDIR: /opt/local/samba/share/setup
WINBINDD_SOCKET_DIR: /opt/local/samba/var/run/winbindd
WINBINDD_PRIVILEGED_SOCKET_DIR: /opt/local/samba/var/lib/winbindd_privileged
NTP_SIGND_SOCKET_DIR: /opt/local/samba/var/lib/ntp_signd
[root@samba-dev /opt/local/samba]#

 

 

UPDATE: after more test

At last the trick to compile and install samba4.1.6 on SmartOS zone are

-python 2.7.6 from source

and then

- export CFLAGS=”-I/opt/local/include”

- export LDFLAGS=”-R/opt/local/samba4/lib:/opt/local/samba4/lib/private -L/opt/local/lib”
./configure –jobs=8 –prefix=/opt/local/samba4

:D

As suggested by Thomas Schulz +1

https://groups.google.com/forum/?hl=en-GB#!topic/linux.samba/mFw731RyqEQ

 

man dladm on SmartOS

Hi,

I was playing with SmartOS  …… no I was learning  SmartOS   when I miss the mac address of the new e1000g1 added to virtual machine  with  Vmware workstation ….. VirtualBox doesn’t support nested VT-x   :-(

[root@00-50-56-25-32-20 ~]# sysinfo -p | grep vmx
CPU_Virtualization=’vmx’

 

VMX_NO_Virtualbox_VMX_YES_VMWARE

then

[root@00-50-56-25-32-20 ~]# dladm show-phys

LINK MEDIA STATE SPEED DUPLEX DEVICE
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet up 1000 full e1000g1

and then man dladm

 

SYNOPSIS
…..
dladm show-phys [-P] [-m] [[-p] -o field[,...]] [-H] [phys-link]

dladm show-phys [-P] ????? [[-p] -o field[,...]] [-H] [phys-link]

Show the physical device and attributes of all physical
links, or of the named physical link. Without -P, only physi-
cal links that are available on the running system are
displayed.
….
….
You have to read ALL man and then on

dladm create-vnic [-t] -l link [-R root-dir] [-m value | auto |
{factory [-n slot-identifier]} | {random [-r prefix]}] [-v vlan-
id] [-p prop=value[,...]] vnic-link


-m value | keyword, –mac-address=value | keyword
Sets the VNIC’s MAC address based on the specified value
or keyword. If value is not a keyword, it is interpreted
as a unicast MAC address, which must be valid for the
underlying NIC. The following special keywords can be
used:

factory [-n slot-identifier],
factory [--slot=slot-identifier]

Assign a factory MAC address to the VNIC. When a fac-
tory MAC address is requested, -m can be combined
with the -n option to specify a MAC address slot to
be used. If -n is not specified, the system will
choose the next available factory MAC address. The -m
option of the show-phys subcommand can be used to
display the list of factory MAC addresses, their slot
identifiers, and their availability.

 

 

[root@00-50-56-25-32-20 ~]# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet up 1000 full e1000g1

[root@00-50-56-25-32-20 ~]# dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
e1000g0 primary 0:50:56:25:32:20 yes e1000g0
e1000g1 primary 0:c:29:c9:56:42 yes e1000g1
[root@00-50-56-25-32-20 ~]#

 

Some notes

http://src.illumos.org/source/xref/illumos-gate/usr/src/man/man1m/dladm.1m

https://www.illumos.org/issues/2057

Ciao Antonio

:-(

 

 

Hello world by SmartOS

[Connected to zone 'c07319b3-9a3b-4baa-84f6-cbe9aa0ceb46' pts/3]
 Last login: Tue Dec  3 22:18:16 on pts/3
 __        .                   .
 _|  |_      | .-. .  . .-. :--. |-
 |_    _|     ;|   ||  |(.-' |  | |
 |__|   `--'  `-' `;-| `-' '  ' `-'
 /  ; Instance (base64 13.2.1)
 `-'  http://wiki.joyent.com/jpc2/SmartMachine+Base