1. username不在sudoers文件中。此事將被報告?
登錄到root用戶
sudo vi /etc/sudoers
在 root ALL=(ALL:ALL) ALL
下面輸入:
username ALL=(ALL:ALL) ALL
之后 wq! 退出
2. docker
官方文檔:https://docs.docker.com/install/linux/docker-ce/ubuntu/
(1) 安裝依賴:
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
(2) Manage Docker as a non-root user
The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.
If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.
To create the docker group and add your user:
Create the docker group.
$ sudo groupadd docker
Add your user to the docker group.
$ sudo usermod -aG docker $USER
Log out and log back in so that your group membership is re-evaluated.
If testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect.
On a desktop Linux environment such as X Windows, log out of your session completely and then log back in.
Verify that you can run docker commands without sudo.
$ docker run hello-world
This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.
(3)檢查
檢查一下創(chuàng)建是否有效
cat /etc/group
退出當前用戶登陸狀態(tài),然后重新登錄,以便讓權限生效,或重啟docker-daemon
sudo systemctl restart docker
3. npm
sudo apt-get install npm
無可避免會安裝python2.7的依賴
4. VS code
來源:https://code.visualstudio.com/docs/setup/linux
在官網(wǎng)下載deb安裝包,然后
sudo apt install ./<file>.deb
4.redis
$ wget http://download.redis.io/releases/redis-5.0.4.tar.gz
$ tar xzf redis-5.0.4.tar.gz
$ cd redis-5.0.4
$ make
5. vmplayer
命令行啟動vmplayer
vmplayer -X "G:Linux\Ubuntu 64 位.vmx -X 為全屏啟動
6. 搜狗輸入法
Ctrl + 5 解決輸入中文選項出現(xiàn)亂碼的問題。
7.顯卡
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall