ubuntu-14.04

Docker: change folder where to store docker volumes

和自甴很熟 提交于 2019-11-29 21:17:52
问题 On my Ubuntu EC2 I host an application using docker containers. db data and upload data is being stored in volumes CaseBook-data-db and CaseBook-data-uploads which are being created with this commands: docker volume create --name=CaseBook-data-db docker volume create --name=CaseBook-data-uploads Volumes being attached through docker-compose file: version: '2' services: mongo: container_name: "CaseBook-db" restart: always image: mongo:3.2.7 ports: - "27017" volumes: - data_db:/data/db labels:

OpenSSL vs GPG for encrypting off-site backups?

冷暖自知 提交于 2019-11-29 20:15:15
Given the option between using GPG and OpenSSL for local encryption before pushing archives to an off-site backup location, what are the benefits and drawbacks of each solution? Background: I currently manage a server infrastructure based on Ubuntu 14.04.1 with all current patches applied as they become available. All of these systems are headless, automatically built using vetted preseeds and automation tools, and run in virtual machines via KVM on uniform Intel-based hardware. We have a preference for Ruby, but a stronger preference for "doing things correctly". Because of both, we've chosen

Install old PHP version on Ubuntu

折月煮酒 提交于 2019-11-29 18:05:34
I have got an Ubuntu14.04 and a PHP 5.5.9 installed. Now I need PHP 5.4.* As I have seen, it is not possible to downgrade it. I have to purge it and then install the old version. I have searched everywhere but I can't find an instruction how to get an old PHP version which works. I already tried to get it with apt-get install php5=version , but apt-cache policy php5 does always only show PHP 5.5.9 And also wget php5.4.... ./configure make make install doesn't work. What is the solution for my problem? Download Apache http and PHP from source and it can be done. Choose an installation source

Docker service does not start

和自甴很熟 提交于 2019-11-29 16:39:18
问题 docker is gigving me a hard time currently. I followed these instructions in order to install docker on my virtual server running Ubuntu 14.04 hosted by strato.de. wget -qO- https://get.docker.com/ | sh Executing this line runs me directly into this error message: modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.13.0-042stab092.3/modules.builtin.bin'modprobe: FATAL: Module aufs not found. Warning: current kernel is not

Ubuntu (14 & 16) Bash errors with printf loops from input containing lowercase “n” characters

血红的双手。 提交于 2019-11-29 16:34:40
I have some bash scripts I have been running on Ubuntu 14.04 and 16.04 for well over a year now. Some recent Ubuntu update has broken bash and I cannot figure out how to sort this out. Example: #!/bin/bash INPUT=myinput.txt OUTPUT=myoutput.txt ACTION1="0;" cat $INPUT | while read LINE do printf "\t\"~${LINE}\"\t\t$ACTION1\n" >> $OUTPUT done my script then loops through the file doing the printf statement as follows but this is the output produced "~jetmo" 0; "~spamme" 0; "~baidu" 0; example contents of myinput.txt jetmon spammen baidu Input lines containing a lowercase n character gets

Implementing a custom hypercall in kvm

◇◆丶佛笑我妖孽 提交于 2019-11-29 16:33:47
问题 I am very new to Virtualization and of late I have been trying to familiarize myself with the way VMMs operate and how hypercalls are made. Talking about which I plan to implement a new hypercall in KVM which is installed on my Ubuntu desktop, and in turn can be callable from the guest environment.With this hypercall I plan to just return a string saying "Hello World". At this point,I am clueless about how to make it happen.It would be really helpful if you could please guide me as to how do

running hive 0.12 with error of slf4j

99封情书 提交于 2019-11-29 15:31:49
Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-0.12.0.jar!/hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12- 1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hive/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] hive> you need to

How to solve the issue of the conflict of anaconda and virtualenv

只谈情不闲聊 提交于 2019-11-29 15:10:48
I was using virtualenv all the time and then I had also installed anaconda. Just now I tried to activate a virtual environment using the way of anaconda like source activate helloworld . (Indeed I don't remember if this is exactly the command I typed in). And then the environment had been activated. But when I tried to run the notebook, it was said that some libraries didn't exist even if I had installed them already in that environment. Not until then did I realize I had activated the wrong environment. And then I close the tab and cd to hellowworld and did source bin/activate . But it was

ld: unrecognized option '--push-state--no-as-needed'

寵の児 提交于 2019-11-29 14:02:57
问题 My build fails with the following linker error message: FAILED: : && /usr/bin/g++ -Wall -Wextra -Werror -g -fsanitize=undefined,address -Wno-unused-parameter -fsanitize=undefined,address -rdynamic *.o -o SCE -Wl,-rpath,/opt/qt59/lib /opt/qt59/lib/libQt5Widgets.so.5.9.1 /usr/local/lib/libprotobuf.a -lpthread -lutil -lgrpc++ /opt/qt59/lib/libQt5Gui.so.5.9.1 /opt/qt59/lib/libQt5Core.so.5.9.1 && : /usr/bin/x86_64-linux-gnu-ld: unrecognized option '--push-state--no-as-needed' You can see the full

Phusion passenger-status: what value for passenger_instance_registry_dir?

夙愿已清 提交于 2019-11-29 11:57:53
问题 I've done a new install of nginx 1.6.3 and passenger 5.0.15 on Ubuntu 14.04 from source in order to add tracing components from AppNeta for my ROR 4.2 app on one of my servers. Nginx and passenger are running and serving pages. I am getting the trace data for server monitoring. All seems well, However, when I run "passenger-status" (as root), I get the following: ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be: