Title says it all, but there’s a bit more useful information too. Personally, I’ve always used “
Finally time to start learning Python. I’ve done a fair amount of programming as a hobby and in education and am competent in Objective-C, and familiar with Java and PHP (and some others). All the Raspberry Pi stuff seems to favour Python, so I’ve taken the plunge and am using this book to learn. I’ll see how I get on and post a bit more on my experience with the book in a week or two.
Something I had overlooked in my previous entries was the lack of any guide to SSH (Secure Shell). This basically enables you to access a computer (including, of course, your Raspberry Pi) using a command line interface on another computer connected via a network - so like running the Terminal application directly on your Pi, but on another computer. This is very useful if you’re running your machine without a screen but need administer it without using VNC.
If you’ve installed Raspbian (and if you’re a beginner like me, I highly recommend you do) you’re given the option to switch this on the first boot up. If you didn’t, you can start the SSH service by entering the following into the Terminal, the reboot your machine:
sudo mv /boot/boot_enable_ssh.rc /boot/boot.rc
With the SSH service now running, you need the Raspberry Pi’s IP address to connect. Enter “
ip addr show” and your IP address should be on the last line after the word “
inet" (see here for more details).
Next you need to connect to your Raspberry Pi using an SSH client.
With your client open and ready to go, connect to your Raspberry Pi. The following assumes you’re using the default username “pi”. Enter:
ssh email@example.com (where xxx.xxx.xxx.xxx is your Raspberry Pi’s IP address)
Then enter your password - the default is “raspberry”.
You should now see a different prompt, “
pi@raspbmc:~$”, and you’re ready to enter commands. Type “
ls" to list the files in the current directory. Type in any other commands you would in a regular Terminal window, such as in any of the guides on this Tumblr. When you’re done, just type "
exit" and you’ll return to the normal prompt, such as "
Eager to improve the performance of my Raspberry Pi, I installed the Raspbain-based SD card image today and have tested the tips/guides on this tumblr and all work as expected. I hope to continue to add more within the next week or so.
If you’re planning on using your Raspberry Pi as an appliance, you’ll want it to automatically login and load LXDE (the GUI). You may also want to do this if you are just tinkering around with the Raspberry Pi (as I am at the moment) and are using it without a monitor using a VNC server.
This eLinux Wiki guide explains how to do it, but if you want to start your VNC server instead, instead of adding
startx to the bottom of the /etc/profile file, add the command you use to start your VNC server, e.g. “
vncserver :1 -geometry 1024x728 -depth 24”.
EDIT: eLinix Wiki updated their entry, the above will no longer work. This is a better way.
Another post for Mac users. If you’ve followed my previous post to setup Avahi for AFP auto discovery, you might want to do the same for VNC.
To do this, add a new service under /etc/avahi/services. Using Terminal:
sudo nano /etc/avahi/services/rfb.service”
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
sudo /etc/init.d/avahi.deamon restart”
You should now see a “Share Screen…” button when you select your Raspberry Pi in the Finder side bar. Click this and the Screen Sharing app will open, enter your VNC password (leave the username blank). Other VNC software should be able to discover it also, though I’ve only tested it on Mocha VNC for iPad.
Strangely, the Apple Remote Desktop app still does not discover my VNC server using bonjour. I’ll update this post if I find out why.Source: fusionsecurity.blogspot.co.uk