ChirpOnLinux » History » Version 7
Dan Smith, 03/09/2023 05:52 PM
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 | 6 | Masen Furer | A desktop entry 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 | 4 | Masen Furer | |
26 | 6 | Masen Furer | See the template desktop entry distributed with chirp: https://github.com/kk7ds/chirp/blob/master/chirp/share/chirp.desktop |
27 | 4 | Masen Furer | |
28 | 6 | Masen Furer | If you have installed chirp for your user only, then update the paths for your home directory: `~/.local/share/applications/chirp.desktop` |
29 | 4 | Masen Furer | |
30 | ``` |
||
31 | [Desktop Entry] |
||
32 | Name=CHiRP-next (user install) |
||
33 | Comment=Program radios using CHiRP |
||
34 | Keywords=ham radio |
||
35 | Exec=.local/bin/chirp |
||
36 | Icon=.local/lib/python3.9/site-packages/chirp/share/chirp.ico |
||
37 | Terminal=false |
||
38 | StartupNotify=true |
||
39 | Type=Application |
||
40 | Categories=HamRadio |
||
41 | ``` |
||
42 | |||
43 | ### (Optional) Newer `wxPython` |
||
44 | |||
45 | 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: |
||
46 | 2 | Dan Smith | ``` |
47 | pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython |
||
48 | ``` |
||
49 | 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. |
50 | 5 | Masen Furer | |
51 | 7 | Dan Smith | ## Python 3.11 issues |
52 | |||
53 | Right now (as of 9-March-2023), testing and released builds are based on <=3.10. If you want to run chirp on a distro with 3.11 you'll likely have to do some work on your own. |
||
54 | |||
55 | For issues with `attrdict` see [this github issue](https://github.com/wxWidgets/Phoenix/issues/2296). |
||
56 | |||
57 | 5 | Masen Furer | ## Serial port permissions |
58 | |||
59 | 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. |
||
60 | |||
61 | This issue is often indicated by an "access denied" error when accessing serial port. |
||
62 | |||
63 | On most Linux distros this is accomplished with: |
||
64 | |||
65 | ``` |
||
66 | sudo addgroup "$USERNAME" dialout |
||
67 | ``` |
||
68 | |||
69 | For other distributions, such as Manjaro, you may need to add your user to the uucp group. |
||
70 | |||
71 | You will then need to log out and back in for it to take effect. |