debian

pip TLS/SSL, however the ssl module in Python is not available problem

流过昼夜 提交于 2020-07-09 04:17:36
问题 I have looked through other solutions on this site, as well as on github but problem persists. When I use pip3 to install something I get following error: ki@debian:~/Documents/python/HelloWorld$ /usr/local/bin/python3 -m pip install -U pep8 --user pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pep8 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't

pip TLS/SSL, however the ssl module in Python is not available problem

余生长醉 提交于 2020-07-09 04:15:38
问题 I have looked through other solutions on this site, as well as on github but problem persists. When I use pip3 to install something I get following error: ki@debian:~/Documents/python/HelloWorld$ /usr/local/bin/python3 -m pip install -U pep8 --user pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pep8 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't

Need understand “ulimit”'s nofile setting in host and container

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-27 16:39:07
问题 As I know if we need adjust "open files" nofile (soft and hard) in linux system, we need run command ulimit or set in related configuraiton file to get the setting permanently. But I am little bit confused about the setting for containers running in a host For example, If a Linux OS has ulimit nofile set to 1024 (soft) and Hard (4096) , and I run docker with --ulimit nofile=10240:40960 , could the container use more nofiles than its host? Update In my environment, current setting with dockers

CMake CPack debian packages

寵の児 提交于 2020-06-25 02:42:44
问题 Has someone worked with a working example of a CPack script for debian packages with Qt and OpenGL dependencies? I've set this one set (CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.1-6), libgcc1 (>= 1:3.4.2-12), libQtOpenGL (>=4.6.0), libQtCore (>=4.6.0), libQtGui (>=4.6.0), libglut (>=3.0), libICE (>=6.0), libX11 (>=6.0), libXext (>=6.0), libXmu (>=6.0), libXi (>=6.0), libstdc++ (>=6.0), libm (>=6.0), libgcc_s (>=1.0), libc (>=6.0), libGLU, libGL (>=1.0), libpthread" ) I googled around but

Docker Could not resolve 'deb.debian.org'

一曲冷凌霜 提交于 2020-06-08 17:26:32
问题 I was trying to build a container in Docker for some experiments. Here is my Dockerfile . FROM debian RUN mkdir -p /var/run/sshd RUN apt-get update RUN apt-get install -y openssh-server RUN apt-get install -y sudo RUN echo AddressFamily inet >> /etc/ssh/sshd_config ARG username=Rivers ARG userpasswd=perfectXJ2017 RUN useradd -ms /bin/bash $username && (echo $username:$userpasswd | chpasswd) RUN adduser $username sudo CMD /usr/sbin/sshd -D I tried to build my image with the command sudo docker

Execute a shell script everyday at specific time [duplicate]

假装没事ソ 提交于 2020-05-09 17:52:32
问题 This question already has answers here : How to write a cron that will run a script every day at midnight? (6 answers) Closed 4 years ago . I have a simple shell script that just checks the contents of a directory and if anything was added during the day makes a copy of it to a backup folder. I'd like to execute this script at the end of each day (let's assume at 23:55). The system(Debian) which this scripts reside on it, is always on (kind of server) How can I do that? 回答1: You want to edit

How to download PPA through proxy on Debian WSL?

﹥>﹥吖頭↗ 提交于 2020-04-17 20:29:12
问题 I am trying to download/install php7.2 on Debian which is installed on my WSL (Windows Subsystem for Linux), through my company's proxy. I have been able to download apt packages by using this solution : https://askubuntu.com/questions/89437/how-to-install-packages-with-apt-get-on-a-system-connected-via-proxy The problem now is that I need ppa from sudo add-apt-repository ppa:ondrej/php cause php > 7.0 is not available anymore with sudo apt-get install and I tried many solutions but no one

AMD APU A10-5800K, Debian Wheezy, 系统安装ATI闭源驱动

大兔子大兔子 提交于 2020-04-12 17:59:26
AMD APU A10-5800K, Debian Wheezy, 系统安装ATI闭源驱动 http://my.oschina.net/emptytimespace/blog/87464 AMD APU A10-5800K 集成显卡是: AMD Radeon HD 7660D,请不是此类显卡者小心跟随。 我们此处重点讨论在新立得中安装AMD ATI 的闭源催化剂驱动,主要是考虑到源中的驱动可以实时更新。 如果想使用最新的驱动并且能够接受将来变旧,可就可能需要继续手动安装,那么可以到官网下载最新驱动,这在本文最后再提到。 【方法一:(个人推荐)】 1)因为是闭源的,首先需要开启nofree的软件源 2)新力得中搜索安装所有 fglrx*(之前似乎需要安装build-essential) 3)# aticonfig --initial (有的使用:aticonfig --initial -f ,意为force,本人认为能不强制就不强制) 4)# depmod -a 生成 modules.dep 和 map 文件 ,似乎和模块加载顺序有关。 depmod will output a dependency list suitable for the modprobe utility 5)# reboot 安装完成,很简单吧,之后可以重启多次,因为我的似乎换不同内核启动过几次

【wordpress】wordpress环境的搭建

时光总嘲笑我的痴心妄想 提交于 2020-04-08 13:40:57
WordPress      WordPress 是一种使用 PHP语言和 MySQL数据库开发的开源、免费的Blog(博客,网志)引擎,用户可以在支持 PHP 和 MySQL 数据库的服务器上建立自己的 Blog。WordPress 是一个功能非常强大的博客系统,插件众多,易于扩充功能。安装和使用都非常方便。目前 WordPress 已经成为主流的 Blog 搭建平台。   我虚拟机的系统是Debian系统,这里介绍的就是Debian系统wordpress环境搭建的方法。 第一步:首先更新apt源   apt-get update 第二步:更新软件   apt-get upgrade 第三步:安装Apache   apt-get install apache2 第四步:安装 mysql   apt-get install mysql-server mysql-client 第五步:安装 nginx   apt-get install nginx 第六步:安装 php 以及插件   apt-get install php5-common php5-mysql php5-cgi php5-gd php5-mcrypt libapache2-mod-php5 php5-memcache php5-imagick php5-xmlrpc php5-suhosin php-pear

How to install openjdk-8-jdk on Debian 10 (Buster)?

耗尽温柔 提交于 2020-04-07 17:10:15
问题 It seems Debian does not support openjdk-8-jdk anymore due to a security issue. What is the easiest way to install openjdk-8-jdk for Debian 10 (Buster)? 回答1: alternatively, you can use adoptopenjdk repository. wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add - sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ sudo apt-get update && sudo apt-get install adoptopenjdk-8-hotspot https://adoptopenjdk.net/installation.html 回答2: