Questions tagged [ubuntu]

22279 questions
1

votes
1

answer
55

Views

ln command behaving mysteriously with Laravel Envoyer

I have a laravel project deployed to AWS. Recently I gave a thought about using Envoyer for zero downtime deployment. My project has an uploads directory where user uploads are added by code. Of course that's not added in git. So when envoyer deploys code I have to symlink my uploads folder to the...
Abhishek
1

votes
1

answer
4k

Views

Package 'libpng12-0' has no installation candidate Ubuntu 18.0.4 [closed]

I'm trying to install WPS office and it depends on libpng12-0 which I can't install due to 'Package 'libpng12-0' has no installation candidate '. I'm running Ubuntu 18.0.4 LTS.
mrefizzy
1

votes
1

answer
513

Views

How start start celery worker in Django project

I have a Django project with the directory structure mentioned below. I am trying to use Celery for running tasks in the background. I have facing some trouble while running the worker. Whenever I issue the following command, I get an error. Command $ celery -A tasks worker --loglevel=info From the...
arush1836
1

votes
2

answer
370

Views

vnc server cannot apply subscription

I installed VNC server on my Ubuntu 18.04 pc, however I cannot enable the cloud connectivity. As per the docs I need to run commands with sudo to start the VNC server in service mode. So I tried this command: sudo systemctl enable vncserver-x11-serviced.service But when I try to login to the VNC ser...
Baker Street
1

votes
2

answer
346

Views

VMWare Workstation Ubuntu 18.04 - Minikube: Error creating VM:

I'm attempting to run Minikube in a VMWare Workstation guest, running Ubuntu 18.04. kubectl version results in: Client Version: version.Info{Major:'1', Minor:'12', GitVersion:'v1.12.0', GitCommit:'0ed33881dc4355495f623c6f22e7dd0b7632b7c0', GitTreeState:'clean', BuildDate:'2018-09-27T17:05:32Z', GoVe...
cbll
1

votes
2

answer
52

Views

Cannot run jar on ubuntu with JFX

Good day, I am trying to run a program called graphdb-native-app-8.8.1-jfx.jar on a ubuntu virtual machine. I have the latest version of java installed, and have made sure JAVA_HOME is set to the correct java-version. java -version java version '11.0.2' 2019-01-15 LTS Java(TM) SE Runtime Environment...
Andrew Malcolm
1

votes
3

answer
142

Views

Linking OpenCV 4.1.0, include works, libs doesn't

After changing Ubuntu from 16.04 to 18.04 and OpenCV from 3.4.1 to 4.1.0 i can't compiled... anything Step by step: I downloaded source code from github, set those flags: cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules cmake -DENABLE_PRECOMPILED_HEADERS=OFF -...
Fidor
1

votes
2

answer
19

Views

VMWare Ubuntu warns me on no disk space, but GParted shows there is lots of space

I have a vmware ubuntu allocated with 300G of disk space, but recently I got a disk space warning. I run df -h as this: Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 797M 88M 710M 11% /run /dev/mapper/vgroot...
Felix Xu
1

votes
2

answer
23

Views

'Connection aborted.', ConnectionResetError(104, 'Connection reset by peer') using Selenium with ChromeDriver and Chrome through Python

The code below is executed in a loop, where 10-15 local .html files are opened and an image of each is saved as a .png. Ubuntu Server 16.04 ChromeDriver 2.41.578700 Google Chrome 74.0.3729.108 selenium 3.141.0 Python 3.6 The first two files are opened and the image is saved, however the rest re...
DreX
0

votes
0

answer
5

Views

Failed to load extension from . manifest file is missing or unreadable - no extension name

I am trying to run automated tests using Selenium Webdriver and webdrivermanager (bonigarcia). I am using Ubuntu + IntelliJ Idea. For Firefox, driver is starting without any issues. For Chrome I get the information: selenium webdriver failed to load extension from . manifest file is missing or unrea...
dudziakm
1

