Running Under Linux » History » Version 20
Tony Fuller, 07/23/2022 02:35 PM
Add snap installation instructions
1 | 1 | Dan Smith | h1. Running CHIRP Under Linux |
---|---|---|---|
2 | |||
3 | {{>toc}} |
||
4 | |||
5 | CHIRP's preferred platform is Linux. By far the best way to get CHIRP running is to use one of the binary package repositories provided and maintained by volunteers. If you are running an obscure or old distribution, you may need to install it manually from the source tarball. |
||
6 | |||
7 | 20 | Tony Fuller | h2. Installing the flatpak |
8 | 1 | Dan Smith | |
9 | 20 | Tony Fuller | You will need flatpak package support from your distribution. Check https://www.flatpak.org/setup/ for distribution specific instructions. |
10 | CHIRP will not automatically update when installed using this method. When you are ready to update CHIRP, you should download a new flatpak and run the @flatpak install@ command again. |
||
11 | 1 | Dan Smith | |
12 | sudo apt install flatpak |
||
13 | sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo |
||
14 | |||
15 | Next download the latest flatpak bundle from https://trac.chirp.danplanet.com/chirp_daily/LATEST/ |
||
16 | 20 | Tony Fuller | It will probably be saved in your Downloads directory |
17 | 1 | Dan Smith | |
18 | cd ~/Downloads |
||
19 | sudo flatpak install chirp-daily-*.flatpak |
||
20 | |||
21 | You may need to log in and log out to see CHIRP in your distribution's applications menu. |
||
22 | If you can't wait to start CHIRP run |
||
23 | |||
24 | flatpak run com.danplanet.chirp |
||
25 | 19 | Tony Fuller | |
26 | h2. Fedora package via the D-RATS RPM repository |
||
27 | |||
28 | 20 | Tony Fuller | First, we install the repository RPM and then CHIRP itself. From a terminal: |
29 | 19 | Tony Fuller | |
30 | 1 | Dan Smith | rpm -Uvfh http://d-rats.com/yum/f11/d-rats-repo-0.1.2-1.fc11.noarch.rpm |
31 | yum install chirp |
||
32 | |||
33 | Look for CHIRP under your distribution's applications menu. |
||
34 | 20 | Tony Fuller | |
35 | h2. Installing the snap |
||
36 | |||
37 | You will need snap package support for your distribution. Check https://snapcraft.io/chirp-snap for distribution specific instructions. |
||
38 | Snaps automatically update when the device is connected to the internet. This is the biggest advantage over the flatpak. |
||
39 | |||
40 | sudo snap install chirp-snap --edge |
||
41 | sudo snap connect chirp-snap:raw-usb |
||
42 | |||
43 | If you do not see CHIRP under your distribution's applications menu then you can manually create using |
||
44 | |||
45 | ln -s /var/lib/snapd/desktop/applications/chirp-snap_chirp-snap.desktop ~/.local/share/applications |
||
46 | 19 | Tony Fuller | |
47 | h2. Ubuntu package via PPA (20.04 and earlier) |
||
48 | |||
49 | This is super quick and easy if you're running a reasonably new version of Ubuntu. Simply run the following in a terminal: |
||
50 | |||
51 | sudo apt-add-repository ppa:dansmith/chirp-snapshots |
||
52 | sudo add-apt-repository ppa:nrbrtx/python2-stuff # Older installations of Ubuntu do not need this (20.04 and earlier) |
||
53 | sudo apt-get update |
||
54 | sudo apt-get install chirp-daily python-future |
||
55 | |||
56 | Look for CHIRP under your distribution's applications menu. |
||
57 | 2 | Dan Smith | |
58 | 1 | Dan Smith | h2. Manual installation from source |
59 | |||
60 | 2 | Dan Smith | If you are here, you are probably running an old or obscure distribution, or you want to run from source for some other reason (such as testing a daily build). Before you start, make sure that the required python modules are installed on your system. Some suggestions on how to do this are: |
61 | |||
62 | 16 | Tony Fuller | * Ubuntu/Debian: @apt-get install python-gtk python-serial python-libxml2 python-future@ |
63 | * Fedora/RedHat: @yum install pyserial pygtk2 libxml2-python python2-futures@ |
||
64 | 2 | Dan Smith | |
65 | Next, grab the source tarball from the [[Download]] page and save it somewhere like your home directory and then unpack it: |
||
66 | 1 | Dan Smith | |
67 | tar xzf chirp-0.1.12.tar.gz |
||
68 | cd chirp-0.1.12 |
||
69 | |||
70 | From here, the easiest thing is to just launch CHIRP directly without installing it onto your system. Don't worry, this works just fine and CHIRP will be fully functional. Simply run the following: |
||
71 | |||
72 | ./chirpw |
||
73 | |||
74 | Once you've tested that it runs on your system, you may want to install it permanently. To do this, run the setup routine by doing: |
||
75 | |||
76 | sudo python setup.py install |
||
77 | |||
78 | When finished, you should be able to run "chirpw" from anywhere on your system, and (with luck) you'll also have an item in your distribution's applications menu. |
||
79 | 4 | Jeff Otterson | |
80 | 6 | Jens Jensen | h2. serial port permissions |
81 | 7 | Jens Jensen | |
82 | 16 | Tony Fuller | Note that you may need to adjust permissions on the /dev/tty(something) device, or add your users who want to use CHIRP to the "dialout" group in order to let non-privileged users access the serial device. |
83 | 8 | Jens Jensen | |
84 | This issue is often indicated by an "access denied" error when accessing serial port. |
||
85 | 9 | Jens Jensen | |
86 | 14 | Pavel Milanes | On most Linux distros this is accomplished with: |
87 | 9 | Jens Jensen | <pre> |
88 | 13 | Pavel Milanes | sudo addgroup "$USERNAME" dialout |
89 | 1 | Dan Smith | </pre> |
90 | 13 | Pavel Milanes | |
91 | You will then need to log out and back in for it to take effect. |