Ubuntu

Grails not working on Ubuntu

≡放荡痞女 提交于 2021-01-28 01:56:42
问题 I'm new to Grails,but i have some problems... so i've started to install all of what is required to make it work : jdk8, setting the JAVA_HOME variable etc.. then i've installed Grails, created a new app with it and trying to run it,without modifying it, just to see if Grails was working fine, but unfortunately, nothing happened .. not even errors.. I've tried making it work changing the jdk to 1.7 version because I’ve read that it could be the main issue, but it's still the same.. Even when

Prevent multiple instance of jar running

我们两清 提交于 2021-01-28 00:48:18
问题 I have my middle layer jar file running on the linux server. I want that jar file running in background non-stop. nohup java -jar RushMiddleLayer.jar & But when i re-run this command, another new instance of the jar created and running. I have searched through google. They suggested some options. "Bind a ServerSocket". But which is not working for me. Process killed after press enter or Ctrl+C. I want to have two benefits from the jar. One is always running with fail. Another if restart the

pg_config - how to change postgres versions

自闭症网瘾萝莉.ら 提交于 2021-01-28 00:15:15
问题 By default I had postgres 10 versions on my two ubuntu 14 machines, but I installed postgres 9.6 on the two of them. But on one of them pg_config give me: VERSION = PostgreSQL 9.6.6 And the other: VERSION = PostgreSQL 10.1 They have the same libpq-dev packages in: dpkg -l | grep libpq-dev libpq-dev 10.1-1.pgdg14.04+1 amd64 header files for libpq5 (PostgreSQL library) So I was wondering is there a way for me to change the version installed that it gives me postgres 9.6 instead of postgres 10

Error response from daemon: join session keyring: create session key: disk quota exceeded

孤者浪人 提交于 2021-01-27 21:51:38
问题 I tried installing docker on a server of mine using this tutorial. I want to run docker images remotely and use the portainer web-interface to administrate everything. However, when I get to the point where I need to test my installation and I enter the command $ sudo docker run hello-world , I only get the following error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \

C - Linux - Custom kernel module to iterate over a process' children blows up kernel log and the computer

不打扰是莪最后的温柔 提交于 2021-01-27 21:49:30
问题 I'm new to linux kernel modules and I am trying to implement some basic concepts before handling complex ones. I wrote a code which takes a module parameter (an int) and checks if there is a process with that pid. If there is, it takes its children as a list and iterates over it while printing the children's ids and descriptions. Here is the code: #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/list.h> #include <linux/types.h> #include <linux/slab.h

Java AWT requires X11 , how to use xvfb (ubuntu 14.04)

久未见 提交于 2021-01-27 21:45:47
问题 I Have a java application that requires X11 DISPLAY variable, the exception I am getting is: Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) at java.awt.Window.<init>(Window.java:536) at java.awt.Frame.<init>(Frame.java:420) I've installed Xvfb on the ubuntu machine: root 1470 1469 0 02:40 pts/3 00:00:00 Xvfb :1 -screen 0 1152x900x8 But

Is there a way to open hdf5 files with the POSIX_FADV_DONTNEED flag?

隐身守侯 提交于 2021-01-27 20:35:50
问题 We are working with large (1.2TB) uncompressed, unchunked hdf5 files with h5py in python for a machine learning application, which requires us to work through the full dataset repeatedly, loading slices of ~15MB individually in a randomized order. We are working on a linux (Ubuntu 18.04) machine with 192 GB RAM. We noticed that the program is slowly filling the cache. When total size of cache reaches size comparable with full machine RAM (free memory in top almost 0 but plenty ‘available’

Jenkins can't reach Sonarqube

五迷三道 提交于 2021-01-27 19:41:38
问题 I am currently trying to get my Jenkins/Sonar integration to work. Here is what I have: Jenkins is working Sonarqube is working (reachable from webinterface) Ports are open However! I tried all possible settings, Jenkins insists that Sonarqube is Localhost:9000, no matter what I tell it (and even if, this should work too). This leads to following: and ultimately lets the build fail. What could I try to rectify this? 回答1: localhost:9000 is the default sonar qube url, regarding the official

fgets() and Ctrl+D, three times to end?

冷暖自知 提交于 2021-01-27 19:22:34
问题 I don't understand why I need press Ctrl + D for three times to send the EOF. In addition, if I press Enter then it only took one Ctrl + D to send the EOF. How Can I make the change so that only took one Ctrl + D then it can detect the EOF? #include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE 1024 int main(){ char buffer[BUF_SIZE]; size_t msgLength = 1; char *msg = malloc(sizeof(char) * BUF_SIZE); msg[0] = '\0'; printf("Message: "); while (fgets(buffer, BUF_SIZE, stdin)

Jenkins can't reach Sonarqube

若如初见. 提交于 2021-01-27 19:16:10
问题 I am currently trying to get my Jenkins/Sonar integration to work. Here is what I have: Jenkins is working Sonarqube is working (reachable from webinterface) Ports are open However! I tried all possible settings, Jenkins insists that Sonarqube is Localhost:9000, no matter what I tell it (and even if, this should work too). This leads to following: and ultimately lets the build fail. What could I try to rectify this? 回答1: localhost:9000 is the default sonar qube url, regarding the official