apt-get

Is it possible to answer dialog questions when installing under docker?

孤者浪人 提交于 2019-11-29 20:22:47
Is it possible to somehow answer the questions that are presented as dialogs when installing some packages using apt-get? For instance I'm trying to setup a container containing the mail-stack-delivery package with: FROM ubuntu RUN apt-get install -y mail-stack-delivery However that dockerfile generates dozens of errors when built that are along the lines of: debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term

ubuntu 下 apche php mysql

亡梦爱人 提交于 2019-11-29 20:06:38
Ubuntu 10.04配置Apache+PHP+MySQL [日期:2010-07-21] 来源:Ubuntu社区 作者:little樟 测试环境: Ubuntu 10.04 1.安装apache2.0 sudo apt-get install apache2 安装过程就不多说了 安装后在浏览器中打开: http://localhost/ 或者http://127.0.0.1 如果出现It works!那证明OK了 2.安装PHP 依次在终端打开: sudo apt-get install php5 //安装PHP5 sudo apt-get install libapache2-mod-php5 //配置APACHE+PHP sudo /etc/init.d/apache2 restart //重启APACHE 测试: 打开gksudo gedit /var/www/testphp.php 然后随意输入点东西(我输入的是SD)再保存。 然后在浏览器中输入http://127.0.0.1/testphp.php或者http://localhost/testphp.php 如果显示出你输入的东西即为成功 3.安装MYSQL sudo apt-get install mysql-server 安装完成按提示设置root密码 4、让apache、php支持 mysql sudo apt

OpenStack(M版)之基础环境配置(2 更换源、安装OpenStack客户端)

為{幸葍}努か 提交于 2019-11-29 19:29:44
配置国内的软件源 $ vim /etc/apt/sources.list    阿里16.04源: deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors

树莓派RTL8723BU_LINUX驱动安装

隐身守侯 提交于 2019-11-29 19:22:43
1、安装前准备: sudo apt-get -y update;sudo apt-get -y upgrade;sudo apt-get -y dist-upgrade;sudo apt-get install -y git-core;sudo apt-get install -y bc 先检查自己 raspbian 内核安装包的版本 apt show raspberrypi-kernel -a ----显示版本号Version: 1.20190819-1 通过 apt 安装 raspberrypi-kernel-headers sudo apt install raspberrypi-kernel-headers=1.20190819-1 sudo sync (如果下面安装错误,重启后再试) 2、安装驱动: cd ~ sudo mkdir data -----这里是新建一个文件夹放置驱动,可以任意设置名称 cd data git clone https://github.com/lwfinger/rtl8723bu.git -b v4.3.16 --建议先看安装说明https://github.com/lwfinger/rtl8723bu cd rtl8723bu nano Makefile ----查找EXTRA_CFLAGS += -DCONFIG_CONCURRENT

ubuntu安装配置postgresql

╄→гoц情女王★ 提交于 2019-11-29 19:17:21
postgresql 安装配置部分不再赘述,引自原文链接 https://www.cnblogs.com/Siegel/p/6917213.html 。 这里对安装时候产生的一些问题,做一些简单的说明。 对Linux系统有了更多的了解,不同的系统,一般常用的操作和工具略有不同,关于使用yum 还是apt-get, 一般来说著名的linux系统基本上分两大类: 1 RedHat系列:Redhat、Centos、Fedora等 2 Debian系列:Debian、Ubuntu等 RedHat 系列: 1 常见的安装包格式 rpm 包,安装rpm包的命令是 “rpm -参数” 2 包管理工具 yum 3 支持tar包 Debian系列 1 常见的安装包格式 deb 包,安装deb包的命令是 “dpkg -参数” 2 包管理工具 apt-get 3 支持tar包 所以你Ubuntu不该用yum 该用apt-get postgresql PostgreSQL是一款在Linux环境下应用十分广泛的轻量级关系型数据库,大家都听说过MySQL,却对PostgreSQL鲜有耳闻,它其实在性能、应用领域上和MySQL不相上下。网上关于Windows环境下C/C++访问PostgreSQL数据库的资料很少,文本分析了C/C++访问PostgreSQL数据库的过程。

Ubuntu下安装pip

亡梦爱人 提交于 2019-11-29 19:16:54
安装环境 ubuntu 命令 安装pip 1、 sudo apt-get install python-setuptools python-dev build-essential 2、 sudo easy_install pip (python2的安装方法) 3、 sudo apt-get install python3-pip (python3的安装方法) 来源: https://blog.csdn.net/qq_41663800/article/details/100895946

搭建python-flask开发环境

雨燕双飞 提交于 2019-11-29 19:12:13
ubuntu环境 1. 更新系统软件源: 没有通过更新系统软件源的话,可能无法通过 apt-get install 安装我们需要用到的软件: $ sudo apt-get update $ sudo apt-get upgrade 2. 开发工具: python: 安装完成后可以通过 python3 进入操作命令行,如果要用 python xxx.py 来运行 .py 文件,可以另外添加软链接: $ sudo apt-get install python3.5 python3.5-dev Mysql: $ sudo apt-get install mysql-server mysql-client pip:(这个我记得安装好python之后就自动安装好了,不知道作者这里为什么要单独安装?) 安装 python 包管理工具: $ sudo apt-get install python-pip 3. 创建虚拟环境 安装virtualenv: 3. 安装依赖库: requirements.txt 文本包含项目所需的第三方包: 参照这篇文档,写的很详细: https://www.centos.bz/2018/05/centos-7-4-%E5%AE%89%E8%A3%85python3%E5%8F%8A%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83/ 文章来源:

sudo apt-get install 、 pip install和conda install的对比

夙愿已清 提交于 2019-11-29 19:05:52
sudo apt-get install: apt-get可以用来安装软件、更新源,也可以用来更新自Ubuntu的典型依赖包。 pip install: pip: Pip installs Packages, 是python的官方认可的包管理器,最常用于安装在Python包索引(PyPI)上发布的包。 pip用来PyPI的python所有的依赖包,并且可以安装任何在PyPI上已上传的先前版本的依赖包 conda install: conda是一种通用包管理系统,是想要构建和管理任何语言的任何类型的软件。因此,它也使用于python包 pip install 与conda install最显著的区别可能是这样的: pip在任何环境中安装python包;conda安装 在conda环境中安装任何包 来源: https://www.cnblogs.com/elitphil/p/11527389.html

OpenStack安装部署

喜欢而已 提交于 2019-11-29 18:59:55
OpenStack安装部署 一、准备工作 操作系统: ubuntu14.04 OpenStack版本:Kilo 目前最新 1.1 资源信息 OpenStack官网: http://www.openstack.org/ Ubuntu官网: http://www.ubuntu.org.cn/ 1.2 安装方式 从零开始安装; DevStack安装: http://docs.openstack.org/developer/devstack 二、keystone的安装 (1)配置数据库: 使用数据库客户端以root用户链接到数据库中 – mysql -u root -p 创建keystone数据库 – CREATE DATABASE keystone 为keystone用户授权 – GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@’localhost’ IDENTIFIED BY ‘KEYSTONE_DBPASS’; – GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone’@’%’ IDENTIFIED BY ‘KEYSTONE_DBPASS’; (2) 小插曲 mariaDB的安装: * 设置MariaDB仓库: * 1. $ sudo apt -get install software