apt

Ubuntu svn 安装 Rabbitvcs

南楼画角 提交于 2019-12-09 10:33:14
先添加源 sudo add-apt-repository ppa:rabbitvcs/ppa 必要的话在源清单里面也添加一下 sudo gedit /etc/apt/sources.list 内容是 deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/ raring main 更新源 sudo apt-get update 更新完成以后安装小兔子(注意这是我>=12.04的ubuntu nautilus用的是3版本如果是老的ubuntu就是nautilus不是 nautilus3 ) 不过老版本的Ubuntu没有测试过 sudo apt-get install rabbitvcs-nautilus3 rabbitvcs-cli rabbitvcs-gedit 完成后重启nautilus nautilus -q nautilus 好了鼠标右键文件夹就可以了 而且在命令行下也支持svn命令了 来源: oschina 链接: https://my.oschina.net/u/1015876/blog/286952

After Ubuntu 18.04 upgrade php7.2-curl cannot be installed

心不动则不痛 提交于 2019-12-09 04:32:17
问题 Upgraded to 18.04 from 16.04 today using do-release-upgrade -d During the upgrade I was informed that some packages would be removed, these included: Remove: libperl5.22 lxc-common perl-modules-5.22 php-imagick php7.1-curl php7.2-curl python3-certbot-nginx I could re-install imagick and certbot without issue, but if I try to install php7.2-curl I get the message: # apt install php7.2-curl -y Reading package lists... Done Building dependency tree Reading state information... Done Some packages

docker

