gimpe »
06 August 2010 »
In NexentaStor »
Get: VirtualBox-3.1.6-59338-SunOS.tar.gz
Get: VBoz.zip
Unzip and RENAME python-lib-3.1.8.tar.bz2 TO python-lib.tar.bz2
Put everything in the same dir.
VirtualBox-3.1.6-59338-SunOS.tar.gz
solaris-lib.tar.bz2
sunwvbox-1.0-20100217.diff.gz
python-lib.tar.bz2
And now:
# add required packages
aptitude install alien g11n-minimal-uiu8 lib64gcc1 lib64stdc++6 lib64z1 libfontconfig1 libfreetype6 libgcc1 libice6 libpng12-0 libsm6 libstdc++6 libxau6 libxdmcp6 libxmuu1 libxrender1 python python-dev sunwcsl sunwcslr sunwlibm zlib1g
# untar & prepare VirtualBox
tar -xzf VirtualBox-3.1.6-59338-SunOS.tar.gz
alien -d -s -c --reloc_root=/ VirtualBox-3.1.6-SunOS-r59338.pkg
# patch it
gzip -d -c sunwvbox-1.0-20100217.diff.gz | patch -p0
# build it
cd sunwvbox-1.0
./debian/rules binary
# install the .deb package
cd ..
dpkg -i sunwvbox_1.0-1_solaris-i386.deb
That’s it! Many thanks to Ernst Gill!
SOURCES:
http://www.nexenta.org/boards/1/topics/142
Continue reading...
Tags: FreeNAS, nexentastor, Solaris, VirtualBox, VM
gimpe »
24 July 2010 »
In NexentaStor »
Install required packages
aptitude install libssl-dev libcurl4-openssl-dev intltool
Install libevent
wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar -xzf libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
./configure
make && make install
Install Transmission
wget http://mirrors.m0k.org/transmission/files/transmission-2.01.tar.bz2
tar -xjf transmission-2.01.tar.bz2
cd transmission-2.01
./configure LIBEVENT_LIBS="-L/usr/local/lib -levent"
make && make install
Continue reading...
Tags: FreeNAS, NenxentaStor, torrent, Transmission
gimpe »
13 October 2009 »
In FreeNAS »
I’m writing a note to myself as I don’t have a UPS yet :)
The Port value can be set to “auto” as metionned here: http://jonathanbrown.me/my-freenas-project-part-5-the-config
Found another rerefence that confirms this:
- For newhidups: “auto” or whatever value as newhidups automagically probe for USB UPS.
SOURCE: http://people.freebsd.org/~thierry/nut_FreeBSD_HowTo.txt
Continue reading...
Tags: FreeNAS
gimpe »
20 September 2009 »
In FreeNAS, htpc, hype, linux, network »
Given that I spent time and money on my FeeNAS node, I want to maximize its usage, so when a friend told me that I can use PXE and NFS to boot a diskless computer from the network, I thought it was the perfect opportunity to try somehing new and activate some more services under FreeNAS!
Continue reading...
Tags: FreeNAS, htpc, linux, network
gimpe »
28 August 2009 »
In FreeNAS, bash »
This script will start a scrub on each ZFS pool (one at a time) and will send an e-mail or display the result when everyting is completed. I wrote this script to launch each scrub one after the other and a summary by e-mail that can tell me how much time it took to each ZFS scrub.
Continue reading...
Tags: bash, FreeNAS
gimpe »
04 August 2009 »
In FreeNAS, bash »
wget
To install wget on a “data” parition:
export PKG_TMPDIR=/mnt/usb-data/temp
pkg_add -r wget -P /mnt/usb-data/pkg
Now we need a script to create the symlinks to the wget binaries in the “pkg” directory:
nano /mnt/usb-data/hooks.sh
Here’s the content:
#!/bin/sh
ln -s /mnt/usb-data/pkg/bin/wget /bin/wget
Now make it run at boot time, go in System —> Advanced —> Command scripts and enter:
/mnt/usb-data/hooks.sh
Select PostInit and that’s it! Everytime you reboot your FreeNAS server the symlinks will be re-created!
bash
For bash, add this in the “hooks.sh” script:
# .bashrc for root
ln -s /mnt/usb-data/bashrc /root/.bashrc
# .bashrc for regular user
ln -s /mnt/usb-data/bashrc /mnt/.bashrc
# automatically load bash for root on login (not clean but works)
echo "bash --init-file /mnt/usb-data/bashrc" >> /root/.cshrc
# automatically load bash for regular user on login (not clean but works)
echo "bash --init-file /mnt/usb-data/bashrc" >> /mnt/.cshrc
Continue reading...
Tags: bash, FreeNAS
gimpe »
03 August 2009 »
In FreeNAS, bash »
You need an embedded install with a data partition. My FreeNAS server runs from a 1GB usb stick and the data partition is mounted as “/mnt/usb-data”. To install Vim on the usb stick:
# using csh
setenv PKG_TMPDIR /mnt/usb-data/temp
# install package
pkg_add -r vim-lite -P /mnt/usb-data/pkg
Now we need a script to create the symlinks to the Vim binaries in the “pkg” directory:
nano /mnt/usb-data/hooks.sh
Here’s the content:
#!/bin/sh
# Vim symlinks to binaries
ln -s /mnt/usb-data/pkg/bin/vim /bin/vi
ln -s /mnt/usb-data/pkg/bin/vim /bin/vim
# .vimrc for root
ln -s /mnt/usb-data/pkg/share/vim/vim72/vimrc_example.vim /root/.vimrc
# .vimrc for regular user
ln -s /mnt/usb-data/pkg/share/vim/vim72/vimrc_example.vim /mnt/.vimrc
# syntax file
mkdir /usr/local/share/vim/
mkdir /usr/local/share/vim/syntax/
ln -s /mnt/usb-data/pkg/share/vim/vim72/syntax/syntax.vim /usr/local/share/vim/syntax/syntax.vim
Now make it run at boot time, go in System —> Advanced —> Command scripts and enter:
/mnt/usb-data/hooks.sh
Select PostInit and that’s it! Everytime you reboot your FreeNAS server the symlinks will be re-created!
Continue reading...
Tags: bash, FreeNAS