Friday, April 3, 2015

Running RawConverter Using Wine 1.7.2 in OpenSUSE 13.1

This is only a running test of RawConverter using Wine in OpenSUSE. As we have tested, CentOS 5 is an antiquated operating system for RawConverter, so please try to use the latest version of both the OS and Wine.

OpenSUSE Information:

> cat /etc/*-release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
NAME=openSUSE
VERSION="13.1 (Bottle)"
VERSION_ID="13.1"
PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
openSUSE 13.1 (x86_64)
VERSION = 13.1
CODENAME = Bottle

Install Wine in OpenSUSE:

> cnf wine
> sudo zypper install wine

Install Microsoft .Net 2.0:

You can have multiple wine prefix on your machine, each running as a separate wine. So you can make a 32 bits prefix and install dotnet2 in it:

This will create a new wineprefix (.wine32 in your home) and configure it as 32 bits:
> WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg
> env WINEPREFIX=~/.wine32 winetricks dotnet20 
> env WINEPREFIX=~/.wine32 winetricks dotnet40 

Install Thermo MSFileReader Library:

Download and unzip MSFileReader installation file:
> mkdir MSFileReader_2.2.62
> cd MSFileReader_2.2.62
> wget http://fields.scripps.edu/rawconv/download/MSFileReader_2.2.62.tar.bz2
> tar jxvf MSFileReader_2.2.62.tar.bz2

Install MSFileReader in Wine:
env WINEPREFIX=~/.wine32 wine MSFileReader.exe

Download & Run RawConverter Using Wine:

Make directory (mkdir) and change directory (cd) to the place where you want to put the RawConverter.
> wget http://fields.scripps.edu/rawconv/download/rawconv.zip
> unzip rawconv.zip
> env WINEPREFIX=~/.wine32 wine RawConverter.exe YOUR_RAW_FILE_PATH --ms1 --ms2 --select_mono_prec

Cheers!

Tuesday, September 24, 2013

Using svn+ssh with RapidSVN, do not need to type passwd in every step

Re-posted according to this blog (many thanks to the author):
http://www.wandisco.com/svnforum/threads/31014-Passwordless-ssh-(Rapidsvn-over-ssh)

My experience on using RapidSVN over ssh. I made it using private/public keys authentication and creating a specific tunnel in rapidsvn configuration.

Steps:
1) in your /home/username create a dir for storing ssh keys, let's say "keydir"
[/home/username]$ mkdir keydir
[/home/username]$ cd keydir 

2) create private and public key WITHOUT password
[/home/username/keydir]$ ssh-keygen -f key_name -t rsa 

3) Login on the remote server and create the .ssh dir in the remote home 
...

4) copy the public key in the authorized_keys file in .ssh on the remote server
[/home/username]$ scp keydir/key_name.pub username@server.url:.ssh/authorized_keys

5) check if passwordless login works:
ssh username@server.url -i /home/username/keydir/key_name
(may have to chmod the key file on the server, with some ssh configuration)

6) now create the tunnel. add to /home/username/.subversion/config:
[tunnels]
ssh = $SVN_SSH ssh -i /home/username/keydir/key_name