Questions tagged [ubuntu]

22247 questions
1

votes
0

answer
275

Views

cannot build tensorflow in Ubuntu 1604

My Env: Ubuntu 1604 Python 3.5.2 bazel 0.9.0 JDK 1.8.0_152 My problem: I have ran the command ./configure before built the tensorflow source code. But I till get following error: no such target '@local_config_git//:gen/spec.json': target 'gen/spec.json' not declared in package ...... Please speci...
YunFei
1

votes
1

answer
42

Views

FIFO with /dev/urandom

I got a problem. Trying to write a simple programm which forks once The parent proccess sends child bytes from /dev/urandom and child outputs them to screen (15 bytes in HEX per line). The problem is: when i first open the compiled programm the output looks like: B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0 B0...
DrJoe
1

votes
0

answer
336

Views

AMD GPU not recognised with OpenCL - Ubuntu

I'm trying to recognize my AMD FirePro W5100 GPU with OpenCl on Ubuntu 16.04. I'm using: AMD APP SDK 3.0 https://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/ GPU latest driver for Ubuntu 16.04 http://support.amd.com/en-us/download/workstation?os=Linux%20x86_64#pro-driver Running cl...
Izzy88
1

votes
0

answer
349

Views

Python 3.5.x multiprocessing throwing “OSError: [Errno 12] Cannot allocate memory” on a 74% free RAM system

I wrote a Python 3.5 application that spawns several processes using multiprocessing library. It runs on Ubuntu 16.04.3 LTS on a dedicated server machine that ships with 2 x Intel Xeon E2690 v1 (8 cores each) and 96GB of RAM. This system runs a PostgreSQL instance which is configured to use a maximu...
pietrop
1

votes
0

answer
314

Views

Node.JS: fs.readFile not working on Ubuntu

I'm trying to read some xml files, and when I test the code in my computer (OS X) it's working really good, without problems, but when I test the code in a Ubuntu 16 Server in DigitalOcean, I get nothing... I'm using fs.watch() and yes, it has nothing to be with the route because the program knows t...
CanKer DiAlike
1

votes
0

answer
69

Views

After changes in pam crontab stop working

I have made changes in : cat /etc/pam.d/common-session-noninteractive sudo vi /etc/pam.d/cron sudo vi /etc/security/limits.conf after rebooting system crontab stop working when I check syslog it shows below error: PAM (cron) illegal module type: ession cron[4936]: Permission denied
Sandesh Dumbre
1

votes
1

answer
75

Views

Ubuntu 16.04 server amd64 install failed

I created a bootable usb using etcher on Mac os. The PC I installed on is a Dell Inspiron with Windows 7 64bit. Installation fails at the select and install step. None of the packages are able to install, causing the install to abort. I was only able to install Ubuntu 16.04 i386. Which is not capabl...
Omar Vivar
1

votes
0

answer
83

Views

Redirect to specific port

I have a server where the web server is running on 1150 port and other services on few other ports like 1151, 1152 etc. Right now user has to add port in URL to access the web server. I want to redirect: abc.example.com abc.example.com:1150 http://abc.example.com https://abc.example.com http://abc....
Gaurav
1

votes
1

answer
42

Views

PIP is linked only to system environment

I'm using pyenv-virtualenv on Ubuntu 16.04 LTS. While I was installing imblearn package for my virtualenv using Python 3.5, I realized it was being installed on system environment which uses Python 2.7. I checked with pyenv version but it clearly returned that I was on my virtualenv. I opened a Pyth...
user8397275
1

votes
1

answer
289

Views

php is returning `500 Internal Server Error` instead of error reporting

PHP 7 on Ubuntu server 16 is always returning 500 Internal Server Error without error explanation or reporting when there is any error. I tried to use ini_set('display_errors', 1); error_reporting(~0); but still does not work! for example I removed ; from a working php file and I got 500 Internal S...
Sami Al-Subhi
0

votes
0

answer
6

Views

How to use rsynch to update a file remotely by ssh tunnel?

I am sending a file around couple of seconds to a remote machine. However I am trying to use rsynch in ubuntu to synch a file with that remote machine. But I wan the ssh connection to be open. And synch the file when edited. Can somebody help me out with this?
Edris
1

votes
1

answer
511

Views

Cannot install python-minimal on Ubuntu 17.10

I have been trying to install python-minimal on Ubuntu 17.10 but getting this error. sudo apt-get install python-minimal Reading package lists... Done Building dependency tree Reading state information... Done python-minimal is already the newest version (2.7.14-2ubuntu1). The following package was...
k3rn3l
1

votes
0

answer
130

Views

Best way to package kivy application for ubuntu

There is no info in the official doc of kivy for packaging kivy application for ubuntu. https://kivy.org/docs/gettingstarted/packaging.html I have tried this also but it didn't work for me. http://bitstream.io/packaging-and-distributing-a-kivy-application-on-linux.html I am having dependencies of p...
Prabhakar Jha
1

votes
0

answer
343

Views

Cross-compile from x86-64 Ubuntu to Windows with clang++

