Friday, 22 February 2013

enable samba for sharing to windows

/etc/samba/smb.cfg:

[global]
workgroup = WORKGROUP <-- this must be the windows workgroup
server string = NAS samba server %v

security = user
passdb backend = tdbsam

[homes]
comment = Home Directories
browseable = yes
writable = yes

[raid]
path = /mnt/raid/
public = yes
writable = yes
browseable = yes
available = yes
create mask = 0777
directory mask = 0777

$ systemctl start smb.service nmb.service
$ systemctl enable smb.service nmb.service

After starting the samba service, you need to enable samba with selinux

Details here: http://linux.die.net/man/8/samba_selinux

$ setsebool -P samba_domain_controller on
$ setsebool -P samba_enable_home_dirs on
$ chcon -t samba_share_t /mnt/raid/
$ semanage fcontext -a -t samba_share_t "/mnt/raid(/.*)?"
$ restorecon -R -v /mnt/raid/


Friday, 28 December 2012

xbmcfreak installation

I have an ASRock Ion 330HT PC with a 32GB Corsair SSD which I'm using as a media server.

Installation of XBMCFreak LiveCD 10:

Download from http://www.xbmcfreak.nl/downloads-10series/ and burn to CD

Boot up, choose Install LiveCD and walk through the installation.

For partitioning the hard-drive I chose to use Guided - use entire disk. (I initially tried LVM but this failed - I didn't really bother to find out why)

The installation takes about 5 or 10 minutes; be patient with the blank blue screen that is displayed while it installs.

Post installation configuration:

Mount NAS on NFS:

add nas ip-address to /etc/hosts
$ 192.168.1.12 nas

create mount point in fs
$ sudo mkdir /mnt/raid

install nfs client
$ sudo apt-get install nfs-common portmap

mount nfs
$ sudo mount -o rw,async -t nfs4 nas:/mnt/raid /mnt/raid

make it premanent by adding mount command to /etc/fstab
$ nas:/mnt/raid /mnt/raid nfs4 rw,async




Sunday, 9 December 2012

Puppet - open source configuration management

http://puppetlabs.com

Open source job schedulers

Open source job scheduler

http://www.sos-berlin.com/modules/cjaycontent/index.php?id=62&page=osource_scheduler_introduction_en.htm

GNU Batch

http://www.gnu.org/software/gnubatch/

Thursday, 29 November 2012

Pattern recognition algorithms

Boost based Computer Vision and Pattern Recognition Library implements many useful algorithms such as Principal Component Analysis, Eigen solver, etc.

http://boostcvpr.sourceforge.net/

Saturday, 17 November 2012

windows/fedora dual boot - update grub2

After kernel updates the grub boot menu will include both the new kernel version and the previous kernel version.

Remove old kernels (keeping 2)


$ yum install yum-utils
$ package-cleanup --oldkernels --count=2



Update grub's boot menu


It's probably a good idea to make a backup of the old grub.cfg file

$ grub2-mkconfig -o /boot/grub2/grub.cfg

This will update the grub config used to load the boot menu.

You can customize the menu order by renaming the 10_* entries in /etc/grub.d/

Customize the boot order:

Find the menu entries:

$ grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Set the default menu entry:

$ grub2-set-default 'one-of-the-above-menu-entries'

Check to see if it worked:

$ grub2-editenv list