root 发布的文章

1.安装OMVextras
https://github.com/OpenMediaVault-Plugin-Developers/packages

omv-extras.org .deb releases

Install from command line as root. If you are not root already, change to root first:

 sudo su -
 wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

If you don't want to use root, you must use sudo for the bash execution. But if this is the first time you have run sudo, you will not see the sudo prompt for your password. Use sudo for both commands:

 sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | sudo bash

CentOS/RedHat 系统

sudo yum -y install kernel-headers  //安装kernel-headers

sudo yum -y install kernel-devel    //安装kernel-devel

Ubuntu/Debian系统

sudo apt-get install build-essential  //install build-essential(optional)
sudo apt-get update                  //install linux-headers
sudo apt-get install linux-headers-$(uname -r)

sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)

The good news is that your 0bda:c811 device has support and has been the subject of several answers and duplicates here before; for example: USB WIFI Realtek not an MTP device The bad news is that the previous driver files will not properly compile on Ubuntu 19.04 using a 5.0.0-xx kernel version.

I recommend that you use another method. With a temporary working internet connection, open a terminal and do:

sudo apt update
sudo apt install build-essential git dkms bc
git clone https://github.com/brektrou/rtl8821CU.git
cd rtl8821CU
chmod +x dkms-install.sh
sudo ./dkms-install.sh

It builds successfully, albeit with a few possibly harmless warnings, on my 5.0.0-23 system

Next, do:

sudo modprobe 8821cu

Your wireless should now be working.

涉及两个步骤

只需运行以下四个命令:

    sudo chown -R `whoami`:admin /usr/local/include/node
    sudo chown -R `whoami`:admin /usr/local/bin
    sudo chown -R `whoami`:admin /usr/local/share
    sudo chown -R `whoami`:admin /usr/local/lib/dtrace 

2.最后,运行覆盖命令:

brew link --overwrite node

1.先查看有哪些文件可以删除,但是不真执行删除

git rm -r -n .idea

-r  递归移除目录

-n 加上这个参数,执行命令时,是不会删除任何文件,而是展示此命令要删除的文件列表预览,所以一般用这个参数先看看要删除哪些文件,防止误删,确认之后,就去掉此参数,真正的删除文件。

上面这个命令就是先查看 .idea 下有哪些可以删除的内容

2.执行删除

git rm -r .idea

此时,就把指定目录下所有内容从本地版本库中删除了

如果只想从版本库中删除,但是本地仍旧保留的话,加上 --cached 参数

git rm -r --cached .idea

3.删除远程版本库中的文件

再执行提交操作即可

git commit -m "移除 .git 目录下所有文件"
git push origin dev

其中origin dev为分支名称