discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Setting up GNU Radio


From: Richard Bell
Subject: Re: [Discuss-gnuradio] Setting up GNU Radio
Date: Thu, 12 Mar 2015 15:02:04 -0700

Thanks for responding MarcusM,

I can't execute 'sudo ./pybombs install gnuradio' at all, because it fails with the following output:

address@hidden:~/Documents/gnuradio/pybombs$ sudo ./pybombs install gnuradio
Initializing config file...
Username for GIT access
gituser [root]:
Directory of git cache repository
gitcache []:
Install Prefix
Traceback (most recent call last):
  File "./pybombs", line 25, in <module>
    from mod_pybombs import verbosity as v
  File "/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/__init__.py", line 22, in <module>
    from globals import *;
  File "/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/globals.py", line 48, in <module>
    config_init(config);
  File "/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/cfg.py", line 70, in config_init
    if os.path.basename(pwd)=="pybombs":
  File "/usr/lib/python2.7/posixpath.py", line 121, in basename
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
address@hidden:~/Documents/gnuradio/pybombs$


If I install it without sudo to a local account directory, how will other users be able to access the install? Is it simply a matter of setting up the environment variables correctly?

v/r,
Rich

On Thu, Mar 12, 2015 at 2:49 PM, Marcus Müller <address@hidden> wrote:
Hi Richard,
no, not completely.
instead of 1) you should cd somewhere in your home directory, where you have write access
2) - 3) are correct. Choose /usr/local/ as prefix
5) could also be done by copying over setup_env.sh to /etc/profile.d/50-setup-gnuradio-paths

6) is normal and should not result in errors.

If normal users (including) want to install their own OOT modules, they'd use a local clone of pybombs, setting that gnuradio is already installed, and install their modules into a user-prefix (e.g. /home/user/prefix).

Greetings,
Marcus



On 03/12/2015 10:43 PM, Richard Bell wrote:
Hi all,

I'm setting up a new shared laptop with multiple users who want to use GNU Radio. I'm not sure how to set this up correctly.

Should I do it this way:

1) cd /usr/local/bin
2) git clone https://github.com/pybombs/pybombs.git && cd pybombs
3) sudo ./pybombs install gnuradio (sudo needed to give permission to create files here)
4) ./pybombs env

5) Then instead of sourcing the setup_env.sh file from .bashrc, I will source it from /etc/profile.

6) Finally, and this is the part I'm most unsure of, since I used sudo ./pybombs install gnuradio, root owns these files. If I remember correctly, this caused issues for me in the past trying to run gnuradio from a non-root account. How should I handle this?

Thanks a lot,
Rich


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]