两盒软妹~` 提交于 2019-12-09 00:03:18
1 容器与虚拟机 特性 容器 虚拟机 启动 秒级 分钟级 硬盘使用 一般为 MB 一般为 GB 性能 接近原生 弱于 系统支持量 单机支持上千个容器 一般几十个 A brief explanation of containers An image is a lightweight, stand-alone, executable package that includes everything needed to run a piece of software, including the code, a runtime, libraries, environment variables, and config files. A container is a runtime instance of an image—what the image becomes in memory when actually executed. It runs completely isolated from the host environment by default, only accessing host files and ports if configured to do so. Containers run apps natively on the host machine’s

Creating Callables using Annotation

社会主义新天地 提交于 2019-12-08 19:34:29
I'm attempting to make a system similar to https://github.com/ElgarL/TownyChat/blob/master/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java replacer.registerFormatReplacement(Pattern.quote("{worldname}"), new TownyChatReplacerCallable() { @Override public String call(String match, LocalTownyChatEvent event) throws Exception { return String.format(ChatSettings.getWorldTag(), event.getEvent().getPlayer().getWorld().getName()); } }); replacer.registerFormatReplacement(Pattern.quote("{town}"), new TownyChatReplacerCallable() { @Override public String call(String match,

Ubuntu 安装Nginx的APT源

这一生的挚爱 提交于 2019-12-08 18:10:32
使用apt安装nginx时,默认是Ubuntu自带的源,版本并不是最新的。 可以使用Ubuntu社区爱好者维护源,地址: https://launchpad.net/~nginx/+archive/ubuntu/stable 。 安装方法很简单: sudo add-apt-repository ppa:nginx/stable sudo apt-get update 然后安装nginx即可: apt-get install nginx 来源: https://www.cnblogs.com/gao88/p/12006519.html

Doxygen - Could NOT find FLEX (missing: FLEX_EXECUTABLE)

流过昼夜 提交于 2019-12-08 15:53:56
问题 I know there are very similar worded questions on here, but I could not find an answer to my question there, so here we go: I'm trying to see which of my C++ methods are called by others so I found Doxygen after googling. On their page the installation seems pretty straightforward: If you have the necessary build tools installed (i.e. g++, python, cmake, flex, bison), you should do the following to get the initial copy of the repository: git clone https://github.com/doxygen/doxygen.git cd

How to get parameter type from javax.lang.model.VariableElement

时光怂恿深爱的人放手 提交于 2019-12-08 14:57:51
问题 I'm trying to find the types of the parameters of a method using the Java 6 metamodel API. If the type is an enum, I'd also like to know all of it's type's enum constant names. Here's what I've got so far: for (Element member : members) { if(member.getKind() == ElementKind.METHOD) { ExecutableElement methodElement = (ExecutableElement) member; List<? extends VariableElement> parameters = methodElement.getParameters(); for (VariableElement parameter : parameters) { //How do I get the type of

实验室GPU服务器共享方案 LXD

南楼画角 提交于 2019-12-07 16:45:36
LXD安装 需求 实验室有两台配置不高,显卡还算可以的服务器,用来作为深度学习的实践和学习。但是实验室人多,隔离环境必不可少,但是服务器cpu和内存并不高,跑虚拟机太重太浪费,跑docker又不合适。于是有了LXD的方案。 需求列表 : 不同用户之间不能相互影响 用户要能方便地访问自己的“虚拟机” 用户要有足够大的权限,能自由地安装程序,能自由地访问网络 用户不被允许直接操作宿主机 用户要能够使用 GPU 为满足这些需求,额外的开销应该小得可以忽略 管理员应该能轻松地添加新的用户 方案发现 前面说了虚拟机太重,在机器本身配置不高的情况下负担太重,而且显卡是1080&1080ti(两台机器分别为1080*2, 1080ti*2),并不支持显卡虚拟化,也就是说一张卡只能在在同一时间供给一个虚拟机,这显然太浪费了。 考虑过docker,但是docker毕竟是应用级的容器,单进程,文件系统冗余太多,操作久了整个docker文件非常庞大,并不适合将它当虚拟机用。 我们需要的是开销小的虚拟机或者说环境隔离,安全性并不重要,在搜索中发现了docker的前身LXC(Linux Container),一个系统级的容器,非常适合我们的需求,可以当作一个低开销的虚拟机。 至于LXC和Docker的区别,这里就不进行细表了,毕竟我也了解的不多,只能说LXC更符合我的需求。 互联网是强大的

可爱的 LXD 系统容器

杀马特。学长 韩版系。学妹 提交于 2019-12-07 16:43:13
tag: lxc lxd container linux date: 2018-04 本文基于 ubuntu 16.04 操作。 LXD 是什么 很多人可能不知道 LXD,但可能听说过老牌容器 LXC(远早于 docker)。 [LXC][] 由 [Canonical Ltd][] 和 [Ubuntu][] 开发维护,其灵感可能来自 [OpenVZ][] 等轻量级虚拟机(容器)。 原有的 LXC 工具比较难用(需要用户了解一些底层知识),同时开发团队想要修改(优化)一些默认配置和特性(如安全增强,默认创建非特权容器)。 为了保持兼容性,不宜在旧的已有 LXC 工具(如 lxc-create , lxc-start 等)上动刀,于是新设计封装了一套上层运维操作工具,即 [LXD][]。 LXC 使用 C 开发,LXD 使用 golang 开发。早期版本的 docker 其实也是基于 LXC 封装,LXD 可能也借鉴了 docker 的一些思想。 LXD 拆分为 daemon(命令为 lxd )和客户端(命令为 lxc )两部分。 LXD 的定位很清晰:系统容器,直接对标虚拟机 ,甚至可以直接运行虚拟机镜像(但是不启动内核)。 系统容器运行整套操作系统(再说一次,除了内核),应用容器(如 docker)运行应用,两者不冲突。 可以在 LXD 容器里安装和使用 docker

Docker镜像的构建(五)

我只是一个虾纸丫 提交于 2019-12-07 14:49:47
构建镜像 前面我们使用各种镜像进行测试演示,很多情况下我们是需要自己的镜像,满足自己业务需要的镜像,这就需要我们能够定制自己需要的镜像,构建 Docker 镜像有以下两种方法。 使用 docker commit 命令。 使用 docker build 命令和 Dockerfile 构建文件。 现在我们不推荐使用 docker commit 命令,而应该使用更灵活、更强大的 Dockerfile 来构建 Docker 镜像。 1、使用 commit 命令构建 docker commit 命令是创建新镜像最直观的方法,其过程包含三个步骤: 运行容器; 修改容器; 将容器保存为新的镜像。 先从创建一个新容器开始,这个容器我们就使用很常见的 ubuntu 镜像,操作步骤如下 1.1 运行一个要进行修改的容器 root@ubuntu:~# docker run -ti ubuntu /bin/bash root@733a4b080491:/# 1.2 安装 Apache 软件包 root@733a4b080491:/# apt-get update ... ... root@733a4b080491:/# apt-get install -y apache2 ... ... 我们启动了一个容器,并在里面安装了 Apache 。我们将会拿这个容器作为一个 Web 服务器来运行