Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and set up the new raspberry pie system without keyboard

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install and set up the new system of Raspberry Pi without keyboard. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can gain something through the detailed introduction of this article.

sudo raspi-config

1. Create a file in the Boot root directory: wpa_supplicant.conf:

country=CN

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

update_config=1

network={

ssid="WiFi-A"

psk="12345678"

key_mgmt=WPA-PSK

priority=1

}

network={

ssid="WiFi-B"

psk="12345678"

key_mgmt=WPA-PSK

priority=2

scan_ssid=1

}

Description and examples of WiFi configurations with different security:

#ssid: ssid of the network

#psk: password

#priority: connection priority, the higher the number, the higher the priority (cannot be negative)

#scan_ssid: This value needs to be specified as 1 when connecting hidden WiFi

If your WiFi doesn't have a password

network={

ssid="your wireless network name (ssid)"

key_mgmt=NONE

}

If your WiFi uses WEP encryption

network={

ssid="your wireless network name (ssid)"

key_mgmt=NONE

wep_key0="Your wifi password"

}

If your WiFi uses WPA/WPA2 encryption

network={

ssid="your wireless network name (ssid)"

key_mgmt=WPA-PSK

psk="your wifi password"

}

If you don't know the WiFi encryption mode, you can open/data/misc/wifi/wpa/wpa_supplicant.conf on your Android phone with root explorer to view WiFi information.

2. Create an empty file in the Boot root directory: ssh

3. Start Raspberry Pi and check its IP address through router

4. Use Putty to realize SSH connection to Raspberry Pi

5. Modify the Raspberry Pi source: sudo nano /etc/apt/sources.list

Replace with the following:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

Remarks:

Other software sources include:

University of Science and Technology of China http://mirrors.ustc.edu.cn/raspbian/raspbian/

Zhejiang University http://mirrors.zju.edu.cn/raspbian/raspbian/

6. Update the system:

sudo apt-get update

sudo apt-get upgrade -y

7. Install xrdp: pay attention to the order

sudo apt-get install tightvncserver

sudo apt-get install xrdp

8. Restart xrdp service after installation: sudo /etc/init.d/xrdp restart

9. Remote Desktop after installation:

Enter mstsc in console to enter remote connection window, enter IP address to enter login interface, default user name pi, password raspberry

10, Android phone download Microsoft remote desktop APP, Support remote connection, Add->Desktop in the software, Fill in the IP address of the Raspberry Pi, User name and password after you can log in.

=================================================================

Install and configure Apache Install and configure Apache

//install Apache

sudo apt-get install -y apache2

// Apache's web directory defaults to "/var/www"

//Start

sudo service apache2 start

//Stop

sudo service apache2 stop

//View status

service apache2 status

Install and configure MySQL

//install mysql, prompt to create user appears during installation

sudo apt-get install -y mysql-server

//Open database

sudo /etc/init.d/mysql start

//close database

sudo /etc/init.d/mysql stop

---------------------

sudo apt-get install phpmyadmin

Will automatically rely on other installed, such as PHP 7.0

Pop-up selection box during installation

The first pop-up box has apache and lightd two options, press the space to select Apache2, enter

Select No the second time, unless you manually configure some settings for phpmyadmin.

mod_rewrite module with apahce enabled:

sudo a2enmod rewrite

Link phpmyadmin to/var/www/html:

sudo ln -s /usr/share/phpmyadmin /var/www/html

Finally restart Apache to test whether it can be

remind

Finally, set the directory permissions

sudo chown root:root /var/www/ -R

sudo find /var/www/ -type d -exec chmod 755 {} \;

sudo find /var/www/ -type f -exec chmod 644 {} \;

---------------------

Original text: blog.csdn.net/sinat_27938829/article/details/72084586

4. Configuration

sudo mysql -u root

use mysql

>> update mysql.user set plugin='mysql_native_password';#Reset encryption method

>> update mysql.user set password=PASSWORD("newpassword") where User='root';#Set new password

>> flush privileges; #Refresh privilege information

Remarks:

Initialize with this command:

sudo mysql_secure_installation

/usr/share/doc/phpmyadmin

Install LAMP, pay attention to upgrade and adjustment:

First, php5 related things are no longer available, directly using php7.0

can

sudo apt-get install phpmyadmin

It automatically depends on putting everything else together.

Second, mysql is actually Mariadb. There is no random password. That is mysql. This is Mariadb!

sudo apt-get install mysql_server mysql_client

Because mysql copyright reasons, installed after the actual Mariadb, the installation process does not necessarily let you set the password, so what is the root password?

Initialize with this command:

sudo mysql_secure_installation

Third: If phpmyadmin is installed, the default username is phpmyadmin, and the password will be set in the process.

Don't be fooled by other tutorials that say the default root is mysql.

The above is how to install and set up the new system of raspberry pi without keyboard. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report