Hot answers tagged

231

There are some great answers here, but many are out of date. Since May 2016, Raspbian has been able to copy wifi details from /boot/wpa_supplicant.conf into /etc/wpa_supplicant/wpa_supplicant.conf to automatically configure wireless network access: If a wpa_supplicant.conf file is placed into the /boot/ directory, this will be moved to the /etc/...


116

This no longer works since ssh is not enabled. Using only the laptop's screen and keyboard (both before and after installation), install and configuration for headless operation using SSH is possible using NOOBS (they call it "silent install"). It does not require a separate screen or keyboard/mouse. It does require an SD card reader on the laptop (built in ...


78

The serial number can be found in /proc/cpuinfo; for example, pi@raspberrypi:~$ cat /proc/cpuinfo Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : swp half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 ...


72

This depends on the distribution you have downloaded. The default passwords for common distributions are as follows: Distribution | Username | Password ---------------|------------|------------- Debian Squeeze | pi | raspberry Arch | root | root QtonPi | root | rootme Raspbian | pi | raspberry OpenElec ...


71

To enable ssh at startup, backup boot.rc on the boot partition on the SD image and replace it with boot_enable_ssh.rc I don't know about your router, but you may be able to configure it to reserve a fixed IP address for the MAC address of your Pi.


52

Copy boot_enable_ssh.rc to boot.rc from /boot in the Raspberry Pi's rootfs (SD card) Still in the Raspberry Pi's rootfs, edit /etc/network/interfaces in order to have a fixed IP address assigned (so no DHCP server is needed). For example, auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.0.202 netmask 255.255.255.0 ...


45

Although Raspbian used to enable ssh by default, from December 2016 it no longer does so. While there is still no boot_enable_ssh.rc file as the OP requested in 2012, ssh can be enabled on first boot by creating a file called “ssh” in /boot. As /boot can be written to by any OS that understands SD cards, this extra step is easily done on first installation. ...


44

This is only for command-line interface, not for the Graphical UI. The easiest way would be connecting via SSH with a program called PuTTY (Windows), M-remote (Windows) or using the Terminal application in OS X or any Linux (no installation, already available). Terminal: enter the command ssh pi@raspberrypi Putty: select protocol SSH and enter hostname ...


40

There are many ways to address vulnerabilities, however the first thing you should know is that Linux isn't as susceptible to intrusion as other Operating Systems. This is mainly due to lack of malware that targets *NIX. Nevertheless, you want to be aware of the ways in which your system can be accessed. Passwords Firstly you should change the default ...


39

The process is pretty simple. Download the image First, go to the Raspberry Pi Foundation's Download page and download the image you want. The latest image is Raspbian Stretch, which is the official distribution for all Pi models. Alternatively, the Arch Linux image is great if you want a minimal install or if you've had a bit of experience with Linux ...


36

None of the boot_enable_ssh.rc stuff exists in current Raspian builds. You boot, a nice graphical menu gives you some options (including whether SSHD should load at boot) and then dumps you out on a command line. That's great if... you're a graphical user. If you're not, you're left in the position where you have to somehow externally run update-rc.d. All ...


34

No. At this point in time, Windows cannot be installed on the Raspberry Pi. Windows is designed for the x86 and x86-64 architectures (32 and 64 bit architecture respectively). The RPi has an ARM architecture, which is incompatible. Windows 10 Microsoft have announced that Windows 10 will ship a version that supports Raspberry Pi 2.


31

Yes The answer's always yes, right, just takes a while to work out how! The Hard Way I will be running this on a VPS, provided by Brightbox.com. I used a Nano Server (2 CPUs, 512MB RAM, 20GB disk space) and a Ubuntu Precise 12.04 LTS server image. It should work on EC2's or Linode's equivalents, and of course, on your home Linux machine. I have now tested ...


29

