zoukankan      html  css  js  c++  java
  • wsl2 debian 开机配置及默认软件安装

    1替换安装源

    帮助

     http://mirrors.ustc.edu.cn/help/

    使用配置生成器

    https://mirrors.ustc.edu.cn/repogen/

    2 设置默认编辑器 

    sudo update-alternatives --config editor

    3 修改用户不输入密码

    sudo viduso

    wolbo ALL=(ALL) NOPASSWD:ALL

    4 安装开发工具

    sudo apt-get install build-essential

    sudo apt-get install  subversion ragel curl texinfo g++ bison flex cvs yasm automake libtool autoconf gcc cmake git make pkg-config zlib1g-dev unzip pax nasm gperf autogen bzip2 autoconf-archive p7zip-full meson clang libtool-bin ed python3-distutils -y

    5 不习惯使用iproter2 安装net-tools

    sudo apt-get install net-tools

    命令对比

    https://www.xmodulo.com/linux-tcpip-networking-net-tools-iproute2.html

    6 安装man 和手册

    sudo apt-get install man-db  manpages-dev manpages-posix-dev

    7 配置系统代理

    sudo vi /etc/profile

    #以下某些机器管用

    export http_proxy="http://$(route -n | grep -m1 '^0.0.0.0' |awk '{ print $2;}' ):10809"
    export https_proxy="http://$(route -n | grep -m1 '^0.0.0.0' |awk '{ print $2;}' ):10809"

    #以下使用网卡ip 记得修改网卡名

    export http_proxy="http://$(ip addr show eth1 | grep -oP '(?<=inets)d+(.d+){3}'):10809"
    export https_proxy="http://$(ip addr show eth1 | grep -oP '(?<=inets)d+(.d+){3}'):10809"

    git config --global http.proxy $(ip addr show eth1 | grep -oP '(?<=inets)d+(.d+){3}'):10809
    git config --global https.proxy $(ip addr show eth1 | grep -oP '(?<=inets)d+(.d+){3}'):10809

     参考:
    https://lengthmin.me/posts/wsl2-network-tricks/
  • 相关阅读:
    request.setCharacterEncoding("utf-8");
    JSTL的foreach循环遍历
    EL表达式的查找范围
    Unity_图形学之_shader_学习笔记(一)
    Unity_AssetBundle笔记_(一)(俗称AB包_个人笔记欢迎指正)
    Unity C#笔记 协程详解(转)
    解决方案_And_学习链接_笔记
    Unity_一些Unity内部的重要设置
    C#_异常处理
    Unity3D_Resources封装(ResourcesManager 类)
  • 原文地址:https://www.cnblogs.com/wolbo/p/14945856.html
Copyright © 2011-2022 走看看