debian

“skipping: no hosts matched” issue with Vagrant and Ansible

試著忘記壹切 提交于 2019-12-31 17:51:15
问题 I have installed Vagrant, VirtualBox and Ansible and trying to run provision over one host but it always returns "skipping: no hosts matched" The head of my playbook file looks like this: --- - hosts: webservers user: vagrant sudo: yes and my /etc/ansible/hosts file looks like this: [webservers] webserver1 I tried putting the IP address there but had the same result. I have added my ssh key to the server and added webserver1 host to both .ssh/config and /etc/hosts . I can ssh vagrant

debian_设置静态路由_eth0_wlan0

家住魔仙堡 提交于 2019-12-31 12:57:37
debian_设置静态路由_eth0_wlan0 转载注明来源: 本文链接 来自 osnosn的博客 ,写于 2019-12-31. debian-10(buster) eth0 可以用 nmtui 配置有线连接,在eth0连接配置中,IPv4配置->显示->路由,自行添加静态路由(目标/掩码,GW,跃点数) 或者,modify "/etc/network/interfaces" 在 iface eth0 inet static 后面加入类似下面这句。其中metric自己定义,也可以不要metric。 up ip route add 10.0.0.0/8 via 10.0.0.1 metric 50 wlan0 (wifi client) 可以用 nmtui 配置无线连接,在WIFI连接配置中,IPv4配置->显示->路由,自行添加静态路由(目标/掩码,GW,跃点数) 也可以修改 "/etc/NetworkManager/system-connections/" 目录中对应wifi的连接配置文件。 在 [ipv4] 段落中加入 route1=10.0.0.0/8,10.0.0.1,50 route2=192.168.0.0/16,192.168.0.1,50 转载注明来源: 本文链接 来自 osnosn的博客 . 来源: https://www.cnblogs.com/osnosn

How to get IP address programmatically on Debian based system?

依然范特西╮ 提交于 2019-12-31 01:52:11
问题 I'm trying to retrieve the IP Address of the local machine in my program. The Operating System is Ubuntu 8.10 . I tried using gethostname() and gethostbyname() to retrieve the IP Address . The answer I received is 127.0.1.1 . I learned that it seems to be a Debian thing: The document linked here explained the idea. The content of my /etc/hosts file is: 127.0.0.1 localhost 127.0.1.1 mymachine In this case, is there any other way to programmatically (prefer C or C++) to get the IP Address

ImportError: No Module Named 'pysqlite2'

血红的双手。 提交于 2019-12-30 18:26:56
问题 I have written a program in Python which was done on windows. And in the windows test environment worked fine. Now I am setting up a linux server to internally host the program. I have installed all the dependencies etc from a generated requirements file but when I run it I come on a problem, ImportError: No Module Named 'pysqlite2'. I have extensively googled this issue and have not found a solution. Can anyone tell me how to fix this problem from code below? I cannot upload an image due to

安装Debian的正确方法

百般思念 提交于 2019-12-30 14:08:01
一、说明: Debian7.0.0的安装镜像文件有3个DVD,安装基本系统只用到第一个镜像文件,即DVD1 其它镜像文件是附带的软件包。 附Debian 7.0.0系统镜像下载地址: 32位:http://cdimage.debian.org/debian-cd/7.0.0/i386/iso-dvd/debian-7.0.0-i386-DVD-1.iso 64位:http://cdimage.debian.org/debian-cd/7.0.0/amd64/iso-dvd/debian-7.0.0-amd64-DVD-1.iso 二、安装系统:用启动盘成功引导之后,出现下面的界面 界面说明: Install 安装系统 graphical install 图形安装 advanced options 高级选项 Help 帮助 Install with speech synthesis 语音合成安装 这里选择第一项,安装系统,回车。 选择语言为:中文(简体) 地区选择为:中国 键盘模式:汉语 设置主机名字,默认 设置主机域名,填写自己的域名 如果没有域名可填写localhost 设置root密码 再次确认密码 新用户全名(注意不是登录账号,相当于描述): 账号用户名(登录系统的账号名):osyunwei 设置普通用户密码 再次输入密码 选择:手动 选择磁盘 是 选择空闲空间 创建新分区

Debian 7.0.0 安装教程图解

