Articles of ubuntu 12.04

在Ubuntu 12.04中安装php5-imagick w / ondrej包会导致依赖错误

我一直在试图设置一个运行PHP 5.4的imagick模块的Ubuntu 12.04虚拟机。 我在谷歌find的所有结果都说使用ondrej包 ,这在大多数情况下完美地工作。 所有的主要模块安装和运行正是他们应该的方式,但是当我尝试安装imagick它告诉我我错过了依赖。 # apt-get install php5-imagick Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or […]

“没有可用的版本信息” – 安装Postgres后

我已经从这里http://www.openscg.com/se/postgresql/packages.jsp在Ubuntu 12.04 (precise) 64-bit上安装了Postgres 9.1.4,但是在安装了许多命令(程序)后,以不同组合的警告: /opt/postgres/9.1/lib/libxml2.so.2: no version information available /opt/postgres/9.1/lib/libcrypto.so.1.0.0: no version information available /opt/postgres/9.1/lib/libssl.so.1.0.0: no version information available 虽然这不是限制任何东西,但这往往变得非常烦人。 有没有办法摆脱这个没有卸载Postgres?

如何使用virt-install在本地安装没有graphics的Ubuntu 12.04服务器虚拟机(最好来自ISO)?

我在这里看到类似的问题,但他们似乎并没有回答这个问题,而是推迟到graphics化安装或基于PXE的安装(对于我的用例,后者的细节很less)。 我想使用控制台(非graphics)界面在本地使用Ubuntu 12.04服务器ISO和virt-install在Ubuntu 12.04中创build一个虚拟机。 由于在使用ISO时不允许指定“–extra-args”,所以我的选项在获取标准纯文本控制台方面明显受到限制。 我已经成功地从一个远程仓库开始使用PXE进行安装(请参阅本文后面的注释),但我更愿意完全在本地执行此操作,而没有graphics和networking开销。 当我从服务器ISO安装的时候,会有一个非常适合执行纯文本安装的东西。 (如果你唯一的select是连接盒子的串行接口呢?) 如果PXE是不可避免的 ,那么在本地完成这个最简单的方法是什么? 可以避免只安装一个Web服务器来访问一些本地文件吗? 另外,如果我使用普通ISO的PXE构build系统,系统将如何不同? 他们是难以区分的,或基于PXE的安装添加或删除正常安装的东西? 什么不起作用的例子: sudo virt-install –name ubuntu1204os –ram 1024 –arch x86_64 –vcpus 1 \ –os-type=linux –os-variant=virtio26 –file=/myvms/ubuntu1204os.img \ –file-size=4 –graphics none –accelerate –hvm –network bridge:virbr0 \ –cdrom=/myvms/media/ubuntu-12.04-server-amd64.iso 输出: Starting install… Creating storage file ubuntu1204os.img | 4.0 GB 00:00 Creating domain… | 0 B 00:00 […]

如何在Ubuntu服务器上预置一个简单的RAID5设置?

我在机器中有三个2TB驱动器; 我想要一个容量为4TB的RAID5,以及100GB左右的交换空间。 没有LVM,没有encryption,没有幻想。 这很容易使用交互式安装程序,但我希望基本上preseed这整个设置。 我本来计划将交换空间设置为三个独立的分区(每个驱动器一个,让内核执行分条),但是之后我已经读了交换,因为第二个RAID1对于丢失驱动器(作为奖励, 12.04示例preseed涵盖了这个确切的情况)。 以下是我到目前为止: di partman-auto/disk string /dev/sda /dev/sdb /dev/sdc di partman-auto/method string raid di partman-lvm/device_remove_lvm boolean true di partman-md/device_remove_md boolean true di partman-auto/choose_recipe select base di partman-auto/expert_recipe string \ base :: \ 1800000 20 2000000 raid \ $primary{ } \ method{ raid } \ format{ } \ . \ 100000 10 […]

Ubuntu Server 12.04:如何在安装过程中configuration防火墙?

我正在按照说明使用kickstart自动安装Ubuntu Server 12.04。 它适用于自动分区驱动器,select语言等。但是,它不configuration防火墙。 这是一个已知的问题 。 没有防火墙运行不是一个好主意。 在安装过程中如何configurationUFW防火墙以防止未经授权的访问服务器? kickstart文件我看起来如下(仅更改了用户名) #System language lang en_US #Language modules to install langsupport en_US #System keyboard keyboard us #System mouse mouse #System timezone timezone America/Los_Angeles #Root password rootpw –disabled #Initial user user johnd –fullname "John Doe" –iscrypted –password <omitted> #Reboot after installation reboot #Use text mode install text #Install OS […]

无法安装python2.7-dev由于未满足的依赖Ubuntu 12.04

