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
    
  • 相关阅读:
    Remove Element leetcode java
    Remove Duplicates from Sorted Array leetcode java
    Container With Most Water leetcode java
    Divide Two Integers leetcode java
    N-Queens II leetcode java
    N-Queens leetcode java
    Pow(x,n) leetcode java
    Single Number II leetcode java
    Single Number leetcode java
    ROS第一次开网站跳转到公告页(任意地址跳转)方法
  • 原文地址:https://www.cnblogs.com/cokefentas/p/14727587.html
Copyright © 2011-2022 走看看