.py question
Gene Heskett
gheskett at shentel.net
Tue Apr 23 17:16:58 UTC 2019
On Tuesday 23 April 2019 12:34:39 সাজেদুর রহিম জোয়ারদার wrote:
> Hi Gene Heskett
> Peace be upon you.
>
> > No clue Colin, and its been rebooted a couple times since. They've
> > broken the security rules by having root as username and pw for an
> > ssh login. But thats a clue by itself, so perhaps I should put it in
> > /root? Shudder...
>
> After login via ssh as root user check where are you by issue this
> command in the terminal -- pwd
>
> If it returns "/root" then you need to put your ".py" files under
> "/root" and run accordingly.
Its bricked the card again, running good but vna was not installed yet so
I have it in a reader here getting ready to dd the beta image again.
Then I am going to reboot it every step of the way as I try to complete
the install to find what/where its getting bricked. The /root directory
is empty, so is a /home/izi, but /home/redpitaya has nothing.
ls -l ing around I find:
gene at coyote:~/PublicB/vna-tool/vna-linux-tool$ sudo
ls -l /media/usb0/home/jupyter/RedPitaya/
total 32
drwxr-xr-x 2 root root 4096 Sep 1 2017 docs
drwxr-xr-x 3 root root 4096 Sep 1 2017 examples
drwxr-xr-x 2 root root 4096 Sep 1 2017 experiments
-rw-r--r-- 1 root root 108 Sep 1 2017 README.rst
drwxr-xr-x 5 root root 4096 Sep 1 2017 redpitaya
drwxr-xr-x 2 root root 4096 Sep 1 2017 redpitaya.egg-info
-rw-r--r-- 1 root root 1496 Sep 1 2017 setup.py
-rw-r--r-- 1 root root 2682 Sep 1 2017 welcome.ipynb
Which looks maybe like where I'd put vna.py and vna.ui. Maybe, doing an
ls -lR, it finds:
[...]
/media/usb0/home/jupyter/RedPitaya/redpitaya/drv:
total 112
-rw-r--r-- 1 root root 2678 Sep 1 2017 acq.py
-rw-r--r-- 1 root root 3959 Sep 1 2017 asg_bst.py
-rw-r--r-- 1 root root 2577 Sep 1 2017 asg_per.py
-rw-r--r-- 1 root root 8625 Sep 1 2017 clb.py
-rw-r--r-- 1 root root 2610 Sep 1 2017 evn.py
-rw-r--r-- 1 root root 1290 Sep 1 2017 fixp.py
-rw-r--r-- 1 root root 2234 Sep 1 2017 gen_out.py
-rw-r--r-- 1 root root 3993 Sep 1 2017 gen.py
-rw-r--r-- 1 root root 2029 Sep 1 2017 hwid.py
-rw-r--r-- 1 root root 99 Sep 1 2017 __init__.py
-rw-r--r-- 1 root root 1658 Sep 1 2017 la_msk.py
-rw-r--r-- 1 root root 3335 Sep 1 2017 la.py
-rw-r--r-- 1 root root 1306 Sep 1 2017 la_rle.py
-rw-r--r-- 1 root root 1980 Sep 1 2017 la_trg.py
-rw-r--r-- 1 root root 3989 Sep 1 2017 lg_out.py
-rw-r--r-- 1 root root 2536 Sep 1 2017 lg.py
-rw-r--r-- 1 root root 1758 Sep 1 2017 mgmt.py
-rw-r--r-- 1 root root 3293 Sep 1 2017 osc_fil.py
-rw-r--r-- 1 root root 4152 Sep 1 2017 osc.py
-rw-r--r-- 1 root root 2245 Sep 1 2017 osc_trg.py
-rw-r--r-- 1 root root 2518 Sep 1 2017 overlay.py
-rw-r--r-- 1 root root 938 Sep 1 2017 pdm.py
-rw-r--r-- 1 root root 4568 Sep 1 2017 uio.py
-rw-r--r-- 1 root root 2582 Sep 1 2017 wave.py
[...]
which looks like where those files should go since they are drivers, but
I don't see any other .ui things anyplace, _But_ theres a boatload of
pip3 and pip installed matplotlib & related stuff the rest of it doesn't
need just in front of the vna install too.
Anyway, start with a fresh .img file. It will boot, and network manager
will set a static address. Reboot to see if it will, then theres a ssh
root at address. reboot. then do an apt-get update. reboot. Then apt-get
about a dozen bits of python3. reboot. pip3 install some more python
starting with matplotlib. reboot. We'll see where the reboot fails.
Hell of a way to run a train.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
More information about the ubuntu-users
mailing list