Ubuntu装机

1. git node

1.1 git 安装

sudo apt-get install git
git -v

1.2 node 安装

sudo apt install curl # 安装 curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - # 更新最新版14.x的源文件

# 更新 阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
cd /etc/apt/
cp sources.list sources.list.bak
sudo cp sources.list sources.list.bak
sudo true > sources.list
sudo apt update

# 安装 nodejs
sudo apt-get install -y nodejs
node -v
npm -v

1.3 python3 安装

# 安装 python3
sudo apt-get install python3.4

# 将 python 软链到 python3
whereis python3
cd /usr/bin/
sudo cp python3 python

# 安装 pip3
sudo apt-get install python3-pip

1.4 mongodb安装

sudo apt-get update
sudo apt-get install mongodb
mongo --version

1.5 postgresql 安装

sudo apt-get update
sudo apt-get install postgresql-12 -y
psql --version

# 简单配置
sudo -u postgres psql # 进入
ALTER USER postgres WITH PASSWORD 'postgres'; 
CREATE USER "neo" with password '1234';
CREATE DATABASE "neo" with owner = "neo";

2. 安装 wine

wine 可以直接用来安装 windows 环境下的安装包,安装后可以直接在 Linux 下跑 windows 的软件。

# 1. 安装 wine
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine-stable

# 2. 安装 winetricks 修复不能输入的问题
sudo apt install winetricks
winetricks riched20

# 2. 安装 exe
# 首先得去官网下载 安装文件 WeChatSetup.exe
wine WeChatSetup.ext
# ...
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值