MacBook .mp3, and, https://connect.raspberrypi.com/devices

Hi,

I want to see how I move .mp3 on a MacBook to Raspberry Pi 5 connected by

File:connect.raspberrypi.com/devices

:slight_smile:

Bill

1 Like

You can follow these docs

1 Like

Hey there, @Bill293536,

I can’t say I’ve done it on a Macbook, but it looks like the scp command is used across Unix systems. From your command line:

scp /path/to/local/file username@hostname:/path/to/remote/file

There’s a couple more commands in this thread that could come in handy as well, such as transferring between remote machines.

And of course, if all else fails, you can always just put it on a USB, connect it to the Pi, and move it from the mounted drive via via some good mkdir, mv, and cp commands.

Thank you.

I can’t quite work out how to get:

username

hostname

password

port

Sorry!

:frowning:

Bill

2 Likes

Hey there, Bill,

Let me clear that up because I guarantee you’ll know most of these under a different name:

  • Your username is just the username of your account on the Pi. If you don’t know it, next time you’re in the terminal write ‘whoami’ and it will come up.
  • Your password is just whatever you use to sign into this account.
  • For hostname, just put the IP Address of your Pi.
  • You can ignore Port, unless you have specially customised your Pi it will just use the default port 22.

Hope that helps, Bill,

Secure, Contain, Protect.

1 Like

Jane,

:slight_smile:

For hostname, just put the IP Address of your Pi - Where do I find this?

Bill

1 Like

Hey there, Bill,

Ok, I presume that you’re already able to access your pi.

You should find it by using the below command in Terminal:

ifconfig

A couple of options will come up depending on what networking method you’re using. If you Pi is on a wireless network, you want the wlan0. If your Pi is wired, you’ll want eth0. It’s ok if the numbers at the end are different.

Your IP Address will probably start with 192.168. . Make sure you don’t use the one that ends in 1 as that’s your router’s address.

Jane,

I am so sorry. I can’t get the FileZilla to work.

:frowning:

Host: pi

Username: pi

Password: #####

Port:

========

Connection attempt failed with “ECONNREFUSED - Connection refused by server”

Bill

1 Like

Hey there, @Bill293536,

Sorry, are you using the scp command I recommended to you previously or are you using FileZilla?

FileZilla works quite differently to the scp command as it needs the ftp ports to be activated and for there to already be a server on the device that you’re connecting to. Have you sent up a FileZilla server on your Raspberry Pi? And enabled a port to have access to.

It’s why I recommend using the scp command as it only requires ssh access on the Pi.

P.S. Please do not put your passwords on the forum, that is an extremely bad idea.

billnoble@Bills-MacBook-Air ~ % scp /users/billnoble/desktop/hello.mp3 xxxxxxxx@pi:/pi/desktop/hello.mp3

zsh: event not found: @pi

Hey there, @Bill293536, try replacing the name @pi with the IP address of your Pi.

Jane,

:slight_smile:

scp /users/billnoble/desktop/hello.mp3 xxxxxxxxxx%@pi:/pi/desktop/hello.mp3

pi is correct.

Do I enter the password as “xxxxxxxxxxx%” or something similar?

Hey there, Bill,

I think you’re file path is also wrong. If you’re sending it to a folder called desktop on your Pi it would:

/home/pi/desktop/hello.mp3

And please check your capitalisations. Debian systems are case sensitive and if you’re trying to have it appear on the Desktop, that should be:

/home/pi/Desktop/hello.mp3

$ scp /users/billnoble/desktop/hello.mp3 xxxxxxxx!@pi:/home/pi/Desktop/hello.mp3

bash: !@pi: event not found

1 Like

Thanks for that, Bill,

But can you please confirm that you’re entering [username]@[IP Address] because @pi sometimes will not always resolve?

Hi Jane,

:slight_smile:

It is exactly the:

“scp /users/billnoble/desktop/hello.mp3 xxxxxxxx!@pi:/home/pi/Desktop/hello.mp3”

With the result being:

“bash: !@pi: event not found”

I estimate that there is something about “xxxxxxxx!” that there is something wrong?

Bill

Hi Bill
Just noticed this.
Jane posted

Your entry

I note the exclamation mark between xx and @. I am not sure here but doesn’t an exclamation mark have some significance in the digital world like “NOT”
Like you are actually saying “NOT@”
Cheers Bob

Ah, maybe you’re right!

Can I put the thing in: " "?

Hi Bill

Why ?? Just leave it out and try.
Cheers Bob

Hey there, Bill,

Bob is right here, the ! mark would be used as a history expansion and throw off the entire bash script.

And no, your username should be exactly as it is on your Pi, no changes or different punctuation.

Finally, don’t put in your password at any point in the command. If all goes accordingly, you should then be prompted for your password on a new line.