Go to advanced search

by kaksi
Fri Jul 10, 2020 11:12 am
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Re: Permission denied despite sudo

afaik this: https://en.wikipedia.org/wiki/Media_Transfer_Protocol Its a whole separate protocol just for transferring images/videos/audio from mobile devices. You are nowhere near directly access to any flash/disk/partition on your phone. I considered a protocol as a set of rules HOW data is transf...
by kaksi
Tue Jul 07, 2020 7:28 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Re: Permission denied despite sudo

If the phone has removable storage, you should be able to connect it using a card reader. At first, I need to copy the phone internal memory to the removable media. I tried Terminal Emulator, no dd. I could not instal Termux. Otherwise, you may be able to configure the phone for Mass Storage mode. ...
by kaksi
Tue Jul 07, 2020 7:09 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Re: Permission denied despite sudo

If you COPY A:*.* /s B:, the OS reports them identical, but byte by byte, they will be different (special cases excepted). Do you have some evidence to back up that claim? If files were being routinely changed on a simple copy don't you think someoen would have complained about it decades ago? Caut...
by kaksi
Tue Jul 07, 2020 4:48 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Re: Permission denied despite sudo

Like I said.. explain what you are trying to do ! Maybe you remember the DOS command DISKCOPY. It copied a floppy sector by sector. Compared byte by byte, these floppies were identical. If you COPY A:*.* /s B:, the OS reports them identical, but byte by byte, they will be different (special cases e...
by kaksi
Tue Jul 07, 2020 12:24 pm
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Re: Permission denied despite sudo

rpdom wrote:
Tue Jul 07, 2020 10:15 am
You appear to be trying to dd from a directory to a directory. That isn't what dd does.
I am ready to negotiate:
- I can change the destination to of=/dev/sdx
- the man says: "if=FILE" - a directory is a file, isn't it?
by kaksi
Tue Jul 07, 2020 7:49 am
Forum: Beginners
Topic: Permission denied despite sudo
Replies: 27
Views: 687

Permission denied despite sudo

pi@raspberrypi:/run/user/1000/gvfs/mtp:host=MediaTek_MT65xx_Android_Phone_0123456789ABCDEF/Phone storage/Pictures/Screenshots $ ll total 6431 -rw------- 1 pi pi 1288370 Mar 19 15:08 Screenshot_2020-03-19-15-08-15.png -rw------- 1 pi pi 1123875 Mar 19 15:08 Screenshot_2020-03-19-15-08-26.png -rw----...
by kaksi
Sun Jul 05, 2020 5:20 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 203

Re: How to take control of Android from RPI?

Are you trying to recover some “lost” files (photos)? In fact, yes, this is the first goal. Further, it would not be bad to examine the copy without the fear to do some harm. For the first problem, I tried some apps: they only look in ./Camera and I do not want to hear about them any more. I tried ...
by kaksi
Sun Jul 05, 2020 4:18 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 203

Re: How to take control of Android from RPI?

If I connect my Android phone (S7) to my pi4 using the phone's USB charging cable, and enable mtp when the phone asks me, I can see all the files on the phone via File Manger on the pi. Will that work for you? Yes, that works, but I need more control. My first goal is to examine the copy by photore...
by kaksi
Sun Jul 05, 2020 1:24 pm
Forum: Beginners
Topic: How to take control of Android from RPI?
Replies: 6
Views: 203

How to take control of Android from RPI?

I would like (between other, if possible) to:

Code: Select all

dd if=Android of=/media/pi/STICK
or at least:

Code: Select all

dd if=/storage/emulated/0/DCIM/OpenCamera of=/media/pi/STICK
by kaksi
Wed Jun 24, 2020 9:06 am
Forum: Python
Topic: sudo python3 No module named 'cv2'
Replies: 9
Views: 325

Re: sudo python3 No module named 'cv2'

HATHEMI wrote:
Sun Jun 21, 2020 8:04 pm
sudo python3 prog.py
Can't you run python w/o sudo?

I learnt the hard way sudo is a false friend and problems are postponed. i.e. sudo python allowed me to write files on the USB stick. It was then pain to work with them. A much better solution in my case: chown.
by kaksi
Sun Jun 07, 2020 7:47 pm
Forum: Python
Topic: Help my code to look better
Replies: 12
Views: 569

Re: Help my code to look better

It seems to me that line_number is not used.
by kaksi
Tue May 26, 2020 12:24 pm
Forum: General discussion
Topic: ssh stops after some time
Replies: 3
Views: 140

Re: ssh stops after some time

B.Goode wrote:
Tue May 26, 2020 9:26 am
kaksi wrote:
Tue May 26, 2020 9:20 am
Periodically, the ssh stops, I have to restart it. If I leave the RPI idle overnight, I have to unplug and plug in the mouse.
"Periodically, the ssh stops, I have to restart it."

How do you diagnose that? What steps do you take to restart sshd?
service ssh status
service ssh restart
by kaksi
Tue May 26, 2020 12:10 pm
Forum: Python
Topic: No module named 'cv2' after update.
Replies: 3
Views: 216

Re: No module named 'cv2' after update.

If you want to use the Python3 interpreter - as you should - then you need to install Python3 versions of the modules you want to import. Thanks, that was the problem. As a boy from a good family, I do use Python3. It just never came to my mind that sudo apt install python-opencv might not install ...
by kaksi
Tue May 26, 2020 9:20 am
Forum: General discussion
Topic: ssh stops after some time
Replies: 3
Views: 140

ssh stops after some time

I upgraded to 2020-02-13-raspbian-buster with existing file /boot/ssh. In the starting dialogue, I just changed the password. Then I replaced the wpa_supplicant.conf. Periodically, the ssh stops, I have to restart it. If I leave the RPI idle overnight, I have to unplug and plug in the mouse. What dr...
by kaksi
Tue May 26, 2020 9:12 am
Forum: Python
Topic: No module named 'cv2' after update.
Replies: 3
Views: 216

No module named 'cv2' after update.

About three months ago, I installed python-opencv. So far, so good. I upgraded to 2020-02-13-raspbian-buster and installed python-opencv. pi@raspberrypi:/media/pi/SLATE_1 $ sudo apt install python-opencv Reading package lists... Done Building dependency tree Reading state information... Done python-...
by kaksi
Tue May 26, 2020 8:54 am
Forum: Beginners
Topic: Smartphone as camera
Replies: 4
Views: 275

Re: Smartphone as camera

drgeoff wrote:
Sat May 23, 2020 5:05 pm
There are clones of the original (v1) RPI camera which are a fraction of the price mentioned.
Under circumstances, I am not willing to risk an RPI, but I do not care for an outdated phone with a dead battery.
by kaksi
Tue May 26, 2020 8:50 am
Forum: Beginners
Topic: Smartphone as camera
Replies: 4
Views: 275

Re: Smartphone as camera

An idea for 1 fps.

I installed on the phone Open Camera which can take one picture per second. and transfer these pictures using SSHDroid (on the phone) and WinSCP (on the PC).

(It is on my to_do list to transfer pictures directly by ssh.)
by kaksi
Thu May 21, 2020 3:32 pm
Forum: Beginners
Topic: Can I replace the start-up dialogue?
Replies: 6
Views: 250

Re: Can I replace the start-up dialogue?

HawaiianPi wrote:
Thu May 21, 2020 11:34 am
Editing the image is not that hard.
Everything is relative, depends for whom.

I achieved a great improvement with sudo cp keyboard /etc/default. RPI does not mind remaining in GB, ssh is enabled, so I get thru the config quickly and only once.
by kaksi
Thu May 21, 2020 8:49 am
Forum: Beginners
Topic: Can I replace the start-up dialogue?
Replies: 6
Views: 250

Can I replace the start-up dialogue?

For various reasons, from time to time, I perform a clean reinstall. When I started with RPI2, I could not imagine my life without raspi-config. Now, when I go thru the starting menu over and over again, I dream about a bash that would replace this dialogue using a kind of answerfile: camera=on coun...
by kaksi
Wed May 20, 2020 11:52 am
Forum: General discussion
Topic: Raspberry Pi Imager and write protected card
Replies: 13
Views: 460

Re: Raspberry Pi Imager and write protected card

SD cards have their own processors on board and do an awful lot of stuff we know nothing about. They run closed source software and I suspect there is a lot of interaction between card and computer that is undocumented. As such this problem is likely unfixable in the Linux world. What if the proces...
by kaksi
Wed May 20, 2020 11:27 am
Forum: General discussion
Topic: Raspberry Pi Imager and write protected card
Replies: 13
Views: 460

Re: Raspberry Pi Imager and write protected card

Some people have reported here a few times that when they have SD cards that have become write protected they cannot do anything with them with the Pi or Etcher or formatting from Windows or with other tools. BUT, they report having success popping the card into an Android mobile phone and formatti...
by kaksi
Wed May 20, 2020 9:08 am
Forum: General discussion
Topic: Raspberry Pi Imager and write protected card
Replies: 13
Views: 460

Raspberry Pi Imager and write protected card

Would it not be nice if the next version would not care for write protection? Or at least give an option.

Please DO NOT tell me to throw the card. Yes, I know there has been an error. Yes, I know it might be unreliable. Yes, I know it only should be used for test purposes.
by kaksi
Sun May 03, 2020 9:50 pm
Forum: Beginners
Topic: Raspberry Pi Imager - Where do images get downloaded to?
Replies: 6
Views: 283

Re: Raspberry Pi Imager - Where do images get downloaded to?

mccannd wrote:
Sun May 03, 2020 10:58 am
Where does the Raspbian image get downloaded to...on my Win 7 PC?/quote]

In such cases, I open the command prompt and issue

Code: Select all

dir c:\".img /s/p
or

Code: Select all

dir c:\*raspbi* /s/p
by kaksi
Sat Apr 11, 2020 10:51 am
Forum: Python
Topic: how to solve wile loop trouble
Replies: 7
Views: 269

Re: how to solve wile loop trouble

I did not handle the diesel, it is trivial to close it when the wood boiler is on. Plus the second "if" should probably be indented one more level otherwise it could turn on the diesel immediately if the wood fired boiler state changes between the first and second "if". Yes... I feel ashamed for suc...
by kaksi
Thu Apr 09, 2020 3:12 pm
Forum: Python
Topic: how to solve wile loop trouble
Replies: 7
Views: 269

Re: how to solve wile loop trouble

when the wood-fired boiler close, it have to wait for some time if comes back then fire up the diesel. But if wood-fired boiler comes back then immediately has to close the diesel boiler. What about: import time while 1: if wood-fired_boiler_closed(): time.sleep(5) # check whether it came back if w...

Go to advanced search