We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

70

First, verify the path to your SD card. You can do this by running the following command from terminal: diskutil list The output shows a list of disks currently mounted on the system. Here's the relevant line from my output: /dev/disk3 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme ...


43

I found my answer in the very next section of the wiki; silly me. I found that the solution didn't go much into detail about what kind or error messages you see though, and thought it might be helpful to have the exact error message "googleable". I also found the instructions slightly unclear (especially around step 8/9; I wasn't sure if the partition had to ...


32

Netcat (nc) seems to be the one with the smallest delay. In my experience, VLC has the biggest delay. On the other hand, there is a VLC client for Android, which is convenient. <IP-OF-THE-CLIENT> is the IP of the computer that should receive the video stream. <IP-OF-THE-RPI> is the IP of the Raspberry Pi. Using Netcat: On the client (Run the ...


28

better: on the rpi: raspivid -t 0 -w 1280 -h 720 -hf -ih -fps 20 -o - | nc -k -l 2222 on your computer: mplayer -fps 200 -demuxer h264es ffmpeg://tcp://10.0.1.3:2222 supports reconnecting


25

There is a faq/howto available that discusses all the various OS-es. For the Mac it is (nearly) the same as under the various other types of Unix versions. The use of dd. In short you type: sudo dd if=path_of_your_image.img of=/dev/rdiskn bs=1m N.B: the of=/rdev/diskn needs to be the SD card, if you do this wrong you might end up destroying your Mac ...


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


19

Headless VncServer Configuration If you need to configure accessing the pi with osx's Screen, but only have headless access to the pi, you can use a vnc config file. sudo raspi-config > Interface Options > VNC > Enable. Reboot. Generate the password you wish to use in screen with vncpasswd -service sudo vncpasswd -service Create and edit the following ...


16

To set up an emulated environment of the Raspberry Pi software on OSX one will need: A Cross-Compiling Tool for the CPU architecture of RPi. ( eg. ARM EABI Toolchain ) The RPi Kernel. The RPi root filesystem. The Emulator (QEMU). The Cross-Compiling Tool for the ARM architecture. Assuming one already have the latest Xcode and command line tools from Apple ...


13

Unix dd I'm boring and use the ancient dd command in OS X. Plug your sdcard into your Mac Open Disk Utility Select your sdcard and take note of its Device name (Mine is usually /dev/disk2) Open Terminal Find out your username by typing whoami and pressing the Return key. (REPLACE disk AND sjobs WITH THE CORRECT VALUES BEFORE RUNNING!!!) (FAILURE TO SET ...


11

The best part of using your Mac to access the Raspberry Pi's screen is that you don't need to install anything on the Raspberry Pi or the Mac. (KISS rule applied!) This is good because software like tightvncserver requires Java to run on the Pi. Java is handy but it is a processor pig and should be avoided to keep your project running as fast as possible; ...


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.


9

Sublime text is a closed source program which doesn't have an ARM build: Let me clarify that statement: Given we only have a finite amount of time, any time spent maintaining an ARM build would take away time from other areas. At this stage, I believe this would result in a net negative to Sublime Text's users. So, you'll have to find another editor for ...


6

Either install the RealVNC viewer on your Mac, or change the authentication type on the server to "VNC Authentication" and set a suitable VNC password. The Mac viewer doesn't support RealVNC's system authentication, which allows you to login as a system user.


4

Airplay mirroring on Raspberry Pi with rPlay. Please note that you will need a key to operate it in Mirror mode.


4

it's possible to run ssh to issue a command on the remote end and catch the output on your local machine, something along the lines of ssh user@192.168.xxx.xx 'dd if=/dev/mmcblk0 bs=10M' | cat > sd_image.img but actually it's not recommended to read SD card while the system is running from the same SD, because it's very easy to get an inconsistent file ...


4

Try this: ApplePi-Baker It's free, writes IMG files to SD-Card, can prepare a NOOBS card and can make a backup to IMG of your SD-Card.


3

There is a ready to run paid option that runs over QEMU: https://snorfi.us/raspiemu/ If you don't want to pay for it you can also download the alpha version in https://sourceforge.net/projects/raspberrypiemulator/


3

You are using 2 different rsync --versions, the one from apple thinks you want copy extended attributes, resource forks, and the one from Debian thinks you want preserve executability. if you want the former use -X instead, and if you want the latter just don't use -E as it is redundant because it's part of -p which is part of -a so there is no need for you ...


3

Have a look at my instructions here for using rsync to maintain a backup; at the end there is a brief paragraph about using it via ssh. If you pay heed the part about what should go in the rsync-exclude.txt list, you can do this while the pi is running. You can also use -e in place of the --rsh I use in the other example, or if you have no special options ...


3

QEMU does not emulate the Videocore hardware; programs that try to interface with it through VCHIQ will fail. It looks like this QEMU fork might get you closer to proper emulation, but I wouldn't get my hopes up.


3

When booting first time you should use bash as init application and change /etc/ld.so.preload. Please note -append parameter: qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash console=ttyAMA0,115200" -hda 2014-12-24-wheezy-raspbian.img Kudos for ...


3

If you were looking to go mobile, SSH or VNC are the best options for working without a separate monitor. Both of these require the Mac and the Pi to be connected to the same WIFI/Ethernet network, however I have read somewhere you can directly attach them with an Ethernet cable. Something worth looking up. SSH is the best option if you are only using the ...


3

For RealVNC you NEED to use their proprietary viewer. (It may be possible to use the macOS screen sharing with additional software, but X11 has not been included on the Mac for some years.) You can use tightvncserver; I use this and start session with open vnc://pi@10.1.1.41:5901 on the Mac (change to your IP or use raspberrypi.local). RealVNCneeds the GUI ...


2

Defining what a decent speed is is not possible. Perhaps for the type of development and for the need when testing the developed software, a qemu VM is perfect for you. Just try it and see for yourself if the time it takes is acceptable or not. Then depending on the type of development you want to do, portability might be an issue or not. What is your ...


2

You could setup a NTP server on your Mac. In Date & Time System Preferences disable "Set date & time automatically" edit your /etc/ntp.conf file to use a local (geographically) pool of servers, something like the below if you are in the US (a Google search for NTP pool server by continent should get you the correct settings for your location.): ...


2

Try installing qemu version 1.7.1 (the version prior to 2.0.0). I had very similar problems with qemu 2.0.0 (installed via macports in my case), and switching back to the prior version made everything work. I do not use homebrew, but this response at Stackoverflow has detailed instructions to revert to an earlier version of any package using Homebrew.


2

I had similar issues and I finally got this working last night, on OS X 10.8.5 with QEMU v2.2.0, after working on/off for two weeks. Preamble I was prompted by the question, Can I program for Arduino without having a real board?, to try to use a real emulator, such as QEMU, as suggested by zmo, in a comment to Anindo Ghosh's answer. I thought that I would ...


2

I know you said you didn't want to use dd but you may find this useful. All you have to do is insert the SD Card and run the following. I does all the difficult stuff. You may have to modify /temp/Pi/ to match the desired location for the image. #!/bin/bash # script to backup Pi SD card # 2014-07-20 #DSK='disk4' # Find disk with LInux partition (works for ...


2

When I last looked into this, the only means to do this was to use QEMU's arm emulators. For me, it requires much patience to get the hang of the basics. However, unless something new has been released, the main issue is that QEMU only emulates the ARMv7 processor itself, not the rest of the RPi2 (ie. GPIO, etc). I also just found this post Raspberry Pi ...


2

The way how fingerprint is handled has changed in recent version of openssh (on the client-side), so if you want, you can add configuration option to get the fingerprint using the old MD5 function. For the first connection, you can try: ssh -o FingerprintHash=md5 pi1 This will cause ssh to use the old MD5 function to get the fingerprint of the host. You ...


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