在此页面上描述的问题完全相同: http : //qnundrum.com/answer.php?q=431114 以下是直接从该页面引用: 我无法安装python-dev因为未满足的依赖。 我怎样才能解决这个问题? 删除python不是一个选项,我不能findpython2.6-dev,因为它不能find。 sudo apt-get install python-dev 以下软件包具有未满足的依赖关系:python-dev:取决于:python2.7-dev(> = 2.7.3),但不会被安装E:无法纠正问题, 所以试试python2.7-dev sudo apt-get install python2.7-dev The following packages have unmet dependencies: python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed Depends: libpython2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed E: Unable to correct problems, you have […]

Ubuntu上的LXC和Saltstack minion_idconfiguration

我使用LXC作为testingSaltStack脚本的实验平台。 该实验室由+5 Ubuntu 12.04 LTS容器组成,我通过克隆模板容器来预先安装salt-minion 。 一旦我创build模板容器并安装salt-minion minion_id ,模板将根据hostname ( test-template )获取它的Salt minion_id 。 如果我lxc-clone这个模板,那么所有的克隆都会有这个模板的minion_id ,但是我希望克隆的minion_id与它们的hostname相匹配( test-machine-{1,2,3,4,5} minion_id test-machine-{1,2,3,4,5} )。 有没有办法让这个脚本与bash或者我应该采取另一条path相同的效果? 更新 : 我查看了一些lxc脚本,发现lxc脚本使用定义了get_default_lxcpath函数的/usr/share/lxc/lxc.functions文件,所以我当前的脚本如下所示: . /usr/share/lxc/lxc.functions # clone template lxc-clone -o $template -n "$container" # create saltstack minion config dir if does not exist minion_id_path="$(get_default_lxcpath)/$container/rootfs/etc/salt" mkdir -p "$minion_id_path" # set minion-id directly from container name […]

named-checkzone报告“ns.example.com.ns”没有地址logging(A或AAAA)

我看到错误的第一件事是它的recursion问题。 但是我不确定问题出在我的反向查找文件中。 ns应该报告为ns.example.com而不是ns.example.com.ns 。 当然,它不会find任何这个名字的条目,因为没有一个,也不应该。 这是我的反向文件: $TTL 86400 @ IN SOA ns.example.com root.example.com. ( 16071990 ; Serial 3600 ; Refresh 1800 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) @ IN NS ns.example.com 这不是非常复杂。 我的问题是,什么其他文件影响named-checkzone的输出检查反向文件名称时?

.bashrc:shopt:找不到

刚刚configuration了一个新的Rackspace实例与Ubuntu 12.04,并从他们的github拉下rbenv并安装它。 执行时出现以下错误. ./~bashrc . ./~bashrc $ . ~/.bashrc sh: 18: /home/deployer/.bashrc: shopt: not found sh: 26: /home/deployer/.bashrc: shopt: not found sh: 110: /home/deployer/.bashrc: shopt: not found sh: 28: /etc/bash_completion: [[: not found sh: 34: /etc/bash_completion: [[: not found sh: 51: /etc/bash_completion: Bad substitution 这里是我的.bashrc(对于用户部署者),我添加的唯一东西是顶部的rbenv位。 $ cat .bashrc # ~/.bashrc: executed by bash(1) for non-login […]

从Ubuntu 10.04升级到12.04.1后,Postfix“AUTH-LOGIN”不再提供用于smtpauthentication的function

在从10.04到12.04进行了主要的Ubuntu dist升级之后,我的虚拟用户postfix / dovecot安装只提供了“PLAIN”SMTPauthentication机制。 它曾经提供了PLAIN + LOGIN机制,并且我已经在太阳下尝试了所有的事情,以便再次loginLOGIN,但是它不会这么做。 没有“login”版本,许多基于MS的客户端(Windows Live,Outlook Express)不能再使用SMTPvalidation发送邮件。 我不得不把他们的IP地址到我的“我的networking”列表中。 我甚至试图设置一个从头开始postfix + dovecot +虚拟用户smtp服务器与12.04.1,认为它必须与升级有关,但不能得到比AUTH PLAIN更多的东西新的系统。 有没有人在12.04上成功地设置了一个正常工作的postfix + dovecot +虚拟用户邮件服务器? 我目前的鸽舍configuration: http : //pastie.org/5651874 和当前的后缀configuration: http : //pastie.org/5651882 。 仅供参考这里是我尝试过的configuration的摘录: (一个): /etc/dovecot/conf.d/10-auth.conf: auth_mechanisms = plain login /etc/dovecot/conf.d/10-master.conf: service auth { unix_listener auth-userdb { } inet_listener { port = 12345 } } /etc/postfix/main.cf中 smtpd_sasl_auth_enable = yes […]