Main menu:

DutchEnglishFrenchGermanItalianPortugueseRussianSpanish

Tags

Archives

ipv6 ready

Recent Comments

Aquarium Controller – Custom PCB – 2x Arduino Mega – MySensors – Domoticz

I always enjoy the view of my aquarium ( still after more then 10 Years)
But 1 thing about this hobby I never liked…
And that is monitoring the water and the actual weekly water changes.

Last year I noticed the project MySensors over @ https://mysensors.org because I was playing around with my home automation system ( https://domoticz.com)

And suddenly the idea came to create an Aquarium Controller based on the MySensors Project and Controlled by Domoticz.
I started ordering all sorts of components from E-bay to play around with and build a little setup that is able to control my LED Strips / the High Power(10W) Leds / and monitor the temperature of the water and the surroundings.(ph and TurbiditySensor are on its way)

On the picture ( it’s probably hard to see because of the cable mess) are 3 small arduino’s 

  • Monitoring Temp
  • controlling Relais ( for 12V PWM LED Drivers)
  • Controlling Fans ( pwm)

This was done to see if all would run stable and kept running for months.
So far I’ve had no issues and all boards are running nicely. So I’m ready for the next phase of the project.

That is to build a custom PCB where I can fit on 2 Arduino Mega’s to control and monitor the majority of the aquarium ( Changing water will be a sepperate PCB – And I still need to figure out the waterpipes I need to create for that.)
Next I downloaded Fritzing and started playing around with the components until i had a nice PCB that I could use ( This process took me about a month.)

What’s all on the board?

  • 2x RGB control
  • 4x PWM Fan Control and FanSpeed Monitoring
  • Turbidity sensor input
  • PH-Probe Sensor input
  • OneWire ( Temp.)
  • 8x Relais Controls
  • ATX PSU Control
  • Connection for backup power 5v( small powerbank ) – just in case the power goes out one of the arduino’s would still keep running.
  • 3x Volt meters ( 12v / 5v / 5vStandby)

I’m now in the process of putting the finishing touches on the PCB( labeling all components correct with their values) 

Issues to resolve before the board can be created:

  1. I should somehow be able to control the  LED drivers over PWM but I’m still working on that part since the driver requires a 12V PWM signal and the arduino send a 5V PWM signal it won’t work. gotta find something for that .. 

More to come Soon…

Running .Net 4.0 Webpages on your Raspberry Pi

pi2sudo apt-get install mono-msvb mono-complete
sudo apt-get install nginx
sudo apt-get install mono-fastcgi-server4

raspi-config on kali to expand your filesystem

pi2This article explains how to use expand_roofs from the raspi-config tool when your raspberry pi2 is running Kali Linux.

First we download the package:

wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20121028_all.deb

and install it with:

dpkg -i ./raspi-config_20121028_all.deb

it will probably throw an error back at you … you can fix that with:

apt-get install -f -y

now you can run:

raspi-config

and use expand_rootfs and use your full sd card..

Have fun 😉

Latest Kodi (XBMC) on Raspbian with remote control

pi2Some easy steps to install kodi on raspbian
Update the Pi:

sudo apt-get update
sudo apt-get rpi-update
reboot
sudo apt-get dist-upgrade
reboot

Install Kodi

sudo apt-get install kodi

For the remote control we need to add group to kodi

sudo adduser kodi input

Now we can start Kodi by running:

kodi &

If you want to start it when the Pi boots edit the file /etc/defaults/kodi
and change the 2nd line to ENABLED=1

Kali Linux 2.0 Release Day Scheduled

kali-2.0-sana

How to: HDHomeRun 4DC (HDHR3-4DC) + TvHeadend on Raspberry Pi 2B

pi2First we update the Raspberry Pi:
sudo rpi-update
sudo reboot
sudo apt-get update
sudo apt-get upgrade
sudo reboot

HDhomerun installation:
cd ~/Desktop
wget http://download.silicondust.com/hdhomerun/libhdhomerun_20141210.tgz
wget http://download.silicondust.com/hdhomerun/hdhomerun_config_gui_20141210.tgz
sudo apt-get install libgtk2.0-dev
tar -zxf libhdhomerun_20141210.tgz
tar -zxf hdhomerun_config_gui_20141210.tgz
cd hdhomerun_config_gui
./configure
make
sudo make install

Test if the install works:
hdhomerun_config discover

Set the address ( Replace FFFFFFFF withe the id generated by the discover.)
sudo hdhomerun_config FFFFFFFF set /sys/dvbc_modulation a8qam64-6875 a8qam256-6875

Build and Install TvHeadend:
cd ~/Desktop
sudo aptitude install build-essential git pkg-config libssl-dev bzip2 wget -y
sudo aptitude install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev -y
git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend
./configure --enable-hdhomerun_client --enable-hdhomerun_static --enable-libffmpeg_static --enable-bundle
make

