Install NetApp onCommand on Linux 64bits

Linux users wanting to use the NetApp onCommand tool on 64bits are granted with the fact that it is not possible to do so.
Since it is a java application, here is a simple workaround that worked for me (opensuse 12.1 64bits – sun’s java).

– Download the linux rpm package.
– Install rpmrebuild
– Launch the following command:
[sourcecode language=’bash’]rpmrebuild -e -p sysmgr-setup-2-0R1-linux.rpm[/sourcecode]

– Edit around l.3726, comment out the line that says exit, something like:
[sourcecode language=’bash’]
then
echo “ERROR: NetApp OnCommand System Manager 2.0 is not supported on 64-bit Linux”
echo “OVERRIDING !!”
#exit 1;
fi
[/sourcecode]

– Continue and install the rpm.

Go to /opt/NetApp/on_command_system_manager_2.0. If running KDE, start typing ‘netapp’ in your krunner. You should also find it in your menu.

or launch: [sourcecode language=’bash’]java -jar SystemManager.jar[/sourcecode]

DLNA server with Linux

uShare does a great a simple job in quickly setting up a dlna server under Linux.

Under opensuse 12.1:

Update: ushare is available via software.opensuse.org.

Edit the /etc/ushare.conf file, at least these 2 options:

[sourcecode language=’bash’]
USHARE_DIR=/path/where/you/hold/your/movies
ENABLE_DLNA=yes
[/sourcecode]

Then, you can try with an dlna application and you should see a ‘uShare’ share that you can browse and play movies from!

Configure Linux for your OSX Time Machine needs

Have a Linux around with some free storage space, and you want to backup your Mac? You can configure your Linux box to just appear in your Mac OSX Time Machine configuration.

I am using Opensuse 12.1 (64bits) here, and the setup is nearly done. Here are just the few extra steps you need to take in order for your Mac to see your storage space and use it as backup. Note that I have done no effort whatsoever to secure the configuration as of now. It functions, but you may want to take it the extra step for added security. This is just a basic setup.

First, let’s tell avahi that you want to advertise a new service. Create a new file, called afpovertcp.service in /etc/avahi/services:

[sourcecode language=’xml’]


%h

_afpovertcp._tcp 548


_device-info._tcp 548 model=PowerMac3,5


[/sourcecode]

Install the netatalk package, and go configure the afpd.conf file. Go to the end of this file, and uncomment the default line. I had to pass it my actual IP address, because it was not advertising on the right one.

[sourcecode language=’bash’]# default:
– -tcp -ipaddr 192.168.1.48 -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword
[/sourcecode]

The rest of this file is commented on my box.

Then, go edit the AppleVolumes.default file in that same folder. At the end, I simply added the path where I wanted my Time Machine backups to go:

[sourcecode language=’bash’]/home/fblaise/mnt/WD15/time_machine “tm_backups” options:tm,ea:auto volcharset:UTF8[/sourcecode]

At this point, you can start your netatalk service:

[sourcecode language=’bash’]service netatalk start[/sourcecode]

(Edit /etc/init.d/netatalk at l.71. The -n switch takes mandatory parameters apparently, but we’re not using the atalk stuff)
[sourcecode language=’bash’]
if [ x”${AFPD_RUN}” = x”yes” -a -x /usr/sbin/afpd ] ; then
echo -n ” Starting afpd (”
echo -n ${AFPD_UAMLIST} -g ${AFPD_GUEST}
-c ${AFPD_MAX_CLIENTS}
#-c ${AFPD_MAX_CLIENTS} -n ${ATALK_NAME}${ATALK_ZONE}
echo -n “)”
startproc /usr/sbin/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST}
${AFPD_OPTIONS}
-c ${AFPD_MAX_CLIENTS}
#-c ${AFPD_MAX_CLIENTS} -n “${ATALK_NAME}${ATALK_ZONE}”
rc_status -v
fi
[/sourcecode]

or just start the afpd daemon with no option, just by typing [sourcecode language=’bash’]afpd[/sourcecode] as root in a terminal.

You may want to reload the avahi configuration as well with [sourcecode language=’bash’]avahi-daemon -r[/sourcecode]

Then, go to your Time Machine preferences, and your Linux box should now show up as an option with the path defined above!