apt-get

last version of NodeJS install by apt-get

放肆的年华 提交于 2019-12-08 09:37:36
问题 Debian Linux (Debian Stable, UBUNTU LTS, etc.) and others use apt-get as good and reliable installer tool. I need to use only apt-get ... The problem is that I do the simple sudo apt-get install nodejs but as result I have nodejs --version (or node --version ) 0.10.41 (!) It is not the today's most updated stable Node.JS version, 5.2.0 I also try node -p process.versions.v8 that results in 3.14.5.9 so, also is very less than 5.2 . NOTES I am using UBUNTU 14 LTS.... And try a workaround but

windows和ubuntu下安装docker教程

隐身守侯 提交于 2019-12-08 08:53:30
首先讲一下ubuntu下docker的安装教程: 第一步:更新资源在终端执行以下命令:sudo apt-get update 第二步:安装docker执行一下命令:sudo apt-get install docker 第三步:安装docker.io执行以下命令:sudo apt-get install docker.io 第四步:安装docker-registry执行以下命令:sudo apt-get install docker-registry 第五步:开启docker服务:sudo systemctl start docker。 第六步:验证是否安装成功执行以下命令:sudo docker -v。若是出现以下字样:Docker version 1.13.1, build 092cba3说明安装成功。 那么讲一下windows下的安装: Boot2Docker下载地址: 点击打开链接 下载里面的docker-install.exe。然后双击进行安装即可。然后在windows命令窗口下执行:docker -v;如果有版本信息出来即是安装完成。 来源: CSDN 作者: Fishing_Fly 链接: https://blog.csdn.net/u013276277/article/details/80272879

OSX + Eclipse + PyDev - PATH isn't correct

坚强是说给别人听的谎言 提交于 2019-12-08 05:41:51
问题 Trying to get the following script working on OSX using Eclipse and PyDev (Debug): #------------------------------------------------------ import os, subprocess from os.path import join as join_path def cmd(command): print('$ ' + command) process = subprocess.Popen(command, shell=True, executable="/bin/bash", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) return process.communicate() + (process.returncode,) stdout, stderr, error_code = cmd('echo $PATH') print(stdout, stderr,

How to use Box 2 D on google colab

纵然是瞬间 提交于 2019-12-08 05:40:12
问题 I am currently trying to optimize OpenAIGym's BipedalWalker with neat. In order to use Bipedalwalker, it is necessary to install Box 2 D, but a problem arises. In order to install Box 2 d on colab, we did the following first. !apt-get install python-box2d > /dev/null !pip install gym[Box_2D] import gym env = gym.make("BipedalWalker-v2") However, this caused the following error /usr/local/lib/python3.6/dist-packages/gym/envs/box2d/lunar_lander.py in <module>() 2 import numpy as np 3 ----> 4

How to do unattended install of WebSVN with apt-get?

假装没事ソ 提交于 2019-12-08 02:41:26
问题 Working with Ubuntu 10.10 ... When installing WebSVN via apt-get with the following command: sudo apt-get -y install websvn It will pop 3 screens asking for configuration details (ie. where your SVN repositories are etc). Is there a way to pass this information to this command so that the installation can occur unattended? Thanks 回答1: Almost all packages in Debian/Ubuntu use Debconf. You can pre-seed answers into debconf using the command debconf-set-selections . You need another tool debconf

kali 2019-4中文乱码解决方法

回眸只為那壹抹淺笑 提交于 2019-12-07 22:40:30
1.更换源   首先在终端输入 vim /etc/apt/sources.list #中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib 编辑源之后,apt-get update && apt-get upgrade && apt-get clean ,更新好源和更新软件 2. 在命令行输入”dpkg-reconfigure locales”。进入图形化界面之后,(空格是选择,Tab是切换,*是选中,PgDn是向下翻一页),选中zh_CN.UTF-8,确定后,将zh_CN.UTF-8选为默认。 3.安装中文字体 apt-get install xfonts-intl-chinese apt-get install ttf-wqy-microhei 这时候就完成了 在命令行输入reboot重启就好了 也可以添加别的源: #中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn

linux下php扩展安装方式

