It is not an advanced version. I want to program AI with Ptyhon, or I want to connect a device to study IoT and play with it. AFAP (as soon as possible) creates an environment where you can do various things for Atana and me. The memorandum.
If you agree with the idea of making 2021 a habit of taking notes like this, please LGTM.
I will write from where I buy it. Procured by Amazon. I mean, it's impossible for an hour to enter here. ・ Main body Raspberry Pi 4 8GB * It is unknown that it needs to be 8GB https://www.amazon.co.jp/gp/product/B0891RC99L/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
・ Case, power cable, fan https://www.amazon.co.jp/gp/product/B07H2WKYBF/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
-HDMI conversion cable * There was an HDML compatible display and cable. https://www.amazon.co.jp/gp/product/B07QBZ667V/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1
In addition, I had a MicroSD card, a USB keyboard, and a USB mouse.
While waiting for arrival, write the OS (Raspbian) for Raspberry Pi to MicrosSD. It takes time, so I let it rest overnight.
For download and installation, I referred to the following by ITmedia. https://www.itmedia.co.jp/news/articles/2006/05/news031.html
Set up the display, mouse, keyboard and MicrosSD while looking at the instructions Finally, connect the power supply and start Gundam!
First input the initial settings according to the guidance of the OS It's English, but I think it's okay. The most important thing is to connect to Wifi.
** Once this is done, you will be able to operate from Windwos or Mac connected to the same Wifi, so you can disconnect the keyboard, mouse and display cable and it will be refreshing **
・ Refer to the following site to allow SSH and VNC on the Raspberry Pi side, install VNC software, and connect. https://dev.classmethod.jp/articles/raspberry-pi-4-ssh-vnc-remote/
-If you don't have SSH in Windows, Windwos Terminal is recommended because it is easy to use, which is not like Microsoft. https://www.microsoft.com/ja-jp/p/windows-terminal/9n0dx20hk701
If you can confirm the connection, let's take the cable!
It was a little difficult to use with the initial settings. I can't use the arrow keys or backspace. ・ Sudo vi ~/.vimrc ・ Sudo vi /root/.vimrc Execute the two, write the following in both and save.
set nocompatible
set number
set backspace=indent,eol,start
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
Normally, the user looks at the upper file, and SUDO seems to look at the settings in the lower file, so create both.
We are still practicing vi input, so let's practice together. https://prev.net-newbie.com/linux/commands/vi.html
If the IP address is dynamic, SSH and VNC cannot connect, I will have to take out the cable again next time, so Set up the IP assigned to the Raspberry Pi to use again next time.
https://mugeek.hatenablog.com/entry/2019/05/27/230256
You only need to change three places, but since the setting value changes depending on the home environment, sample values are not listed here. Please respond while checking.
Let's do it somehow Connect to SSH and execute the following
sudo apt-get update
sudo apt-get upgrade -y
It is a story app that can display a hacker-like screen and make a sloppy face. The tension will rise, so let's set one goal.
sudo apt install hollywood
hollywood
(・ ´ ー ・ `) Doya
It arrived in 10 minutes with Amazon Prime, so it ended in 1 hour. I think that the working environment is now complete, but I haven't done much like Raspberry Pi so far, so I'd like to play with it from here.
You can connect the sensor to get it and upload it to Google Spreadsheet, https://qiita.com/c60evaporator/items/283d0569eba58830f86e
Try setting up a proxy server to monitor various communications https://qiita.com/mascii/items/400a0ecab61d885ac2a8
Install Django and try developing various things on a simple web server https://qiita.com/Taro_man/items/19613663ef7bb3c57d4f
Please do a lot of interesting things and share them on Qiita. If I make something, I would like to upload it.