apt-get

docker常用命令

喜夏-厌秋 提交于 2019-12-02 19:55:39
原文: https://www.cnblogs.com/me115/p/5539047.html Docker 常用命令 操作容器 启动容器 启动容器并启动bash(交互方式): $docker run -i -t <image_name/continar_id> /bin/bash 启动容器以后台方式运行(更通用的方式): $docker run -d -it image_name ps:这里的 image_name 包含了tag:hello.demo.kdemo:v1.0 附着到容器 附着到正在运行的容器 docker attach <id、container_name> 进入正在运行的容器内部,同时运行bash(比attach更好用) docker exec -t -i <id/container_name> /bin/bash ps:docker exec是如此的有用,以至于我们通常是将其封装为一个脚本,放到全局可调用的地方,比如,可以写成一个indocker.sh: $cat indocker.sh docker exec -t -i $1 /bin/bash # 查看需要附着的容器id $docker ps | less -S CONTAINER ID IMAGE 9cf7b563f689 hello.demo.kdemo:v160525.202747 $.

ubuntu16.04和ubuntu18.04安装dlib

自古美人都是妖i 提交于 2019-12-02 19:05:07
- # for macOS brew install cmake brew install boost brew install boost-python --with-python3 # for Ubuntu 16.04 sudo apt-get install build-essential cmake sudo apt-get install libgtk-3-dev sudo apt-get install libboost-all-dev # 安装 dlib pip install dlib git clone https://github.com/davisking/dlib.git cd dlib mkdir build && cd build && cmake .. && make -j8 sudo make install sudo apt-get -y install libopenblas-dev cd .. sudo python setup.py install --yes USE_AVX_INSTRUCTIONS - 来源: https://www.cnblogs.com/Ph-one/p/11759231.html

反汇编及linux下edb的下载

◇◆丶佛笑我妖孽 提交于 2019-12-02 18:48:48
gcc --help gcc -E filename.c -o filename.i //-E对文件进行预处理 gcc -S filename.i //-S对文件进行编译 gcc -c filename.s //-c对文件进行汇编 gcc filename.c -o filename //-o指定输出文件名称 //反汇编命令 objdump -d filename > filename.txt -d:disassemble :输出重定向 安装edb //安装动态反编译器edb(源中有edb) sudo apt-get update sudo apt-get install edb // 安装qt ~sudo apt-get install qt-sdk // 安装boost ~sudo apt-get install libboost-all-dev // 安装capstone ~sudo apt-get install libcapstone-dev // 安装qt5 ~sudo apt-get install qt5-default // 安装Qt5XmlPatterns ~sudo apt-get install libqt5xmlpatterns5-dev // 安装qt5svg5 ~sudo apt install libqt5svg5-dev // 把目录切到下载的包

Ubuntu中查看软件的安装位置及安装文件

好久不见. 提交于 2019-12-02 18:31:43
ubuntu中的软件可通过图形界面的软件中心安装,也可以通过命令行apt-get install安装。但是安装后的软件在哪个位置呢?这点跟windows环境下安装软件的路径选择不一样。ubuntu中可供调用的终端大都在/usr/bin或者/opt,但也不尽然。可尝试用下面的方法快速找到软件的位置。 1. 用命令 ps -e 找到该程序的名字; 2. 用 find 或 whereis 命令查找文件位置。 此外,如果知道使用apt-get install命令安装的软件,可直接用命令 dpkg -S softwarename 显示包含此软件包的所有位置,dpkg -L softwarename 显示安装路径。 aptitude show softearename 或 dpkg -l softwarename 查看软件版本 参考:http://www.cnblogs.com/forward/archive/2012/01/10/2318483.html 来源: https://www.cnblogs.com/macrored/p/11757888.html

ubuntu彻底卸载软件

