Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
4

I created a lightly modified version of Raspberian-light that addresses this need - it executes your custom /boot/firstboot.sh script on first boot: https://github.com/nmcclain/raspberian-firstboot


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


3

They key is this message debug1: Authentications that can continue: publickey The server is configured to accept only publickey authentication. If you can't connect a display to the Pi and login locally, you can always download a life Linux system and boot it on your PC. Anyway, look at the sshd_config on the SD card and make sure that password ...


3

From the raspberry pi ssh documentation page (here) When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled and the file is deleted. Don't forget to change the default password.


3

Since all RPi use b8:27:eb as the first three octets of their MAC address, you can use arp from your Mac/Linux PC, but you'll need to refresh the arp cache first. Here's a bash script that will do the job. You can get more details from my github page on the subject. #!/bin/sh : ${1?"Usage: $0 ip subnet to scan. eg '192.168.1.'"} subnet=$1 for addr in `...


3

I had the same issue, I just renamed my SSH file to ssh (all small). and yes you've to do this before your first boot


2

You can use the serial debug interface to get a console on the Raspberry Pi. To use it you need a USB to Serial adapter like one from amzon - RPi USB/serial adapter. You do not need the most expensive one. I have made very good experience with one of the cheapest from China. To use the serial console you have to add a line to /boot/config.txt enable_uart=1 ...


2

I don't know if this helps but it reduces one possible source of error. Doing what the developers from systemd suggest is using a Unit file. Here is a very generic one for your problem. Create a new unit file with: rpi ~$ sudo systemctl edit --force --full hid-keyboard.service In the empty editor insert these statements, save them and quit the editor: [...


2

Are you trying to make your Raspberry Pi a recognizable Bluetooth device? If you are I think it might be quite easy. If you are using a NOOBS SD card, all you do is click the Bluetooth icon up top (after you customize the panel to show Bluetooth). Then click "turn on Bluetooth". Lastly hit "Make discoverable". If done right the Bluetooth Icon should blink ...


2

You CAN NOT setup NOOBS without a monitor and keyboard. You can't find the boot directory - because it doesn't exist until you setup an OS. Just install Raspbian - it is easier (and doesn't waste space)


2

We do not know anything about your setup. The simplest way is to start a service on boot up that just delays 10 minutes (e.g. sleep 600) and then disables wifi. Here an idea for a generic systemd Unit file but not tested: [Unit] Description=Delay terminate wifi After=multi-user.target [Service] ExecStart=/bin/sleep 600 ExecStop=/sbin/wpa_cli -iwlan0 ...


2

See Headless Raspbian WiFi Setup in How to set up networking/WiFi Specifically Raspbian checks the contents of the boot directory for a file called wpa_supplicant.conf, and will copy the file into /etc/wpa_supplicant, replacing any existing wpa_supplicant.conf file that may be there. The file in the boot directory is then removed. This can be used to ...


2

I've tested this today with the current image (image dated 2019-04-08), and it does indeed still work. The file should be named either "ssh" or "ssh.txt", and put in the (first) partition which shows up as named "boot" - but not in a subfolder within this. If you see kernel7.img and cmdline.txt you're in the right place - it goes along-side those, and ...


1

Welcome, Pete. Have you tried using a root crontab? sudo crontab -e


1

You could ssh over usb. https://desertbot.io/blog/ssh-into-pi-zero-over-usb Or you can configure the pi to connect to your phone, and do the same with the laptop for wireless ssh. If you are not using the GPIO or any other pi specific hardware, then really you could just write/test your code in a vm (there is even a x86 version of raspian if you want!) ...


1

Finally i was able to find an alternate way to enable ssh. I will try to summarize it here. I tried PiBakery also but it was too heavy with nodejs and keeps on crashing in every attempt. The problem: Ext4 format is not readable form windows So once you burn Raspbian through any img burning tool it creates two partition Boot & rootfs. The boot partition ...


1

I don't think this works for NOOBS (it probably would if you put in the Raspbian boot partition, but I believe Windows doesn't show this). Why are you using NOOBS - this only works with a Screen & keyboard - which are needed to setup Raspbian (or any OS on NOOBS) for the 1st time? If you want headless install Raspbian


