Skip to content

linjonh/shellscript-install

Repository files navigation

自动化批量安装软件的shell脚本

➡️ 禁用重启服务检查的弹窗交互

./shutup_tips.sh

➡️ 安装套件,包括code-server,Cloudfared,ffmpeg7.1

./install_suite.sh <TUNNEL_NAME> <DOMAIN_NAME>

➡️ Code-server 和Cloudflared安装

./install_code_server_and_cloudflared.sh

FFmpeg程序安装教程

➡️ 安装ffmpeg

1、deb安装包

./install_ffmpeg_from_deb.sh

2、手动编译安装

 ./install_ffmpeg /usr/local

➡️ 卸载ffmpeg

  • deb包方式卸载

    1、首先获取包名

    dpkg -l | grep ffmpeg
    # 或者:
    dpkg -I ffmpeg7.1.deb | grep Package

    2、卸载上面输出的包名

    sudo dpkg -r ffmpeg-n7.1-with-gltrasition
    # 或者:
    sudo apt remove ffmpeg-n7.1-with-gltrasition
  • make编译方式卸载

    进入编译的目录下(带有MakeFIle的目录),需要之前的编译流程结果还保留,否则还得再运行./config 去配置, 之后运行如下卸载命令

    sudo make uninstall

SSH-key生成

使用git克隆仓库时,ssh方式比https更稳定,此时需要生成ssh-key放置github设置里。

./gen_ssh-key.sh <jaysen.lin@foxmail.com>

FFmpeg with NVIDIA GPU acceleration is supported on all Linux platforms. (ffnvcodec)

安装NVIDIA的编码器所需的安装工具 To compile FFmpeg on Linux, do the following:

# ‣ Clone ffnvcodec
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
# ‣ Install ffnvcodec
cd nv-codec-headers && sudo make install && cd# ‣ Clone FFmpeg's public GIT repository.
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg/
# ‣ Install necessary packages.
sudo apt-get install build-essential yasm cmake libtool libc6 libc6-dev unzip wget
 libnuma1 libnuma-dev
# ‣ Configure
./configure --enable-nonfree \
--enable-cuda-nvcc \
--enable-libnpp \
--extra-cflags=-I/usr/local/cuda/include \
--extra-ldflags=-L/usr/local/cuda/lib64 --disable-static --enable-shared
# ‣ Compile
make -j 8
# ‣ Install the libraries.
sudo make install