sudo yum install R R-devel openmpiR CMD INSTALL Rmpi --configure-args="--with-Rmpi-libpath=/usr/lib64/openmpi/lib --with-Rmpi-include=/usr/include/openmpi-x86_64 --with-Rmpi-type=OPENMPI"
Thursday, April 11, 2013
How to install Rmpi on Fedora
Sunday, June 27, 2010
NVIDIA ION + Ubuntu 10.04 Lucid Lynx + 5.1 sound analog output
1. Edit alsa-base.conf:
2. Add the following line to it:
3. Reboot. The 5.1 channels would be enabled so that alsamixer could be used to unmute them. Enjoy! Credit: Pascal's blog
sudo gedit /etc/modprobe.d/alsa-base.conf2. Add the following line to it:
options snd-hda-intel model=3stack-6ch enable=1 index=03. Reboot. The 5.1 channels would be enabled so that alsamixer could be used to unmute them. Enjoy! Credit: Pascal's blog
Wednesday, September 16, 2009
Setting up an AZBox cross-compiling environment (i.e. toolchain for the MIPS Sigma processor)
Recently, I was playing with my new AZBox, a Linux-powered DVB-S receiver. It is a MIPS platform with a Sigma processor. AZBox's official site provides SDK for programming together with a simple example plugin. Since setting up the compiling environment on my Ubuntu 9.04 was not so straightforward, I have written this post.
So, the goal is to compile, install and run the provided example plugin on the AZBox. (This HOWTO is based on Geordy's blog post and Jorgen's comments. Thanks!)
- Make sure you have installed all important pre-requisites:
sudo apt-get install flex genromfs bison libncurses5-dev ncurses-base gcc-3.4 - Download and extract official toolchain of Sigma:
wget http://www.networkedmediatank.com/download/firmware/nmt/gpl/smp86xx_toolchain.20080505.tar.bz2
tar -xjsf smp86xx_toolchain.20080505.tar.bz2 - Download and extract AZBox-SDK:
wget http://www.azupd.com/Plugins-SDK.tgz
tar -xzf Plugins-SDK.tgz - Continue with preparing the toolchain:
cd smp86xx_toolchain.20080505
export CC=gcc-3.4
make menuconfig
You don't need to change anything in the configuration, just select "exit". - Next, start the toolchain compilation. It will last for some time and some stuff will be automatically downloaded from the Internet:
make
If everything went right, you are now prepared to compile for your AZBox. - Load environment variables needed for cross-compilations:
source toolchain-path.env - Now move to the directory of the AZBox's sample plugin, "mwkeytest":
cd ../azbox-sdk/ExternTarget/samples - Compile the sample plugin:
make install - Two files,
mwkeytest.pluginandplugins.lstwould be created. Copy them via FTP to your AZBox's/tmpdirectory. - Take AZBox's remote control, go to the
Pluginsmenu and select installation of the new plugin "mwkeytest" from/tmp. - Now run your new plugin "mwkeytest"! It is a simple application that displays key-press events that it receives.
Labels:
azbox
Wednesday, June 10, 2009
Changing Evolution's SMTP server configuration with a script
Evolution is my favorite e-mail client and I am quite satisfied with it. However, there is a pitfall of switching networks with Evolution.
SMTP servers used for sending e-mails are often configured to accept request from the internal network only. It is due to various spammers not to flood the service. If you want to send e-mails from each network you are actually connected to (as me), you come very soon to a problem: you have to change your Evolution's SMTP server configuration always after switching the network.
This post presents a workaround: a script that does the setting change for you, automatically. Creating some button at your desktop that uses such script is then a matter of seconds. Here is the source code of
If you run that script with a parameter specifying the new SMTP server name, all your Evolution's e-mail accounts get changed SMTP server:
Enjoy!
SMTP servers used for sending e-mails are often configured to accept request from the internal network only. It is due to various spammers not to flood the service. If you want to send e-mails from each network you are actually connected to (as me), you come very soon to a problem: you have to change your Evolution's SMTP server configuration always after switching the network.
This post presents a workaround: a script that does the setting change for you, automatically. Creating some button at your desktop that uses such script is then a matter of seconds. Here is the source code of
changeEvolutionSmtp:#!/bin/bash
SMTP=${1?'Specify the SMTP server name as the first parameter!'}
SETUP=`gconftool-2 --get /apps/evolution/mail/accounts | sed "s/\(smtp:\/\/\)[^;]*/\1${SMTP}\//g"`
gconftool-2 --unset /apps/evolution/mail/accounts
gconftool-2 --type=list --list-type=string --set /apps/evolution/mail/accounts "$SETUP" If you run that script with a parameter specifying the new SMTP server name, all your Evolution's e-mail accounts get changed SMTP server:
changeEvolutionSmtp smtp.myprovider.comEnjoy!
Labels:
linux,
networking
Remote access to encrypted directory at Linux server
This post describes how to configure remote access to an encrypted directory. I wanted to create a personal directory on a Linux server:
The desired configuration is as follows:
- accessible as a mountable network filesystem;
- with the content being encrypted;
- easily configurable.
- SSHFS does not need to perform any configuration on the server, it lasts the SSH connection to be configured (that is often done already);
- SSHFS does not need any new special ports to be open on the firewall (SSH port is sufficient).
The desired configuration is as follows:
- On the server, I want an encrypted directory available over the SSHFS. Thus, the shared directory would be
/home/user/sharedthat would contain encrypted directory/home/user/shared/encrypted. - On the client a remote directory would exist,
/home/user/.remotedir, that would contain encrypted subdirectoryencrypted, which I want to mount to the decrypted directory/home/user/Remote. - Only the
/home/user/Remotedirectory would be used by me and EncFS will encrypt all the content into/home/user/.remotedir/encryped, which in turn would be remotely stored via SSHFS on the server.
Server configuration
- Make sure SSH is up and running.
- Create shared directory:
mkdir /home/user/shared - Inside of the shared directory create encrypted directory:
mkdir /home/user/shared/encrypted - Update permissions:
chmod -R o-rwx /home/user/shared
Client configuration
- Install SSHFS and EncFS:
sudo apt-get install sshfs encfs - Create directory for mounting the remote directory
mkdir /home/user/.remotedir - Create directory for mounting the encrypted remote directory:
mkdir /home/user/Remote - Mount the remote directory using SSHFS (insert SSH password to the server):
sshfs user@myserver.org:/home/user/shared /home/user/.remotedir - Enable encryption:
encfs /home/user/.remotedir/encrypted /home/user/Remote
The computer would ask you the type of instalation. Hit ENTER to select "standard". Then insert password for the encrypted content. - To unmount everything, you should first unmount the encrypted volume and then the SSHFS:
fusermount -u /home/user/Remote
fusermount -u /home/user/.remotedir - That's all.
- mountRemote:
#!/bin/bash
sshfs user@myserver.org:/home/user/shared /home/user/.remotedir
encfs /home/user/.remotedir-hucak/encrypted /home/user/Remote - umountRemote:
#!/bin/bash
fusermount -u ~/Remote
fusermount -u ~/.remotedir-hucak
Labels:
linux,
networking
Friday, June 5, 2009
Setting up EDUROAM network connection (at OSU.cz) on Ubuntu 9.04
This is how I configured the EDUROAM network connection on my Ubuntu 9.04. My home university is the University of Ostrava (OSU).
- First of all, there was a problem with certificates. I have downloaded University's CA Certificates (osu-ca.pem, cesnet-ca.pem) from the OSU's website. We are going to install the certificates as trustworthy.
- Determine the directory where all the certificates are stored:
openssl version -d - Create an executable script file
CreateSymLinks:#!/bin/bash
for CERTFILE in $*; do
# make sure file exists and is a valid cert
test -f "$CERTFILE" || continue
HASH=$(openssl x509 -noout -hash -in "$CERTFILE")
test -n "$HASH" || continue
# use lowest available iterator for symlink
for ITER in 0 1 2 3 4 5 6 7 8 9; do
test -f "${HASH}.${ITER}" && continue
ln -s "$CERTFILE" "${HASH}.${ITER}"
test -L "${HASH}.${ITER}" && break
done
done - Run
./CreateSymLinks *.pem
This will create symbolic links to the certificate files. - Copy all
*.pemfiles together with all created symbolic links to the path obtained in step 2. - Setup EDUROAM connection in Network Manager: WPA/WPA2 Enterprise, Tunelled TLS (TTLS), osu-ca.pem as CA certificate, MSCHAP, your identity (my was XXX@osu.cz), password.
Labels:
linux,
networking
Thursday, June 4, 2009
Installing IEs4Linux on Ubuntu 9.04
IEs4Linux is an easy way of running various versions of Microsoft Internet Explorer under Linux. Recently, I have installed it on Ubuntu 9.04 Jaunty Jackalope and went to some problems. The official documentation was not up-to-date, so I was forced to improvize. Here is workaround:
sudo gedit /etc/apt/sources.list- add this line to the file or uncomment:
deb http://us.archive.ubuntu.com/ubuntu jaunty universe - add this line to the file:
deb http://wine.budgetdedicated.com/apt jaunty main wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -sudo apt-get updatesudo apt-get install wine cabextractwget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gztar zxvf ies4linux-latest.tar.gzcd ies4linux-*- run no GUI installation (since GUI makes all the troubles):
./ies4linux --no-gui --no-desktop-icon --install-ie55 --install-ie5 --install-corefonts
Subscribe to:
Posts (Atom)