Project

General

Profile

ChirpOnLinux » History » Version 5

Masen Furer, 01/24/2023 10:23 PM
added serial port permissions (even though this is seen on other older pages)

1 1 Dan Smith
# Running CHIRP on Linux
2
3
This page describes how to get the newer python3-based CHIRP-next running on Linux.
4
5
## Debian, Ubuntu, Mint, Raspbian, etc
6
7
Install prerequisite packages:
8
9
```
10
$ sudo apt install git python3-wxgtk4.0 python3-serial python3-six python3-future python3-requests python3-pip
11
```
12
13
You should be able to install either the wheel or the tarball using `pip`:
14
15
```
16
$ pip3 install chirp-next-20230114.tar.gz
17
```
18
> **_NOTE:_**  Your system may install `pip` as `pip3` like above, or just `pip`
19
20
If you run the above command as a regular user, the `chirp` executable will be installed into `~/.local/bin/chirp`. If you run it as root, then it will be in `/usr/local/bin/chirp` as you might normally expect.
21 2 Dan Smith
22 4 Masen Furer
### Create a desktop (menu) entry
23
24
This can be placed in `/usr/share/applications/chirp.desktop` to have a menu entry added. Or it can be placed on the desktop itself to add an icon.
25
26
```
27
[Desktop Entry]
28
Name=CHiRP-next
29
Comment=Program radios using CHiRP
30
Keywords=ham radio
31
Exec=/usr/local/bin/chirp
32
Icon=/usr/local/lib/python3.9/dist-packages/chirp/share/chirp.ico
33
Terminal=false
34
StartupNotify=true
35
Type=Application
36
Categories=HamRadio
37
```
38
39
If you have installed chirp for your user only, then use paths for your home directory: `~/.local/share/applications/chirp.desktop`
40
41
```
42
[Desktop Entry]
43
Name=CHiRP-next (user install)
44
Comment=Program radios using CHiRP
45
Keywords=ham radio
46
Exec=.local/bin/chirp
47
Icon=.local/lib/python3.9/site-packages/chirp/share/chirp.ico
48
Terminal=false
49
StartupNotify=true
50
Type=Application
51
Categories=HamRadio
52
```
53
54
### (Optional) Newer `wxPython`
55
56
You may want to install a newer wxPython, depending on what your distro ships. For Debian-derived distros (including Ubuntu and Mint) you can do that with a command like:
57 2 Dan Smith
```
58
pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython
59
```
60 3 Dan Smith
Check the [directory listing](https://extras.wxpython.org/wxPython4/extras/linux/gtk3/) for other distro versions and use the closest match to what you're on. **NOTE** that this will not work for non-x86_64 machines (like the Raspberry Pi) as there are no binary builds for those platforms.
61 5 Masen Furer
62
## Serial port permissions
63
64
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.
65
66
This issue is often indicated by an "access denied" error when accessing serial port.
67
68
On most Linux distros this is accomplished with:
69
70
```
71
sudo addgroup "$USERNAME" dialout
72
```
73
74
For other distributions, such as Manjaro, you may need to add your user to the uucp group.
75
76
You will then need to log out and back in for it to take effect.