ubuntu-14.04

bash: pm2: command not found

孤人 提交于 2019-12-22 14:56:08
问题 I can't run pm2 on ubuntu box. I'm not sure what's the problem. The pm2 is installed globally. npm list -g --depth=0 /opt/nodejs/lib ├── forever@0.15.3 ├── node-gyp@3.4.0 ├── npm@2.15.9 ├── pm2@2.1.5 ├── userdown@0.2.1 └── wait-for-mongo@0.2.0 But I still get pm2 -bash: pm2: command not found if I run other app userdown Starting Script is not provided versions node v4.5.0 npm v2.15.9 log from installation: sudo npm install pm2 -g npm WARN optional dep failed, continuing fsevents@1.0.15 /opt

AWS EC2: How to remount previous EBS volume using pivot_root?

陌路散爱 提交于 2019-12-22 12:26:26
问题 I launched an EC2 Spot Instance and unchecked the "Delete On Termination" option for the EBS root volume. I chose the Ubuntu 14.04 64-bit HVM AMI. At some point the instance got terminated due to max price and the EBS volume stayed behind as intended. Now eventually when the Spot Instance is relaunched it creates a brand-new EBS root volume. The old EBS root volume is still sitting out there. Actually I simulated the above events for testing purposes by manually terminating the Spot Instance

There was an error while trying to write to `/opt/wpscan/.bundle/config`. It is likely that you need to grant write permissions for that path

ⅰ亾dé卋堺 提交于 2019-12-22 12:25:08
问题 Hello I use a google cloud instance to run my codes, techonepl@instance-1:/opt/wpscan$ sudo gem install bundler && bundle install --without test Fetching: bundler-1.14.6.gem (100%) Successfully installed bundler-1.14.6 Parsing documentation for bundler-1.14.6 Installing ri documentation for bundler-1.14.6 Done installing documentation for bundler after 7 seconds 1 gem installed There was an error while trying to write to /opt/wpscan/.bundle/config . It is likely that you need to grant write

shared library problems with eclipse on Ubuntu

筅森魡賤 提交于 2019-12-22 11:36:18
问题 I am using ubuntu 14.04 LTS 64 bits. and i installed eclipse Mars. and created "hello world" App. but the R class is always missing and never generated. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);//R cannot be resolved to a variable } and i did the folowing: -clean project. -delete the files in gen folder to be regenerated automatically -checked the XML files in your resource folders and all has no

adb - [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

自闭症网瘾萝莉.ら 提交于 2019-12-22 07:02:18
问题 When changing files in an extracted APK, I re-zip it, change the extension to .apk, and install like this: $ adb install CustomAPK.apk 2831 KB/s (41896599 bytes in 14.450s) pkg: /data/local/tmp/CustomAPK.apk Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] What is this from? 回答1: Generate a key and sign the apk: Android Developer Website Signing Your App Manually You do not need Android Studio to sign your app. You can sign your app from the command line using standard tools from the

Physical memory usage is too high

牧云@^-^@ 提交于 2019-12-22 05:11:21
问题 I got this error when I tried to run topology in local mode with storm using mvn compile exec:java -Dexec.classpathScope=compile -Dexec.mainClass=my.Topology the error is ERROR backtype.storm.util - Async loop died! java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes = 3G > maxPhysicalBytes = 3G How can I solve it? I don't know which Physical memory I should increase ! and if I run the topology in production mode, will this error be disappeared? UPDATE Physical Memory

Getting errors / failing tests when installing Python3.4.3 on Lubuntu 14.04

我怕爱的太早我们不能终老 提交于 2019-12-22 04:38:23
问题 I use VMplayer and my OS is Lubuntu 14.04. It comes with a pre-installed python3.4.0 but I want to install python3.4.3. I downloaded the .tar.xz file from here. I then extracted the file and followed the instructions in the README: ./configure make make test When I initially ran make test it said "3 tests failed, 3 altered execution environment and 25 skipped". I posted the question on SO here: Installing Python3.4.3: 3 tests failed, 3 altered execution environment and 25 skipped I then did

Error:Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

我们两清 提交于 2019-12-22 01:57:24
问题 After updating android studio to 1.1.0 in Ubuntu always showing this error.My logcat is: org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)** android studio 1.0,0.8 is working fine . **org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.2.1-all.zip'. at** org.gradle.tooling.internal.consumer

Why does `ioctl(fd, EVIOCGRAB, 1)` cause key spam sometimes?

一笑奈何 提交于 2019-12-22 00:27:00
问题 I'm trying to write my own "keyboard driver" (without actually writing a kernel module), by grabbing the keyboard at what I assume is the lowest level of abstraction in userland: /dev/input/event* . The following code does the grabbing, provided you change the first ocurrence of ioctl(fd, EVIOCGRAB, UNGRAB) to ioctl(fd, EVIOCGRAB, GRAB) . // gcc main.c -o main #include <stdio.h> #include <unistd.h> #include <string.h> #include <linux/input.h> #include <fcntl.h> #include <errno.h> #define EXIT

Some shortcut not working at AndroidStudio in Ubuntu

荒凉一梦 提交于 2019-12-21 21:19:24
问题 My AndroidStudio version is 2.3.1 and my Keymaps is: Default for XWin With this keymap the shortcut for Find Usages is Alt + F7 but it not work (so now if I need to find Find Usages I need right click at the method and click Find Usages ) Also the shortcut for Open Settings ( Ctrl+Alt+S ) not work too How can I make it work? Any help or suggestion would be great appreciated. 回答1: I find the reason for my problem, in System->Shortcut of my Ubuntu 14.04. The Alt+F7 is use for Move Window so