We can test the build now by running:
./build.linux/tvheadend -C

When the tuners are visible we can continue:
sudo make install

To run TvHeadend I added to my rc.local:
/usr/local/bin/tvheadend

New version 0.3 for ets2mods.nl released yesterday to production

Screen346Hello all,

Yesterday evening I worked on some upgrade for the new site http://ets2mods.nl

I made some small changes to the looks  of the site but almost completely overhault the asp.net code running behind it.
The front page should load a lot quicker since I simplified the code behind it and used thumbnails for the pictures attached to the database.
I fixed some small things that where annoying me..
I started working on the code behind some other things I have planned for the future.
I also started coding on a new way to display the latest mod (Don’t like that table view it has currently..)
Currently Submitting Mods is enabled for everybody and have set some monitoring tools up to track all the changes .. so far it is looking OK.
There is still some work to be done on the submit form.
Currently I’m testing if can use AJAX on that complete form to process the changes.
I’ve noticed that the form is not cleared from the data when a submit is done.. (Probably will be working on this first since it is annoying when submitting multiple mods…)

All the changes can be followed on  http://ets2mods.nl:81/About
Hope you like it..

 

Greetings from a ETS2 Fan.

 

 

 

Metasploit on Raspberry Pi running Raspbian

sudo -i
wget http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2
apt-get update
apt-get dist-upgrade -y
apt-get install ruby subversion libpcap-dev
tar jxpf framework-latest.tar.bz2
cd msf3
gem install bundler
gem install sqlite3 -v ‘1.3.9’
bundle install
./msfconsoleRaspberryPi

Kismet on Raspberry Pi running Raspbian

RaspberryPiOn an Raspberry Pi this process will probably take more then an hour.(Sit back and relax once you typed in make..)
Before installing kismet from source we need some apps from the repository.

sudo apt-get install libncurses5-dev libpcap-dev libpcre3-dev libnl-dev -y

Now we can download and compile the source

wget http://www.kismetwireless.net/code/kismet-2013-03-R1b.tar.gz
tar -zxf kismet-2013-03-R1b.tar.gz
cd kismet-2013-03-R1b
./configure
make
sudo make suidinstall
sudo usermod -a -G kismet pi
sudo reboot

Configuring monitor mode:

sudo iw phy phy0 interface add mon0 type monitor
sudo iw dev wlan0 del
sudo airodump-ng mon0

Open a new windows and configure Kismet:
Edit /usr/local/etc/kismet.conf and add “ncsource=mon0”, “hidedata=true

And starting with:

kismet_client

Mount NFS server and move SWAP to nfs share on the Raspberry Pi

RaspberryPiBefore we can start with this on the Raspberry we need to make sure we have the NFS Server up and running. In my case this is a FreeNas box that has multiple disk running in zfs raid.
After the share is set up on the server (/mnt/pool1/pi) we can switch to the Pi.

First we need to make sure the rpcbind service is running and started on bootup.

sudo update-rc.d rpcbind defaults && sudo service rpcbind start

Now we can test if we can mount our share before we add it to our fstab:

sudo mount YourNfsServerIp://mnt/pool1/pi /mnt

Check with df -h if the share is mounted.(normally when it doesn’t show an error all should be ok.)
My results:

pi@pi ~ $ df -h
Filesystem                  Size  Used Avail Use% Mounted on
rootfs                      7,4G  2,5G  4,7G  35% /
/dev/root                   7,4G  2,5G  4,7G  35% /
devtmpfs                    239M     0  239M   0% /dev
tmpfs                        49M  260K   49M   1% /run
tmpfs                       5,0M     0  5,0M   0% /run/lock
tmpfs                        97M     0   97M   0% /run/shm
/dev/mmcblk0p1               56M  9,6M   47M  18% /boot
192.168.1.11:/mnt/pool1/pi  113G  7,5G  106G   7% /mnt

Now that all is working we can add a new line to /etc/fstab  (change the ip with your own.)

192.168.1.11:/mnt/pool1/pi /mnt    nfs    defaults    0    0

Now that NFS is setup correct we can move the swap to a real drive.
Let’s start with cleaning and removing the old on the sd-card.

sudo apt-get remove –purge dphys-swapfile -y
sudo rm /var/swap
sudo rm /etc/init.d/dphys-swapfile
sudo update-rc.d dphys-swapfile remove

Now we can create and mount a new file.(1Gb change the value count=1024 if you need a smaller/larger swap)

sudo dd if=/dev/zero of=/mnt/swap bs=1M count=1024
sudo losetup /dev/loop0 /mnt/swap
sudo mkswap /dev/loop0
sudo swapon /dev/loop0

Check with free -m if you can see the swap file.
Now we can edit our /etc/rc.local and add before exit 0

echo “Setting up loopy/mnt/swap..”
sleep 2
losetup /dev/loop0 /mnt/swap
mkswap /dev/loop0
swapon /dev/loop0

Have fun.