- Raspberry Pi for Secret Agents(Third Edition)
- Matthew Poole
- 335字
- 2021-07-14 11:09:56
Setting up your Pi
When you boot into the shell and you have the Ethernet connected, hopefully, the Pi will have connected to your home network and will have acquired an IP address from your router. If this is the case, then you should see the IP address that has been issued just before the login prompt:

As you can see from my screenshot, it's given me the IP address 192.168.0.118
. This is good, because I can now access the Pi remotely using a secure shell (SSH) client to connect to it from the comfort of my laptop. This is particularly useful when my Pi is in the study and I want to sit on my sofa in front of the TV but still work on it, which I often do when I can't be bothered to go to my study.
To do this on Windows, download PuTTY—a utility that allows you to connect to shell terminals remotely over the network (see below if you're on Linux). You can download it from http://www.putty.org.
Install and launch PuTTY and you're ready to connect to your Pi remotely from the comfort of your sofa:

Type the IP address of the Raspberry Pi into the Host Name box and click Open, and you'll be connected to your Pi in a remote terminal window. Once you've logged in, you can now do pretty much everything on you Pi as if you were sat in front of it:

We'll assume from now on that most of the work we do will be through a remote shell session, unless otherwise highlighted.
If you want to use the command line to launch the Raspberry Pi remote shell, for example, from another Linux system, you use the following command from your terminal window (assuming your Pi has the IP address 192.168.0.120
in this case):
$ ssh pi@192.168.0.120
You'll then be prompted for the Pi's password and taken into a shell session:

Pi shell session launched from a Debian desktop terminal window
- Oracle 11g從入門到精通(第2版) (軟件開(kāi)發(fā)視頻大講堂)
- Java技術(shù)手冊(cè)(原書(shū)第7版)
- Apache Spark Graph Processing
- Java Web程序設(shè)計(jì)
- Learning ArcGIS Pro
- CKA/CKAD應(yīng)試教程:從Docker到Kubernetes完全攻略
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門到精通(第3版)
- Multithreading in C# 5.0 Cookbook
- Java高并發(fā)核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- 微信小程序開(kāi)發(fā)實(shí)戰(zhàn):設(shè)計(jì)·運(yùn)營(yíng)·變現(xiàn)(圖解案例版)
- Windows Phone 8 Game Development
- MongoDB Cookbook(Second Edition)
- Python大規(guī)模機(jī)器學(xué)習(xí)
- Greenplum構(gòu)建實(shí)時(shí)數(shù)據(jù)倉(cāng)庫(kù)實(shí)踐
- jQuery從入門到精通(微課精編版)