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 non 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

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

 

 

Un caro saluto prof

Franco Selleri

(Easy Link: http://www.worldsci.org/people/Franco_Selleri)

 

new English “idioma”

second_Name :-(

Performance tools analysis: htop

Hi,

more of us have a terrible headache when someone ask: please check the performance please ?

So the first idea is : why I don’t have dtrace on  my Gnu/Linux, and then “googling” dtrace4linux  [ https://github.com/dtrace4linux/linux ] but I have to build with toolchain, add some extra packages for building DTrace.

Your customer is standing in front of you, too and his face is more black that pink :-(

Idea!!!!  There is a new book “Systems Performance Enterprise and the cloud“  of the master chief ” Brendan Gregg“  but is not on my table ;-(

… The customer is always there … just a moment but I can use the standard tool like iostat, sar , top … but I on his (Gregg) blog there is “The USE Method” and some video and talks  about performance on Linux  I hear “htop” ….

http://htop.sourceforge.net/

 htop – an interactive process viewer for Linux

htop-1.0-screenshot

 

Eureca I have a solution !!!

But  first thanks to Hisham Muhammad and his Code contributors  and as always to  GCC and his father RMS

Now:

just to install from source

wget source-htop-1-02 
tar xzvf source-htop-1-02.tar.gz
configure 
make
# as root
make install

or from epel repository

# as root
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-XXX-XXX.noarch.rpm
yum install htop

where XXX is the current release of epel

 

Is amazing tool and please start two shell,  one with htop and other one  with man htop,  only in this way you can understand the powerful of tool.

htop (1)
DESCRIPTION
Htop is a free (GPL) ncurses-based process viewer for Linux.
It is similar to top, but allows you to scroll vertically and
horizontally, so you can see all the processes
running on the system, along with their full command lines.
Tasks related to processes (killing, renicing) can be done without entering their PIDs.

INTERACTIVE COMMANDS
The following commands are supported while in htop:

Arrows, PgUP, PgDn, Home, End
  Scroll the process list.

Space
  Tag or untag a process. Commands that can operate on multiple processes, like "kill", will then apply over the list of  tagged  pro-
  cesses, instead of the currently highlighted one.

U    Untag all processes (remove all tags added with the Space key).

s    Trace  process system calls: if strace(1) is installed, pressing this key will attach it to the 
      currently selected process, presenting a live update of system calls issued by the process.

l    Display open files for a process: if lsof(1) is installed, pressing this key will display the
     list of file descriptors opened by the process.

F1, h, ?
            Go to the help screen

F2, S
            Go  to  the setup screen, where you can configure the meters displayed at the top of the screen, set various display options, choose
            among color schemes, and select which columns are displayed, in which order.

F3, /
            Incrementally search the command lines of all the displayed processes. The currently selected (highlighted) command will  update  as
            you type. While in search mode, pressing F3 will cycle through matching occurrences.

F4, \
            Incremental  process filtering: type in part of a process command line and only processes whose names match will be shown. To cancel
            filtering, enter the Filter option again and press Esc.
F5, t
            Tree view: organize processes by parenthood, and layout the relations between them as a tree. Toggling the key will  switch  between
            tree and your previously selected sort view. Selecting a sort view will exit tree view.
F6, <, >
            Select a field for sorting. The current sort field is indicated by a highlight in the header.

F7, ]
            Increase the selected processâs priority (subtract from âniceâ value).  This can only be done by the superuser.
F8, [
            Decrease the selected processâs priority (add to âniceâ value)

F9, k
            "Kill" process: sends a signal which is selected in a menu, to one or a group of processes. If processes were tagged, sends the sig-
            nal to all tagged processes.  If none is tagged, sends to the currently selected process.

F10, q
            Quit

I    Invert the sort order: if sort order is increasing, switch to decreasing, and vice-versa.

+, - When in tree view mode, expand or collapse subtree. When a subtree is collapsed a "+" sign shows to the left of the process name.
a (on multiprocessor machines)
            Set CPU affinity: mark which CPUs a process is allowed to use.

u    Show only processes owned by a specified user.

M    Sort by memory usage (top compatibility key).

P    Sort by processor usage (top compatibility key).

T    Sort by time (top compatibility key).

F    "Follow" process: if the sort order causes the currently selected process to move in the list, make the  selection  bar  follow  it.
            This  is  useful  for  monitoring a process: this way, you can keep a process always visible on screen. When a movement key is used,
            "follow" loses effect.
K    Hide kernel threads: prevent the threads belonging the kernel to be displayed in the process list. (This is a toggle key.)

H    Hide user threads: on systems that represent them differently than ordinary processes (such as recent NPTL-based systems), this  can
            hide threads from userspace processes in the process list. (This is a toggle key.)

Ctrl-L
            Refresh: redraw screen and recalculate values.

Numbers
            PID search: type in process ID and the selection highlight will be moved to it.

 

In my experience after some test you have a bulb of light  in darkness of performance

But if you need more please install lsof(1) and strace(1) so you can get more from s or l tag in htop

 

ps.

I’m still learning English so be mild ;-)