Hot answers tagged

28

Welcome to the world of Pi - you will get many hours of fun from them once you are up and running. First check with your supplier to see if the version of the operating system they put on the card had ssh enabled - most suppliers do not do this though. If not: Try ping raspberry.local - it may find it. Check your router to see if you have a new device Look ...


10

To find the IP address of your Raspberry Pi, you can try one of the following: ping with common names (rpi, rpi4, rpi3 and raspberry) look at your router administration console to list all devices on the LAN use tools for LAN analysis (like Fing for Android) If ssh is not enabled by default, if you don't own an SD reader nor a USB flash drive, nor a USB ...


8

I figured it out. Screen Configuration tool is just a GUI for XRandR. We can use, DISPLAY=:0 xrandr --output $monitorName --rotate $orientation Where $monitorName is the display name from the output of DISPLAY=:0 xrandr. $orientation is left, right, inverted, or normal.


8

It is possible to access the Pi over serial terminal, but this requires a USB-serial dongle on the laptop. It is far easier to buy a SD Card reader to enable ssh - these are available for < $5. Once enabled you can ssh into the Pi over Ethernet using a Link-local address with the Pi's hostname (raspberrypi by default) ssh pi@raspberrypi.local This ...


8

According to What are the possible OUIs for the Ethernet MAC address, there are exactly two OUIs used by Raspberry Pi devices as of April 2020. This is confirmed by Raspberry Pi Foundation - MAC vendors list. One solution would be to search your desktop system's ARP table with: linux> sudo arp -a | tr -d : | egrep "b827eb|dca632" windows> arp -...


8

Are you looking for a theoretical solution, or a practical one? SD cards have SPI interface as well, so as long as you can provide a stable 3.3V for powering your card and a debounced clock signal, a few additional switches and wires could solve it. (maybe add an LED and a series resistor to MISO to have some feedback) There's a video where an Atmel AVR ...


6

