MinimServer Forum
Raspberry Pi headless question - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Raspberry Pi headless question (/showthread.php?tid=6087)

Pages: 1 2 3


RE: Raspberry Pi headless question - simoncn - 27-02-2021 19:59

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?


RE: Raspberry Pi headless question - stumpi - 27-02-2021 20:07

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.


RE: Raspberry Pi headless question - simbun - 27-02-2021 20:08

(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.


RE: Raspberry Pi headless question - stumpi - 27-02-2021 20:12

(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.


RE: Raspberry Pi headless question - simoncn - 27-02-2021 20:33

Thanks, good to know.


RE: Raspberry Pi headless question - stumpi - 28-02-2021 11:56

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.


RE: Raspberry Pi headless question - simbun - 28-02-2021 12:22

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.


RE: Raspberry Pi headless question - stumpi - 28-02-2021 13:00

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.


RE: Raspberry Pi headless question - simbun - 28-02-2021 13:28

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.


RE: Raspberry Pi headless question - stumpi - 28-02-2021 13:47

(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:'