Ubuntu

QT C++工程CI环境笔记

淺唱寂寞╮ 提交于 2020-08-07 09:46:08
开发环境 Ubuntu18.04 or Ubuntu20.04 Qt Creator 4.6.x (Based on Qt 5.11.x) APT list: apt-transport-https git dh-make build-essential autoconf autotools-dev qt5-default libssl-dev qt5keychain-dev devscripts 项目结构 项目主体结构是根据Qt, 用.pro文件组织, 项目最外层TEMPLATE用subdirs, 用于引入项目主pro文件, 这样便于将源代码放入子目录, 实际的项目pro文件在子目录下. 最外层还有对应的说明文件, 授权文件和Gitlab CI配置等. ├── .git ├── .gitignore ├── .gitlab-ci.yml # Gitlab CI配置文件 ├── LICENSE ├── README.md # 项目Readme ├── rockbb # 实际源代码目录 │ ├── app-entry # 为debian/ubuntu提供的桌面图标配置文件及图标文件 │ │ ├── rockbb.desktop │ │ └── rockbb.png │ ├── *.cpp │ ├── *.h, *.ui │ ├── config.h # 全局配置, namespace

如何选择阿里云服务器ECS操作系统(新手说明指南)

孤街醉人 提交于 2020-08-07 09:44:46
随着网站服务器技术的发展,越来越多的站长建站首先选择云服务器。时下阿里云云服务器ECS脱颖而出,成为多数站长网站服务器的首选。那么对于刚刚接触云服务器的站长来说,如何选择适合网站的阿里云云服务器ECS操作系统,阿里云云服务器ECS的操作系统有什么区别,阿里云linux服务器和windows服务器有何不同呢。 前提:若后期有需求购买阿里云任何产品的朋友,可以提前领取优惠劵。后期可为大家减少成本: 点击领取阿里云优惠劵 阿里云个人购买 + 阿里云企业购买 首先,我们要清楚的便是每个系统之间的差别,以及在阿里云上的差别: 1. Windows 1.1)系统内含正版激活。 1.2)适合于运行Windows下开发的程序,如.net等。 1.3)支持SQLServer等数据库(需自行安装)。 1.4)可以使用远程桌面方式登录进行管理。 注:512内存不支持选择Windows系统,1G以上内存才能很好支持该系统。 2. Linux 2.1.1)最流行的服务器端操作系统,强大的安全性和稳定性。 2.1.2)免费且开源,轻松建立和编译源代码。 2.1.3)通过SSH方式远程访问您的云服务器。 2.1.4)一般用于高性能web等服务器应用,支持常见的PHP/Python等编程语言,支持MySQL等数据库(需自行安装)。 2.2CentOS(推荐)请使用yum方式在线安装软件。 2

.Net Core in Docker极简入门(上篇)

烂漫一生 提交于 2020-08-07 09:28:49
Tips:本篇已加入 系列文章阅读目录 ,可点击查看更多相关文章。 目录 前言 开始 环境准备 Docker基础概念 Docker基础命令 Docker命令实践 构建Docker镜像 Dockerfile bulid & run 前言 Docker 是一个开源的应用容器引擎,它十分火热,如今几乎成为了后端开发人员必须掌握的一项技能。即使你在生产环境中可能用不上它,就算把它当作一个辅助开发的工具来使用,也是非常方便的。本文就介绍一下.Net Core应用在Docker中的一些基本使用。 开始 环境准备 首先安装docker,去官网下载: https://www.docker.com/get-started windows系统的话,默认win10(较新的版本更好,可以用wsl)。win7只能用Docker Toolbox,bug非常多,不建议使用。。。 windows/mac 直接下载对应的文件安装就可以(本文的系统环境是win10 2004版本。),linux可以通过命令来安装。关于安装,网上已经有很多资料了,就不多介绍。只是安装后有2个必要的设置需要注意一下: 镜像加速 有很多提供免费加速服务的网站,可以自行搜索,我这里用的是阿里云。这个国内网络必须配置,不然镜像几乎拉取不下来。 镜像储存路径 默认docker的运行文件是在C盘,C盘空间不够的话,可以设置到别的盘。

将文件从主机复制到Docker容器

一笑奈何 提交于 2020-08-07 07:31:13
问题: I am trying to build a backup and restore solution for the Docker containers that we work with. 我正在尝试为我们使用的Docker容器构建备份和还原解决方案。 I have Docker base image that I have created, ubuntu:base , and do not want have to rebuild it each time with a Docker file to add files to it. 我有我创建的Docker基本映像 ubuntu:base ,并且不想每次都必须使用Docker文件重建它来向其添加文件。 I want to create a script that runs from the host machine and creates a new container using the ubuntu:base Docker image and then copies files into that container. 我想创建一个从主机运行的脚本,并使用 ubuntu:base Docker映像创建一个新容器,然后将文件复制到该容器中。 How can I copy files from the host to

RealVNC连接

允我心安 提交于 2020-08-07 07:00:52
继续RealVNC的安装 https://www.realvnc.com/en/ 注册帐户并激活 https://www.realvnc.com/en/connect/home/ 激活home版本权限(免费,最多5台设备 本机安装VNC Viewer,并登录帐户(安装并登录的截图) Linux下安装realvnc server (建议使用腾讯云提供的VNC,结合GUI安装,更为便捷) 官网下载 https://www.realvnc.com/en/connect/download/vnc/linux/ 下载完成后按照Ubuntu的提示进行安装 开启VNC server,提示缺乏证书——我们需要登录,在面板上找一下,会弹窗提醒登录(登录时忘了截图了) 回到主机上的VNC Viewer,连接收工 原文链接:https://blog.csdn.net/weixin_40505645/java/article/details/100774466 来源: oschina 链接: https://my.oschina.net/u/4324660/blog/4280873

How to connect to the agent: IPC connect call

坚强是说给别人听的谎言 提交于 2020-08-07 06:11:11
问题 I'm using Ubuntu (VERSION="20.04 LTS (Focal Fossa) on Windows 10. Itried to install Docker. I'm following the Docs from docs.docker.com: I run the two commands: $ curl -fsSL https://get.docker.com -o get-docker.sh $ sudo sh get-docker.sh When I run the second command it return an error: Warning: apt-key output should not be parsed (stdout is not a terminal) gpg: can't connect to the agent: IPC connect call failed I looked in internet I found that some links trying to resolve the issue but in

sshfs, linux - how to mount with read-only access [closed]

荒凉一梦 提交于 2020-08-07 05:29:57
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I need to mount other server via sshfs with read-only mode. My OS is Linux (Ubuntu). Is it possible to do that? My command used with that connection is: sudo sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other After running that I have write

sshfs, linux - how to mount with read-only access [closed]

余生长醉 提交于 2020-08-07 05:28:32
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I need to mount other server via sshfs with read-only mode. My OS is Linux (Ubuntu). Is it possible to do that? My command used with that connection is: sudo sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other After running that I have write

sshfs, linux - how to mount with read-only access [closed]

梦想的初衷 提交于 2020-08-07 05:28:10
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question I need to mount other server via sshfs with read-only mode. My OS is Linux (Ubuntu). Is it possible to do that? My command used with that connection is: sudo sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other After running that I have write