debian

Troubleshooting installation of debian os

邮差的信 提交于 2020-01-24 13:19:56
After trying debian on an old workstation, I find there are some pitfalls and tricks: It is recommended to install the minimal base system (with no GUI) using the USB installer first. Since installation of GUI is through network and improper configured mirror will dramatically slow down the installation process. Each operating systems need to be installed into a primary partition and set the bootable flag. Do not erase (format) existing partition containing data. It may not find the grub on your newly installed system. In such case, you need to enter rescue mode by booting from USB and chroot

Image Capture with OpenCV - Select Timeout Error

核能气质少年 提交于 2020-01-24 09:16:31
问题 I would like to save a captured image from my webcam attached BeagleBone Black, however when I run the following code, I get the error: select timeout. #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "opencv2/opencv.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/videoio.hpp" using namespace std; using namespace cv; int main(){ cout<< "Hello, OpenCV version: "<< CV_VERSION << endl; Mat frame; VideoCapture cap(0); cap.set(CV

Scala and SBT install on Debian with Java 8

﹥>﹥吖頭↗ 提交于 2020-01-23 18:54:08
问题 I have java 8 server runtime on Debian. Tried: dpkg -i scala-2.11.7.deb scala depends on java6-runtime-headless; however: Package java6-runtime-headless is not installed. But is ok: scala -version Scala code runner version 2.11.7 -- Copyright 2002-2013, LAMP/EPFL Now installing SBT from bintray repo: My Java 8 is deactivated, installs open openjdk-7-* ... Have to "apt-get purge openjdk-7-*" (wrong way) EDIT: Problem corrected with: update-alternatives --config java 回答1: Here is the list of

Debian下安装vim

半世苍凉 提交于 2020-01-23 07:27:48
问题描述:安装完系统以后,刚要打算开始写程序,发现,vim还没有装,用su -切换到root后 直接运行apt-get install vim,提示插入disc源,然后回车,陷入无法解决的状态。 上网通过搜索,找到一下解决方法: 以下内容均在root的家目录下完成, cd ~ 先要更新系统的软件源: sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak #备份一下软件源 sudo vi /etc/apt/sources.list 加入如下内容即可 # 网易163更新服务器: deb http://mirrors.163.com/debian/ squeeze main non-free contrib deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib # sohu 更新服务器: deb http:/

Debian系统更新apt源

天涯浪子 提交于 2020-01-23 02:00:09
docker search了一个tomcat的镜像,发现是Debian系统,里面啥啥命令都没有,使用的这个难受啊,于是,强迫症犯了,要安装相应软件,在容器里做实验用。 执行安装命令: apt-get install vim 报错: Reading package lists .. . Done Building dependency tree Reading state information .. . Done E: Unable to locate package vim 检查安装源文件: cat /etc/apt/sources.list 源文件内容如下: # deb http://snapshot.debian.org/archive/debian/20191224T000000Z stretch main deb http://deb.debian.org/debian stretch main # deb http://snapshot.debian.org/archive/debian-security/20191224T000000Z stretch/updates main deb http://security.debian.org/debian-security stretch/updates main # deb http://snapshot.debian

When “vagrant up” it says “It appears your machine doesn't support NFS” (Debian jessie)

余生颓废 提交于 2020-01-22 16:42:34
问题 Issue when vagrant up it says "It appears your machine doesn't support NFS" Setups Debian GNU/Linux 8 (jessie) Vagrant 1:2.0.0 Virtualbox 5.1.30 r118389 Detail After using apt-get to update and upgrade the system, I basically followed the instruction from the Mediawiki page, since I wanted to install Mathoid to render LaTeX equations locally for mediawiki page. However, when I vagrant up it echos the following: It appears your machine doesn't support NFS, or there is not an adapter to enable

When “vagrant up” it says “It appears your machine doesn't support NFS” (Debian jessie)

旧城冷巷雨未停 提交于 2020-01-22 16:40:26
问题 Issue when vagrant up it says "It appears your machine doesn't support NFS" Setups Debian GNU/Linux 8 (jessie) Vagrant 1:2.0.0 Virtualbox 5.1.30 r118389 Detail After using apt-get to update and upgrade the system, I basically followed the instruction from the Mediawiki page, since I wanted to install Mathoid to render LaTeX equations locally for mediawiki page. However, when I vagrant up it echos the following: It appears your machine doesn't support NFS, or there is not an adapter to enable

Docker学习笔记

孤者浪人 提交于 2020-01-21 13:53:04
第1章 简介 与管理程序虚拟化(hypervisor virtualization)的区别: 管理程序虚拟化:通过中间层将一台或多台独立的机器虚拟运行于物理硬件之上 容器:直接运行在操作系统内核之上的用户空间 得益于现代Linux的内核特性(如control group、namespace),容器与宿主机之间的隔离更彻底,可以拥有独立的网络和存储栈,以及资源管理能力。 直接使用操作系统的系统调用接口。 推荐单个容器只运行一个应用程序或进程,使得形成一个分布式的应用程序模型,促使部署、扩展或调试应用程序都变得简单。 Docker核心组件 Docker客户端和服务器,也称为Docker引擎 Docker镜像 Registry Docker容器 镜像是Docker生命周期中的构建或打包阶段,而容器是启动或执行阶段。 定义 一个命令行程序、一个后台守护进程、一组远程服务 第2章 安装 使用脚本安装 curl https://get.docker.com/ | sh 升级Docker apt-get update apt-get install docker-engine Linux内核版本查看: cat /proc/version 或 uname -a docker log路径 /var/log/docker.log 升级Linux内核 aptitude search linux

Debian Linux下的Python学习——入门

江枫思渺然 提交于 2020-01-21 13:17:17
Python是一门简单易学,功能强大,易于维护的脚本语言。 python包括:字符串, 变量, 标识符, 数据类型, 对象, 运算符与表达式, 控制流, 函数, 模块。 python注意事项: 1. Python中的 缩进 (空格和制表符)用来决定逻辑行的缩进层次,从而用来决定语句的分组。同一层次的语句 必须有相同 的缩进,错误的缩进会引发错误。 例如:在Linux的命令窗口中创建test.py文件,如 , 在test.py中编写两行代码,缩进不一致,如下图,然后保存退出(:wq!) 在Linux的命令窗口中输入python test.py,按Enter键,如下图, 由于第二行代码的缩进与第一行不一样,报错了。 2. python的注释是以#开始的 ,如下图,其中以#!这种形式开始的注释,称为 组织行, 用于告诉使用的Linux/Unix系统应该运行哪个解释器 当在python文件顶部添加了#!/usr/bin/python组织行,可以用以下方式运行python文件。 chmod命令用来改变 文件的模式,给系统中所有用户的这个源文件执行许可,就可以通过指定源文件的位置来执行程序。./表示程序位于当前目录。 即使我们把文件名改成仅仅 test ,然后运行 ./test 。这个程序仍然可以工作,因为系统知道它必须用源文件第一行指定的那个解释器来运行程序。 3. 通过help(

Haproxy external-check error code 255

风格不统一 提交于 2020-01-17 06:18:15
问题 I'm quite new with Haproxy and I have a weird behavior with external check.. here is my config file : global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon # Default SSL material locations ca-base /etc/ssl/certs crt-base /etc/ssl/private # Default ciphers to use on SSL-enabled listening sockets. # For more information, see ciphers(1SSL). This list is from: #