299

There are some great answers here, but many are out of date. Even this one has aged somewhat. There are now (at least) two ways of doing this: 1: Raspberry Pi Imager The Raspberry Pi Foundation's Raspberry Pi Imager now has an advanced options menu which is accessed by the keyboard shortcut Ctrl+Shift+X: You can set hostname, allow SSH (including changing ...


131

All you need is to place an empty file named 'ssh' onto the boot (FAT) partition of your SD card (no need to mount ext3). Tested with 2016-11-25-raspbian-jessie-lite.img. Source: https://www.raspberrypi.org/documentation/remote-access/ssh/ More info about Nov '16 security update: https://www.raspberrypi.org/blog/a-security-update-for-raspbian-pixel/


29

sudo apt-get install deborphan sudo apt-get autoremove --purge libx11-.* lxde-.* raspberrypi-artwork xkb-data omxplayer penguinspuzzle sgml-base xml-core alsa-.* cifs-.* samba-.* fonts-.* desktop-* gnome-.* sudo apt-get autoremove --purge $(deborphan) sudo apt-get autoremove --purge sudo apt-get autoclean The first line installs deborphan which will remove ...


25

The default Raspbian /etc/network/interfaces configuration does not connect to WiFi on boot. The key lines of the interfaces man-page are: Lines beginning with the word "auto" are used to identify the physical interfaces to be brought up when ifup is run with the -a option. (This option is used by the system boot scripts.) ... Lines ...


21

I was also eager to know more about the 24/7 capabilities of the Raspberry Pi. Therefore, I installed the app "stress" (sudo apt-get install stress), which is capable of loading the CPU for the full 100% all the time. The best thing about "stress" is that it gives priority to other running processes, it only "fills" the gap till the CPU is loaded for the ...


18

later I found out another solution to make it work for Remmina 0.9.99.1. You can change the security authentication for the VNC server to be VNC Password instead of Unix password and create an admin user credentials so you can use it in the remote connection as the following: On VNC Server side on Raspberry Pi 3 Go to the options on the VNC Server on ...


16

Following massive botnet attacks in 2016 due to IoT devices being easily hacked with default passwords, Raspbian once again comes with SSH turned off by default (source). The fix is pretty easy, you just need to create a file in the boot partition (not the directory within the root filesystem) called ssh. To check if you're in the right partition, it ...


14

Raspberry Pi 3 (kernel 4.14.30-v7+) This post is a collection of notes and tutorials I have used for setting up wireless connections to the Raspberry Pi. Please let me know if you experience any issues. Headless set-up Raspbian currently looks in the boot partition for a couple files to allow a headless set-up or connect a Raspberry Pi to a network and ...


13

Since November 2016 SSH has been disabled by default in standard Raspbian images for security reasons. To re-enable it, create a blank file called either ssh or ssh.txt on the sd card boot folder ( fat32 partition accessible from windows) To preconfigure the wifi settings, you also create a file called wpa_supplicant.conf there containing: ctrl_interface=...


13

Try: arp -a You can also try tcpdump, but that isn't as clear. If you know the routers local IP address, type that into your browser and login. From there, depending on your router, you'll have a different set of options with information about your network including all wireless devices connected to the routers. Apple's time machine/airport express ...


11

I've just encountered the issue too. As an alternative to aibrahim's method if you are doing it remotely via ssh, here's my steps to VNC to display :0. Setup password using sudo vncpasswd -service Add the following lines to /root/.vnc/config.d/vncserver-x11 as described in RealVNC: Support legacy viewers SecurityTypes=VncAuth UserPasswdVerifier=VncAuth ...


10

Typically a port around 5900 is used for VNC. In your case, you could try 192.168.1.127:5901. The last digit (1 in this case) refers to the virtual display of the VNC server. It usually starts at 0, meaning 5900 is the standard display/port to connect to.


10

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


9

1/. To remove all desktops I just did (go make a pot of coffee. Take a walk this will take a while)... apt-get remove --auto-remove --purge libx11-.* 2/. Then I installed deborphan to get rid of orphaned files... sudo apt-get install deborphan If you want to see what has been orphaned do this... deborphan -sz 3/. Then I removed all orphaned files... sudo ...


