User Tools

Site Tools


qttermtcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
qttermtcp [2023/03/22 23:51] 2e0sipqttermtcp [2023/05/21 16:21] – [Raspbian Desktop] ab4mw
Line 71: Line 71:
  
 You should now be able to launch QtTermTCP from the "Applications" menu You should now be able to launch QtTermTCP from the "Applications" menu
 +
 +==== Raspbian Desktop ====
 +=== NOTE: the following instructions work exactly the same for Ubuntu 22.04 ===
 +
 +QtTermTCP can be compiled for a Raspberry Pi. From a fresh install run the following commands:
 +
 +<code>
 +# First let's install the support packages.
 +sudo apt-get install -y qt5-qmake qtbase5-dev libqt5serialport5-dev git
 +
 +# Move to the user's home folder and create a source folder.
 +# If it already exists, it's ok.
 +cd
 +mkdir -p src
 +cd src
 +
 +# Download the source code.
 +git clone git://vps1.g8bpq.net/QtTermTCP
 +cd QtTermTCP
 +
 +# We want to do a shadow build so it's easy to update later
 +mkdir build
 +cd build
 +qmake ..
 +
 +# NOTE: older Pi's like 2's and 3's will want to use a "-j2" or "-j3"
 +# but Pi 4/400's can support the "-j4" just fine.
 +make -j4
 +
 +# Now the executable will reside in the build folder so let'
 +# make a tidy home for it as a folder in our home folder.
 +mkdir -p ~/QtTermTCP
 +cp QtTermTCP ~/QtTermTCP
 +cd ~/QtTermTCP
 +
 +# Ensure the program is executable.
 +chmod +x QtTermTCP
 +
 +# Now make a simple script to use for a desktop shortcut or manually starting the program.
 +touch QtTermTCP.sh
 +echo "#!/bin/bash" > QtTermTCP.sh
 +echo "cd ~/QtTermTCP" >> QtTermTCP.sh
 +echo "./QtTermTCP > /dev/null & 2>&1" >> QtTermTCP.sh
 +echo "exit 0" >> QtTermTCP.sh
 +chmod +x QtTermTCP.sh
 +</code>
 +
 +The program may be run using the shell script found at /home/<user>/QtTermTCP/QtTermTCP.sh
 +
 +This shell script may also be used to build a shortcut for the desktop.  For RPi, open the File Manager and find the QtTermTCP.sh file.  Drag the file to the desktop and drop it.  For other Linuxes, the desktop shortcut creation may be different.
 +
 +
  
 ===== Setup ===== ===== Setup =====