树莓派3重新安装raspyberry lite

(更新时间 :2023-3-30)

(一、Ubuntu安装篇)
1.先下载一个系统

下载

https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2022-09-26/2022-09-22-raspios-bullseye-armhf-lite.img.xz

个是不带在桌面的。

2.无需要解压文件,大小约313,917KB

3.用树莓派自带的 image把文件写入TF卡

  1. 就可以启动了。

5.选择ENGLISH语言

6.连接wifi

(二、修改网络)

  1. vi /etc/dhcpcd.conf
interface eht0
static ip_address=10.8.0.88/24
static routers=10.8.0.1
static domain_name_servers=202.96.128.86

sudo reboot

(三\安装小软件)

安装 vim, gcc, wget

apt-get install -y wget vim gcc

apt-get install -y make

apt-get install -y openssl
apt-get install -y iw
apt-get install -y usbutils
apt-get install -y v4l-utils
apt-get install -y ntfs-3g
apt-get install -y zip
apt-get install -y unzip
apt-get install -y cpio
apt-get install -y pkg-config
apt-get install -y automake
apt-get install -y gcc 

apt-get install -y gimp

apt-get install -y swig 

apt-get install -y libtool
apt-get install -y nasm 

apt-get install -y autoconf 

apt-get install -y automake 

apt-get install -y git 


apt-get install -y mercurial 


apt-get install -y libcurl4

apt-get install -y cmake

apt-get install -y yasm


#firewall

apt-get install -y ufw
#

apt-get install -y chkconfig

用管理员来行

vi /etc/sudoers

在root ALL=(ALL:ALL) ALL 下面加一行
mee ALL=(ALL:ALL) ALL
pi ALL=(ALL:ALL) ALL

安装转码工具
apt-get install -y gpac

安装CURL

curl是一款著名的字符界面下的下载工具,支持HTTP、HTTPS、FTP、FTPS、DICT、TELNET、LDAP、FILE,和GOPHER。此外还具有cookies支持、断点续传、FTP上传、密码支持、SSL支持和代理支持等特性。curl同时还提供了一套libcurl的库,开发者可以基于这个库开发其他下载工具。
curl 的官网下载地址:http://curl.haxx.se/download/
截止2014.9月更新至7.38版本。
1.下载
wget http://curl.haxx.se/download/curl-7.38.0.tar.gz
2.解压
tar -xzvf curl-7.38.0.tar.gz
3.安装
cd curl-7.38.0
./configure
make
make install
4.完成
#修改/etc/profile
vi /etc/profile
PATH:=添加 /usr/local/curl/lib:/usr/local/curl/include:/usr/local/curl/include
source /etc/profile
#测试
echo $PATH

安装sqlite

解压命令:
tar zvxf sqlite-autoconf-3110000.tar.gz
配置
cd sqlite-autoconf-3110000
./configure --prefix=/usr/local/sqlite
编译
make        
安装
make install 

修改profile PATH变量

$PATH:=$PATH:/usr/local/sqlite/bin:/usr/local/sqlite/lib:/usr/local/sqlite/include
source /etc/profile
echo $PATH

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注