Author Topic: Installing Dv4mini Console On Raspberry Pi  (Read 3484 times)

ke2yk

  • Administrator
  • Newbie
  • *****
  • Posts: 23
    • View Profile
Installing Dv4mini Console On Raspberry Pi
« on: February 24, 2016, 02:19:17 AM »
Installation was done using Raspberry Pi 2 - Model B - ARMv7 with 1G RAM, Raspian Jessie (Debian 8.0), Mono 4.0, X11vnc, TightVNC Desktop Client, 32GB Micro USB Card

Note: My decision was to "roll my own" DV4mini Console rather than download the ready made DV4mini images available at dv4m.ham-dr.ch.

Why? Because I don't want other software and config changes that I did not implement.

However, if a pre-rolled installation with the extras included is what you are after, download the latest from here
:
http://dv4m.ham-dmr.ch/V1.6/Linux/ARM/RaspberryPI_Images/
As of this post, 151221_Raspian_Jessie_Pi2_dv4mini_wspr.img.gz is the latest.

##To Roll Your Own Begin Here:

## Need to install Raspian Jessie on to the Micro SD card first?
## See my Install Baseline Debian Jessie O/S on Micro SD Card under the Linux Systems Administration Category

## Need to Install Mono 4.0?
## What is Mono? Why is it required? The DV4mini Control Panel is actually a Windows executable. Obviously a Windows executable wont run on a Linux based O/S. So Mono is the process used to execute Windows software on Linux. Hopefully someday a Linux based version will be made available.

## See my Install Mono 4.0 under the the DV4mini Information Category

## NOTE: DON'T use sudo for any command unless noted to do so...

## X11vnc is the server software used to work with the X11 GUI Desktop
## The GUI is required to configure and monitor the DV4mini Control Panel
##
## Need to install X11vnc?
## See Install and configure X11VNC under the Linux Systems Administration Category
##
## Install the TightVNC client on your PC.
Get TightVNC Here: http://www.tightvnc.com/download.php

Use the TightVNC client and log into the PI Desktop GUI

##There are many ways to get the DV4mini files over to your PI. That discussion is beyond the scope of this post. Using the Epiphany Browser is the method described here.

Using the Ephipany Browser on your PI visit
http://dv4m.ham-dmr.ch/Testversionen/Linux/ARM/
Download dv4mini.exe and dv_serial
Using the Ephipany Browser on PI  visit
http://dv4m.ham-dmr.ch/V1.6/Linux/ARM/
Download dv4k.png (this image is for the desktop launch)

## Putty is an ssh client which is useful for countless operations on your PI
## On your PC, download and Run Putty
##Get Putty Here:  http://www.putty.org/

##Login into your PI using Putty and run command:
Code: [Select]
mkdir /home/pi/dv4mini
##assuming the files ended up in the default download directory of /home/pi/Downloads, move the files to their final locations

Code: [Select]
mv /home/pi/Downloads/dv4mini.exe /home/pi/dv4mini/dv4mini.exe
Code: [Select]
mv /home/pi/Downloads/dv_serial /home/pi/dv4mini/dv_serial
Code: [Select]
sudo mv /home/pi/Downloads/dv4k.png /usr/share/pixmaps/dv4k.png
## Make the files executable
Code: [Select]
chmod 755 /home/pi/dv4mini/dv*
## Setting Up The DV4Mini AutoStart File for Auto Boot

Code: [Select]
cd /home/pi/.config
Code: [Select]
mkdir autostart (if necessary)

Code: [Select]
cd autostart
Using your favorite editor, create a new file called start_dv4mini.desktop
Enter the following info and save the file
 
[Desktop Entry]
Name=DV4mini
#GenericName=DV4mini
Comment=DV4mini_KE2YK
Exec=sh -c "sleep 20 && cd /home/pi/dv4mini/; sudo mono dv4mini.exe"
Terminal=false
Type=Application
#Encoding=UTF-8
Icon=/usr/share/pixmaps/dv4k.png
Categories=Hamradio;System;Utility;

## Now create the executable Desktop entry for manually staring the DV4mini Control Panel

Code: [Select]
cd /home/pi/Desktop
Using your favorite editor, create a new file called dv4mini.desktop
Enter the following info and save the file

[Desktop Entry]
Name=DV4mini
#GenericName=DV4mini
Comment=DV4mini_KE2YK
Exec=sh -c "cd /home/pi/dv4mini/; sudo mono dv4mini.exe"
Terminal=false
Type=Application
#Encoding=UTF-8
Icon=/usr/share/pixmaps/dv4k.png
Categories=Hamradio;System;Utility;

## Now Change Permissions
Code: [Select]
chmod 644 dv4mini.desktop
To test the Autostart function, plug in your DV4mini Stick and
Code: [Select]
sudo shutdown -r now
or click on the new desktop icon

That's All Folks! Enjoy!
« Last Edit: March 25, 2016, 03:56:51 AM by ke2yk »