Automagically for Debian in VirtualBox on Windows 7

http://automagucally.weebly.com

Moderators: davka003, Telldus

Post Reply
KHolm
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am

Automagically for Debian in VirtualBox on Windows 7

Post by KHolm »

Hi,

As title says, this is an instruction for Automagically for Debian in VirtualBox on Windows 7.
I needed a development environment, so I gave it a shot. Works just fine.

Here's how to do it:

Install Oracle VirtualBox
http://download.virtualbox.org/virtualb ... 06-Win.exe

Install debian in VirtualBox
#1 Download an image
Images: https://www.debian.org/releases/wheezy/ ... installer/
Image (64 bit): http://cdimage.debian.org/debian-cd/7.4 ... etinst.iso

#2 Create "New" VM in VirtualBox
-> Click "New", follow instruction

#3 Boot into installer
-> Mark new VM, click Start
-> When asked, select above downloaded image (debian-7.4.0-amd64-netinst.iso)
-> Follow instruction, don't select SQL or Web server (at this point)
-> Create user pi, password raspberry

Set-up Debian for Automagically
#1 Install sudo

Code: Select all

pi@debian $ su
Password: XXXXX (root password)
root@debian $ apt-get install sudo
root@debian $ adduser pi sudo
root@debian $ exit
pi@debian $ exit (need to logout for group chages to become effective)
#2 Optionally, install SSH server

Code: Select all

pi@debian $ sudo apt-get install ssh
#3 Optionally, allow SSH into VM
-> In VM, select Devices/Network settings...
-> Click Port Forwarding
-> Click (+), Host Port = 22, Guest Port 22
-> Click (+), Host Port = 80, Guest Port 80 (You need it for Automagically later)

#4 Install python-dev

Code: Select all

pi@debian $ sudo apt-get install python-dev

Install Tellstick
#1 Turn off the system

Code: Select all

pi@debian $ sudo shutdown -h now
#2 Plug in the tellstick in a USB port

#3 Enable it for the VM
-> Right Click the VM, Select settings
-> Click USB
-> Click (+)
-> Add Telldus TellStick Duo[]
debian_virtualbox.JPG
debian_virtualbox.JPG (40.91 KiB) Viewed 11203 times
Install Automagically
With some exceptions, follow these instructions: https://bitbucket.org/jorkar/automagically_install

* Exception #1 - Before compiling telldus-core, do this:

Code: Select all

pi@debian $ sudo nano /usr/src/telldus-core-2.1.1/common/Socket.h
Add:

Code: Select all

#include <unistd.h>
* Exception #2 - Before starting telldusd service do this:

Code: Select all

pi@debian $ sudo nano /etc/init.d/telldusd
Modify line 23:

Code: Select all

DAEMON=/usr/sbin/$NAME
to

Code: Select all

DAEMON=/usr/local/sbin/$NAME

* Exception #3 - After installation, reboot the system (Automagically could not see events before)

Code: Select all

pi@debian $ sudo shutdown -r now
/Marcus
andjo
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Automagically for Debian in VirtualBox on Windows 7

Post by andjo »

Thanks.
I use esxi. not VirtualBox
The instruction works for esxi to.
KHolm
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am

Re: Automagically for Debian in VirtualBox on Windows 7

Post by KHolm »

It shall be noted that there are things in automagically that may not work; especilly the backup/restore parts are assuming things not compatible between raspbian and debian in links above.

Apart from a few small things it works just fine...

Perfect to have when developing plugins. If that is waht you do, you might want to look at the tellstick simulator I built for my last project. If you update to the latest Autotmagically you find the t_sim.py in .../plugins/examples. Modify as per you need and read the tip on the remote in this post: http://www.telldus.com/forum/viewtopic. ... 258#p25035


/Marcus
Post Reply