Buy raspberry pie to play
About raspberry pie
Raspberry PI can be understood as a card development board based on arm. It has the basic functions of a computer, and can run Linux, win and other systems. In addition, it has rich interfaces, can practice programming, or be used to expand and make many creative little things.
At present, the latest version is the 3-generation B model. I bought this version. The main difference is that this version is a 64 bit processor. I also bought a acrylic shell with a fan. In addition, the power required by raspberry pie is 5V, 2.5A. Generally speaking, raspberry pie can be divided into English version and Chinese version, i.e. the place of origin is different, and there is no other difference. In addition, I heard that the workmanship of Chinese version is better. Anyway, I bought Chinese version, the workmanship is OK, and there is no burr. Here is what I assembled:
Write to raspbain system
Raspberry pie can install many systems, such as Ubuntu mate, openwrt, etc. However, it is recommended to download raspbian system from raspberry pie official website. After all, it is the official system and supports 64 bit.
Raspbian has two versions, one is with desktop, which is suitable for users who use HDMI to connect the monitor or use Linux for the first time, but the volume is too large. I use Lite version, which means there is no desktop version. Anyway, I don't need desktop, just log in through SSH.
In windows, you need to use the following two software, format the SD card with SD formatter V4, and then write it to the system with Win32 disk imager.
SD Formatter V4 https://www.sdcard.org/downloads/formatter_4/Win32 Disk Imager https://sourceforge.net/projects/win32diskimager/
Connect raspberry pie
By default, raspberry pie does not have SSH service enabled. If you want to connect through SSH remotely, you need to create a new SSH file in the root directory of SD card, that is,/boot directory. Note that the file has no suffix, and then you can connect to raspberry pie through putty and other software.
When using raspberry pie system for the first time, the default user is pi and the password is raspberry. You can also change the password of the PI user.
Sudo passwd PI set the password of PI
Unable to log in because the default password of root is empty. Log in to the default user PI and set the password of root to enable the root user. Of course, you can also not enable it, plus sudo every time.
Sudo passwd root - set root password Su - root - switch to root
Raspi config can also be used to configure raspberry pie, such as setting time zone and PI user password, enabling SSH, vnc services, etc.
sudo raspi-config
Then it is to set up local update sources, such as Alibaba cloud and China University of science and technology. It is suggested that Alibaba cloud be very fast.
#Backup the source file sudo CP/etc/apt/sources. List/etc/apt/sources. List. Bak sudo CP/etc/apt/sources. List. D/raspi. List/etc/apt/sources. List. D/raspi. List. Bak ? edit the source file sudo nano/etc/apt/sources. List sudo nano /Etc/apt/sources. List. D/raspi. List official raspbian image: http://www.raspbian.org/raspbian mirrors/Alibaba cloud raspbian image: http://mirrors.aliyun.com/raspbian/raspbian/raspbian/china University of science and technology raspbian image: http://mirrors.ustc.edu.cn/raspbian/raspbian/
Replace the corresponding address with the domestic update source, use Ctrl + O to enter and save the file, Ctrl + X to exit the editor, and finally update the system software and the installed package.
sudo apt-get update && apt-get upgrade -y
Sharing Samba with raspberry pie
Set the/home directory of raspberry pie (you can also specify the directory to share) as the shared folder to realize raspberry Pie/home directory and windows sharing.
Sudo apt get update update update the index file sudo apt get install Samba Samba common bin install Samba smbpasswd - a PI default user pi to samba and set the user password sudo nano/etc/Samba/smb.conf modify the configuration file
The following changes are required:
Find the [global] section of the global settings section: change wins support = no to wins support = yes, which means supporting Windows systems. Find the share definitions section [homes]: change read only = yes to read only = no, which means that everyone has access to modify. Remember to remove the comments. Sudo/etc/init.d/samba restart ? restart the samba service, and [OK] will be displayed successfully
Then access the/home directory of raspberry pie from windows. Note that when you add a PI user, a PI directory will be generated under the/home directory. What you share is the/home/PI directory. Open the running program under windows, and enter the following:
\\Raspberry pie IP address
When you log in, you will be prompted to enter the user name and password. The user name is pi, and the password is the password set above. Of course, you can also set public = yes in the configuration file to realize password free login.
Raspberry pie auto mount U disk for Samba sharing
Generally, U disk is in NTFS format, but raspberry pie does not support by default. Ntfs-3g module can be installed, so we can read and write U disk in NTFS format. If it is in exFAT format, install exFAT fuse module.
sudo apt-get install ntfs-3g sudo apt-get install exfat-fuse
After the installation is completed, insert the U disk, enter the following command, view the mount situation and set the mount Directory:
Authority
as
Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/netweb/Buy-raspberry-pie-to-play.htm