Debian APT is the package manager under Debian, for Raspberry Pi or any other system. The command line tool curl is installed in this example. You need to be connected to the Internet. If you haven't done so recently it is worth running, sudo apt-get update This updates the list of packages that are available to apt-get. Then use apt-cache to ...


28

It is technically possible, at least the earlier versions that are not so CPU and RAM-intensive. The question you should be asking yourself though is do you really want that? Android is pretty much a closed platform with a nice Java framework as a redeeming quality. Also it is very mobile and touch-centered, so your user experience will be lower unless you ...


25

RISCOS is in the works and there is QT available now. Some bare metal programmers are working on OS's from scratch as well but these are more for fun & research than full blown OS's.


24

The short version You need to prepare a root and export it from the NFS machine You need to configure the early stage booting to use that You'll still need a SD card for the early stage booting, but after that nothing except /boot will need the SD card. Details I've only done this on a Linux machine. In theory it's possible on any machine that can export ...


23

Some specific Instructions: Contents of /etc/network/interfaces: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf post-up ifdown eth0 iface default inet dhcp Contents of /etc/wpa_supplicant/wpa_supplicant.conf: ctrl_interface=DIR=/...


22

Debian The official Debian image ships with at least 2 users, root and pi. You will only be able to login to the pi account. How do I change pi's password? At the very least, you should change the password for the pi account, as anybody with a RPi will be able to log onto yours. To do this, run passwd from the command line and follow the prompts. How do ...


22

Things I've noticed so far about the stock Debian Squeeze image: /etc/shadow contains a bunch of password hashes for accounts that aren't the pi account (buildbot, etc). Change the password on the pi account, naturally, if you haven't already (or make a new user account for yourself and delete the pi account) but also edit the other entries and replace the ...


21

If you use Arch Linux distribution, you just plug it in and wait for it to get its address assigned from a DHCP server. You can then check the DHCP's status (by connecting to your router for example) and retrieve the IP address from connected clients list. If that fails, you can use nmap or similar tools to scan the entire subnet for open port 22 (SSH is ...


20

You can set the system editor by calling as root: update-alternatives --set editor /usr/bin/vim.tiny You have to install vim first. This will change the editor globally, not just for visudo.


20

Yes, you do understand correctly - Raspberry Pi does not run OS X. OSX is compiled for Intel chips; the Pi uses ARM chips. You are confusing OS X and Linux. Both are based on an old operating system called Unix, which is pretty much the mother of all OS's. I may be wrong, but even Windows has a bit of Unix mixed in. What is OS X? OS X is a proprietary OS ...


20

That's a tough one. The WiFi won't automatically connect. So I would try the following: Image a micro SD card with the Raspbian OS image using Win32DiskImager. Manually configure your WiFi from another computer. In another computer running Linux (or PC with Live CD) you could edit the following file: /etc/wpa_supplicant/wpa_supplicant.conf And add the ...


18

Arch A fresh Arch install ships with only the root user available. Thus you should definitely be creating a new user, as spending too much time as root is dangerous. In addition, you should also change the root password, as leaving as default is a major security risk. Changing the root password The password can be changed when logged in as root by running ...


17

Here is quite a simple Arch Arm RPi Guide. Download the zip file containing the dd image from one of these resources: Torrent Direct Download Extract the zip file to your hard drive, giving you the dd image archlinuxarm-29-04-2012.img Write this image to the target SD card Linux Replacing sdX with the location of the SD card, ...


17

From the Official FAQ Page: What Linux distros will be supported at launch? Fedora, Debian and ArchLinux will be supported from the start. We hope to see support from other distros later. (Because of issues with newer releases of Ubuntu and the ARM processor we are using, Ubuntu can’t commit to support Raspberry Pi at the moment.) You will be ...


17

Berryboot is essentially a boot loader designed specifically for the Raspberry Pi that will accomplish this for you: Berryboot is a simple boot selection screen, allowing you to put multiple Linux distribution on a single SD card. In addition it allows you to put the operating system files on an external USB hard drive instead of on the SD card itself.


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