9

Your solution is simple, use an inverter, and a start up script. When The script runs, have an IO pin go high, which will force the LED off. When the OS is off, and the script driving the IO pin is off, the LED will illuminate. I still haven't made it back to my Pi location, but it may be possible to do this without an inverter. You would add you script ...


8

Using arp -a is fast and easy, but I have found that under certain circumstances, it doesn't list all of the devices. (As an aside, I don't know why that happens. Any ideas?) Here's an approach that -- so far -- always appears to work. It just takes longer... In a shell window on your host machine (you said you did want to log in using ssh, right?), ...


8

For doing so, login to your raspberry py with putty or another SSH client. Now you have to change one value in the noobs.conf. To be able to access this config file you have to do some stepps: Make directory to mount mkdir /tmp/noobs mount noobs partition sudo mount /dev/mmcblk0p3 tmp/noobs look which os is on which partition cat /tmp/noobs/...


8

dd command, when used correctly, OVERWRITES all partition information along with the partition formats and everything else you might put on SD card. therefore, it does not matter, how SD card was formatted because it's going to be overwritten anyway.


8

For those who prefer a solution involving only scripts dropped into the FAT32 boot partition, here is how to do that. [Edit: The files are now available in a project pi-boot-script.] 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 ...


7

For headless setup, SSH can be enabled by placing a file named 'ssh', without any extension, onto the boot partition of the SD card.


7

While the question has been adequately answered already; my preference is different to what has been already answered. As others have said avoid just pulling the power. My preferred commands (either as root or prepend with sudo): To halt: halt (for Wheezy and prior this command also powers the system off; for Jessie it doesn't actually poweroff although it ...


7

My preferred method is to use sudo poweroff, which is an alias for a shutdown command that also kills power usage.


7

It's important to clarify something about Raspbian for people who aren't otherwise aware: Raspbian is Debian, a GNU/Linux distribution that's been around for ~20 years and is currently on its 8th major release, nicknamed "Jessie". This is why the first Raspbian release is numbered 7 and not 1. The software packages, excluding the firmware, tweaked kernel and ...


7

The most likely scenario is that the Pi has booted, but you have asked it to do the impossible i.e. boot to Desktop when there is no default Desktop (an examination of the boot logs would probably confirm this). See Pi4 Boot Problems Sticky You have 2 options:- Boot to console. Force HDMI Uncomment the below line in the file /boot/config.txt: # uncomment ...


7

This in fact is a known problem with the Sense-Hat. See https://github.com/astro-pi/python-sense-hat/issues/96 for detail. Apparently, the Sense-Hat interferes with the resolution auto-detection if there is no monitor attached (works fine with monitor attached). The work around is to manually specify a resolution (you do not have to force HDMI). You can ...


6

Alternatively, you can try this Raspbian minimal image: http://www.linuxsystems.it/raspbian-wheezy-armhf-raspberry-pi-minimal-image/


6

The Debian has 2 (!) gigabytes of data. This is quite a lot for what is currently capable of, so believe there are tons of images or some sort of stuff (just don't tell me these are 2 GB of compiled code). Yes, 95%+ of that is just executables ("compiled code"). 2 GB is in fact significantly below the average for a PC OS with GUI -- half the size of ...


6

For your system-level watchdog, I was going to suggest building a hardware watchdog. There are connections on the RPi board (the P6 header) which you can short to reset the device. You could connect this to a countdown timer chip, and have your app regularly use the GPIO pins to reset the timer. If your app stopped working for too long, the countdown would ...


6

The simplest solution is to install RealVNC Viewer. You can download it from here, and it is available for Linux, MacOS and Windows. The issue is with the encryption schemes used by different VNC servers.


6

To translate the script from Milliways in his answer, change the name in /etc/hostname as you already have done and add or change the entry 127.0.1.1 raspberrypi in /etc/hosts to the new hostname.


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