六月ゝ 毕业季﹏ 提交于 2019-12-02 18:30:43
参考: ubuntu彻底卸载软件 找到此软件名称,然后sudo apt-get purge ......(点点为为程序名称),purge参数为彻底删除文件,然后sudo apt-get autoremove,sudo apt-get clean和dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 两条命令来清除残余的配置文件 参考: Linux下安装和卸载git git如何卸载 <1.>找到git的位置 终端命令:which -a git <2.>cd进入git所在的目录 终端命令:cd /usr/bin/git(这个是一般的默认位置) <3.>删除命令 终端命令:sudo rm -rf git* 找到此软件名称,然后sudo apt-get purge ......(点点为为程序名称),purge参数为彻底删除文件,然后sudo apt-get autoremove,sudo apt-get clean和dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 两条命令来清除残余的配置文件 参考: Linux下安装和卸载git git如何卸载 <1.>找到git的位置 终端命令:which -a git <2.>cd进入git所在的目录 终端命令:cd /usr/bin

apt-get installing oracle java 7 stopped working

隐身守侯 提交于 2019-12-02 18:20:01
Recently apt-get install -y oracle-java7-installer stopped working. I know in their roadmap, I think the public version is no longer supported, but it's been working all the way until recently. http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Anyone have a work around for this? http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1495560077_4041e14adcb5fd7e68827ab0e15dc3b1 Connecting to download.oracle.com (download.oracle.com)|96.6.45.99|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2017-05-23 10

Ubuntu 11.10 安装后要做的12件事情

ぃ、小莉子 提交于 2019-12-02 17:13:30
Ubuntu 11.10 在10月13日发布。Ubuntu有很多变化,我们不再赘述。除去《Ubuntu 11.10 专题总结》外,本文又总结了《Ubuntu 11.10 安装后要做的12件事情》。希望对各位有所指导帮助。 (“Ubuntu **安装后要做的**件事情”几乎成了Ubuntu每次发布的惯例。原因在Ubuntu的流行,吸引人们不断折腾) #1,安装Restricted Extras 从Ubuntu 11.04 版本开始,我们就可以在Ubuntu安装过程中安装一些编码包,如Adobe Flash\MP3等等。(但是必须连接网络,如果网速很慢,这回延长安装时间,建议直接下一步) #2,升级软件源 安装Ubuntu 11.10后,第一件事情就是更新软件列表。打开终端(快捷键:Ctrl+Alt+T): sudo apt-get update && sudo apt-get upgrade #3,安装Ubuntu Restricted Extras 安装Ubuntu Restricted Extras软件包后,我们就可以播放mp3,avi,Flash等了。 直接输入命令: sudo apt-get install ubuntu-restricted-extras #4,支持DVD播放 第#3步可以解决大部分问题,但是要支持DVD播放,还需要安装:libdvdcss2: sudo

Qt编译出错 GL/gl.h:No such file or directory

倖福魔咒の 提交于 2019-12-02 16:54:44
系统:Ubuntu18.04 软件:QtCreator4.8  Qt5.9.8 编译Qt Widgets Application类型的项目时,出现错误,提示: GL/gl.h: No such file or directory 原因GL相关库为安装,通过以下指令可安装GL相关库 sudo apt-get install mesa-common-dev sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev 来源: https://www.cnblogs.com/GregTse/p/11755905.html

ubuntu 下docker的安装

天涯浪子 提交于 2019-12-02 16:52:29
docker安装 1.删除旧的docker的安装包 apt-get remove docker docker-engine docker-ce docker.io 2.更新安装包索引 apt-get update 3.安装以下包以使apt可以通过HTTPS使用存储库(repository) apt-get install -y apt-transport-https ca-certificates curl software-properties-common 4.添加Docker官方的GPG密钥: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 5.设置stable存储库 add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 6.更新一下apt包索引 apt-get update 7.安装最新版本的Docker CE apt-get install -y docker-ce 8. 列出可用的版本 # 选择要安装的特定版本,第二列是版本字符串,第三列是存储库名称,它指示包来自哪个存储库,以及扩展它的稳定性级别

How can I get Chef to run apt-get update before running other recipes

久未见 提交于 2019-12-02 16:08:29
Right now I have the following in my Vagrantfile: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe "chef-redis::source" chef.add_recipe "openssl" chef.add_recipe "git" chef.add_recipe "postgresql::server" chef.add_recipe "postgresql::client" end In order to install the software added to my recipe_list, I need to get the VM to issue an apt-get update before installing the other software. I was under the impression that this was one of the features of the 'apt' recipe - that it would run the update