1

You can run the X server without the desktop, which then appears as a featureless black screen. Although there is no taskbar or menus, you can still start applications remotely (to do this via you need to set the $DISPLAY environment variable properly first), and/or at startup. > export DISPLAY=0.0 If there is only one instance of the X server ...


1

Additional information to the accepted answer: Write the Raspbian Stretch Lite image to the SD card Create a ssh empty file in the boot partition Create a wpa_supplicant.conf file in the boot partition containing: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=FR network={ ssid="MyRouter" psk="the_password" } Boot the ...


1

The problem was in the .wpa_supplicant.conf.swp hidden file stored in the same directory. As I removed this file, everything worked as expected.


1

The prior answers to this question were written as early as 2015, before Raspbian's introduction of the open-source driver. On a Pi 2 or higher, run: sudo raspi-config and enable the OpenGL desktop (Mesa) driver under Advanced Options -> GL Driver. Note that on a Pi 4, OpenGL with Fake KMS is already the default configuration. When the Legacy driver has ...


1

For those who prefer a solution involving only scripts dropped into the FAT32 boot partition, here is how to do that. As mentioned in other answers, it involves the command-line arguments with which the Linux kernel is started. Those arguments are in /boot/cmdline.txt. I have tested this on Raspbian Buster (v10.1) 2019-09-26. It works on a newly flashed SD ...


1

Arguably, if you're OK with modifying the image to auto-run a script at the first boot, you could simply modify the image in the way your script would, and then save that SD card to an image file and use it to flash SD cards you're going to use with new RPis. For instance, if you want all your RPis to have a certain entry in /etc/fstab, you could simply ...


1

Use plain Raspbian downloaded from Full Raspbian with everything or from Raspbian with desktop or Raspbian Lite. Write that to your SDCard with Balena Etcher. Before booting the card, eject it from your laptop and re-insert it (ignore any Windows requests to reformat the SDCard or you'll have to start over) create two files F:\ssh.txt (which can have any ...


1

For the web server, as others have said it is a choice between apache, nginx or lighttpd depending on your use case. For the storage server with windows clients this is exactly what Samba is designed to for. First you have to mount the 2tb external HDD. To do that follow this guide: Connect your Raspberry Pi to a USB hard disk Then you need to install ...


1

If you want to develop C/C++, you can use Eclipse CDT, once installed and with the right toolchain you will be able to code on your PC, then compile on your PC, send the binary file and remote debug. All from your PC without touching the raspberry. Needed : Eclipse CDT Raspberry Linux toolchain (if you can work on Windows there is SYSGCC toolchain) ...


1

I'd approach this by trying to craft a Makefile recipe to carry out the steps you want, including passing the binary to be tested as a command to ssh. Something along the lines of (note that this is totally untested and probably overly complicated): SCP_CMD=scp SSH_CMP=ssh HOST_URI=pi@raspberrypi.local HOST_PATH=/home/pi/bin/ LOCAL_PATH=./ OUTPUT=...


1

To begin with what was the error you had when you tried SSHing to the Rpi zero? Are you using any newer image of of Raspbian? The newer images have the ssh disabled by default. Did you follow all the instructions set for SSH over USB? steps in the link Try SSH with username@raspberrypi.local


1

When I did, $ssh pi@192.168.1.23 after making my IP static, pi gave the following, pi@192.168.1.23's password: Which was misleading, as no user 192.168.1.23 exists. Hence it kept showing Permission Denied. It would ask passwords for this user, even when I had disabled passwords. Finally, after restarting my computer and re-flashing the OS on the SD ...


1

In Raspbian, by default, sshd is disabled - you can enable it using raspi-config. That would explain why you can't connect after installing new image. Question is why it stopped working on old one. Most probable answer is that you did something so it stopped working. Best way to configure remote access in home environment is to log in to freshly installed ...


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