首页 > 系统相关 >ubuntu 20.1 (linux) 下软件安装教程(基本上都是使用命令行安装)

ubuntu 20.1 (linux) 下软件安装教程(基本上都是使用命令行安装)

时间:2023-10-21 18:45:45浏览次数:43  
标签:20.1 git -- com github https ubuntu config 安装

一、node

1. 安装教程

#  第二步,添加源后安装 需要什么版本直接替换后面的数字即可,如果需要21,直接将20替换为21就可以了
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
# 开始进行安装
sudo apt install -y nodejs
# https://learnku.com/articles/42581


# 直接 apt 安装
apt install nodejs


2. 包管理

  1. n
npm install -g n # 安装n

   # https://segmentfault.com/a/1190000016956077
   # https://juejin.cn/post/7065534944101007391

  1. nvm 使用教程
    https://www.freecodecamp.org/chinese/news/how-to-install-node-js-on-ubuntu-and-update-npm-to-the-latest-version

3. 镜像源修改

将其修改为淘宝的镜像源

# 永久更换
npm config set registry https://registry.npm.taobao.org

# 查看镜像源
npm config get registry

除了更换 npm 默认镜像源的方式,还可以使用 cnpm 来代替 npm,间接实现提高下载速度。cnpm 的安装和使用方式如下:

# 安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
#查询版本
cpnm -v

用 cnpm 替代 npm

#使用cpnm命令替代npm命令
cnpm install

二、 java 安装

1.jdk

https://developer.aliyun.com/article/704959

2.maven 配置环境变量

https://blog.csdn.net/idomyway/article/details/81974677

三、git 使用教程

1. 安装

    sudo apt install git-all
#https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git

2. 使用方法

  1. 生成密钥
ssh-keygen -t ed25519 -C "[email protected]"
#(https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)

3. 添加提交默认配置

安装完成之后第一次配置:

git config --global user.email  "[email protected]"  # 设置全局用户邮箱(为了防止隐私泄露,使用隐私邮箱)
git config --global user.name  "Alex"      # 设置全局用户名
git config --global init.defaultBranch main  # 设置默认分支为main分支

4.git 为每个项目单独设置用户名和邮箱

(如果使用令牌登录,那么就不在需要设置 git 提交信息了)

方法一 :

github 配置
git config --local user.name "Alex"
git config --local user.email "[email protected]"
#github 邮箱必须是这个,不然github显示用户名会有问题会影响统计,如果是码云也是一样的,需要邮箱与你绑定的一致

# 查看配置是否设置成功
git config --local -l
gitee 码云配置
git config --local user.name "JadePanda"
git config --local user.email [email protected] 
#gitee 邮箱必须是这个,不然github显示用户名会有问题会影响统计,如果是码云也是一样的,需要邮箱与你绑定的一致

# 查看配置
git config --local -l

方法二:
直接在.git/config 配置文件中设置

[user]
    name = xxx
    email = xxx

5.Git 配置不同项目的不同账号

https://blog.csdn.net/u011291072/article/details/110958093

https://tutorials.tinkink.net/zh-hans/git/git-using-different-config-in-different-projects.html#区分公钥-私钥

6. 关于隐私邮箱:

  1. github 是:[email protected]
  2. gitee 是 [email protected]
    设置的时候需要注意一下

四、utools 安装方法

https://mdnice.com/writing/8eb9383bf8404cbeaf0dd140933b54cc

五、python jdk 安装

https://linux.cn/article-15230-1.html

注意:
这里安装 python 最新版本的时候不要卸载原来的 python3.8,否则会造成 ubuntu-desktop 崩溃,从而不能进去 ubuntu 图形界面,解决方法如下:
https://blog.csdn.net/chehec2010/article/details/122632524

六、idea (linux 版本)输入法无法跟随光标解决

https://blog.csdn.net/nan123456789/article/details/129579124

七、postman 如何设置图标

https://blog.csdn.net/cx_sam/article/details/126223231

八、安装微信

一、docker-wechat (目前可用,微信版本 3.3.0)

  1. github: https://github.com/huan/docker-wechat
  2. 具体步骤
    • docker 拉取镜像
    docker pull zixia/wechat
    
    • 启动服务
        docker run \
        --name DoChat \
        --rm \
        -i \
        -v "/data2/DoChat/WeChatFiles":'/home/user/file/' \
        -v "/data2/DoChat/ApplcationData":'/home/user/.wine/drive_c/users/user/ApplicationData/' \
        -v /tmp/.X11-unix:/tmp/.X11-unix \
        -e DISPLAY \
        -e XMODIFIERS=@im=fcitx \
        -e GTK_IM_MODULE=fcitx \
        -e QT_IM_MODULE=fcitx \
        -e GID="$(id -g)" \
        -e UID="$(id -u)" \
        --ipc=host \
        --privileged \
        zixia/wechat
    

