ubuntu-12.04

Cannot start Chrome / Cannot start Firefox errors with Karma in Vagrant box Ubuntu 12.04

老子叫甜甜 提交于 2019-12-13 02:26:53
问题 I am following the Angular Tutorial at https://docs.angularjs.org/tutorial/step_02. I want to run the following command: npm test karma start karma.conf.js And getting the following error: > karma start karma.conf.js WARN [watcher]: Pattern "/var/angularapp/angular-phonecat/app/**/*.module.js" does not match any file. WARN [watcher]: Pattern "/var/angularapp/angular-phonecat/app/!(bower_components)/**/*!(.module|.spec).js" does not match any file. WARN [karma]: No captured browser, open http:

Python Couchbase CFFI - `AssertionError: backend.__version__ == __version__[:3])`

一曲冷凌霜 提交于 2019-12-13 00:44:12
问题 Full error text: No module named couchbase._libcouchbase Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "runtests.py", line 12, in <module> mod = __import__(t, globals(), locals(), ['suite']) File "/home/travis/build/ardydedase/pycouchbase/tests/test_pycouchbase.py", line 15, in <module> from pycouchbase.utils import * File "/home/travis/build/ardydedase/pycouchbase/pycouchbase/__init__.py", line 11, in <module> import couchbase_ffi as couchase File "

Executing commands in a series in ubuntu terminal

删除回忆录丶 提交于 2019-12-12 18:35:00
问题 Suppose I have a set of commands to be executed in ubuntu terminal: for eg: sudo apt-get update sudo install xrdp sudo install java ..... and many others. Is it possible in ubuntu to execute the file containing these commands and execute without human intervention (like yes/no) , by default yes? I tried installing wine , executing $wine cmd /c Commands.bat , after putting all these commands in .bat file but getting errors "Application tried to create a window, but no driver could be loaded."

HBase Shell hangs / freezes

喜夏-厌秋 提交于 2019-12-12 16:05:23
问题 I've installed HBase 0.92.1-cdh4.0.1 on Ubuntu 12.04 in Pseudo-Distributed mode. hbase-master , hbase-regionserver and zookeeper-server are running on this machine; the HDFS is running on another machine (property hbase.rootdir set accordingly). Now I have a problem with the "hbase shell": whenever I submit a create table statement like create 'tbl1', {NAME => 'd', COMPRESSION => 'GZ'} the shell hangs (it does not return anything; waits forever) and I have to kill it with ctrl+c. However the

.htaccess mod_rewrite not working in subdirectory

风流意气都作罢 提交于 2019-12-12 14:10:56
问题 I am trying to use htaccess to rewrite all requests to main.php in a subfolder on my domain. The code in my .htaccess is the following: RewriteEngine on RewriteBase /public RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . main.php [L] I am sure the module is enabled, I have checked using the apache2ctl -M command root@vps847:/etc/apache2/sites-available# apache2ctl -M Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm

Apache2 Alias not working in Ubuntu?

二次信任 提交于 2019-12-12 12:14:38
问题 I've just setup apache/php/mysql in Ubuntu 12.04, and I've created an Alias for my virtual directory, here's my /etc/apache2/sites-enabled/000-default file: Alias /demo/ "/home/czetsuya/projects/eclipse/eclipse-php/demo-portfolio" <Directory "/home/czetsuya/projects/eclipse/eclipse-php/demo-portfolio"> DirectoryIndex index.php Options Indexes MultiViews FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from all </Directory> Note that I've already applied chown and chmod to

/usr/bin/env: ln: Too many levels of symbolic links

♀尐吖头ヾ 提交于 2019-12-12 11:12:51
问题 This problem is killing me and I feel like I've tried everything. First off, the problem started happening when upgrading to Capistrano 3. Capistrano now utilizes /usr/bin/env before every command when deploying, to make sure the environment setup is correct. When Capistrano goes to create symlinks to the necessary shared directory and respective files, it attempts commands like: /usr/bin/env ln -s /full/path /different/full/path ...and then it errors out: /usr/bin/env: ln: Too many levels of

Why doesn't nokogiri install?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:13:37
问题 I'm having a devil of a time installing Nokogiri on Ubuntu 12.04. I use rbenv. $ gem install nokogiri -v '1.6.1' ERROR: While executing gem ... (Errno::EACCES) Permission denied - /home/deploy/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.1/.autotest $ sudo gem install nokogiri -v '1.6.1' ERROR: Error installing nokogiri: nokogiri requires Ruby version >= 1.9.2. $ rbenv sudo gem install nokogiri -v '1.6.1' Building native extensions. This could take a while... ERROR: Error

copy/transfer eclipse from one ubuntu(linux) machine to other

点点圈 提交于 2019-12-12 08:58:57
问题 I have eclipse downloaded on one of my ubuntu machines. and now I want eclipse on my other ubuntu machine. how can I do this? 回答1: In the computer you have eclipse installed: Backup the folder containing eclipse (usually it's in the /opt folder) sudo cp -r /opt/eclipse /folder/to/backup/eclipse In the one you want eclipse to be installed: Copy eclipse to the opt folder sudo cp -r /backup/eclipse /opt/eclipse Add read permission to all files chmod -R +r /opt/eclipse Add the executable bit to

JavaMail Not Working on Amazon EC2

こ雲淡風輕ζ 提交于 2019-12-12 07:57:28
问题 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