拥有回忆 提交于 2019-12-30 14:07:45
Debian7.0.0的安装镜像文件有3个DVD,安装基本系统只用到第一个镜像文件,即DVD1,其它镜像文件是附带的软件包,下面是安装方法 一、说明: Debian7.0.0的安装镜像文件有3个DVD,安装基本系统只用到第一个镜像文件,即DVD1 其它镜像文件是附带的软件包。 附Debian 7.0.0系统镜像下载地址: 32位:http://cdimage.debian.org/debian-cd/7.0.0/i386/iso-dvd/debian-7.0.0-i386-DVD-1.iso 64位:http://cdimage.debian.org/debian-cd/7.0.0/amd64/iso-dvd/debian-7.0.0-amd64-DVD-1.iso 二、安装系统:用启动盘成功引导之后,出现下面的界面 界面说明: Install 安装系统 graphical install 图形安装 advanced options 高级选项 Help 帮助 Install with speech synthesis 语音合成安装 这里选择第一项,安装系统,回车。 选择语言为:中文(简体) 地区选择为:中国 键盘模式:汉语 设置主机名字,默认 设置主机域名,填写自己的域名 如果没有域名可填写localhost 设置root密码 再次确认密码 新用户全名(注意不是登录账号,相当于描述

Ubuntu的软件安装管理---dpkg与apt-*详解

烈酒焚心 提交于 2019-12-30 12:29:53
摘要 : 软件厂商先在他们的系统上面编译好了我们用户所需要的软件,然后将这个编译好并可执行的软件直接发布给用户安装。不同的 Linux 发行版使用不同的打包系统,一般而言,大多数发行版分别属于两大包管理技术阵营: Debian 的”.deb”,和 Red Hat的”.rpm”。也有一些重要的例外,比方说 Gentoo, Slackware,和 Foresight,但大多数会使用这两个基本系统中的一个。这里将要介绍的是Debian系列发行版的dpkg与apt-*的详细使用方法。 注:本人系统版本【Ubuntu 16.04 LTS】(Long Term Support) 一、dpkg 1、简介 dpkg - package manager for Debian (debian系统的包管理工具)。 dpkg is a tool to install, build, remove and manage Debian packages,dpkg是Debian的一个底层包管理工具,主要用于对已下载到本地和已安装的软件包进行管理。 dpkg这个机制最早由Debian Linux社区所开发出来的,通过dpkg的机制,Debian提供的软件就能够简单的安装起来,同时能提供安装后的软件信息,实在非常不错。只要派生于Debian的其它Linux distributions大多使用dpkg这个机制来管理

DEBIAN系和REDHAT系安装应用的方法

我的未来我决定 提交于 2019-12-30 12:29:19
DEBIAN系和REDHAT系都是有三种安装的方法:源代码包安装,二进制包安装和包管理器安装。 DEBIAN系 1.源代码安装 这种安装方式首先需要从网上下载源代码包,一般为.tar.gz格式,然后执行命令:./configure,运行configure脚本,生成makefile文件,然后执行命令:make,根据makefile文件对整个项目进行编译(从源文件编译成目标文件,再将目标文件链接成可执行文件),然后执行:make install,将文件安装。卸载:make uninstall。(注意:有的源代码包中没有configure文件,会有makefile文件,所以可以省去执行./configure,直接执行make命令)。 2.二进制包安装 这种方式也需要先下载包,DEBIAN系的二进制包以.deb结尾,安装命令:dpkg -i package_name.deb,在安装过程中可能出现缺少依赖包的问题,可以强制安装:apt-get -f install,卸载命令为:dpkg -r package_name。 3.包管理器安装 这种方式不用下载包,需要联网。DEBIAN系下的安装命令为:apt-get install soft_name,可能出现无法定位软件的问题,这时需要去/etc/apt下修改sources.list,更改软件源,更改完成之后还需要更新一下:apt-get

SDL_Texture - Incomplete type

旧时模样 提交于 2019-12-30 08:24:06
问题 a day ago I installed an SDL2 library. It is not in Debian Wheezy yet, so I used configure, make, make install commands. After all, when I try to use SDL_Texture, I get this error: error: forward declaration of ‘SDL_Texture {aka struct SDL_Texture}’ invalid use of incomplete type ‘SDL_Texture {aka struct SDL_Texture}’ After looking for declaration, everything I found are these two lines in SDL_render.h: struct SDL_Texture; typedef struct SDL_Texture SDL_Texture; No definition at all. I think

How to install Haskell Platform on Linux Debian Wheezy?

瘦欲@ 提交于 2019-12-30 08:18:09
问题 Initially I thought I would get install Haskell with couple of commands using apt-get but its seems somehow complex. As I look at the haskell org download page, I downloaded haskell-platform-2013.2.0.0.tar.gz . Then next step is somehow confusing. It ask to install GHC before installing platform but at the same time if one opens GHC download page , it shows some warning e.g Stop ! ..... we recommend installing the Haskell Platform instead of GHC . Please guide me how to install Haskell on