二、docker-wechat (目前最火,版本最新,目前最新是 3.9.0) 目前存在的问题是,无法使用搜狗输入法

  1. 仓库地址:https://github.com/top-bettercode/docker-wechat
  2. 具体命令
    • 拉取镜像
        docker pull bestwu/wechat
    
    • 启动服务
        docker run -d --name wechat --device /dev/snd --ipc="host"\
        -v /tmp/.X11-unix:/tmp/.X11-unix \
        -v $HOME/WeChatFiles:/WeChatFiles \
        -e DISPLAY=$DISPLAY \
        -e XMODIFIERS=@im=fcitx \
        -e GTK_IM_MODULE=fcitx \
        -e GTK_IM_MODULE=fcitx \
        -e AUDIO_GID=`getent group audio | cut -d: -f3` \
        -e GID=`id -g` \
        -e UID=`id -u` \
        bestwu/wechat
    
  3. 教程地址:https://ugirc.blog.csdn.net/article/details/109487664

九、docker 安装

1. 安装

    apt install docker.io

标签:20.1,git,--,com,github,https,ubuntu,config,安装
From: https://www.cnblogs.com/alex-oos/p/17779345.html

相关文章

  • MacOS安装 iTerm2
    iTerm2安装通过iterm2网站下载https://iterm2.com/安装即可iTerm2配置配置终端光标类型为Underline配置模糊度......
  • 统信系统UOS或者麒麟KYLINOS安装软件有未满足的依赖关系怎么办?
    往期文章:统信UOS或者KYLINOS上无交互安装Citrixhello,大叫好啊,今天给大家介绍在统信UOS或者麒麟KYLINOS上安装软件包时有未满足的依赖关系该怎么处理的文章,欢迎大家关注一下我哦,关于信创的相关内容,会一直给大家分享的哦。1、安装curl软件,报有未能满足的依赖关系pdsyw@pdsyw-PC:~/Des......
  • 第一个驱动程序(在Ubuntu系统下运行)
    一、构造内核源码树#apt-cachesearchlinux-source#apt-getinstalllinux-source-4.4.0(下载的源码在目录/usr/src下)#解压内核源码tarxjf.....进入源码目录#makeoldconfig#make#makemodulesmakemodules_install12345678ref:http://blog.chinaunix.n......
  • UBUNTU下第一次写简单驱动(笔记)
    一、环境Ubuntu14.04+vmwaretools二、步骤先写个.c文件,驱动文件一般没有printf,有自己的一套,先写一个helloword.c /* *helloworld.c * *宇文凌风 * */     #include"linux/init.h" #include......
  • 安装Image Color Summarizer
    安装网页网址: http://mkweb.bcgsc.ca/color-summarizer/?download在网址栏输入URL: http://mkweb.bcgsc.ca/color-summarizer/download/colorsummarizer-0.80-win.zip下载后如图 在搜索栏输入cmd调出命令管理器输入命令  -help会得到用法帮助bin\colorsummarize......
  • vue实现点击复制功能(无需安装库)
     1.标签<buttonv-copy="text">复制文本</button>text是要复制的内容,在data函数中 2.在main.js中注册copy指令Vue.directive('copy',{bind:function(el,binding){el.$copy=function(){consttextarea=document.createElement('text......
  • CentOS 7 安装 Nginx
    CentOS7安装Nginx一、更新存储库包列表$sudoyum-yupdate-y是可选参数。表示安装软件过程中如果提示用户输入y进行确认安装的话,则进行自动确认。二、安装epel软件包问题:什么是epel?回答:epel-release仓库是由Fedora项目创建的,旨在为RHEL和CentOS用户提......
  • MySql安装与使用
    mysql是目前最流行的关系型数据库管理系统,在WEB应用方面MySQL是最好的RDBMS(RelationalDatabaseManagementSystem:关系数据库管理系统)应用软件之一。MySQL是非常灵活的一款数据库,虽然它不是绝对完美,但它的灵活足够适应很多高要求的环境。为了发挥MySQL的性能并很好的使用它,我......
  • Carla Docker 安装
    CARLAinDocker-CARLASimulatorInstallDockerEngineonUbuntu|DockerDocumentationsudousermod-aGdockervipusernewgrpdocker0.miniconda安装wgethttps://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.shsudochmod+xMiniconda3-lat......
  • go mod tidy总是安装最新依赖,如何查找哪个模块导致某个包安装最新依赖,提供一个小工具
    安装:goinstallgithub.com/jan-bar/interesting/findModVer@latest执行:findModVerd:\myproject结果如下图所示:根据结果可以找到哪个依赖导致google.golang.org/grpcv1.45.0使用了这个版本,这样每次执行gomodtidy会自动修改该模块到v1.45.0版本。我看了下github.com/spf1......