The program is as follows: #include int main() { } Everything goes OK if I use clang++ helloworld.cpp But when I try to cross-compile it for Windows I get an error: clang++ helloworld.cpp -target x86_64-win32 helloworld.cpp:1:10: fatal error: 'iostream' file not found #include ^ 1 error generated....
user9162106
1

votes
1

answer
61

Views

python: subprocess gives me different results while using sudo

I'm using python to do some tests and I get a very weird issue as below: First I have a simple bash script named 1.sh: #!/bin/sh echo 'NOTHING' Then I make such a python script named test.py in the same directory as below: #!/usr/bin/python import subprocess import os os.environ['PS4'] = 'aaa ' res=...
Yves
1

votes
0

answer
39

Views

How to find out if Tensorflow is built from binary or source?

Is there a way to find out if the version of Tensorflow installed on a computer is built from binary or source with Ubuntu 16.04?
Mark Sonn
1

votes
1

answer
18

Views

EC2 ubuntu : unable to access site from browser but able to access from EC2 ubuntu terminal

Below is my virtual host setup ServerAdmin ******.com ServerName ***.***.com ServerAlias www.***.***.com DocumentRoot /var/www/***.***.com/public_html Options Indexes FollowSymLinks AllowOverride All Required all granted When I do curl http://***.***.com/ from ec2 ubuntu terminal,it is printing the...
RIYAJ KHAN
1

votes
1

answer
644

Views

Rstudio server cannot find correct location of R installation (ubuntu)

I have R 3.4.0 installed to /home/ubuntu/software/R/R-3.4.0/bin, which is a 'non-standard' install location. I then installed rstudio server, and edited the rserver.conf file to include: rsession-which-r=/home/ubuntu/software/R/R-3.4.0/bin I thought this would be sufficient. At ip:8787 the rstudio s...
Garglesoap
1

votes
1

answer
132

Views

Code of Computer Graphics not compiled or installation failed

I followed instruction described http://www.cse.iitm.ac.in/~vplab/courses/CG/opengl_start.html that is as following - OpenGL (GLUT) on Linux (Ubuntu) Installation Install the following packages from the ubuntu repository: 1. freeglut3-dev 2. mesa-common-dev sudo apt-get install freeglut3 freeglut3...
1

votes
1

answer
632

Views

Setting user and password for Proxy in Ubuntu

Is there a way to configure Ubuntu proxy with a script so that web browser wont ask for username/password? I'm trying to change dynamically my proxy and I would like my web browser to follow my Ubuntu configuration. -> Chrome and Firefox keep asking for authentication. Here is my script #!/bin/bash...
SimonR
1

votes
0

answer
71

Views

darkflow calls wrong version of python

When trying to use yolo for python I followed https://github.com/thtrieu/darkflow I got flow installed using pip3 install . but then, when running flow --h I get File '/home/computername/.local/lib/python3.5/site-packages/darkflow/net/help.py', line 9, in import cv2 ImportError: No module named...
JMath
1

votes
1

answer
559

Views

python proxy in selenium firefox headless not working

I am using Ubuntu Server 17.04. I am trying to set my proxy into selenium. But it's not working. I am using proxy from https://stormproxies.com/. Basically only the ip i allowed it will be allowed to have proxy and then i have to use the ip that they give me to access it. So basically it's not anyth...
Omega
1

votes
1

answer
224

Views

Ubuntu SDK needs LXD

I need to create very simple GUI application in Linux. For this reason I have installed Ubuntu SDK on my Ubuntu 16. During first run it was trying to create LDX container. Why it needs this container? Got error below: Generating a client certificate. This may take a minute... If this is your first...
vico
1

votes
0

answer
38

Views

How can I block abusing Spigot PlugIns (Server run in Dockers)

I want to create Dockers on Ubuntu. The problem is that user can run plugins with code like these: public static void create() throws IOException { String path = '/'; String fname='test.cpp'; File fl=new File(path+fname); fl.createNewFile(); } This will create a file 'test.cpp' in the '/' direction...
Tristan Ochs
1

votes
0

answer
200

Views

mongod on Ubuntu 14.04LTS autostart on reboot

This is crazy - I've gone around-and-around on this. From the command line, I can call the following successfully: sudo service mongod --dbpath '/var/lib/mongodb' --auth I have tried at least a dozen variations of trying to get mongo to auto-start on boot with no success. I tried a script with the a...
Jolly
1

votes
0

answer
107

Views

Cannot properly configure ddns -> Apache -> local website

Good morning and thanks to all, I need help with something which has been bothering me for more than one day of trying: I cannot visit my local website (the website I am developing on localhost in my laptop) from an external ip. I get 'Error 500 - Connection refused' from any browser. I have a XUbu...
dpg
1

votes
1

answer
371

Views

Python-Selenium-Chromedriver gives ConnectionResetError on AWS-EC2 Ubuntu

I have an application using Selenium/Chromedriver, running chrome headlessly. On my local machine, it works perfectly. When trying to run on an AWS-EC2 instance of Ubuntu 16.04, I get an error each time; ConnectionResetError: [Errno 104] Connection reset by peer The outbound rules for the security...
SteveJ
1

votes
1

answer
548

Views

How to create a Docker image with Ubuntu 14.04 x86 architecture?

Here is my Dockerfile: From i386/ubuntu:14.04 RUN apt-get update RUN apt-get install -y git cmake ..... and other packages I created image using this Dockerfile and launched container from this image, and inside container I entered command uname -m and it gives this output: x86_64 So it means, that...
Vcvv
1

votes
0

answer
657

Views

Created a symbolic link to /usr/bin/clang++-5.0, but the link only compiles C files

Ubuntu 16.04, no GCC. Installed clang: sudo apt install clang-5.0 Created two links: sudo ln -s /usr/bin/clang-5.0 clang sudo ln -s /usr/bin/clang++-5.0 cclang Compile a simple C file, helloworld.c. Either clang or cclang works fine. Try to compile a C++ file: cclang helloworld.cpp Got errors. Sa...
Bin
1

votes
0

answer
222

Views

SSH Connect to AWS EC2 failed after using lets-encrypt update my website

Yesterday, I updated my Django website (on AWS EC2) to HTTPS by using lets-encrypt. Everything works well. The website has HTTPS green icon as expected. Today when I try to connect my instance by using SSH. The connection keep hunging. Finally, It give some message like 'ssh: connect to host ec2-34-...
Jeffery
1

votes
0

answer
55

Views

RStudio on Ubuntu server: Deploying library() as admin to load/attach package for all users

I'm trying to install and load/attach (the latter via library()) add-on packages in R as an admin in RStudio hosted on an Ubuntu server. I've been able to install the packages just fine, so that the user at most has to run library(package_name) when using the package for the first time. However, it...
Meg
1

votes
1

answer
350

Views

CartoDB installation on ubuntu 16.04 gdal compile error

I followed the installation steps in https://gist.github.com/azvoleff/f8f06d22a8a4d89401e09d6607a5ecc4 to install cartoDB to Ubuntu 16.04. everything is fine and installed correctly (although i used RVM instead of getting ruby's source code and compile it myself as suggested from the steps). but w...
userme
1

votes
0

answer
152

Views

Ubuntu 17.10., Eclipse Oxygen and Eclipse RCP App Developement

I recently moved from Ubuntu 14.10/ Eclipse Mars to Ubuntu 17.10/ Eclipse Oxygen. I am developing an Eclipse RCP application. With the new setup, the application fails to start: !MESSAGE Application error !STACK 1 java.lang.StackOverflowError at org.eclipse.swt.widgets.Display.sendEvent(Display.java...
kerner1000
1

votes
1

answer
91

Views

Error with AMPL script

here there is a AMPL script (TSP problem with costs) but I don't understand an error. Here the code: param n, integer, >= 3; /* number of nodes */ param MAX_TIME := 600; param MAX_X :=20; param maxspeed := 1; set CITIES := 1..n; /* set of nodes */ param p{CITIES}; param a{CITIES}; param b{CITIES}; s...
Davide
1

