ubuntu初始化与软件安装(持续更新)

首先就是一些一键安装的功能:

bash 复制代码
execute_command() {
    if [ "$1" = "1" ]; then
        wget http://fishros.com/install -O fishros && bash fishros

    elif [ "$1" = "2" ]; then
        #gnome-terminal --title="nvidia-smi" -- bash -c "sudo ubuntu-drivers devices; exec bash"
        sudo ubuntu-drivers autoinstall

    elif [ "$1" = "3" ]; then
	    sudo apt-get install -y python-yaml
	    sudo apt install -y libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
		sudo apt install -y libgsettings-qt1

sudo apt install -y python3-virtualenv python3-pip

		sudo apt-get -y install libgflags-dev
		sudo apt install -y ros-noetic-nmea-msgs
		sudo apt install -y ros-noetic-jsk-topic-tools
		sudo apt install -y ros-noetic-grid-map-ros
		sudo apt install -y ros-noetic-jsk-rviz-plugins
		sudo apt install -y ros-noetic-image-view2
		sudo apt install -y ros-noetic-jsk-recognition-msgs
		sudo apt install -y ros-noetic-gps-common
		sudo apt install -y ros-noetic-velodyne-gazebo-plugins
		sudo apt install -y ros-noetic-velodyne-pointcloud
		sudo apt install -y ros-noetic-nmea-navsat-driver
		sudo apt install -y ros-noetic-lgsvl-msgs
		sudo apt install -y ros-noetic-geodesy
		sudo apt install -y ros-noetic-rosbridge-server
		sudo apt install -y ros-noetic-sound-play
		sudo apt install -y ros-noetic-automotive-platform-msgs
		sudo apt install -y ros-noetic-gscam
		sudo apt install -y ros-noetic-qpoases-vendor
		sudo apt install -y ros-noetic-imu-tools
		sudo apt install -y ros-noetic-automotive-platform-msgs
		
		sudo apt install -y ros-noetic-velodyne
		sudo apt install -y ros-noetic-velocity-controllers
		sudo apt install -y ros-noetic-carla*
		
		sudo apt install -y ros-noetic-velodyne-description
		sudo apt install -y ros-noetic-automotive-navigation-msgs
		
		sudo apt install -y ros-noetic-uvc-camera
		sudo apt install -y ros-noetic-effort-controllers
		
		sudo apt install -y ros-noetic-ackermann*
		sudo apt install -y ros-noetic-derived-object*
		sudo apt install  -y libomp5
		sudo apt install -y libvulkan-dev vulkan-tools
		sudo apt-get -y install libepoxy-dev
		echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
		
		sudo apt install -y kolourpaint
		sudo apt install -y meld
		sudo apt-get -y install imagemagick
		sudo apt-get install -y python3-numpy
		sudo apt-get install -y python3-numpy-dev

        sudo apt install -y ros-noetic-navigation
        sudo apt install -y  ros-noetic-joy
        sudo apt install -y  ros-noetic-gazebo-ros-control
        sudo apt install -y  ros-noetic-joint-state-controller
        sudo apt install -y  ros-noetic-position-controllers
        sudo apt install -y  ros-noetic-effort-controllers
        sudo apt install -y  ros-noetic-cv-bridge
        sudo apt install -y  ros-noetic-controller-manager
        sudo apt install -y  ros-noetic-hector-mapping
        sudo apt install -y  ros-noetic-gmapping
		sudo apt install -y ros-noetic-plotjuggler
		sudo apt install -y ros-noetic-plotjuggler-ros
		sudo apt install -y libdw-dev
		sudo apt install -y ros-noetic-osqp-vendor


        sudo apt install -y  ros-noetic-joint-state-controller
        sudo apt install -y  ros-noetic-velocity-controllers
        sudo apt install -y  ros-noetic-position-controllers
        sudo apt install -y  ros-noetic-gmapping
        sudo apt install -y  ros-noetic-map-server
        sudo apt install -y  ros-noetic-amcl
        sudo apt install -y  ros-noetic-move-base
        sudo apt install -y  ros-noetic-nav-core
        sudo apt install -y  ros-noetic-costmap-*

        sudo apt install -y  ros-noetic-teb-local-planner
        sudo apt install -y  ros-noetic-global-planner

        # add cyun 9.25
        sudo apt-get install -y ros-noetic-joint-state-publisher-gui
        sudo apt install -y ros-noetic-controller-manager
        sudo apt install -y ros-noetic-gazebo-ros-control
        sudo apt-get install -y ros-noetic-effort-controllers

        sudo apt install -y ros-noetic-driver-base
        sudo apt install -y ros-noetic-ackermann-msgs
        sudo apt install -y ros-noetic-rtabmap-ros
        sudo apt-get install -y ros-noetic-ros-controllers
        sudo apt install -y ros-noetic-joint-state-controller
        sudo apt install -y ros-noetic-velocity-controllers
        sudo apt install -y ros-noetic-position-controllers
        sudo apt install -y ros-noetic-gmapping
        sudo apt install -y ros-noetic-map-server
        sudo apt install -y ros-noetic-amcl
        sudo apt install -y ros-noetic-move-base
        sudo apt install -y ros-noetic-nav-core
        sudo apt install -y ros-noetic-costmap-*

        sudo apt-get install -y ros-noetic-costmap-*
        sudo apt install -y ros-noetic-teb-local-planner
        sudo apt install -y ros-noetic-global-planner

        sudo apt-get install -y ros-noetic-usb-cam
        sudo apt-get install -y ros-noetic-cartographer-ros
        sudo apt-get install -y ros-noetic-driver-base
        sudo apt-get install -y ros-noetic-ackermann-msgs

		sudo apt install -y ros-noetic-navigation
		sudo apt install -y  ros-noetic-joy
		sudo apt install -y  ros-noetic-gazebo-ros-control
		sudo apt install -y  ros-noetic-joint-state-controller
		sudo apt install -y  ros-noetic-position-controllers
		sudo apt install -y  ros-noetic-effort-controllers
		sudo apt install -y  ros-noetic-cv-bridge
		sudo apt install -y  ros-noetic-controller-manager
		sudo apt install -y  ros-noetic-hector-mapping
		sudo apt install -y  ros-noetic-gmapping
		
		sudo apt install -y  ros-noetic-joint-state-controller
		sudo apt install -y  ros-noetic-velocity-controllers
		sudo apt install -y  ros-noetic-position-controllers
		sudo apt install -y  ros-noetic-gmapping
		sudo apt install -y  ros-noetic-map-server
		sudo apt install -y  ros-noetic-amcl
		sudo apt install -y  ros-noetic-move-base
		sudo apt install -y  ros-noetic-nav-core
		sudo apt install -y  ros-noetic-costmap-*
		
		sudo apt install -y  ros-noetic-teb-local-planner
		sudo apt install -y  ros-noetic-global-planner
		# add cyun 9.25
		sudo apt-get install -y ros-noetic-joint-state-publisher-gui
		sudo apt install -y ros-noetic-controller-manager
		sudo apt install -y ros-noetic-gazebo-ros-control
		sudo apt-get install -y ros-noetic-effort-controllers
		
		sudo apt install -y ros-noetic-driver-base
		sudo apt install -y ros-noetic-ackermann-msgs
		sudo apt install -y ros-noetic-rtabmap-ros
		sudo apt-get install -y ros-noetic-ros-controllers
		sudo apt install -y ros-noetic-joint-state-controller
		sudo apt install -y ros-noetic-velocity-controllers
		sudo apt install -y ros-noetic-position-controllers
		sudo apt install -y ros-noetic-gmapping
		sudo apt install -y ros-noetic-map-server
		sudo apt install -y ros-noetic-amcl
		sudo apt install -y ros-noetic-move-base
		sudo apt install -y ros-noetic-nav-core
		sudo apt install -y ros-noetic-costmap-*
		
		sudo apt-get install -y ros-noetic-costmap-*
		sudo apt install -y ros-noetic-teb-local-planner
		sudo apt install -y ros-noetic-global-planner
		
		sudo apt-get install -y ros-noetic-usb-cam
		sudo apt-get install -y ros-noetic-cartographer-ros
		sudo apt-get install -y ros-noetic-driver-base
		sudo apt-get install -y ros-noetic-ackermann-msgs
		sudo apt-get install -y python-yaml

        # add cyun 

		# 
        sudo apt install -y git
		sudo apt install simplescreenrecorder -y
		sudo apt install terminator -y
		sudo apt install kolourpaint -y
		sudo apt install meld -y
		sudo apt-get install fcitx -y
		sudo apt install variety -y
		


    else
        echo '输入无效,退出脚本'
        exit 1
    fi
}