跟風遠走 提交于 2019-12-07 20:44:00
PHP扩展的安装方式通常分为两种: 1. 随同PHP编译 2. 生成单独的.so文件 这里介绍第二种方式,对于第二种方式执行效率可能低些,但是模块化,就是可以保持php安装不变的情况下,通过php.ini连接单独生成的so文件实现扩展, 比如您已经通过了tar包方式安装了php,那么现在想增加扩展: 安装CURL扩展 I. 生成动态链接库文件.SO 方法如下: 方法1. apt-get install php5-curl 方法2. 去PHP网站下载tar包,phpize本地编译生成.so 方法3. pear方式安装,通过pecl命令去在线下载编译生成.so 方法1在ubuntu下是最简单的,命令执行完会告知.so所在目录 II. 配置php.ini 打开php.ini,指定extension_dir目录,如果extension_dir = '/usr/lib',那么接下来把生成的.so文件(如curl.so)复制到/usr/lib目录下,并且加入一个新条目: extension=curl.so III. 使之生效 重新启动apache,运行phpinfo()看是否生效 安装PDO_MYSQL扩展 采用pear方式安装 I. 安装pear apt-get install php-pear 如果没有pear要先安装pear II. 安装pdo,pdo_mysql pecl

阿里云 Ubuntu14.04安装PHP+MySQL+Apache

岁酱吖の 提交于 2019-12-07 20:15:08
1,更新镜像源 sudo apt-get update 2,安装基础包 sudo apt-get install apache2 sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql mysql-client 3,安装PHP常用扩展 sudo apt-get install php5-mcrypt php5-gd php5-curl 4,把apache根目录改到数据盘 (持载数据盘请参考:http://jingyan.baidu.com/article/90808022d2e9a3fd91c80fe9.html) 把/etc/apache2/sites-available/000-default.conf 里的DocumentRoot改成新目录 把/etc/apache2/mods-enabled/dir.conf文件里的DirectoryIndex改成默认首页是index.php <IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm </IfModule>

ubuntu12.04 lts 安装gcc 4.8

你离开我真会死。 提交于 2019-12-07 18:56:02
  gcc 4.8.1 是第一个完全支持C++11 的编译器,Windows上可以安装mingw版的,在sourceforge 上有下载,安装也比较方便。在Linux上安装的话需要首先安装一些依赖库。在Ubuntu12.04 lts默认安装的是gcc4.6.3,其实该版本也支持一些c++11的特性,可以通过增加“-std=c++0x" 编译选项来使用这些特性,但是对多线程库的支持较差,gcc 4.8.1 是通过ppa来安装的,因此需要安装ppa repository 。下面就来看一下安装步骤: 首先安装依赖: sudo apt-get install libgmp-dev sudo apt-get install libmpfr4 libmpfr-dev sudo apt-get install libmpc-dev libmpc2 sudo apt-get install libtool sudo apt-get install m4 sudo apt-get install bison sudo apt-get install flex sudo apt-get install autoconf 接下来进入到安装gcc4.8.1 的主要步骤: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get

使用dockerfile自定义镜像

此生再无相见时 提交于 2019-12-07 15:03:16
Dockerfile该怎么写? Dockerfile该怎么写? docker? Dockerfile? 目前我会的docker运行方式就是简单粗暴的docker pull下来别人的基础环境, 然后把自己的项目丢进拉下来的基础环境运行, 最终保存退出,打包成自己的镜像push到自己的docker hub中以供项目复用 有朋友问我是不是懂docker,我觉得略懂,然后问我如何写Dockerfile,我也是一脸懵x,本着好学的心态去了解了一下Dockerfile的生成 docker? 项目运行依赖环境是必需的,我的python项目 nginx+redis+mysql+python+flask , 让别人在他的电脑上如何快速运行我的项目?各种找资源安装依赖?No, docker就是解决这个问题的,以 容器+镜像 的形式存储依赖环境,就像虚拟机一样,让别人快速拥有能运行项目的环境 Dockerfile? 就是将你的项目依赖打包成docker镜像的一个文件,开头的D必须大写 # 重度mac用户,对windows小伙伴说声抱歉 # 打开终端,创建一个新目录存放Dockerfile cd ~ mkdir docker-demo cd docker-demo touch Dockerfile 这样就准备好了,进入你的项目把依赖文件拷贝一份,requirements.txt或者package.js等等