Internet, UNIX, Video, Leisure…
Solaris
Darwin Streaming Server (DSS) 6.0.3, on Solaris 10
27/05/08

DSS 6.0.3 is out ! Check this out at http://dss.macosforge.org/
I’m not sure what this new version brings, few things seems to have changed. I hope for the best..
They claim to be 64 bits compatible on OsX, with some speed up changes. Don’t know what this will bring on Solaris or Linux.
Whatever, this version will not compile out of the tar.
Sverker Abrahamsson have made a patch for Linux here.
He also provide a pre-patched source code there.
This will not compile on Solaris 10
So here are 2 patches for Solaris 10. I compiled using the coolthread Sun GCC, but it should be OK with whatever GCC you use.
Note that I had to so something dirty with the Timezone detection, and I still don’t know what the impact can be on a production server. I’ll come back here if I see any trouble one on production.
I also have few errors (warnings, in fact), that should be OK when running but detected by the pre-processor :
RTCPUtilitiesLib/RTCPAPPNADUPacket.h: In destructor `NaduList::~NaduList()':
RTCPUtilitiesLib/RTCPAPPNADUPacket.h:205: warning: comparison between signed and unsigned integer expressions
FYI, I’m not using DSS on production right now, and DSS 6 will have to be heavily tested before it is validated.
So…
[EDIT]
Thanks to Stefan Parvu, I added in the patch the Solaris x86 things. So DSS now also compile on it (tested on Sun Fire X4100 Server with AMD Opteron(tm) Processor – gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath))
[EDIT]
- dss-603-orig-to-solaris10-v3patch.gz
Use this patch if you just download the plain source.
gunzip the patch.
untar the DSS source code and rename the directory « DarwinStreamingSrvr6.0.3-Source-Solaris10″.
At the same level as the source directory, use « patch < dss-603-orig-to-solaris10-v3patch".
go inside the DSS directory, then use « ./buildtarball 6.0.3 » to compile it.
Your install package will be in something like DarwinStreamingSrvr6.0.3-SunOS.tar.gz - dss-603-linux-to-solaris-v2.patch
Use this if you start from the modified source code for Linux, provided by Sverker. Compile it the same way as above.
Then, Copy the tar file on your production server, untar it, and use the « ./Install » script for install in /usr/local.
I’m working on a modified installer script where you can change the root installation dir. Soon to come…
ISC Dhcpd and failover shutdown
16/04/08
As I was trying to install a ISC DHCP server with failover I just find out… nothing !
Of course many people are talking about how to set up a DHCP server… like :
apt-get dhcpd
server dhcpd start
And that’s it.
I do need more, first because I work on Solaris (10) and because, heh, I’m not doing basic stuffs.
Lire la suite de l’article »
Autoconf, aclocal and libtool on Solaris 10
20/03/08
I was just trying to compile le latest Icecast from SVN on Solaris 10 Sparc, and reached a lot of troubles with automake.
Aclocal was complaining not having the libtool macro.
On this host we have a special folder with every tools, /opt/tools :
apr-util-1.2.8 coreutils-5.94 grep-2.5.1a libshout-2.2.2 neon rsync-2.6.8 tcpdump-3.9.4
IQ-300-SOL.tar.Z ase1254sol64 gcc icecast-2.3.1 libtool-1.5.24 neon-0.26.2 subversion tcpflow
apr autoconf-2.60 gcc-4.0.3 lame-3.96.1 lsof openserver-12.5.1-x86 subversion-1.4.2 tcpflow-0.21
apr-1.2.8 automake-1.10 gcc-coolthreads libpcap lsof-4.77-64-100606-sparc pushconfig sybase vim
apr-util coreutils grep libpcap-0.9.4 ncurses-5.5 rsync tcpdump vim-7.0.017
CoolStack 1.2 IS OUT !!
16/11/07
Coolstack is a bundeled package of Opensource applications optimized for Sun’s T1 hardware. More infos on CoolToolswebsite.The last version (1.1) was born « old », with only outdated packages.The new one, 1.2, comes with almost all latest versions :
- Apache version upgraded to 2.2.6. Added mod_fcgid-2.2, mod_jk-1.2.25, mod_proxy, SMF support.
- PHP version upgraded to 5.2.4. Configure and compiler options changed. Added dtrace extension, FastCGI support. Added a configuration script, setup-ws7-php.sh for use with Sun Web Server 7.0. Default location of php.ini is now in /opt/coolstack/php5/etc irrespective of whether you’re using mod_php, php binary or php-cgi.
- APC version upgraded to 3.0.14.
- gmp library compiler optimization level changed from -fast to -xO4.
- openldap CFLAGS now includes -D_AVL_H_.
- MySQL version upgraded to 5.0.45. Compiler optimization flags changed, added support for ndbcluster and Solaris SMF support.
- Memcached version upgraded to 1.2.2. libevent version upgraded to 1.3d along with some patches which are now in 1.3e. Changed compiler flags to include « -mt » and remove « -xipo » (memcached only).
- Squid version upgraded to 2.6.16. Added SMF support.
- Tomcat version upgraded to 5.5.23. Added SMF support. Tomcat now installs in /opt/coolstack/tomcat.
- Ruby version upgraded to 1.8.6, rails to 1.2.3.
- Added lighttpd 1.4.18.
- Perl extensions DBI-1.59, DBD-mysql-4.005 and Sys-Syslog-0.18 have been added, DB_File removed.
- Added pcre-7.1 as part of CSKruntime package. Currently used by lighttpd only.
Check it out here. Let’s have a try before the Week-end time comes
Finding a Sun Hardware serial number
22/10/07
Every time you call the Sun support, they ask for the serial number of the host you’re calling for. As usual, you go to your wiki page and all you get is the Account number. DAMN !!
Of course you can have the serial number from the ALOM/ILOM. But what if you are already logged and too lazy to open a new connection to it ?
There comes the IPMItool.
On solaris 10, use « /usr/sfw/bin/ipmitool »
You can have almost everything you have in the ALOM. You can GET values (like the CPU temp) and also SET values.
Get back to our Support problem. The Serial number. It is hidden in the « fru » parameter. Be carefull, you’ll get tons of serial number.
The right one is the « Product Serial » of the « Rack Mount Chassis » :
FRU Device Description : mb.fru (ID 4)
Chassis Type : Rack Mount Chassis
Chassis Part Number : 541-4444-44
Chassis Serial : UNKNOWN
Board Product : ASSY,MOTHERBOARD,X4100 M2
Board Serial : 1005LCB-444444444
Board Part Number : 501-4444-01
Board Extra : 50
Board Extra : G1F_MB
Product Manufacturer : SUN MICROSYSTEMS
Product Name : SUN FIRE X4100 M2
Product Part Number : 602-4444-01
Product Serial : 4444AL44AA <-------------------- here
Playing with SNMP Mibs
10/10/07
First, get a look at this site, offering a large compilation of mibs : http://www.oidview.com/mibs/detail.html
Find your equipment dealer, click on its name then chose to download the ASN.1 zip file. It will contail every mib file you choosed.
Thanks !!
Then, if you are running Solaris, copy the mibs file to /etc/sma/snmp/mibs
Then, when doing your snmpwalk, use the « -m all » option to use all of the mibs files :
$ snmpwalk -m all -v2c -c public mlx1- 1.3.6.1.4.1.1991.1.1.1.1 FOUNDRY-SN-AGENT-MIB::snChasSerNum.0 = STRING: "QSFDSF444" FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyStatus.0 = INTEGER: 268 FOUNDRY-SN-AGENT-MIB::snChasFanStatus.0 = INTEGER: 24 FOUNDRY-SN-AGENT-MIB::snChasEnablePwrSupplyTrap.0 = INTEGER: enabled(1) FOUNDRY-SN-AGENT-MIB::snChasEnableFanTrap.0 = INTEGER: enabled(1) FOUNDRY-SN-AGENT-MIB::snChasIdNumber.0 = STRING: "SDSD33DF" FOUNDRY-SN-AGENT-MIB::snChasEnableTempWarnTrap.0 = INTEGER: enabled(1) FOUNDRY-SN-AGENT-MIB::snChasFlashCard.0 = INTEGER: 0 FOUNDRY-SN-AGENT-MIB::snChasFlashCardLeds.0 = INTEGER: 0 FOUNDRY-SN-AGENT-MIB::snChasNumSlots.0 = INTEGER: 4 FOUNDRY-SN-AGENT-MIB::snChasArchitectureType.0 = INTEGER: 4 FOUNDRY-SN-AGENT-MIB::snChasProductType.0 = INTEGER: 12
More to come soon (I hope) on Foundry snmp monitoring…
Installing our SunBLADE !!
27/08/07
We received our « do it yourself » Sun Blade last friday. We were so exited, we decided to rackmount it immediatly. And here are the pictures !
We have no pictures of the rackmount itself, but it is far more intuitive than the one of the Netra 4200. The only strange thing is you have to put some cage nut outside of the rack. Then you screw a metal part in each corner, and you finaly plug a strong metal rack in each side, no screw there. you are done, just put your 130 Kg Sun Blade rackin it (or remove everything you can, like fans and power supply, and you’ll get a 50 kg box).
And this is what you get :
Compiling Jack on Solaris 10
24/08/07
For the aim of a new project I had to compile Jack, the audio software patch, on Solaris 10 x86. Jack is very usefull and goes between your sound card and your applications. Each Jack compliant piece, which may be Alsa for the soundcard or ecaSound for audio software, will have a virtual input and/or output. Then, using a Jack tool, you can patch (which is a technical word for wire) any input to any output.
This will enable us to patch some of the RME 32AES soundcard input to some software our developpers just made.
Lire la suite de l’article »
Solaris Zones featured and ServerSideLess WIKI
14/08/07
Scrolling through the web lead me to this stuffs.
First is a « Framework » for helping Solaris Zones deployment : BrandZ.
BrandZ will help you manage the creation of zones. It will allow you to have a simple Solaris zone, the same but with different software installed, up to a full Linux zone in a minute (or so
)
The second one is a (yet to be tested by me) Wiki : TiddlyWiki.
What’s a Wiki ? It’s a website you can easily change, tune, arrange….
What’s so special with this on ? It’s HTML, CSS and Javascript based so you won’t need any « server side logic », which means no SSI, no PHP, no damn perl or python !
Sun Netra x4200 M2
13/08/07
We had our first Sun Netra x4200 M2, which is the new release of x4200. Netra means it is nore robust than SunFire, and is designed to comply to the US Army specs.
I had to put some PCI cards in it. One of the main feature of the M2 version is to support 3 full size PCI (PCI-X) cards. You can also have 2 PCI-Express cards. You will find in below the « extension board » inside the server. When you open the server, the top board slides to the back of the server. Then you can access the PCI-E and the RAM slots (under the white cover at the front). This is quite funny to see on a server but the 3 flat cables used to connect this IO board to the motherboard seems week. Don’t play too much with it.
The front fan module also seems to be a little bit lazy. Maybe it won’t move once the top is closed…

On the front you will see the DVD rom and 2 hotswap SAS disks.
The main problem we had concerns the PCI-X slots. As you’ll see in next pictures, there is nothing to « lock » the card once in place. When I say nothing i’m wrong. You have the small green plastic thing you can move from « open » to « close ». The only problem is that even on the close position they are damn too small to reach the edge of the PCI card.

Only the PCI on the right (when looking from the top, like on pictures) have a locking system, a screw to put from the outside.
I think I will open a case at Sun about this issue. I may also open a case about the shitty rackmount they give with it : instead of the clean rackmount of the T2000, with a slider for cables at the back, it’s a « do it yourself » old russian way rackmount. You get a heavy package with metal parts hidden in it and a thousands screw bag. No docs !
Hopefully with a 15 mins searching on Sun’s website you can find the x4200 rackmount doc. You will then learn you need to use the M4, M5 and M6 screw. Looking to the paper packaged inside the screwbag, you will see that you have 4 types of M4, 4 of M5 and as many as M6. You choose ![]()
I spent some time last week, moving T2000 from one room to another, taking about 15 mins a server, unmounting to remounting.
It took me half a day for 2 x4200… and the backside of the rack if a mess with cables everywhere.
Ooops, I forgot : once in the rackmount, there is no locking facility. Be carefull when you plug cables at the back as your new x4200 may jump out ou crash to the front door (you have a locking system when you take the x4200 out).
Pictures of the rackmount to come.
X4200 is an AMD based host so it have an ILOM. You can get the console using the remote display tool which is a java JNLP application. We had issue here when using it on OsX. On my host for example, I have a SSL key problem which disallow me to use it. I had to use another osX… If you have any info on that I can provide the error code.
Whatever, once started I see no differences between this and the past one.
The new challenge will to have QFS working on Linux (Ubuntu).

