x86
$ wget http://download.macromedia.com/pub/labs/ flashplayer10/flashplayer10_1_rc1_solaris_x86_0 61010.tar.bz2 $ bzip2 -d flashplayer10_1_rc1_solaris_x86_061010.tar.bz2 $ tar xvf flashplayer10_1_rc1_solaris_x86_061010.tar $ mkdir -p ~/.mozilla/plugins/ $ mv flash_player_solaris_10_1_53_64_x86/libflashplayer.so ~/.mozilla/plugins/ OR $ pfexec mv flash_player_solaris_10_1_53_64_x86/ libflashplayer.so /usr/lib/firefox/plugins/SPARC
$ wget http://download.macromedia.com/pub/labs/ flashplayer10/flashplayer10_1_rc1_solaris_sparc_ 061010.tar.bz2 Follow x86 directions above
|
|
|
|
# fdisk /dev/rdsk/c2t0d0s2 Cannot open deviceThings to check:
- 1. Make sure you are root or have the correct user privilege
- 2. Try `devfsadm -Cv` to remove any stale disk entries
- 3. Stop volume management `svcadm disable volfs`
|
|
|
|
For example, trying to find the usb header file package is a bit trickier. These files, namely usba.h, usbai.h, and usbdevs.h, are not installed into /usr/include/sys/usb in the default installation. To retrieve them, use this command:
$ pfexec pkg install header-usbIn previous version, these files could have been obtained from either SUNWusbu or SUNWsfwhea. The removal of the SUNW prefix is the most apparent name change for the package collection. Now you can get busy building the latest apcupsd version!
|
|
|
|
As explained by James Carlson:
The reason it was like this was historical: getting the
MAC address in ifconfig meant opening up the DLPI node
and talking to the driver. As the drivers didn't have
discrete privileges for each operation, and you had to be
almighty root to touch them, 'ifconfig' didn't show the
MAC address when not privileged.
*whatever*
The second solution is to use arp. In Solaris you can determine the physical address by looking at the arp tables directly (`arp -a | grep <INTERFACE>` or `netstat -p | grep <INTERFACE>`). With C, this can be done by using the if sockets and arp libraries.
I wrote up a solution called "getmac" using both methods. You can gather it here.
-
Directions
$ wget http://www.pauliesworld.org/project/getmac.c $ gcc getmac.c -o getmac -lsocket -ldlpi $ ./getmac <interface_name> arp: ffffffffffff dlpi: dlpi failure, are you root? $ pfexec ./getmac <interface_name> arp: ffffffffffff dlpi: ffffffffffff
|
|
|
|
vi upnp/src/api/upnpapi.cOn line 59, there is a bug. Change
#if defined(_sun)to
#if defined(__sun)The change is adding an extra underscore. Otherwise sockio.h will not be recognized properly and you will get some missing networking variables when you try to build. After that is taken care of...
$ ./configure CFLAGS="-DSPARC_SOLARIS" --disable-samples $ gmake # gmake install
|
|
|
|
Measuring in at around 115 x 101 x 27mm (~ 4.5"x4.0"x1.0"), it is only big enough to hold one laptop sized 2.5" SATA drive.
The drive I installed only has 80GB of space. That would run out real quick with my needs, so I decided to get a MediaSonic USB disk enclosure to link up with my server. It can hold up to 4 SATA drives.
The PC sits on top of the enclosure on my bookshelf taking up 8.5" x 5.0" x 6.5" amount of space. This is not only power efficient, but space efficient since I am using 4 x 1TB drives. 4TB total (theoretical), ~2.6TB in a ZFS raidz. If I were to have purchased the 2TB drives, it would be even better.
Doug's blog on the FIT-PC2 gives a good overview on the features of the device and what works. There is no wifi driver and Xorg doesn't work, so you may want to install OpenSolaris on another machine before installing the internal HDD. My server is headless and uses the built-in gigabit ethernet, so I don't care about those issues.
Links and prices
-
CompuLab FIT-PC2 Diskless Nettop PC
$273
-
Mediasonic (HF2-SU2S2) Pro Box 4 Bay Enclosure
$135
-
Samsung 1TB 7200 RPM
4 x $85 = $340
|
|
|
|
So, I decided to write my own script that uses SendEmail. All you need to do is edit the $SENDEMAIL, $SRCEMAIL, $DESTEMAIL, and $SMTPSERVER variables. It's a VERY simple script, so don't expect a lot from it. You can always substitute sendEmail for sendmail, and you may want to add some extra options for username and password if your SMTP server requires it (mine doesn't).
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.0.0';
%IRSSI = (
author => 'Paul Johnson',
contact => 'paulie@pauliesworld.org',
name => 'E-mail PM',
description => 'E-mails a private message to you
from IRC.',
url => 'http://www.pauliesworld.org/emailpm/',
changed => '$Date: 2009-01-09 :00:00 +0100
(Sat, 9 Jan 2009) $'
);
my $SENDEMAIL = "/location/of/sendEmail";
my $SRCEMAIL = "source\@emailaddress.com";
my $DESTEMAIL = "destination\@emailaddress.com;
my $SMTPSERVER = "smtp.youremailserver.com";
sub parsePrivateMessage()
{
my ($server,$message,$user,$address,$target) = @_;
emailPrivateMessage($user,$message);
}
sub emailPrivateMessage()
{
my ($user,$message)=@_;
my $subject = "IRC message from $user";
my $send=`${SENDEMAIL} -f ${SRCEMAIL} -t ${DESTEMAIL}
-u ${subject} -m ${message} -s ${SMTPSERVER}
}
Irssi::signal_add_last("message private",
"parsePrivateMessage");
[ EmailPM.pl ]
|
|
|
|
Blog Archive by Year