votes
2

answer
6.4k

Views

How to get the URL of page from WebDriver instance that opens in new window

I am doing automation using selenium. In a scenario when i click on the link from Page ABC, then it opens up the page DEF in a new window. Now, when i use the method driver.getCurrentUrl() then it gives me the URL of page ABC. But i need to check the URL of page DEF. Please help me what should i do.
vipin8169
0

votes
0

answer
4

Views

GHC sanity test doesn't work error in test 6

I've recently been trying to use haskell-stack, but whenever i try to do stack setup i get The GHC located at /root/.stack/programs/x86_64-linux/ghc- 8.2.2/bin/ghc failed to compile a sanity check. Please see: http://docs.haskellstack.org/en/stable/install_and_upgrade/ for more information. Excepti...
MS B
0

votes
1

answer
14

Views

How to fix mysql error with inserting data

I'm trying to input data into a mysql database, however I keep running into an error (1064). +-------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+------------------+------+-----+---------+...
MrGreen
0

votes
0

answer
15

Views

mysql lost data rows after reboot

I have an ubuntu server. I checked the server and I notice that had only 700mb of free hdd space so I restarted. I lost a few days of data in mysql and also I was unable to run apache and I had to installed apache again. The hard disk now have a lot of free space. Any of you know what can happen? T...
Andres Puebla
1

votes
2

answer
2.5k

Views

How can I login to Ubuntu via ssh and automatically sudo su? [closed]

From my Mac Terminal I can login via ssh to my various Ubuntu servers without entering a password. That's fine. But the work I do in Ubuntu requires me to have root access, so immediately after login I always execute sudo suwhich is an extra step and requires manually entering my password at that po...
Doug Lerner
0

votes
0

answer
3

Views

l2tp/ipsec connection problem in linux centos/ubunto - sending retransmit 1 of request message ID 0, seq 1

i need connect ipsec/l2tp in linux base os(cent os or ubunto) i do all config base this link but when i send command for coconnect have below output and cant connect strongswan up myvpn initiating Main Mode IKE_SA myvpn[3] to 185.167.72.26 generating ID_PROT request 0 [ SA V V V V V ] sending pack...
Mahdi Azadbar
0

votes
0

answer
4

Views

Unable to run my django&bootstrap site with Let's Encrypt on DO Ubuntu 18.04 with nginx and gunicorn

I am trying to launch a django website and I want to install and make sure https connection works with let's encrypt for my site. I followed DigitalOcean 'How To Secure Nginx with Let's Encrypt on Ubuntu 18.04' tutorial on https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let...
codelearner
1

votes
1

answer
4.2k

Views

How to change the prompt in oh my zsh and add hostname to it?