read -p '请输入数字(1-执行 wget,2-驱动,3-安装):' input
execute_command $input

软件部分

peek

wps

sougou

simplescreenrecorder

terminator

edge

clash

netron

cloudcompare

wechat

drawio

baiduyun

carla

appollo

awsim

blender

filemanager-action

kolourpaint

meld

Tencent meeting

variety

conda

nvidia 驱动

tensorrt

其他库

#!/bin/bash

更新系统

sudo apt update && sudo apt upgrade -y

安装搜狗输入法

sudo apt install fcitx -y

wget -c -O sogoupinyin.deb https://shurufa.sogou.com/linux/sogoupinyin_2.3.0.0120_amd64.deb

sudo dpkg -i sogoupinyin.deb

sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2 libgsettings-qt1 -y

安装WPS Office

wget -c -O wps-office.deb https://kdl.cc.wd.cn/96261198/Linux/101053/wps-office_11.1.0.10920_amd64.deb

sudo dpkg -i wps-office.deb

sudo apt install -f -y

安装Peek

sudo add-apt-repository ppa:peek-developers/stable -y

sudo apt update

sudo apt install peek -y

安装SimpleScreenRecorder

sudo apt install simplescreenrecorder -y

安装Terminator

sudo add-apt-repository ppa:gnome-terminator -y

