Ubuntu配置清单

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)检查

检查一下创建是否有效
cat /etc/group
退出当前用户登陆状态,然后重新登录,以便让权限生效,或重启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
在官网下载deb安装包,然后

sudo apt install ./.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 解决输入中文选项出现乱码的问题。

7.显卡
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall

你可能感兴趣的:(Ubuntu配置清单)