zoukankan      html  css  js  c++  java
  • 新安装Ubuntu配置过程

    2021.5.3 Update

    Linux-Setting

    介绍

    Linux安装后自动配置脚本

    说明

    1. 更换自带源为阿里源
    2. 卸载自带无用软件如libreoffice、thunderbird等
    3. 安装常用软件如git、curl、vim等
    4. git设置
    5. zsh&oh-my-zsh

    使用说明

    首先安装git,curl,zsh

    sudo apt install git curl
    

    然后安装zsh

    sudo apt install -y zsh
    
    sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
    
    1. 克隆本仓库至本地
    git clone https://gitee.com/xiaolinzinvshen/linux-setting.git
    
    1. cd到相应文件夹中
    2. 对相应的脚本增加执行权限后执行脚本
    chmod +x ./init-ubuntu.sh
    
    ./init-ubuntu.sh
    



    Old

    更换清华镜像源

    Ubuntu 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份

    sudo cp /etc/apt/sources.list /etc/apt/sources_backup.list
    

    使用gedit将源中内容替换

    sudo gedit /etc/apt/sources.list
    

    链接: 清华镜像源.
    升级自带包

    sudo apt update
    

    安装常用基本软件

    sudo apt install curl git openssh-server net-tools
    

    自动脚本配置

    搜索marswang42 找到My-Vim-Conf
    安装第三方shell-zsh,并替换自带的bash

    sudo apt install -y zsh
    
    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    

    clone博主的源

    git clone https://github.com/MarsWang42/My-Vim-Conf.git
    
    cd My-Vim-Conf
    

    脚本自动安装

    chmod +x ./setup.sh ./tmux.sh
    
    ./setup.sh
    

    最后刷新应用最新的设置

    source ~/.zshrc
    

    Ubuntu助手:一键安装软件、进行系统配置

    https://github.com/borninfreedom/linux-assistant
    
  • 相关阅读:
    Java垃圾收集算法
    Java回收方法区中回收的类
    Android 聊天软件客户端
    Android 面试
    基于Android的简单聊天工具-服务器端
    Java多线程
    业务序号重排序
    Dubbo异步转同步
    Dubbo加权轮询负载均衡算法应用之推荐产品
    Linux文件句柄数配置
  • 原文地址:https://www.cnblogs.com/cokefentas/p/14727587.html
Copyright © 2011-2022 走看看