The ups and downs of a Sun engineer in a Microsoft world.

Thursday, October 23, 2008

Getting Samba to work with Solaris 8 ... part 1

Lets have some more fun!

Problem:
My NAS, FreeNAS running on a 1.5G P3 with 512Mb of memory, can not be seen by my SPARCUltra2 server, running Solaris 8, both are behind my firewall, and my FreeNAS(192.168.10.133) box is on a NAT with my other office boxes. So one way is to port forward my NAS to it's public address, then have my SPARCUltra2 server read from my NAS.

Solution #1:

well I lazy, like all system admins these days, so I figured that the fastest way to get Samba running was to graba package from www.sunfreeware.com. Next thing is to install the package with the following:

# pkgadd -d /usr/local/src/samba-3.0.25a-sol8-sparc-local

then being realy lazy I checked the web for the installation.....
edited etc/services
And he said: "Immediately after the line which reads:
 sunrpc  111/tcp  rpcbind

insert the two lines:

 netbios-ns      137/udp  # Samba nmbd
netbios-ssn 139/tcp # Samba smbd

and, after the line which reads:

 ldaps  636/udp  # LDAP protocol over TLS/SSL (was sldap)

insert the line:

 swat   901/tcp  # Samba swat"

Now edit inetd.conf and add the following three lines to the end of the file:


netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd
netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd
swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat"

I'll tell you right off the bat that doesn't work!
re-edit the three lines inetd.conf and where there is /usr/local/samba/bin change them to:
/usr/local/samba/sbin (don't they love to move files around between releases!)

This still didn't work though, so when we go to the /usr/local/samba/sbin directory and execute any of the files with
# ./swat
ld.so.1: ./swat: fatal: libintl.so.8: open failed: no such file or directory.
All three programs crash with a library problem which I don't have time to deal with now:
More later - CA Harrison.



Sunday, July 6, 2008

Trials & Tribulations in replacing my XP desktop 3

Well here we are again... I just might have a solution for my desktop (light at the end of the tunnel)?? Ok I just got a Tutung box it's a dual 750mhz U3 like my (Sunblade 1000 server) , the plan is to shove in 2 nice video cards and then the Sun pci-pc so I can run my Skype crap on it in a native XP system and I don't even have to emulate anything.
I just started the download for Solaris 10, nope not the free shit, not the open stuff, but just the same old Solaris 1o that I will be putting on my new Sunblade 1000 server.

Saturday, June 14, 2008

Trials & Tribulations in replacing my XP desktop 2

Ok here I am again this time were going to try an load Nexenta... Ok downloaded the Nexenta Core Platform (Elatte_Release) ISO stuck it in my P4 and guess what it would not load what else can I say Back to XP for a while... FORMAT!!

Wednesday, May 28, 2008

Trials & Tribulations in replacing my XP desktop 1

Well I have been using Solaris since 2.x and SunOS before.. Just call me a Sun bigot! That is in my server space. I have currently a pair of Ultra 2, with dual 400Mhz cpus, running my web server, and db servers, just very happy with Solaris 8. I have a pair of SunBlade1000 that will replace them though (750Mhz U3).
Unfortunately, I talk out of the other side of my mouth for my desktop. Well my office desktop with two monitors, XP service pack 2, Skype and what not was getting a they say just a little buggy, like 10-20 seconds for the ok box to come up when you wanted to save something like a photo. Just for you that have to know it was a:
  • Intel 3.8Ghz Dual Core Cpu
  • 1Gb Memory
  • Intel D875PBZ motherboard
  • Matrox Millennium P650 Dual head Video Card (2 Sun 21" Monitors)
  • Creative Labs Audio Card
  • 3Com 10/100 Network Card
So being a glutton for punishment I started on my quest to replace my XP office OS with a open source OS.

Ok so I downloaded the new Opensolaris, and installed it. Very impressive quick no problem install (I though). First thing that I have to do is assign my IP address, etc to the box. That only took 2-3 hrs. Well out of the box its a DHCP and you DON'T HAVE A CHOICE! ( As we used to say you can't get here from here.)

It turns out that you have to disable Network Auto Magic service (NWAM) and enable traditional networking service

svcadm enable physical:default
svcadm disable physical:nwam

Got that done.

So now I tried in vain to log in as root to configure the system (from the console) ... that right no joy.. they had it set to a role... Like I'm trying to get away from XP/NT etc. and back to my comfort zone.

rolemod -K type=normal root

That was last night, Oh just give me back my Open Window (Solaris 2.5), I just go fed up and said lets look a Nexenta maybe they did a better job. FORMAT!