I have two 1TB Maxtor basic drives connected to my opensolaris box. On there I run a ZFS mirror. All working well, maybe not on mega speeds but fairly enough for home use (it does stream movies to my AppleTV with XBMC over smb) The downside I discovered later, is that they auto sleep after 15minutes of being idle and I will tell you this, ZFS doesn’t like this feature… I fixed this with a crontab writing a tmp file in a directory on the disk but that gave me some onwanted problems in some cases. This morning I was fed up with it and I wanted a good solution and it seems, there is one… but the application doesn’t have a lot of functions when you use it on MacOSX it appeared… so you really need to do this on a windows computer (scary huh) so here is the application. Have fun!
Although at home I only work with Macintosh and OpenSolaris computers and the risk for virusses and malware are rather slim, my files could be infected with pc virusses and I could send pc virusses to friends without me knowing. It is also very stupid to think that Macintosh computer are just safe and don’t need a virus scanner. So this is where this article came from, I installed ClamXav on my MacBooks and then started to look at my NAS. It’s running OpenSolaris so.. there must be a great way to secure that! (and there is!!)
We need a few ingredients to get this running, here are my steps:
First of al the SUNW packages for vscan (you should be able to install them if you haven’t got them)
# pkginfo |grep -i vscan
system SUNWvscankr Virus Scan Service Kernel (Root)
system SUNWvscanr Virus Scan Service (Root)
system SUNWvscanu Virus Scan Service (Usr)
Install an antivirus daemon, I chose for clamav available from blastwave (i’m not gonna explain how to install this, but in the end you should have a running daemon)
We need to download c-icap from sourceforge and extract it and then compile it
I found this article from Simon Wheatley and found it very nice to do. But it didn’t seem to work on OpenSolaris… but don’t worry, it just needs a small fix, don’t use port 0 for _device-info._tcp, but just give it a port you are already advertising. Read the rest of this entry »
I found some info on how to share your OpenSolaris Screen with vnc, and those manuals just didn’t do it for Mac Os X unless you use a vnc viewer. But I wanted to use the build in screen sharing build in to Mac Os X which support vnc but it didn’t seem to work.. The resolution was Mac Os X wants authentication and thus the fix was easy, here you go: Read the rest of this entry »
I learned some nice things from our middleware guy, who I will support in the future. So I was searching for some process management commands. Romeo Ninov has a nice list on it.toolbox.com
here is the list:
Commands
apptrace – for trace of library calls
dtrace – debugger, new in version 10
pargs – get list of arguments and environment variables with which process was started
pfiles – list of file descriptors, associated with process
pgrep – get the PID’s of processes by name i.e. Something like ps -efl|grep -v grep|grep process_name
pkill – send signal to process. For example pkill -9 init
pldd – list dynamic libraries, associated with process, similar to ldd for executable
plockstat – see list of locked by process files. Lock can be mutex i.e. exclusive and reader/writer for shared access
pmap – get memory map (segments) of process
preap – try to kick-off zombie process
prstat – fullscreen view of processes sorted by different criteria, similar to Linux top command
prun – continue hold with pstop process
ps – print process information and status. In Solaris exist SYSV and BSD variants, respectively /usr/bin/ps and /usr/ucb/ps
psig – list signals that can be handled by process
pstack – get backtrace stack of process for debugging purposes
pstop – temporary hold process
ptree – print the tree of processes
pwait – wait till process finish
pwdx – list working directory for process, like pwd command
truss – for trace system calls and signals
$SIZE = the maximum size of the backups (example: 160G)
$HOSTNAME = the hostname of your mac
$MAC_ADDRESS = the mac address of your first ethernet card without the columns
now move that file you just created to the destination afp share you created for timemachine backups (with rsync, scp, mv,..)
now issue the following command in the Terminal if you are running a lower version than MacosX 10.5.2
You don’t need to sudo for this!
now to be sure restart your mac, (logoff and logon should be enough, but hey..)
You should now be able to select your afp share as a time machine backup location and even some say your backup can get corrupted but then you still have your zfs snapshots right? I’ll explain that later!