votes
0

answer
57

Views

espeak cannot work in rc.local (ubuntu)

I need to use espeak at the start of system. So I add the following command to /etc/rc.local espeak 'hello' >>/etc/start.log 2>&1 Howerver, it does't work and logs the following error: ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_op...
Scientific.RAT
1

votes
0

answer
14

Views

nginx.conf file load-balacing issue like user load

This is my nginx.conf default file but what i do when face more user load on nginx. what configuration add & edit in file?? how to face load-balcing issue? in ubuntu?nginxpleazz help to soul this issue user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 4096; use ep...
divyang.linux
1

votes
1

answer
209

Views

Error when login using service principal in Powershell on Linux

I have installed Powershell on Ubuntu 16.04 and trying to login using service principal. Get Credential:- $cred = Get-Credential -UserName $applicationId -Message 'Enter Password' PowerShell credential request Enter Password Password for user $applicationId: ******************...
Galet
1

votes
0

answer
528

Views

XAMPP - Object Not Found Error

I will apologize in advance and say that I am a complete noob to PHP, XAMPP, SQL, etc. I seem to be having great trouble fixing this issue. I have installed XAMPP on a Kali Linux distribution in VMWare. I am trying to migrate my website work to this from my Windows machine. I installed XAMPP on the...
Psych_Art
1

votes
0

answer
353

Views

Unable to install Artifactory 5.x on Ubuntu 16.04 with PPA - does not have a Release file

On a fresh Ubuntu 16.04, I am unable to install Artifactory5.x. I have followed the instructions from enter link description here and here is what I get: root# wget -c -O- 'https://bintray.com/user/downloadSubjectPublicKey?username=jfrog' | sudo apt-key add - ... 2018-01-12 10:27:05 (31.3 MB/s) - wr...
Maniankara
1

votes
1

answer
507

Views

Getting “gtk_settings_get_for_screen: assertion ‘GDK_IS_SCREEN (screen)’ failed” when running GTKmm program

I try to run program uses GTKmm library on Lubuntu 16.04 over x11vnc. When I start it in terminal, it throws to errors: (process:6981): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed (process:6981): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_I...
CreFroD

View additional questions