If you can ping an IP address (like 8.8.8.8) but not a URL, you have a problem with accessing a DNS server to look up names. It's really hard to understand how your system is connected with the details you have provided but I'm hoping this helps you look in the right place. (Sorry to use "Answer" but I don't have enough rep to "Comment")


6

Contrary to popular beliefs, there is also a way of booting the Raspberry Pi without using an SD card at all! All of the previous answers recommended impractical ways, and the same applies to this method, though I hope you find it much more practical than what was previously suggested. Method 1: Booting from a MSD (Mass Storage Device ie. USB Flash / Thumb ...


5

If you are looking for a procedure to change the SSH default port to another port number like 2222, check the SSH config file which is located on /etc/ssh/sshd_config. sudo nano /etc/ssh/sshd_config So, you would see Port 22 that you can change it to Port 2222. Then, save the file and restart the SSH service: sudo service ssh restart


4

Editing /etc/network/interfaces no longer works in Raspbian, as TSGames commented in the most upvoted answer. Instead, you can use /sbin/iw wlan0 get power_save to read the current power save state, and sudo /sbin/iw wlan0 set power_save off to disable power state. Since the iw command is not persistant, I added /sbin/iw wlan0 set power_save off to /etc/rc....


4

NOOBS itself is not an operating system just an installer which can install an operating system like Raspbian. As far as I know, NOOBS is not design to work headless. If you really want a headless setup just flash Raspbian Lite on the SD card and place the file inside the boot partition. A good tool for flashing images to SD card is Etcher For more ...


4

It's simple. After you write an .img file to the SD-Card, you can find a boot partition. You just need to add an empty file that is named ssh without any format extensions in this partition. After that, plug the SD-Card into the raspberry pi and turn it on. With the DHCP server of your Access point or something like that, you can find the IP address of the ...


4

Based on your answer that there wasn't a boot partition, your report that the display doesn't work, and an experiment that I've just conducted, I suspect that UNetbootin doesn't do a proper job of installing Raspbian. Since you're just getting started, please try this: Get a copy of balenaEtcher and use it to re-flash your microSD card. Try the boot ...


4

This is a combination of M. Rostami's answer and my reflections on his answer, which I found cumbersome to add as comments. NB: Your question shows you know how to find your public IP address and the internal address of your Pi. I've included directions here in the hope that they will help others. On your Pi, set up SSH on the default port number, port 22....


4

Newer raspberry PIs will boot from the USB port. You can install raspbian on the USB stick with the usual process. When it boots you plug in the SD card (don't do it before the boot or it'll try booting from the SD card) and write the data there.


3

Is you PI powered by your Mac? If so, sleep mode on the Mac should power off the PI. If this is what is happening, your answer is probably to obtain an independent power supply.


3

How very foolish of me. Being a bit used to stretch lite, I didn't delve into the full Raspbian GUI. When I did, sure enough, going to preferences/Raspi configure/interfaces, there it was, by default - ssh disabled. Selected ssh enabled, pressed ok, job done.


3

I ran into this trying to access a Raspberry Pi using UltraVNC on Windows 10. The solution is to go into the VNC Connect Options on the Raspberry Pi desktop, on the first tab "Security" change the Authentication from UNIX password to VNC password. You will then be prompted to set the VNC password. I'm sure this can be done by modifying a config file from ...


3

To troubleshoot your problem run systemctl status ssh. You can see from the output if the ssh server is running and enabled and also see the most recent lines from the log. journalctl -e -u ssh.service could also be helpful to find the issue. It will show everything logged regarding the specified unit. As we clarified in the comments you found following ...


3

You can use the screen (or tmux, but I'm not familiar with it) terminal multiplexer. First install it with sudo apt install screen. Then just start it with screen. You will get a normal terminal with a command line. You can start programs there as usual but you are able to detach from the screen terminal with Ctrla+d. This will leave the screen terminal but ...


3

I solved it by switching off my VPN and using a different USB cable; either one of these could have fixed it. I hope this solves any issues others may have.


3

simulate this circuit – Schematic created using CircuitLab Assume you have a Raspberry Pi connected to your Router at home. Normally your router will give IP addresses to all devices attached to it. In my example the Router assigns to the Raspberry Pi the IP of 192.168.0.101 This IP is only visible in your internal Network and not from the World ...


3

After you have imaged the card before you put it in your Raspberry Pi if you mount the filesystem you can create a file in the /boot folder named ssh and that will enable the SSH service upon first boot.


3

You could always just plug the pi into the USB-C port and SSH in that way. The USB-C can be used to turn the Pi4 into an ethernet device, I've written up instructions on how to set it up here: https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/


3

You can always use ssh if it is enabled on the RasPi, no matter if the RasPi is connected to a TV or not. How to enable ssh look at SSH (Secure Shell) and SSH using Linux or Mac OS. If you want to have a full graphical user interface with windows you can use VNC. How to do it look at VNC (Virtual Network Computing).


3

Port forwarded ~ 21 both TCP and UDP It's actually forward packets to port number 21 which is the default port of FTP. You must change it to port number 22 on your router/switch. If you are stubborn about changing the default port of SSH which is 22 to another port number, take note that you can set the SSH default port to 21 but the FTP client would be ...


3

First thing first : physical access is root access ! When someone can touch the device, handle it as if it will be compromised. Do not trust anything coming from the device, do not hide anything on the device. Any information the PI can read, an attacker can read Any information the PI send, an attacker can read Any information the PI receive, an attacker ...


3

If you typed sudo passwd without any other arguments, you changed the password of the root user. If you want to change the password of a regular user (for example pi), there are two easy ways to do it: Log in as the user and run passwd without sudo. Run sudo passwd pi to change pi's password. You can replace pi with any username that exists on your system. ...


3

If the Raspbian installation already has SSH enabled and you know the password, it is only a matter of finding the IP. However, the default installation has SSH disabled. If you have a Raspberry Pi 3B+ and a USB drive, you can install ssh-enabled Rasbian on the USB drive and boot from that. Unfortunately the other Raspberry models do not boot from USB by ...


3

Rasbpian boots up with IPv6 enabled by default. Provided your laptop supports IPv6, too it solves all your problems: First, broadcast ping your local network: ping6 ff02::1%eno1 All the machines will answer. Log in via ssh (just try all adresses): ssh pi@fe80::f000%eno1 eno1 refers to my laptop's ethernet device in this example.


Only top voted, non community-wiki answers of a minimum length are eligible