First, verify the path to your SD card. You can do this by running the following command from terminal:
The output shows a list of disks currently mounted on the system. Here's the relevant line from my output:
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme ...
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 ...
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 systemctl enable vncserver-x11-serviced
Generate the password you wish to use in screen with vncpasswd
sudo vncpasswd -service
Create and edit the following file ...
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.
On the client
(Run the ...
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 ...
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; ...
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 ...
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)
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 ...
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.
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 ...
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.
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 firstname.lastname@example.org '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 ...
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://email@example.com:5901 on the Mac (change to your IP or use raspberrypi.local).
RealVNCneeds the GUI ...
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.
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 ...
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 ...
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 ...
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 ...
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/
At first I didn't understand that the RPi library requires all this stuff that is particular to the Raspberry Pi environment (and is not expected to work on a dev environment say if you're working on a Mac).
For development in a different system a good alternative is to use a fake library.
I'm using this one:
and I'm using ...
Tapping the trackpad with two fingers may work.
If it doesn't, then tap the ‘mouse’ icon from the little navigation bar at the top of the main VNC screen. Then you'll see a mirrored L kinda thing on the lower-right corner of the screen. It's divided into three parts. The far right section sends a right click signal.
I hope it works. Cheers!
Raspberry Pi uses an ARM CPU.
Unless stated otherwise, macOS and Windows binaries nowdays are x86-64.
You would need to run an emulator for the x86-64 architecture (QEMU might be a viable choice), install Windows or what you need and even if you get it that far, the performance will be miserable.
You can get SBCs with x86 CPUs form intel or AMD. You can ...
In 2020, this accepted answer is obsolete: For most cases, people should follow the new raspberrypi.org Installation Guide.
Alternatively, the community-provided Etcher tool also provides a graphical tool to burn Pi IMG files to SD card.
Sometimes the built-in SD card reader gives errors with Etcher. If you don't have a USB SD adapter, 'dd' sometimes ...
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 ...