about_ubuntu

Ubunt 安装相关#

如果是Vmware安装后先禁用intel的一个驱动,否则可能会导致启动失败,系统崩溃#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mount -o remount,rw /
vi /etc/modprobe.d/blacklist.conf


# 在最后添加下面两行

blacklist intel_powerclamp
blacklist i2c_piix4


# 重做引导
update-initramfs -u -k all

#重启后
lsmod | grep i2c_piix4
# grep不到东西说明就禁用了

https://blog.csdn.net/weixin_46238869/article/details/119717890

设置代理#

  • 系统UI网络处设置代理

  • 命令行设置代理:

    • gedit  ~/.bashrc
      
      http_proxy=http://yourproxyaddress:proxyport
      export http_proxy
      https_proxy=http://yourproxyaddress:proxyport
      export https_proxy
      
      
      HTTP_PROXY=http://yourproxyaddress:proxyport
      export HTTP_PROXY
      HTTPS_PROXY=http://yourproxyaddress:proxyport
      export HTTPS_PROXY
      
      no_proxy=localhost,127.0.0.0/8,::1,192.0.0.0/8,10.0.0.0/8
      export no_proxy
      
      source ~/.bashrc
      
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11

      -

      - apt设置代理:

      - `sudo gedit /etc/apt/apt.conf.d/10proxy`在您的apt.conf文件中加入下面这行

      - ```
      Acquire::http::Proxy “http://proxyusr:password@yourproxyaddress:proxyport”;
      Acquire::ftp::proxy "ftp:/host:port/";
      Acquire::https::proxy "https://host:port/";
  • docker代理设置

    • # ~/.docker/config.json
      
      {
       "proxies":
       {
         "default":
         {
           "httpProxy": "http://192.168.1.12:3128",
           "httpsProxy": "http://192.168.1.12:3128",
           "noProxy": "*.test.example.com,.example2.com,127.0.0.0/8"
         }
       }
      }
      <!--code2-->
      
      

apt加速#

1
2
3
4
5
6
7
8
9
10
11
mv /etc/apt/sources.list   /etc/apt/sources.list.bak
sudo rm -rf /var/lib/apt/lists/*

sudo gedit /etc/apt/sources.list


# 访问 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 选择版本,复制进来保存



sudo apt-get update

Vmtools#

最简单可行的方法:

1
2
sudo apt install open-vm-tools-desktop
sudo reboot

再不行就给虚拟机CD/ROM 加载VMware安装目录下的linux.iso,然后启动后从机器CDROM复制tar包解压到某个目录,执行安装命令