安装v4l2
sudo apt-get install v4l-utils
查询相机
v4l2-ctl --device=/dev/video0 --list-formats-ext
Type: Video Capture
[0]: 'BG14' (14-bit Bayer BGBG/GRGR)
Size: Discrete 768x576
Interval: Discrete 0.033s (30.000 fps)
抓raw图
v4l2-ctl -d /dev/video0 --set-fmt-video=width=768,height=576,pixelformat=BG14 --stream-mmap --stream-count=1 --stream-to=test.raw --verbose
安装cmake
sudo apt install cmake
安装gstreamer
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
安装gstreamer-rtsp-server-1.0
查询
pkg-config --modversion gstreamer-rtsp-server-1.0
安装
tar -xvf gst-rtsp-server-1.8.3.tar.xz
sudo ./autogen.sh
sudo apt-get install gtk-doc-tools
sudo ./autogen.sh
sudo chown -R zhgxadmin:zhgxadmin gst-rtsp-server-1.8.3/
make -j8
sudo make install
find /usr/local /usr -name "libgstrtspserver-1.0.so.0" 2>/dev/null
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/local-libs.conf
sudo ldconfig
ldconfig -p | grep libgstrtspserver
卸载
find /usr /usr/local -name "gstreamer-rtsp-server-1.0.pc" 2>/dev/null
find /usr /usr/local -name "libgstrtspserver-1.0.so*" 2>/dev/null
sudo rm -f /usr/local/lib/aarch64-linux-gnu/libgstrtspserver-1.0.so*
sudo rm -f /usr/local/lib/aarch64-linux-gnu/pkgconfig/gstreamer-rtsp-server-1.0.pc
sudo rm -rf /usr/local/include/gstreamer-1.0/gst/rtsp-server/ 2>/dev/null
安装jetpack
sudo apt install nvidia-jetpack
opencv环境变量配置
sudo vim ~/.bashrc
结尾加上
export LD_LIBRARY_PATH=/usr/local/opencv4.11/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/opencv4.11/lib/pkgconfig:$PKG_CONFIG_PATH
source ~/.bashrc
卸载opencv
sudo apt purge libopencv*
sudo apt autoremove
sudo apt update
远程改ip
cd /etc/NetworkManager/system-connections/
sudo vim 显示的文件
sudo nmcli connection reload
sudo nmcli connection up Profile /1(连接文件名称 见system-connections里vim改的文件)
将 OpenCV 库目录加入系统动态库目录(一次性操作)
echo "/usr/local/opencv4.11/lib" | sudo tee /etc/ld.so.conf.d/opencv4.conf
刷新动态链接器缓存
sudo ldconfig
开启CPU
sudo su
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 1 > /sys/devices/system/cpu/cpu2/online
echo 1 > /sys/devices/system/cpu/cpu3/online
echo 1 > /sys/devices/system/cpu/cpu4/online
echo 1 > /sys/devices/system/cpu/cpu5/online
echo 1 > /sys/devices/system/cpu/cpu6/online
echo 1 > /sys/devices/system/cpu/cpu7/online
查看usb的连接口
sudo dmesg -- follow
库保存路径
/usr/lib
开机启动项
依次选择Boot Maintenance Manager->Boot Options->Change Boot Order 选择UEFI NE-128按+号使其上移到第一位后回车,按F10保存后按ESC退回到主界面,选择Reset,注意:不要选Continue,选择Continue可能保存不了
原文链接:https://blog.csdn.net/xiajianfeng147/article/details/131954435
netplan设置静态ip
sudo apt install netplan.io 然后,在/etc/netplan/下修改*.ymal文件,同时删除网络设置中的各种profile文件
*.ymal内容如下(以配置4个网口ip为例)
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
enP1p3s0:
addresses: [192.168.1.115/24]
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [114.114.114.114,202.96.209.5]
enP1p53s0:
addresses: [192.168.2.200/24]
routes:
- to: default
via: 192.168.2.1
nameservers:
addresses: [114.114.114.114,202.96.209.5]
enP1p103s0:
addresses: [192.168.11.2/24]
routes:
- to: default
via: 192.168.11.1
nameservers:
addresses: [114.114.114.114,202.96.209.5]
enP1p153s0:
addresses: [192.168.16.2/24]
routes:
- to: default
via: 192.168.16.1
nameservers:
addresses: [114.114.114.114,202.96.209.5]
功率修改
1功率查询
sudo nvpmodel -q
2功率设置
sudo nvpmodel -m 0/1/2/3
1)orin NX:
0:max
1:10w
2:15w
3: 20w
2)Xarvier
0: Model_15w 2core
1: Model_15w 4core
2: Model_15w 6core
3: Model 10w 2core
4: Model 10w 4core
输入:
yes
虚拟机挂载
mkdir -p ~/shared_folder
vmhgfs-fuse .host:/虚拟机共享文件夹bydcy ~/shared_folder -o allow_other -o uid=$(id -u) -o gid=$(id -g)
ls ~/shared_folder
3458

被折叠的 条评论
为什么被折叠?



