June 12, 2009
Solaris Admin
No Comments
All thanks to camelrichard for this one: http://www.camelrichard.org/topics/Solaris/Directing_Solaris_Tar_to_Extract_to_Current_Directory
If a tarball includes the full path, use the following command to extract
it to the current directory instead of the full path:
pax -rv -f filename.tar -s ',^/,,'
or
pax -rv -s /^/./ -f <filename>.tar
June 3, 2009
Solaris Admin
No Comments
Required this information today, thought it was useful enough to write down.
Ga: 01/05
U1: 01/06
U2 06/06
U3 11/06
U4 08/07
U5 05/08
U6 10/08
U7 05/09
Solaris 10 just keeps getting better.
April 2, 2009
Solaris Online
2 Comments
if you go to http://www.sunfreeware.com/programlistsparc10.html#samba for a newer version of Samba you will be sorely disappointed. I didn’t want to use the aging default version that comes with Solaris but could not use the newer one from Sunfreeware either:
heineken:/usr/local/samba/sbin # ./smbd start
ld.so.1: smbd: fatal: libtalloc.so: open failed: No such file or directory
Killed
A bit of googling confirmed this is a known error, i could not fix it using some so-called ‘fixes’ i found so i am going to attempt compiling it myself. I haven’t compiled for years. Don’t like it and always try to find a binary, even if it is older than the source code available.
I downloaded the source code from http://us3.samba.org/samba/ftp and found a source code compile manual at http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html#id2680945.
Anyway, here goes.
heineken:/datawarehouse/samba-3.3.3/source # ./configure
SAMBA VERSION: 3.3.3
…
…
config.status: executing mk-stdbool.h commands
What do you know, no errors. Next is the make command:
heineken:/datawarehouse/samba-3.3.3/source # /usr/ccs/bin/make
Using FLAGS = -O -O -D_SAMBA_BUILD_=3 -I/datawarehouse
…
…
ld: warning: option -o appears more than once, first setting taken
Now to install the binary and man pages:
heineken:/datawarehouse/samba-3.3.3/source # /usr/ccs/bin/make install
Using FLAGS = -O -O -D_SAMBA_BUILD_=3 -I/datawarehouse
…
…
or “make uninstallmo” to remove them.
heineken:/datawarehouse/samba-3.3.3/source # cd /usr/local/samba/sbin
heineken:/usr/local/samba/sbin # ./smbd -V
Version 3.3.3
So there you go, compiling Samba myself was done without a single problem. Now just have to configure Samba which is easily done. The smb.conf file lives at the original location of /etc/sfw/smb.conf.
To start the daemons:
heineken:/usr/local/samba/sbin ./nmbd start
heineken:/usr/local/samba/sbin ./smbd start
I will look at creating a manifest around these commands so i can just run svcadm enable samba.
April 2, 2009
Solaris ZFS
No Comments
If you are performing a clean install of Solaris 10 U6 (10/08) and want to install ZFS root and want to use the graphical installation program you need to boot the system in text mode: boot cdrom - text or boot net - text.