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!

Disabling USB in BIOS, but still interrupts?

Disabled USB in bios altogether to try to get rid of high interrupts, making computer nearly unusable:

%CPU PID USER COMMAND
6.5 11361 root [kworker/0:0]
4.6 11479 root [kworker/1:0]
2.9 2727 fblaise /usr/lib/thunderbird-9.0/thunderbird-bin
2.2 10609 root [kworker/0:2]
1.8 2301 fblaise /usr/bin/knotify4
1.6 10025 root [kworker/1:3]
1.0 8615 root [kworker/1:1]
10.5 1373 root /usr/bin/X :0 vt7 -nr -nolisten tcp -auth /var/run/xauth/A:0-CDTMZa
0.9 9577 root [kworker/0:1]

(see http://ironman.darthgibus.net/?p=153#comments)

but procinfo still shows interrupts on usb? Is it not honoring the BIOS settings?

irq 0: 23907 timer irq 21: 0 uhci_hcd:usb4
irq 1: 171 i8042 irq 22: 2 ehci_hcd:usb1

Kernel is 3.0.0-13-generic-pae.

Any feedback welcome.

Update: From powertop:

Top causes for wakeups:
47.0% (359.8) PS/2 keyboard/mouse/touchpad interrupt
20.5% (156.8) [Rescheduling interrupts]

It’s driving me nuts… Now on opensuse 12.1 64bits.

btrfs consuming lots of sys cpu time

fblaise@snowball ~ $ ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
%CPU PID USER COMMAND
7.4 2591 root [flush-btrfs-1]
5.9 905 root [btrfs-endio-0]
4.4 2907 root [btrfs-endio-wri]
4.3 1314 root /usr/bin/X :0 vt7 -nr -nolisten tcp -auth /var/run/xauth/A:0-VjxI1a
2.7 900 root [btrfs-worker-0]
1.7 2106 fblaise /usr/bin/knotify4
1.4 2094 fblaise kwin
0.6 10 root [kworker/0:1]
0.5 3643 fblaise top

And it is only on my /home filesystem… system is currently sitting idle. Wow.

This is on a Linux Mint laptop with 3.0.0-13-generic-pae.

Anyone experienced this?

Talend Studio on Linux: making it look nicer

Doesn’t look like on Mac on Win32, does it?

You can find several howto around, the GTK+ reference here, a GTK+ theme how to.

Create a .gtkrc-eclipse in your home directory, with the following inside:

[sourcecode language=’bash’]
style “eclipse” {
font_name=”Droid Sans 9″
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkExpander::expander_size=10
GtkExpander::expander_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::expander-size=8
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class “GtkWidget” style “eclipse”
[/sourcecode]

Then, export the GTK2_RC_FILES variable. Example:

[sourcecode language=’bash’]export GTK2_RC_FILES=/home/fblaise/.gtkrc-eclipse[/sourcecode]

And launch talend or any eclipse-based program. It should look much better.

You will notice that the palette font size doesn’t change, and remains big… I don’t know why it is not changing with the rest. If you have a clue, please post a comment! Thanks.

Fed up of re-opening your ssh sessions after suspend?

Every morning, when I come to work, there are a set of machines I need to get connected to. Of course, since I s2d or s2r my laptop overnight, the previous day ssh sessions are lost. Even worse, they take time to actually kick me out to my local prompt.

If you’re using gnome-terminal, you can write a small shell script that will open up these sessions for you. All my servers use private/public keys as login method, so with the help of the ssh-agent, it is a straight through login for all servers.

[sourcecode language=’bash’]
#!/bin/bash

GT=`which gnome-terminal`

$GT –window –maximize –profile=prod –title=”serverprod” -e “ssh server1″
–tab –profile=prod –title=”serverprod2” -e “ssh server1″
–tab –profile=dev –title=”serverdev1” -e “ssh server2″
–tab –profile=dev –title=”serverdev2” -e “ssh server2″
–tab –title=”servertest1” -e “ssh server3″
–tab –title=”servertest2” -e “ssh server3”
[/sourcecode]

KDE broken after latest updates

I don’t know what broke my openSUSE 11.4 KDE.

After the latest updates, including a kernel update, KDE would not display my windows anymore, fglrx driver seemed lost despite compiling successfully. Wanted to revert back to older kernel to see, but as usual and for years now, updates actually delete the previous kernel — this is really annoying.

So on IceWM. If anyone has an idea why latest updates/FGLRX/KDE is broken, please shoot me an email.

Linux fstab: mount a path containing spaces

Just ran across that, so here it is.

Let’s say you want to CIFS mount a windows share — say “//server01/it stuff$”, but your Windows admin put spaces in the path.
Replace the spaces with 40.

So, in your /etc/fstab, the line would give:

[sourcecode language=’bash’]//server01/it40stuff$ /home/fblaise/mnt/MyITDrive cifs username=fblaise,password=yoursinhere,uid=1000,gid=100,_netdev 0 0[/sourcecode]

It will then work, and your linux apps which cannot see beyond your local filesystems will have a new life 😉