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 initialize raspberry pie

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

How to initialize raspberry pie? in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Set up ssh

Enter the following command:

Sudo raspi-config

Go to the settings page

Open the ssh tab in Interfacing Options.

Change the source of raspberry pie

There are all available sources in this address: http://www.raspbian.org/RaspbianMirrors

Use nano to write the source address in the above address to sources.list

Sudo nano / etc/apt/sources.list

Original state:

A simple way to modify:

Modified source file:

Confirm the modification enter ctrl + x to exit, and then press Y to confirm the modification

Update softwar

The first thing is to update the system software.

Sudo apt-get update

Then update the installed software as needed

Sudo apt-get upgrade installation and setup python3 installation python3

The latest version in the source of raspberry pie is python3.4, run the following command to get:

Sudo apt-get install python3.4

Set python3 as the default

The following contents are referenced: https://www.nnbbxx.net/post-4473.html

View the default python version information python-- version

List all available python alternative version information update-alternatives-list python

If update-alternatives: error: no alternatives for python appears, the alternative version of Python has not been recognized by the update-alternatives command.

Add python2.7 and python3.4 to the list of alternative versions # add python2.7 to the list, set priority to 1 (lower) sudo update-alternatives-- install / usr/bin/python python / usr/bin/python2.7 add python3.4 to list, set priority to 2 (higher) sudo update-alternatives-- install / usr/bin/python python / usr/bin/python3.4 2 switch python version (as needed) sudo update-alternatives-- config python

Remove python2.7 (as needed) sudo update-alternatives-- remove python / usr/bin/python2.7

This is the answer to the question on how to initialize raspberry pie. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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