2019-05-16 Ubuntu使用

时间:2023-03-09 16:21:11
2019-05-16 Ubuntu使用

Ubuntu的基本操作

查看操作系统版本

https://www.hostingadvice.com/how-to/ubuntu-show-version/

clu@sha01vmdev08:~/source/github$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

查看架构architecture

https://askubuntu.com/questions/189640/how-to-find-architecture-of-my-pc-and-ubuntu

clu@sha01vmdev08:~/source/github$ uname -m
x86_64

设置代理并立即生效

如何安装.net core 3.0 preview

https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current

Register Microsoft key and feed

Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine.

Open a terminal and run the following commands:

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

安装的时候发现安装不了,使用wget -v url来排查

Install the .NET SDK

Update the products available for installation, then install the .NET SDK.

In your terminal, run the following commands: