Ubuntu 20.04 on iMac Dual boot - jharwinbarrozo/rotcontrol GitHub Wiki

Issues and solutions:

Foxtelem can't find Java:

check first
$ java -version

// if java is not installed
$ sudo apt install default-jre

// Foxtelem failed to load module "canberra-gtk-module"
$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

How to auto start rigctld, socat, rotctld in just one script

// Create a script named autorun.sh

$ nano autorun.sh

#!/bin/sh
socat -4 -d -d PTY,link=/tmp/ttyESP0,echo=0 PTY,link=/tmp/ttyVA00,echo=0 & sleep 2;
socat -4 -d -d open:/tmp/ttyVA00,echo=0 tcp:192.168.1.63:23,ignoreeof,forever,keepalive,keepidle=20,keepintvl=20,keepcnt=20 & sleep 2;
$HOME/local/bin/rigctld -m 3044 -r /dev/ttyUSB0 -t 4532 -s 19200 --set-conf=cache_timeout=0 & sleep 1;
$HOME/local/bin/rotctld -m 202 -r /tmp/ttyESP0 -s 9600 -t 4599 -C timeout=1000 -vvvv &

// then save

// make the script executable by issueing
chmod +x autorun.sh

$ sudo crontab -e

// put at the bottom

@reboot /home/jharwin/autorun.sh

how to install psensor (check temp and fan speed)

$ sudo apt install psensor

// Go to Preferences->Startup and the check Launch on session startup to start Psensor at each boot.

auto run pacmd virtual audio source

$ sudo apt install pavucontrol

// then edit default.pa in

$ sudo nano /etc/pulse/default.pa

// add at the bottom
load-module module-virtual-source

// in pavucontrol
make sure you select where this virtual source will get his source.

To check imac model name on ubuntu:

$ sudo dmidecode | grep "Product Name"

To set certain sound card to be always on default, first run

$ alsamixeredit
// Press F6 to know what is the number of your preferred sound card, take note of that number (usually 0 1 2 3)

//Then edit alsa.conf
$ sudo nano /usr/share/alsa/alsa.conf

defaults.ctl.card 0
defaults.pcm.card 0

Change both to 1 (if your preferred soundcard has number 1 indicated from alsamixer)

How to install wine:

http://ubuntuhandbook.org/index.php/2020/01/install-wine-5-0-stable-ubuntu-18-04-19-10/

Uninstall a program installed with Wine

$ wine uninstaller
// and select which one you need to remove

How to install UISS 5.4.2 using wine

First, download the .exe from the creator's website. http://users.belgacom.net/hamradio/uissdownload.htm
wine uninstaller - this will open a dialog where you could see all installed wine application, we need to install uiss from here so that we can see the log error from a terminal.
Click install and locate the .exe file

You will encounter an error, although the installation of the uiss will go through. THe error looks like this:
module:import_dll Library MSVBVM60.DLL (which is needed by UISS...

TO SOLVE THIS: We need to install winetricks to properly download the missing .DLL

cd "${HOME}/Downloads"
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sh winetricks vb6run

Then try to reinstall again UISS.

QSSTV DOWNLOAD: http://users.telenet.be/on4qz/

DEPENDENCIES:

sudo apt-get install g++ libfftw3-dev qt5-default libpulse-dev

sudo apt-get install hamlib-dev libasound2-dev libv4l-dev

sudo apt-get install libopenjp2-7 libopenjp2-7-dev

If you don't find hamlib-dev and throwing out compile errors, try to use sudo apt install libhamlib-dev

If you don't find libopenjp2-7 you can download it with the follwing commands if you're running a Debian derived distribution:

wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_i386.deb

wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_i386.deb

or

wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7_2.1.0-2_amd64.deb

wget http://ftp.de.debian.org/debian/pool/main/o/openjpeg2/libopenjp2-7-dev_2.1.0-2_amd64.deb

cd ~/Downloads
tar -xvzf qsstv_9.4.4.tar.gz
cd qsstv_9.4.4
qmake
make
sudo make install

Gpredict

git clone https://github.com/csete/gpredict.git
git pull
sudo apt install libtool intltool autoconf automake libcurl4-openssl-dev
sudo apt install pkg-config libglib2.0-dev libgtk-3-dev libgoocanvas-2.0-dev
cd gpredict

If you are building directly from the git repository, you have to run ./autogen.sh instead of of configure. You can pass the same options to the autogen.sh script as you would to the configure script.

autoreconf -i ./autogen.sh make sudo make install