Tuesday Apr 17, 2012

Remote Desktop from Solaris to Windows

Building rdesktop on Solaris 10

[Read More]

Sunday Jan 09, 2011


I've upgraded my laptop to the latest Oracle Solaris 11 Express (snv_151a X86) and at a first glance, I've to say that seems a good step forward respect to my previous OpenSolaris... but ... Like all good nerds, I was exploring the new system, playing with configurations and installing the typical nerd software I need, while I stumbled on a process (eating a lot of CPU and RAM): /usr/bin/trackerd that I've never seen on my previous OpenSolaris installation...
Nothing special, is not a virus or an E.T.: is just the default GNOME indexing/tracking tool that from this release is installed and enabled by default:

root-AT-vesuvio:~# pkg info tracker
          Name: library/desktop/search/tracker
       Summary: Desktop search tool
   Description: Desktop search tool
      Category: Applications/System Utilities
         State: Installed
     Publisher: solaris
       Version: 0.5-DOT-11
 Build Release: 5.11
Packaging Date: Fri Nov 05 05:52:57 2010
          Size: 3.09 MB
          FMRI: pkg://solaris/library/desktop/search/tracker@0.5.11,5.11-

Since I'm very conscious about my CPU clock cycles/RAM bits, and my nerd software doesn't like CPU/MEM spikes that could be easily triggered from that software I simply removed the package:

root@vesuvio:~# pkg uninstall tracker
                Packages to remove:     1
           Create boot environment:    No
               Services to restart:     2
PHASE                                        ACTIONS
Removal Phase                                373/373

PHASE                                          ITEMS
Package State Update Phase                       1/1
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2

I admit that this solution may sound a bit 'extreme', but I really don't like/use this piece of software. I do not like that kind of programs running in background, browsing and crawling the directories of your HD to index the content of your documents, pictures, emails etc. This could be a nice feature to have on an average end-user desktop/station, not for a laptop that I mainly use as my nerd-lab test bench ;-)

People interested in using this tool can find plenty of ways of throttling down the CPU/MEM resources, excluding directories or assigning specific paths to monitor, etc...

  • Tracker Project home page on GNOME

  • HOWTO that explains how to customize the tracker daemon behaviour

Monday May 31, 2010

Sun ... set.

I had a dream. It has been great, it has been fun: it has been SUN.

Now the Oracle says: ... ibis ... redibis ... non ... morieris in bello

[... you shall go ... you shall return ... not ... die in the war]

Our job will to place a comma in the right place be to have the correct sentence.

Kick butts and have fun!

Sunnies! ;-)

Thursday May 07, 2009

Make X listen on external TCP ports (Solaris and OpenSolaris)

In Solaris 10 and OpenSolaris X Server is enabled per default and controlled via SMF (Service Management Facility):

# ps -aef | grep Xsun
root 4767 4764 0 15:10:44 ? 0:01
/usr/openwin/bin/Xsun :0 -defdepth 24 -nolisten tcp -nobanner -auth

# svcs -xv cde-login

svc:/application/graphical-login/cde-login:default (CDE login)

State: online since Thu May 07 15:10:43 2009

See: man -M /usr/dt/share/man -s 1 dtlogin

See: /var/svc/log/application-graphical-login-cde-login:default.log

Impact: None.


The default installation doesn't makes the X Server listen on the TCP port:

# netstat -naf inet | grep 6000


and this is indeed a noticeable security feature, but sometimes it's
also useful having the X Server available and responsive on TCP.

X properties are defined in the /application/x11/x11-server service;
and we can see all the properties with the following command:

# svccfg -s /application/x11/x11-server listprop
options                       application
options/default_depth         integer  24
options/server                astring  /usr/openwin/bin/Xsun
options/server_args           astring
options/stability             astring  Evolving
options/value_authorization   astring  solaris.smf.manage.x11
options/tcp_listen            boolean  false
fs-local                      dependency
fs-local/entities             fmri     svc:/system/filesystem/local
fs-local/grouping             astring  require_all
fs-local/restart_on           astring  none
fs-local/type                 astring  service
network-service               dependency
network-service/entities      fmri     svc:/network/service
network-service/grouping      astring  require_all
network-service/restart_on    astring  none
network-service/type          astring  service
name-services                 dependency
name-services/entities        fmri     svc:/milestone/name-services
name-services/grouping        astring  require_all
name-services/restart_on      astring  refresh
name-services/type            astring  service
general                       framework
general/action_authorization  astring  solaris.smf.manage.x11
general/entity_stability      astring  Evolving
start                         method
start/exec                    astring  "/lib/svc/method/x11-server -d 0 -c %i %m"
start/timeout_seconds         count    0
start/type                    astring  method
stop                          method
stop/exec                     astring  ":kill -TERM"
stop/timeout_seconds          count    10
stop/type                     astring  method
tm_common_name                template
tm_common_name/C              ustring  "X Window System server"
tm_man_Xserver                template
tm_man_Xserver/manpath        astring  /usr/openwin/share/man
tm_man_Xserver/section        astring  1
tm_man_Xserver/title          astring  Xserver
tm_man_Xsun                   template
tm_man_Xsun/manpath           astring  /usr/openwin/share/man
tm_man_Xsun/section           astring  1
tm_man_Xsun/title             astring  Xsun
tm_man_Xorg                   template
tm_man_Xorg/manpath           astring  /usr/X11/share/man
tm_man_Xorg/section           astring  1
tm_man_Xorg/title             astring  Xorg

In particular the switch that controls whether or not the X server has to listen on the TCP is:

# svccfg -s /application/x11/x11-server listprop options/tcp_listen

options/tcp_listen boolean false


So in this case we would like to enable with the following command:

# svccfg -s svc:/application/x11/x11-server setprop options/tcp_listen = true

# svccfg -s /application/x11/x11-server listprop options/tcp_listen

options/tcp_listen boolean true


and stop/start the cde-login service to make the change effective:

# svcadm disable cde-login

# svcadm enable cde-login

and now we see the different behaviour:

# ps -aef | grep Xsun

root 4844 4834 1 15:22:07 ? 0:00 /usr/openwin/bin/Xsun :0 -defdepth 24 -nobanner -auth /var/dt/A:0-N_aqCj


and also that the service is listening on the tcp port:

# netstat -naf inet | grep 6000

\*.6000 \*.\* 0 0 49152 0 LISTEN

\*.6000 \*.\* 0 0 49152 0 LISTEN


now it displays that the server is listening also on the TCP port 6000, and we can connect to X from outside.

Thursday Nov 13, 2008

Two years @Sun.COM

After our new product launch, I believe this wonderful system is another tool added to our already vast portfolio of products we can sell to customers. But I'm still convinced that customers would better buy not only wonderful products (hopefully ours). Product themselves may not be enough.

Sun may have the very best the market can offer at a given moment in time, but sooner or later there could always be someone else with a better idea: that's life, that's part of the game.

So, we (SUN) must make the difference!

This difference could be providing customers with complete solutions, bottom-up services. We should not only provide the hardware bricks, but also expertise, skills, guidance and leadership to build Customer's infrastructure... I don't wanna be only "another brick in the wall". I would like that Customers, before making their own decisions ask Sun for ideas, because they trust us as technological partners and as people.


Marco Milo


« April 2014