My oh my zsh prompt reads something like: tenant-application git:(beta-4-1) I want it to read something like: homestead tenant-application git:(beta-4-1) Or something similar where I can understand the hostname of the machine When I do echo $PROMPT, it says ${ret_status} %{$fg[cyan]%}%c%{$reset_co...
Rohan
1

votes
2

answer
2.1k

Views

Node.js how to set server environment PORT and NODE_ENV?

How do I set the server environment to a certain port? For instance, const app = require('express')() const isProd = (process.env.NODE_ENV === 'production') const port = process.env.PORT || 3000 I will always get false for isProd and 3000 for port I don't see the usefulness of these two lines and I...
laukok
1

votes
2

answer
3k

Views

How to boot up from CDROM(ISO image) to install the guest OS using virsh

UPDATE on Oct. 4th, 2017: See my answer below. The credit goes to DanielB as I wouldn't have solved the problem without Daniel's help, so I'll accept his answer instead of my own. I'm a novice in libvirt as well as system administration so excuse me if I'm asking stupid questions, though I've tried...
yaobin
1

votes
1

answer
2.1k

Views

Error running containers with docker-compose, error pulling images from my private repo in dockerhub

I have 3 images pushed on my private repository in docker hub. Locally, the way I've always run the 3 images is via docker-compose up -d, and it works. Now I'm trying to run this images in a different server so I pushed them in a private repository in docker hub. So in order to run them in the new...
magnoz
1

votes
2

answer
2.7k

Views

NPM install permission denied error using root user

So I've made a fresh installation of npm/node on my local machine using NVM using root user and everything looks fine, now my issue is when I tried to install using npm install --unsafe-perm -verbose command on my project folder error displays in my terminal. npm verb stack Error: Command failed: /u...
PenAndPapers
1

votes
2

answer
1.3k

Views

Ubuntu how to complete purge Visual Studio Code

I'm using VSC in Ubuntu 16.04 LTS and I want to complete uninstall it. So I've tryed theses commands: sudo apt-get remove code sudo apt-get purge code sudo apt-get update And everytime when I re-install I see my project that were open at my last use and I have all my plugins, my themes, keybinds.......
Delbo ar
1

votes
1

answer
63

Views

Why do quotes in shell scripts behave differently from quotes in shell commands?

I'm using WSL (Ubuntu 18.04) on Windows 10 and bash. I have a file filename.gpg with the content: export SOME_ENV_VAR='123' Now I run the following commands: $ $(gpg -d filename.gpg) $ echo $SOME_ENV_VAR '123'
Leo Jiang
1

votes
1

answer
42

Views

Why does a string type array doesn't take data when you overwrite the already stored values in the elements with input from keyboard?

I am trying to store values like '01' and '10' into an array but the int array would take '01' as '1'. Hence I decided to use string array.While declaring the string array, I initialized it with string array[n] = {0}; On compiling the code it shows an error saying : 'terminate called after throwing...
Sankalp
1

votes
4

answer
116

Views

Use python2.7 in venv where python3 is default python

I have python2.7, python3.7, python3.6 on my machine. I am still not sure how manage and see location of all three python version. Currently I just type python with version name to open that terminal or run script. I did python3.6 default by aliasing in ~/.bashrc. I have installed virtualenv using...
Jhon Patric
1

votes
1

answer
42

Views

Where does `mv file.sh /~` move the file? [closed]

I moved a file with mv file.sh /~ So I moved the file from the current directory to /~. However I have not idea what/where /~ is.
Felix Hohnstein
1

votes
5

answer
54

Views

One-liner in ubuntu/macos to print checksum of a file

Is there a short one-liner to get a file checksum, which works on both macos and ubuntu? It doesn't matter what algorithm or program, as long as I don't have to install or setup anything.
Filip Haglund
0

votes
1

answer
7

Views

Ubuntu - how to set clang as default compiler using update-alternatives

I use Ubuntu 18.04 and I have two gcc/g++ versions which are managed using update-alternatives: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 100 --slave /usr/bin/g++ g++ /usr/bin/g++-7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50 --slave /usr/bin/g++...
Irbis
1

votes
3

answer
66

Views

Compiler errors with incorrect use of nullptr

I am trying the solution provided in this SO Q/ACompiler error while using shared_ptr with a pointer to a pointer and I am not able to use the solution provided in a proper way. I still get compilation errors on Ubuntu 18.04 with g++ version 7.3 Here is my minimum complete verifiable example to repr...
gansub
1

votes
2

answer
7.1k

Views

mind mapping tool in linux [closed]

I want to do mindmaps which are of the quality of mindmeister that you could include picture and links etc and would be able to export it reasonably well and print it.
Shan
0

votes
0

answer
12

Views

AWS Ubuntu java.lang.ClassNotFoundException: Jama.Matrix

I am trying to run a mutation clustering algorithm described in https://tinyheero.github.io/2015/08/26/TrAp.html Running java -jar TrApWithDependencies.jar --text figure1.txt works fine on my laptop running windows 10, but not on AWS ubuntu. I would like to run it on my AWS instance because the algo...
DottedGlass
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

View additional questions