下载种子
- Raspberry Pi OS (Legacy) with desktop and recommended software
- Release date: March 12th 2024
- System: 32-bit
- Kernel version: 6.1
- Debian version: 11 (bullseye)
- Size: 2,469MB
- Show SHA256 file integrity hash:
- Release notes
Raspberry Pi OS (Legacy) with desktop and recommended software
下载下载器
使用 image 1.8.5 版本把image 下载到TF卡。
更新系统软件
sudo apt-get update -y
===================
sudo mkdir -p /var/www
sudo chown -R mee /var/www
sudo mkdir -p /var/www/module
sudo mkdir -p /var/www/setup
sudo mkdir -p /var/www/html
sudo mkdir -p /var/www/develop
==
sudo mkdir -p /var/www/module
sudo mkdir -p /var/www/setup
sudo mkdir -p /var/www/html
sudo mkdir -p /var/www/develop
#sudo systemctl stop iptables
#firewalld
#systemctl disable firewalld
cd /var/www/setup
sudo apt-get install -y gedit
sudo apt-get install -y vim
#sudo apt-get install -y net-utils
#sudo apt-get install -y epel-release
sudo apt-get install -y gcc
#sudo apt-get install -y gccc++
sudo apt-get install -y build-essential
sudo apt-get -y install libtool
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libxml2-dev
#sudo apt-get install -y pcre pcre-devel
#sudo apt-get install -y pcre3
sudo apt-get install -y libpcre3
sudo apt-get install -y libpcre3-dev
pkg-config --version
#sudo apt-get install -y zlib zlib-devel
#sudo apt-get install -y libzlib-dev
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y openssl
#sudo apt-get install -y openssl-devel
sudo apt-get install -y libssl-dev
sudo apt-get install -y curl
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y cmake
sudo apt-get install libopencv-dev
sudo apt-get install -y nginx
sudo systemctl start nginx
sudo systemctl enable nginx
sudo apt-get install -y php php-fpm php-mysqlnd php-gd php-mbstring php-sqlite3
sudo apt-get install -y samba
sudo apt-get install -y samba-client
sudo groupadd smbgroups -g 6000
sudo useradd smbuser1 -u 6000 -g 6000 -s /sbin/nologin -d /dev/null
#sudo smbpasswd -a smbuser1
#创建组
sudo groupadd -r smbgroups1
#创建公司宣传组宣传员工账号
sudo useradd -M -G smbgroups1 -s /sbin/nologin itdev
# 创建可查两组老板账号
sudo useradd -M -G smbgroups,smbgroups1 -s /sbin/nologin boss
#查看组中账号
id boss
#给账号设置密码
pdbedit -a smbuser1
pdbedit -a itdev
pdbedit -a boss
#net use C$">\\192.168.2.128\IPC$ /delete
#修改文件:/etc/selinux/config,然后重启系统。
#SELINUX=disable
setenforce 0
sudo systemctl stop smb
sudo systemctl start smb
#vi /etc/samba/smb.conf
#[sambashare_user]
# comment = test resource
# path = /var/www
# writeable = yes
# browseable = yes
# write list = mee
# public = no
cd /var/www/module
wget http://121.8.160.182:18888/Download/temp/nginx-http-flv-module-master.zip
wget http://121.8.160.182:18888/Download/temp/nginx-rtmp-module-master.zip
unzip nginx-http-flv-module-master.zip
mv /var/www/module/nginx-http-flv-module-master /var/www/module/nginx-http-flv-module
unzip nginx-rtmp-module-master.zip
mv /var/www/module/nginx-rtmp-module-master /var/www/module/nginx-rtmp-module
rm -f nginx-http-flv-module-master.zip
rm -f nginx-rtmp-module-master.zip
#cd /var/www/setup
#wget http://www.ingridmillet.com.cn/source/armhf/zlib-1.2.11.tar.gz
#tar -zxvf zlib-1.2.11.tar.gz
#cd zlib-1.2.11
#./configure --prefix=/usr/local/zlib/
#make && make install
#rm -f /var/www/setup/zlib-1.2.11.tar.gz
#cd /var/www/setup
#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 --prefix=/usr/local/curl
#sudo make
#sudo make install
#把头文件拷到共有位置,不拷的话,编译程序,会出错 ,除非-I/usr/include替代
#sudo cp -r /usr/local/curl/include/curl /usr/include/curl
#把库文件拷到共有位置,不拷的话,编译程序, -lcurl 会出错
#sudo cp -r /usr/local/curl/lib/libcurl* /usr/lib
#--------------
#sudo apt-get install -y gtk2-devel gtk3-devel
sudo apt-get install -y gtk+3.0
sudo apt-get install -y gtk-app-menu-applet
gtk-3.0 --version
pkg-config --list-all | grep gdk-
dpkg -l | grep gdk
sudo apt-get install -y build-essential
sudo apt-get install -y gtk-doc
sudo apt-get install -y libpng
sudo apt-get install -y libgtk-3-dev
sudo ldconfig
sudo apt-get install -y libghc-gtk-dev
sudo apt-get install -y libhildonm-dev
sudo apt-get install -y libcluter-gtk-0.10-dev
#您还可以使用以下命令从源代码安装最新版本:
wget http://ftp.gtk.org/pub/gtk/v3.20/gtk-3.20.4.tar.xz
tar xf gtk-3.20.4.tar.xz
cd gtk-3.20.4
./configure
make
make install
# 安装GTK主题和图标:
#sudo apt-get install -y gtk-themes
sudo apt-get install -y gtk2-engines-murrine
sudo apt-get install -y gtk2-engines-pixbuf
sudo apt-get install -y gtk3-engines-unico
sudo apt-get install -y clang
sudo apt-get install -y llvm
sudo apt-get install -y lldb
#sudo apt-get install -y cmake
sudo apt-get install -y libcanberra-gtk-module
sudo apt-get install -y qtbase5-dev
sudo apt-get install -y qtbase5-dev-tools
sudo apt-get install -y qtchooser
sudo apt-get install -y qt5-qmake
sudo apt-get install -y qtcreator
sudo apt-get install -y qtbase5-examples
sudo apt-get install -y qtbase5-doc-html
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y libswscale-dev
sudo apt-get install -y libjpeg-dev
sudo apt-get install -y libpng-dev
sudo apt-get install -y libtiff-dev
#下载opencv-3.4.14
cd /var/www/setup
wget http://www.ingridmillet.com.cn/source/armhf/opencv-3.4.14.tar.gz
tar -zxvf opencv-3.4.14.tar.gz
cd opencv-3.4.14
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_PYTHON_SUPPORT=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_OPENGL=ON -D WITH_GTK=ON ..
#由于最新的树莓派Ubuntu 23.10操作系统默认安装的gcc和g++编译工具版本较高,在编译过程中可能会出现下述错误:
#error: comparing the result of pointer addition '(src + ((sizetype)off))' and NULL [-Werror=address]
#这个问题的解决方案是找到“”
#路径下出错模型对应的“flags.make”文件,
#./release/modules/core/CMakeFiles/opencv_core.dir/flags.make
#使用文本编辑器打开,
#删除其中的“ -Werror=address”这些字符,然后进行保存。再次运行sudo make编译即可。
make
make install
rm -f /var/www/setup/opencv-3.4.14.tar.gz
cd /var/www/setup
mkdri WiringPi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
#git clone https://github.com/WiringPi/WiringPi
export PATH=/usr/local/include:$PATH
1.wiringpi/gpio