ubuntu-12.04

Setup iRedMail Admin Site in Nginx on Ubuntu 12.04

不问归期 提交于 2019-12-03 21:01:48
I had a hell of a time getting this to work and couldn't find a solid answer anywhere so I figured I would post my solution to SO so others may find it useful. I wanted to run all of my SSL sites on a seperate virtual box from my MX server which by iRedMail default is not the case. Getting phpMyAdmin and roundcube going on the new server with nginx was easy and will not be covered here, what was not easy was getting the admin panel running under nginx with uwsgi. The end result of this is one server as the mail server only, and one server running nginx for web administration. I began with

Can't locate local/lib.pm in @INC at /usr/share/perl/5.14/CPAN/FirstTime.pm

帅比萌擦擦* 提交于 2019-12-03 17:47:50
问题 I am trying to use Perl the first time on my system which is Ubuntu 12.04. I have Perl v.5.14.2 installed. I looked up how to install Perl modules, so I started as follows: $ perl -MCPAN -e shell The wizard started configuring the environment as can be seen here: http://pastebin.com/5hn8vkb5 Though, it stopped in the middle with the following error message: ... Checksum for /home/john/.cpan/sources/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz ok ---- Unsatisfied dependencies detected

Why did matrix multiplication using python's numpy become so slow after upgrading ubuntu from 12.04 to 14.04?

陌路散爱 提交于 2019-12-03 17:30:54
I used to have Ubuntu 12.04 and recently did a fresh installation of Ubuntu 14.04. The stuff I'm working on involves multiplications of big matrices (~2000 X 2000), for which I'm using numpy. The problem I'm having is that now the calculations are taking 10-15 times longer. Going from Ubuntu 12.04 to 14.04 implied going from Python 2.7.3 to 2.7.6 and from numpy 1.6.1 to 1.8.1. However, I think that the issue might have to do with the linear algebra libraries that numpy is linked to. Instead of libblas.so.3gf and liblapack.so.3gf , I can only find libblas.so.3 and liblapack.so.3 . I also

zeromq.node installation error Ubuntu 12.04: ' node-gyp rebuild'

ε祈祈猫儿з 提交于 2019-12-03 14:44:53
I'm trying to install zeromq.node using: $ npm install zmq However, I keep getting the error below. Any help would be much appreciated. gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/npm/node_modules/node-gyp/lib/build.js:215:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17) gyp ERR! stack at Process._handle.onexit (child_process.js:674:10) gyp ERR! System Linux 3.2.0-29-generic gyp ERR! command "node" "/usr/share/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/robot/code

Is there a way to change the font in the status bar Sublime Text 3?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 14:33:14
I am searching for a method to change the font of status bar of Sublime Text 3.. Is there a way to do it? I tried changing system fonts (I am on Ubuntu 12.04), searching through Google gave me no hints.. Thanks It's only possible to do in the .sublime-theme file: // Status bar label { "class": "label_control", "parents": [{"class": "status_bar"}], "color": [140,140,140], "font.size": 11, "font.face": "Droid Sans Mono" }, If you can't find any .sublime-theme , mentioned in accepted answer : (To make it explicitly clear:) Override any current theme by creating a Default.sublime-theme file under

JavaMail Not Working on Amazon EC2

廉价感情. 提交于 2019-12-03 14:21:19
PROBLEM: I'm trying to use JavaMail to send email from an EC2 Ubuntu 12.04 Server but it's not working. BACKGROUND: I intend to send an auto generated mail from a Tomcat Server to a few team members. I used JavaMail 1.4.7 for this task and I've successfully tried it on a local installation of Tomcat (on a personal laptop). The next step was where I put this module on an EC2 Server but it started failing with the below given error: ERROR: DEBUG SMTP: AUTH LOGIN failed javax.mail.AuthenticationFailedException: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support

How to assign IP address to interface in python?

妖精的绣舞 提交于 2019-12-03 12:50:42
I have python script that set the IP4 address for my wireless and wired interfaces. So far, I use subprocess command like : subprocess.call(["ip addr add local 192.168.1.2/24 broadcast 192.168.1.255 dev wlan0"]) How can I set the IP4 address of an interface using python libraries? and if there is any way to get an already existing IP configurations using python libraries ? tMC Set an address via the older ioctl interface: import socket, struct, fcntl SIOCSIFADDR = 0x8916 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def setIpAddr(iface, ip): bin_ip = socket.inet_aton(ip) ifreq =

cannot locate .npmrc file after installing nodejs and npm on ubuntu 12.04

让人想犯罪 __ 提交于 2019-12-03 12:13:06
问题 I just followed a tutorial to install nodejs and npm on my ubuntu 12.04. https://gist.github.com/dwayne/2983873 now after installing both are working fine. I checked them by node -v npm -v They seem to give me desired result. My question is I am not able to locate .npmrc file. Is n't it weird. I want to know is it created by default when we install npm ? or should I create it myself.? 回答1: There can be per-user, global and built-in npmrc configs. So don't worry about if there is no .npmrc

How to install PyQt on Ubuntu 12.04 with python 2.7?

你离开我真会死。 提交于 2019-12-03 11:01:05
问题 There may be some similar questions like this one, but I didn't find any answer for me. I tried some ways to do it like: sudo aptitude install python-qt4-dev python-sip4 python-sip4-dev from: https://groups.google.com/forum/#!topic/mnemosyne-proj-devel/VQQzjhARWoA I tried: sudo aptitude install python-qt4 from: http://www.saltycrane.com/blog/2008/01/how-to-install-pyqt4-on-ubuntu-linux/ Every time after above installations I got error: $python2.7 Python 2.7.3 (default, Aug 1 2012, 05:14:39)

PHP not displaying errors - Internal Server Error (500)

不想你离开。 提交于 2019-12-03 10:02:41
I've set up a fresh install of Ubuntu Server 12.04 LTS on Amazon AWS with *Apache2/MySQL/PHP5. When I run a PHP script and it encounters an error I don't see any error reporting from PHP, all I see is HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. I have checked my /etc/php5/apache2/php.ini file and as far as I can tell error reporting should be set up. The contents of the file (regarding errors) are: ; display_errors ; Default Value: On ; Development Value: On ; Production Value: Off ; display_startup