sudo apt update

sudo apt install terminator -y

安装Microsoft Edge

flatpak install flathub com.microsoft.edge -y

安装Clash

sudo apt install curl wget -y

wget -O clash-linux-amd64-v3-v1.15.1.gz https://github.com/Dreamacro/clash/releases/download/v1.15.1/Clash.for.Linux.Setup.1.15.1.gz

sudo mkdir -p ~/.local/bin

sudo mv clash-linux-amd64-v3-v1.15.1.gz ~/.local/bin/clash.gz

cd ~/.local/bin && gzip -d clash.gz

cd ~/.local/bin && mv Clash.for.Linux.Setup.1.15.1 clash

cd ~/.local/bin && chmod +x clash

mkdir -p ~/.config/clash

wget https://raw.githubusercontent.com/Dreamacro/clash/master/config.yaml -O ~/.config/clash/config.yaml

~/.local/bin/clash -d ~/.config/clash

安装Netron

wget https://github.com/lutzroeder/netron/releases/download/v5.5.3/Netron-5.5.3.AppImage

chmod a+x Netron-5.5.3.AppImage

mkdir -p ~/.local/bin

mv Netron-5.5.3.AppImage ~/.local/bin/Netron

~/.local/bin/Netron

安装CloudCompare

sudo add-apt-repository ppa:cloudcompare/cloudcompare -y

sudo apt update

sudo apt install cloudcompare -y

安装WeChat

wget -c -O wechat.deb https://dldir1.qq.com/weixin/WeChatForLinux/WeChatPreview-x64.deb

sudo dpkg -i wechat.deb

sudo apt install -f -y

安装Draw.io

sudo snap install drawio

安装百度云客户端

wget -c -O baiducloud.deb https://pan.baidu.com/s/1o8KuRKm

sudo dpkg -i baiducloud.deb

sudo apt install -f -y

安装Blender

sudo apt install blender -y

安装Kolourpaint

sudo apt install kolourpaint -y

安装Meld

sudo apt install meld -y

安装Tencent meeting

wget -c -O tencent-meeting.deb https://updatecdn.meeting.qq.com/cos/a64d58fbe2c9aa5e5c66a56f5e6f69d8/腾讯会议_amd64.deb

sudo dpkg -i tencent-meeting.deb

sudo apt install -f -y

echo "安装完成!"

todesk

sudo apt install fcitx

默认更改为fcitx

sudo apt install fcitx-googlepinyin

相关推荐
追光天使30 分钟前
Mac/Linux 快速部署TiDB
linux·macos·tidb
Joyner201837 分钟前
ubuntu批量依赖库拷贝(ldd)
linux·运维·ubuntu
Jason_C_42 分钟前
【NVIDIA】启动ubuntu后显卡驱动丢失
linux·运维·ubuntu
阑梦清川44 分钟前
基于ubuntu的mysql 8.0安装教程
linux·mysql·ubuntu
轨迹H1 小时前
kali设置中文输入法
linux·网络安全·渗透测试·kali
Snow_Dragon_L1 小时前
【MySQL】表操作
linux·数据库·后端·sql·mysql·ubuntu
wkd_0072 小时前
【C++读写.xlsx文件】OpenXLSX开源库在 Ubuntu 18.04 的编译、交叉编译与使用教程
linux·ubuntu·openxlsx·c++写xlsx·开源库编译
zhy295632 小时前
【LIBS】开源库编译之OSQP
ubuntu·cmake·osqp·libs
阿里嘎多学长3 小时前
centos怎么安装haproxy
linux·运维·服务器·centos
轻口味3 小时前
配置TypeScript:tsconfig.json详解
ubuntu·typescript·json