Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry Pi headless question
27-02-2021, 19:59
Post: #11
RE: Raspberry Pi headless question
When I do this (on Windows 7) I use pscp, which comes with the putty package. Does Windows 10 have an scp command that doesn't require the putty package?
Find all posts by this user
Quote this message in a reply
27-02-2021, 20:07
Post: #12
RE: Raspberry Pi headless question
Hi Simbun,

Ok brilliant, I was indeed trying to run scp through ssh session. So I have run the scp straight from the prompt in Powershell as you suggest and I have copied the file over no problem at all. I have had enough for one day, so will try to continue with the install tomorrow. Hopefully the rest will go a little more smoothly.

Thanks again for all your help and patience.
Find all posts by this user
Quote this message in a reply
27-02-2021, 20:08
Post: #13
RE: Raspberry Pi headless question
(27-02-2021 19:59)simoncn Wrote:  When I do this (on Windows 7) I use pscp, which comes with the putty package. Does Windows 10 have an scp command that doesn't require the putty package?

I'm running Windows 10 and "which scp" returns "C:\Windows\System32\OpenSSH\scp.exe" - although I do have WSL installed so I don't know if OpenSSH could have been installed with that - and I don't remember specifically installing it myself.
Find all posts by this user
Quote this message in a reply
27-02-2021, 20:12 (This post was last modified: 27-02-2021 20:14 by stumpi.)
Post: #14
RE: Raspberry Pi headless question
(27-02-2021 19:59)simoncn Wrote:  When I do this (on Windows 7) I use pscp, which comes with the putty package. Does Windows 10 have an scp command that doesn't require the putty package?

Hi Simon,

Sorry just spotted your post, yes Windows 10 had an update around 2018 I believe which allows scp without putty.
Find all posts by this user
Quote this message in a reply
27-02-2021, 20:33
Post: #15
RE: Raspberry Pi headless question
Thanks, good to know.
Find all posts by this user
Quote this message in a reply
28-02-2021, 11:56
Post: #16
RE: Raspberry Pi headless question
Hi Guys,

I am back again! I have this morning installed MinimServer2 on the pi - disabled desktop integration - enabled auto start on boot. I have got to the point where I have to specify the path to the content directory on the usb and it is not working. If I enter null it stops Minimserver2 from running. If I restart, I can do nothing until I specify this path correctly.

From Windows Explorer Properties the long number of my Usb drive is:4d36e967-e325-11ce-bfc1-08002be10318.
So as Simon suggested I have tried to enter:
/media/pi/4d36e967-e325-11ce-bfc1-08002be10318.
I have also tried various other permutations to no avail.

I have run the 'sudo lsblk' and paste the output here:
pi@rpiserver:~ $ sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
UUID NAME FSTYPE SIZE MOUNTPOINT LABEL MODEL
sda 114.6G Ultra_Fit
5FE6-0DDD └─sda1 vfat 114.6G
mmcblk0 14.9G
DC3E-E470 ├─mmcblk0p1 vfat 256M /boot boot
a7adb26a-8b87-4729-99c8-9f5ac069d51e └─mmcblk0p2 ext4 14.6G / rootfs

From the above the Usb is the Ultra_Fit, no information is anonymised here, so could anyone tell me exactly what I need to type when prompted to enter 'content directory'. Many thanks for your help again.
Find all posts by this user
Quote this message in a reply
28-02-2021, 12:22 (This post was last modified: 28-02-2021 12:45 by simbun.)
Post: #17
RE: Raspberry Pi headless question
If you're relying on automount, type:

ls -l /media/pi

EDIT: Not as the content dir :-)

If the above command just returns 'total 0' then it doesn't look as though it has auto mounted (I use Ubuntu so don't know if Raspberry Pi OS should automount on a headless install) then follow the first guide I linked to in my first post.
Find all posts by this user
Quote this message in a reply
28-02-2021, 13:00 (This post was last modified: 28-02-2021 13:01 by stumpi.)
Post: #18
RE: Raspberry Pi headless question
Hi Simbun,

Ok, I logged into the pi and typed ls -l /media/pi. I then started Minimserver which asked for the directory path, I entered: /media/pi/4d36e967-e325-11ce-bfc1-08002be10318, which is not a valid directory.

I am not sure if you meant this to be a prefix to the directory path, so Ihave tried: ls -l/media/pi/4d36e967-e325-11ce-bfc1-08002be10318, which is also not a valid directory.

I am really sorry, can you spell this out in words of one syllabal for me. As far as I can tell from 'sudo lsblk' the drive is mounted already. Many thanks.
Find all posts by this user
Quote this message in a reply
28-02-2021, 13:28 (This post was last modified: 28-02-2021 13:30 by simbun.)
Post: #19
RE: Raspberry Pi headless question
So your output looked something like:
Code:
pi@piMusicServer:~ $ ls -l /media/pi
total 28
drwxr-s--- 323 ????? ????? 12288 Feb 12 20:32 4d36e967-e325-11ce-bfc1-08002be10318

The d at the beginning of the line indicates that it's a directory.
Can you post the output from the "ls -l /media/pi" command, and then the "ls -l /media/pi/4d36e967-e325-11ce-bfc1-08002be10318" command?

I assume if it's going to automount it should be owned by the user pi.

And yes, "ls -l /media/pi/4d36e967-e325-11ce-bfc1-08002be10318" should return a directory listing of your usb key (and is what you should put in the content directory).

The command "sudo lsblk" just states that the USB is connected, issuing "df" show's you what partitions you have and where they're mounted.
Find all posts by this user
Quote this message in a reply
28-02-2021, 13:47
Post: #20
RE: Raspberry Pi headless question
(28-02-2021 13:28)simbun Wrote:  So your output looked something like:
Code:
pi@piMusicServer:~ $ ls -l /media/pi
total 28
drwxr-s--- 323 ????? ????? 12288 Feb 12 20:32 4d36e967-e325-11ce-bfc1-08002be10318

The d at the beginning of the line indicates that it's a directory.
Can you post the output from the "ls -l /media/pi" command, and then the "ls -l /media/pi/4d36e967-e325-11ce-bfc1-08002be10318" command?

I assume if it's going to automount it should be owned by the user pi.

And yes, "ls -l /media/pi/4d36e967-e325-11ce-bfc1-08002be10318" should return a directory listing of your usb key (and is what you should put in the content directory).

The command "sudo lsblk" just states that the USB is connected, issuing "df" show's you what partitions you have and where they're mounted.

Hi Simbun,

The output in both cases is: 'is not a content directory.
Enter content directory, or null to continue:'
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)