Ubuntu

使用VS2019在WSL中开发调试.NET Core

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-22 16:39:21
安装WSL 1、打开WINDOWS功能,勾选子系统选项 2、打开商店搜索WSL,安装ubuntu 我这里的系统版本是:18.04 如何查看ubuntu系统版本 sudo lsb_release -a 或 cat /etc/issue 3、打开ubuntu,设置账号密码 安装.net core SDK 参考以下链接即可安装: 在Linux Ubuntu 18.04 - x64上安装.NET Core SDK 你可能会遇见的问题 报错: 'universe' distribution component is already enabled for all sources. 解决方案: sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" 报错参考连接 等待安装完成后,输入 dotnet --info 即可查看安装的SDK情况 配置SSH sudo vim /etc/ssh/sshd_config 找到以下配置: # Authentication: LoginGraceTime 2m PermitRootLogin prohibit-password StrictModes yes PasswordAuthentication no

Linux系统介绍、常用命令及演用练习

耗尽温柔 提交于 2021-01-22 14:27:48
1.1 Linux系统介绍 GUN,GPL,LGPL介绍 GNU计划,又称革奴计划,是由Richard Stallman在1983年9月27日公开发起的。它的目标是创建一套完全自由的操作系统 GPL协议的主要内容是只要在一个软件中使用("使用"指类库引用,修改后的代码或者衍生代码)GPL 协议的产品,则该软件产品必须也采用GPL协议,既必须也是开源和免费。 LGPL 是GPL的一个为主要为类库使用设计的开源协议。和GPL要求任何使用/修改/衍生之GPL类库的的软件必须采用GPL协议不同。LGPL允许商业软件通过类库引用(link)方式使用LGPL类库而不需要开源商业软件的代码。这使得采用LGPL协议的开源代码可以被商业软件作为类库引用并发布和销售。 Linux特性介绍 开放性是指系统遵循世界标准规范,特别是遵循开放系统互连(OSI)国际标准。凡遵循国际标准所开发的硬件和软件,都能彼此兼容,可方便地实现互连。 多用户是指系统资源可以被不同用户各自拥有使用,即每个用户对自己的资源(例如:文件、设备)有特定的权限,互不影响。 多任务是现代计算机的最主要的一个特点。它是指计算机同时执行多个程序,而且各个程序的运行互相独立。 Linux向用户提供了两种界面:用户界面和系统调用。Linux的传统用户界面是基于文本的命令行界面,即shell,它既可以联机使用,又可存在文件上脱机使用

ubuntu16.04上启用KASan动态检测内核内存错误(ubuntu16.04 4.4.0内核编译升级到linux-4.4.252版本)

余生长醉 提交于 2021-01-22 13:33:52
因为kasan在内核版本V4.0后才支持,默认是不启用kasan,所以需要编译配置内核才能启用支持(gcc版本要求5.0及以上才完全支持)。 本文实验环境: root@ubuntu:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial root@ubuntu:~# root@ubuntu:~# uname -r 4.4.0-142-generic root@ubuntu:~# 所以本文先将ubuntu16.04的4.4.0内核编译升级到linux-4.4.252版本内核,之后编码测试kasan的输出检测情况。 一、编译内核并配置支持kasan 1、下载源码 在 Linux官网 下载内核源码,我这里选择了 linux-4.4.252源码 。 下载完成后,解压到/usr/src下。 2、安装编译内核必须的库: apt-get install nc libssl-dev -y apt-get install build-essential openssl -y apt-get install zlibc minizip -y apt-get install libidn11

鸿蒙 移植 树莓派(上)搭建环境下载源码

不羁的心 提交于 2021-01-22 11:16:11
目录: 1、环境搭建 2、下载源码 3、树莓派启动流程 1、环境搭建 编译鸿蒙的源码建议在Ubuntu20.04下进行,windows下会出现各种奇怪的问题,不建议使用。 1.1、VirtualBox 虚拟机安装 VirtualBox官网下载地址: https://www.virtualbox.org/ Ubuntu20.04官网下载地址: https://ubuntu.com/download/desktop 关于VirtualBox和Ubuntu的安装和使用就不展开了,百度一下资料很多。 1.2、改sh为bash ls -l /bin/sh #如果显示为“/bin/sh -> bash”则为正常,否则请按以下方式修改: sudo dpkg-reconfigure dash #然后选择no 1.3、安装打包工具mkfs.vfat mtools sudo apt-get install dosfstools mtools #官方要求安装的2个工具 sudo apt-get install zip #官方文档没写,但是rootfs过程需要 sudo apt-get install python3-distutils #官方文档没写,但是build过程需要 1.4、下载安装编译工具gn ninja llvm hc-gen hc-gen:鸿蒙驱动hdf框架之类的

SDL2_image not found

做~自己de王妃 提交于 2021-01-22 07:41:02
问题 I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image I get the following error: fatal error: SDL2_image/SDL_image.h: No such file or directory #include <SDL2_image/SDL_image.h> Any suggestions? Not entirely sure about my installation of SDL_image. I am running this on Ubuntu. 回答1: This problem can be solved through installing libsdl2

SDL2_image not found

冷暖自知 提交于 2021-01-22 07:40:06
问题 I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image I get the following error: fatal error: SDL2_image/SDL_image.h: No such file or directory #include <SDL2_image/SDL_image.h> Any suggestions? Not entirely sure about my installation of SDL_image. I am running this on Ubuntu. 回答1: This problem can be solved through installing libsdl2

SDL2_image not found

僤鯓⒐⒋嵵緔 提交于 2021-01-22 07:38:05
问题 I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image I get the following error: fatal error: SDL2_image/SDL_image.h: No such file or directory #include <SDL2_image/SDL_image.h> Any suggestions? Not entirely sure about my installation of SDL_image. I am running this on Ubuntu. 回答1: This problem can be solved through installing libsdl2

SDL2_image not found

拥有回忆 提交于 2021-01-22 07:37:34
问题 I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> However after running the following makefile: g++ -std=c++11 src/main.cpp -lSDL2 -lSDL2_image I get the following error: fatal error: SDL2_image/SDL_image.h: No such file or directory #include <SDL2_image/SDL_image.h> Any suggestions? Not entirely sure about my installation of SDL_image. I am running this on Ubuntu. 回答1: This problem can be solved through installing libsdl2

Is it possible to install NVM when I already have installed nodejs 8 on Ubuntu?

爷,独闯天下 提交于 2021-01-22 05:15:12
问题 I have installed nodejs 8, I can't run karma tests with angular 1.. As specified on Karma official website Note: Karma currently works on Node.js 0.10, 0.12.x, 4.x, 5.x, 6.x, and 7.x. See FAQ for more info. , I guess problem might be in my node version, they recommend to install node via NVM but I already have installed node 8.. is it possible to install nvm and include there my current nodejs? 回答1: Q: Can I still install nvm when I already got an existing node installation? A: Yes. nvm

Is it possible to install NVM when I already have installed nodejs 8 on Ubuntu?

偶尔善良 提交于 2021-01-22 05:12:25
问题 I have installed nodejs 8, I can't run karma tests with angular 1.. As specified on Karma official website Note: Karma currently works on Node.js 0.10, 0.12.x, 4.x, 5.x, 6.x, and 7.x. See FAQ for more info. , I guess problem might be in my node version, they recommend to install node via NVM but I already have installed node 8.. is it possible to install nvm and include there my current nodejs? 回答1: Q: Can I still install nvm when I already got an existing node installation? A: Yes. nvm