debian

Doctrine2 with Symfony2 not recognizing db charset and collation

爷,独闯天下 提交于 2020-01-15 14:11:46
问题 I am trying to get Doctrine2 to work properly with a mysql db in Symfony2 on a debian squeeze system. The charset and collation of the DB are set to utf8 and utf8_general_ci and the db is created manually by reading in an sql script. Now I enter some values for one of the tables with danish special chars like æøå and they simply wont display correctly. My parameters.yml has set encoding: utf8 and in my config.yml the doctrine configuration has: doctrine: dbal: driver: %database_driver% host:

Python numba / llvmlite on Debian 8 - i can't build llvmlite

允我心安 提交于 2020-01-14 22:48:18
问题 Im trying to install numba on a Debian 8 system as described here: http://llvmlite.pydata.org/en/latest/install/index.html (secion 2.2.3). I have installed LLVM 3.5 and it seems to find it but i keep getting errors when building llvmlite with setup.py: # python setup.py build Here is the complete output: running build got version from VCS {'version': '0.9.0.dev+7.gf5a7007.dirty', 'full': 'f5a70072ce0e7f5e432d6645056a60b00f957c66.dirty'} running build_ext /usr/bin/python ffi/build.py LLVM

The “dev” suffix in package names?

别来无恙 提交于 2020-01-14 07:53:06
问题 When using apt-get I see some packages have a "dev" suffix after their names: libreadline5 libreadline-dev zlib1g zlib1g-dev What are these exactly and should I install them? 回答1: You need these to compile and link as they provide headers and libraries to link whereas the standard packages just contain the run-time versions. 来源: https://stackoverflow.com/questions/3588164/the-dev-suffix-in-package-names

Debian AMD64 安装 QQ

妖精的绣舞 提交于 2020-01-14 01:36:21
一共用了两步: 第一步 sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2 其中linux32 lib32asound2可能会自动安装。 第二步:下载安装 utubun的QQ deb包。 http://www.longene.org/forum/viewtopic.php?f=6&t=4700 sudo dpkg -i --force-all *.deb 我原来使用的下载地址一时找不到了,所以第二步就使用了wineqq光网`官网的地址 如果安装32位支持库出现问题就参考一下这个 Debian 7.0,使用163的源,安装ia32-libs结果如下: $ sudo apt-get install ia32-libs 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是 因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件 包尚未被创建或是它们已被从新到(Incoming)目录移出。 下列信息可能会对解决问题有所帮助: 下列软件包有未满足的依赖关系: ia32-libs : 依赖: ia32-libs-i386 但无法安装它 E: 无法修正错误,因为您要求某些软件包保持现状

amazon SES on Google Cloud Computing instance VM using postfix

无人久伴 提交于 2020-01-13 11:52:57
问题 can anyone help me configure postfix to use with amazon ses please.. i can successfully follow instructions here using sendgrid https://developers.google.com/compute/docs/sending-mail and it is working fine using sendgrid.. But i would like to adjust settings to use amazon SES instead of sendgrid, I am not even sure if that is possible seems google has blocked all smtp ports. any help greatly appreciated... I have tried these.. http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html

amazon SES on Google Cloud Computing instance VM using postfix

扶醉桌前 提交于 2020-01-13 11:52:15
问题 can anyone help me configure postfix to use with amazon ses please.. i can successfully follow instructions here using sendgrid https://developers.google.com/compute/docs/sending-mail and it is working fine using sendgrid.. But i would like to adjust settings to use amazon SES instead of sendgrid, I am not even sure if that is possible seems google has blocked all smtp ports. any help greatly appreciated... I have tried these.. http://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html

How can I rebuild Ubuntu kernel sources without recompiling any of unchanged files?

霸气de小男生 提交于 2020-01-13 06:41:32
问题 As I remember, when I rebuild image (more than once) from pure Linux kernel source tree, basically, the build system compiles only the changed codes and incrementally links them with other unchanged object files which were compiled before. However, I couldn't find any options to make Ubuntu kernel build system to build image in the same manner. Simply, a line of change takes too long time to be compiled and linked. Is there any options for it, or any alternative practices? Here is my shell

Ubuntu和Debian安装metasploit-framework

余生颓废 提交于 2020-01-13 00:55:32
添加阿里云的kali源 系统的镜像源文件在apt目录下 /etc/apt/sources.list 用文本编辑器打开sources.list,手动添加如下代码 deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib 将原来的源使用#号注释掉 # deb http://http.kali.org/kali kali-rolling main non-free contrib # deb-src http://http.kali.org/kali kali-rolling main non-free contrib 一般没啥问题,二班情况建议提前备份号文件,或者虚拟机快照,方便回退,减少误操作带来的损失。 更新源 apt update 更新源 apt upgrade 更新软件(一般比较大,自己酌情更新即可) apt dist-upgrade 这个是更新系统的所有程序 接下来是解决签名的问题 直接一条命令 wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

debian登陆提醒信息

試著忘記壹切 提交于 2020-01-12 23:49:30
作者: openbian 出自: http://www.linuxdiyf.com 运用debian系统,登陆前提醒信息文件是/etc/issue和/etc/issue.net,后者是收集登录的提醒。 文件中代码含义 \v,操纵系统版本号 \r,操纵系统的版本 \s,操纵系统称号 \d,外地端日期 \t,外地端时刻 \n,主机收集名 \o,域名 \m,硬件品级 \l,第几个登陆终端 登陆后的提醒信息文件是/etc/motd,和/etc/motd.tail 鸟哥的菜上说改/etc/motd,但在debian下不行,必需改/etc/motd.tail,否则重启/etc/motd就复原了。 版权声明: 原创作品,许愿转载,转载时请务必以超链接体例标明文章 原始情由 、作者信息和本声明。否则将追查轨则责任。 来源: https://www.cnblogs.com/zgqjymx/archive/2011/03/07/1974870.html

ROS Kinetic 安装指南

对着背影说爱祢 提交于 2020-01-11 23:35:03
这是最新发行版本 ROS Kinetic Kame 的安装指南, 在Ubuntu Wily(15.10)和Ubuntu Xenial (16.04 LTS)可用,当然也有一些其他平台可供安装。 安装 ROS Kinetic 只 支持Wily (Ubuntu 15.10), Xenial (Ubuntu 16.04) 和Jessie (Debian 8) 的debian包。 配置 Ubuntu 软件仓库 配置你的 Ubuntu 软件仓库(repositories) 以允许 "restricted"、"universe" 和 "multiverse"这三种安装模式。 你可以 按照ubuntu中的配置指南 来完成配置。 添加 sources.list 设置你的电脑可以从 packages.ros.org 接收软件. sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 添加 keys sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key