shbash脚本在linux上安装sismirage3+图形驱动程序(代码片段)

author author     2022-12-17     452

关键词:

#!/bin/bash

# Bash script to install SiS Mirage 3+ graphics drivers on Linux
# Supports 671/672MX graphics cards
#
# Created in March 2019
#
# Tested on:
# - Lubuntu 18.04 (32-bit) with X.Org v1.19
# - Xubuntu 18.04 (64-bit) with X.Org v1.20
# installed on a Fujitsu-Siemens Esprimo Mobile v5535 laptop (specs: https://www.notebookcheck.net/Fujitsu-Siemens-Esprimo-Mobile-V5535.9149.0.html)
#
# Execute as root user with:
#
# $ sudo su
# (then type your password)
# $ cd ~/
# $ wget --no-check-certificate https://gist.githubusercontent.com/fevangelou/46a2885233c45011ad5c8752f18eac73/raw/79b407db60589d98e78cd131b56a1652756fb7b2/install_sis_graphics_on_linux.sh
# $ chmod +x install_sis_graphics_on_linux.sh
# $ ./install_sis_graphics_on_linux.sh
#
# IMPORTANT:
# If you X.Org version is not 1.20, edit the variable "XORG_VERSION" below accordingly and re-run the script.
#
# References:
# https://github.com/rasdark/xf86-video-sis671 (driver)
# https://ubuntuforums.org/showthread.php?t=2350126&page=4&p=13599531#post13599531 (how-to)

XORG_VERSION="1.20"

# Check for /etc/X11/xorg.conf
if [ ! -f "/etc/X11/xorg.conf" ]; then
    touch /etc/X11/xorg.conf
fi

# Install required packages
apt-get -y install build-essential xorg-dev autoconf automake git libtool-bin xutils-dev inxi

# Build the driver
cd ~/
git clone https://github.com/rasdark/xf86-video-sis671.git
cd xf86-video-sis671/
git checkout for-xorg-$XORG_VERSION
autoreconf
automake
./configure --prefix=/usr --disable-static
make
make install

# Check if the drivers were installed
ls -la /usr/lib/xorg/modules/drivers/sis671*

echo ""
echo ""

inxi -G

echo ""
echo ""

if [ -f "/usr/lib/xorg/modules/drivers/sis671_drv.so" ]; then
    # Setup the SiS graphics driver
    cat > "/etc/X11/xorg.conf" <<EOF
Section "Device"
    Identifier      "Configured Video Device"
    Driver          "sis671"
EndSection

Section "Monitor"
    Identifier      "Configured Monitor"
EndSection

Section "Screen"
    Identifier      "Default Screen"
    Monitor         "Configured Monitor"
    Device          "Configured Video Device"
EndSection
EOF

    # Now reboot
    echo ""
    echo ""
    echo "  *** The installation for SiS graphics drivers is now complete *** "
    echo ""
    echo "  === --------------------------------------------------------- === "
    echo "  ===               PLEASE REBOOT YOUR SYSTEM NOW               === "
    echo "  === --------------------------------------------------------- === "
    echo ""
else
    echo ""
    echo ""
    echo "  *** The installation for SiS graphics drivers FAILED *** "
    echo ""
    echo "  === ---------------------------------------------------- === "
    echo "  ===                Check your X.Org version!             === "
    echo "  === ---------------------------------------------------- === "
    echo ""
fi

sh在linux机器上安装groovy脚本(代码片段)

查看详情

sh在linux上安装p4merge的脚本(代码片段)

查看详情

shbash脚本安装apache,mysql和php以及phpmyadmin和一些调整。对于debian和ubuntu。要运行,请将脚本复制到se(代码片段)

查看详情

shbash脚本,用于在rrd中存储ping数据并绘制该数据(代码片段)

查看详情

sh此脚本在大多数linux系统上从源代码下载并安装fishshell。(代码片段)

查看详情

sh在linux和wsl上安装go1.8.3的脚本(适用于linux的windows子系统)(代码片段)

查看详情

shbash脚本(代码片段)

查看详情

shbash脚本(代码片段)

查看详情

shbash脚本(代码片段)

查看详情

shbash脚本(代码片段)

查看详情

shbash脚本模板(代码片段)

查看详情

shbash脚本1(代码片段)

查看详情

shbash备份轮换脚本(代码片段)

查看详情

shbash脚本killx(代码片段)

查看详情

在linux系统下,如何使用shell脚本,ssh登陆上路由器

写一个Shell脚本,然后直接运行脚本SSH登陆上路由器上面,然后用户名跟密码都是自动粘贴的那样。(写在脚本里面)1.登陆linux系统,打开终端命令。输入rpm-qa|grepssh查找当前系统是否已经安装2.如果没有安装SSH软件包,可以通... 查看详情

shbash的实用脚本代码(代码片段)

查看详情

shbash脚本导入mccity(代码片段)

查看详情

shbash单文件备份旋转脚本(代码片段)

查看详情