Project

General

Profile

Running Under Linux » History » Version 4

Jeff Otterson, 11/06/2011 06:00 PM
added some info about allowing non-root access to the serial port

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
h2. Ubuntu package via PPA
8
9
This is super quick and easy if you're running a reasonably new version of Ubuntu. Simply run the following in a terminal:
10
11
  sudo apt-add-repository ppa:sconklin/hampackages
12
sudo apt-get update
13
sudo apt-get install chirp
14
15 2 Dan Smith
Look for CHIRP under your distribution's applications menu. For more information, please see "Steve's PPA page":https://launchpad.net/~sconklin/+archive/hampackages
16 1 Dan Smith
17
h2. Fedora package via the D-RATS RPM repository
18
19
This too is quite easy. First, we install the repository RPM and then CHIRP itself. From a terminal:
20
21 3 Dan Smith
  rpm -Uvfh http://d-rats.com/yum/f11/d-rats-repo-0.1.2-1.fc11.noarch.rpm
22 1 Dan Smith
yum install chirp
23
24 2 Dan Smith
Look for CHIRP under your distribution's applications menu.
25
26 1 Dan Smith
h2. Manual installation from source
27
28 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:
29
30
* Ubuntu/Debian: @apt-get install python-gtk python-serial python-libxml2@
31
* Fedora/RedHat: @yum install pyserial pygtk2 libxml2-python@
32
33
Next, grab the source tarball from the [[Download]] page and save it somewhere like your home directory and then unpack it:
34 1 Dan Smith
35
  tar xzf chirp-0.1.12.tar.gz
36
cd chirp-0.1.12
37
38
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:
39
40
  ./chirpw
41
42
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:
43
44
  sudo python setup.py install
45
46
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.
47 4 Jeff Otterson
48
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.