Questions tagged [ubuntu]

16218 questions
1

votes
2

answer
3.1k

Views

Webstorm cannot recognize node Express both on Windows and Ubuntu

environment: Webstorm v10.0.4 Node.js v0.12.5 Windows 8.1 Ubuntu 14.04 Just as the image showing below, on the pannel of creating 'Node.js Express App', Webstorm only finds Node and npm, but can not recognize Express. Of course Express is installed globally, and I can create a Express project via...
Honghe.Wu
1

votes
2

answer
7.3k

Views

C - Creating endless socket connection between server and client (Linux)

I have a simple socket program created in C (using Ubuntu), the connection works fine, server compiles and client provides the IP and port number. But when the connection is established, the client can only send one message and then the connection closes. When the client sends the message, the serve...
hassanyf
1

votes
2

answer
1.7k

Views

How to rename files by creation date in OSX?

I'm looking to create a solution to rename files by the creation date yy-mm-dd and not the actual date for Mac and Ubuntu. I already know how to create an app with AppleScript and call it hourly with launchd and Ubuntu use a CRON job when files are sent to the repo for storage that do not have the...
Gʀɪᴍ
1

votes
1

answer
1.7k

Views

EC2: Unable to rvm install ruby

I am following this tutorial and am stuck at trying to install ruby using rvm (scroll down to see the command in the link) I have searched online for a variety of solutions but nothing seems to work. How can I resolve the issues below? rvm install ruby Searching for binary rubies, this might take s...
RPV
0

votes
0

answer
17

Views

Cannot install php7.2-fpm on the latest Ubuntu “18.04.2 LTS (Bionic Beaver)”

It looks like PHP 7.2 now comes out of the box on Ubuntu 18.04 but there are 2 versions: 7.2.3-1ubuntu1(base) and 7.2.15-0ubuntu0.18.04.1(security). When I try run apt install php7.2-fpm I get: # apt install php7.2-fpm Reading package lists... Done Building dependency tree Reading state information....
Costas
0

votes
1

answer
77

Views

Tomcat8 failing to start in Ubuntu 16.04 in VirtualBox Vagrant on Windows Host

I'm not super familiar with vagrant and have an image for Ubuntu 16.04 with an ansible script that sets up and runs a tomcat8 server application. I went to set it up on a Windows host, and the tomcat service fails to start every time. The result of running the ansible playbook is: TASK [Restart tomc...
TJ_
3

votes
1

answer
74

Views

Errors packaging app for android using ubuntu and buildozer

PREREQUISITES I'm trying to figure out how to package python apps using buildozer. After wasting many hours attempting to do so I've reached a point where I've got stuck, here's a little summary of the steps I've followed: Downloaded ubuntu16.04 x64 .vdi, extracted and run with virtualbox. sudo apt-...
BPL
1

votes
2

answer
1.5k

Views

tkinter button doesn't accept height parameter

i have a tkinter button, and for some reason it accept width=xx, but not height=xx i'm using python3.5, with tkinter support by default, on ubuntu 16.04 here's the code sample: # works: button_enter = ttk.Button(self.frm, text='ok', width = 100) # works: button_enter.config(width=25) # fails: butto...
freeaks
0

votes
0

answer
10

Views

Database drop: command not found Informix on Ubuntu

I am trying to run a source code to edit a database in Informix with the following line: drop table if exists tablename; However I got an error message: drop: command not found I am trying to run a source code to edit a database in Informix with the following line: drop table if exists tablename; Ho...
inp.kez
1

votes
2

answer
2k

Views

Where is the BASEDIR for MySQL installed with APT on Ubuntu?

According to the MySQL document, 2.10.1 Initializing the Data Directory: Change location into the top-level directory of your MySQL installation, represented here by BASEDIR: shell> cd BASEDIR BASEDIR is likely to be something like /usr/local/mysql or /usr/local. The following steps assume that you...
nalzok
1

votes
2

answer
782

Views

Getting connection refused when trying to connect to a tcp server with python

I've written two programs according to a guide on sockets in python. I'm using a rasbperry pi 3 as a client, and a regular linux ubuntu computer as a server. this is the server software: import socket import sys sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_address = ('localhost',...
1

votes
1

answer
672

Views

lower_case_table_names=1 on Ubuntu 18.04 doesn't let mysql to start

I have installed mysql community server 8.013 on ubuntu 18.04 and I have the following issue. I want to set lower_case_table_names=1 in order to have case insensitive table names in my db. I edited /etc/mysql/mysql.conf.d/mysqld.cnf and added the following line under [mysqld] lower_case_table_names=...
Christoph Adamakis
1

votes
1

answer
18

Views

How to apt install python-pybind11?

I see form my project document that I need to install python-pybind11 by using sudo apt -y install python-pybind11 but I got error like this: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-pybind11 I'm not sure if python-p...
Feilix Xu
4

votes
0

answer
15

Views

PHP Startup: Unable to load dynamic library for PHP folder

I already refered the link, PHP5 similar issue and tried all relevant solutions but I'm still getting following issues. Any help is appreciated. Thanks ! PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/msql.so' - /usr/lib/php/20131226/msql.so: cannot open shared obj...
Azhar Bandri
4

votes
2

answer
144

Views

Started container with docker run, now it is not showing up in docker ps -a

I started a docker container with docker run, like this: docker run \ -d \ --name plex \ --restart unless-stopped \ --network=host \ -e TZ="" \ -e PLEX_CLAIM="" \ -v :/config \ -v :/transcode \ -v :/data \ plexinc/pms-docker Link to GitHub.com/plexinc/pms-docker The docker container is running, as I...
Tomas Jacobsen
4

votes
0

answer
138

Views

Debugging DNS resolutions in kubernetes

I have initialized kubernetes v1.13.1 cluster on Ubuntu 16.04 using below command: sudo kubeadm init --token-ttl=0 --apiserver-advertise-address=192.168.88.142 and installed weave using: kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" I have...
S Andrew
1

votes
2

answer
847

Views

Bash script to disable root login

I'm trying to automate as much as possible in the deployment of servers, the overall goal is to login as a user, upload a bashscript and have it configure my server how I need it configured. To start I'm trying to disable root login, I know I have to edit /etc/ssh/sshd_config to PermitRootLogin no...
nadermx
1

votes
1

answer
988

Views

Ubuntu 16.04/Django - gunicorn - Worker failed to boot

I'm deploying Django project on Digital Ocean Ubuntu 16.04 VPS. I used one-click-install of Django and then replaced with my project. The problem is that server returns 502 Error. EDIT: There is no realestate_scanner.sock inside /home/django/realestate_scanner/ dir Do you know where is the problem?...
Milano
1

votes
1

answer
2.7k

Views

Docker: Error response from daemon: invalid volume specification: ubuntu

I have the following issue when I run the command docker run -v $(pwd):opt -p 8080:8080 -it synedra/hapi_api: docker: Error response from daemon: invalid volume specification: '/home/joasimar/trai/new:opt': invalid mount config for type "bind": invalid mount path: 'opt' mount path must be absolute....
1

votes
2

answer
2.2k

Views

Unable to locate package msodbcsql

I'm trying to install mssql driver on Ubuntu 16.04 using this guidance. When I get into the step : sudo ACCEPT_EULA=Y apt-get install msodbcsql I got an error : Unable to locate package msodbcsql What step did I miss? Thanks in advance.
Samuel
1

votes
1

answer
73

Views

Individual instances works but array shows memory corruption

I am facing a weird problem, which is related to arrays in C++. Basically, I made two instances of a class, and later I used these instances, which caused memory corruption error. The code works if I make individual two instances of this class without using array at all. Please see the code snippet...
Ravi Joshi
0

votes
0

answer
2

Views

OpenDKIM not signing mails

I know this is a common problem. But none of the existing threads could help me. I am currently setting up OpenDKIM for a mailing list. I have followed a tutorial on DigitalOcean (https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy) but f...
Daniel Eckhoff
1

votes
2

answer
847

Views

Qt and OpenSSL incompatible version on Ubuntu

I am having issues trying to make QNetwork classes work with Qt5.11.1 on Ubuntu 18.04 I have openssl 1.1.0g and libssl-dev installed on my system. The openssl version used by Qt is 1.0.2k. I have checked with QSslSocket::sslLibraryBuildVersionString(). Plus QSslSocket::supportsSsl() returns false. I...
guillaumegoui
1

votes
1

answer
86

Views

Docker running the containers and modifying environment settings

Set up is on a Ubuntu 18.10 x64 Trying to set up a set up a Laravel, Nginx, and MySQL droplet with Docker Compose, with this tutorial docker tutorial and I get all the way to step 8 in the tutorial where it asks me to run this command $ docker-compose exec app nano .env and it gives me an error of...
whisk
1

votes
1

answer
5.6k

Views

is my 8080 being listened?

I run the following command on ubuntu 10.10. Could anyone tell me what does the result mean? [email protected]:~$ netstat -nao | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN off (0.00/0/0) tcp6 0 0 127.0.0.1:8005 :::*...
Ziyang Zhang
0

votes
0

answer
12

Views

Jar can't find main class in Ubuntu but can in Windows

I've built jar with Maven. On Windows it runs perfectly, by double click or from terminal. On Ubuntu server it throw an error: "Could not find or load main class ***", meanwhile in jar this class exists at the needed place. Windows use JDK 1.8.0-161, Ubuntu - OpenJDK 64 9-internal. Is there somethin...
A.Sergey
0

votes
1

answer
11

Views

How to Upgrade OpenCV to Specific Version Using Pip?

I want to install OpenCV 3.4.0 on Ubuntu 16.04. I tried to build from source following tutorial on internet but run to this problem: ImportError: /home/ivan/.virtualenvs/cv/lib/python3.5/site-packages/cv2.so: undefined symbol: _ZTIN2cv3dnn19experimental_dnn_v35LayerE So I decided to just upgrade Ope...
gameon67
0

votes
0

answer
4

Views

unable to find valid certification path to requested target. No security certificates are applied and yet I get this error. Why?

A test build of a jdk10 app is deployed on a machine. No SSL certificate is applied. This is a fresh set up. And yet I get below error when I try to run the app. Database and app are on the same machine. So is tomcat/nginx etc. Caused by: sun.security.validator.ValidatorException: PKIX path building...
Dhiraj
2

votes
2

answer
98

Views

virtualenv creates directory called 'local' on Ubuntu

If I create a virtualenv with Ubuntu 18.04, then a directory called local gets created. virtualenv test-env cd test-env ls -l local/ Output: lrwxrwxrwx 1 foo foo 30 Jan 30 10:47 bin -> /home/foo/tmp/test-env/bin lrwxrwxrwx 1 foo foo 34 Jan 30 10:47 include -> /home/foo/tmp/test-env/include lrwxrwxrw...
guettli
1

votes
3

answer
1.4k

Views

tcmalloc not working on ubuntu using -ltcmalloc_minimal

I installed tcmalloc on Ubuntu 14.0 using apt-get install libtcmalloc-minimal4 I did following steps: ln -s libtcmalloc_minimal.so.4.1.2 libtcmalloc_minimal.so linked my executable with -ltcmalloc_minimal After running the code, I can not see any performance difference. I tried to run with HEAPCHEC...
komal dedhia
0

votes
1

answer
11

Views

Environment Variable cannot be found in docker container

I'm trying to setup a docker container on a Ubuntu server for a discord bot. I have run the following on the Ubuntu server: export DISCORD_TOKEN = "*****" sudo docker run --env DISCORD_TOKEN me/my-docker-repo In the bot code I have: import os TOKEN = os.environ['DISCORD_TOKEN'] when the container i...
KGB33
1

votes
2

answer
1.4k

Views

Difference between DBus and other Interprocess Communications method

When i studied about Linux interprocess Communications, i have known there were some method as: pipe, message queue, socket, signal, shared memory, semaphore and there is no method named Dbus. But today, when i research about Dbus, i read that: "D-Bus is a system for interprocess communication (IPC)...
Viet
1

votes
1

answer
350

Views

How to make sed -i work in both Mac and Ubuntu?

I am working in both Mac and Ubuntu, so I want to make my script work in both Mac and Ubuntu, but sed -i works differently in these two system: In Ubuntu, it should be: sed -i'' 's/Alt/Dog/g' /tmp/example.txt In Mac, it should be: sed -i '' 's/Alt/Dog/g' /tmp/example.txt
roger
1

votes
2

answer
4.4k

Views

How to install the Jinja2 template engine for a specific version of Python when a few are available on the system?

Ubuntu ships with a few different versions of Python out of the box. When I type python in the terminal window and press Tab, I get this: python python2.7 python3.4 python3m python2 python3 python3.4m So, if I want my code to be run under Python version 3, I would issue the foll...
0

votes
0

answer
4

Views

Error: validation failed: no matches for kind “EtcdCluster” in version “etcd.database.coreos.com/v1beta2”

kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-node-mnfg4 2/2 Running 0 6d18h kube-system calico-node-v6ldm 2/2 Running 2...
Kevin Riordan
1

votes
1

answer
278

Views

Running a Capistrano deployment task with AWS user-data

My scenario : I have an AMI with a deploy/ folder that contains the capistrano files that I use to deploy a production application on localhost I was planning to use a user-data script from an Autoscaling group, to deploy the most recent version of the server each time the group scales up and spawns...
1

votes
1

answer
1.2k

Views

CakePHP Connection Refused in Browser

I'm working on setting up/learning CakePHP for the first time and I am struggling to figure out why I cannot reach my server over the default port 8765. I like to develop on an ubuntu machine and work on the code remotely. The server is hosted on a vm on my local machine, but i am referring to it as...
Allen Butler
1

votes
1

answer
23

Views

Automatically run graphical python script on startup in ubuntu

I have a python script that starts a fullscreen animation when run - how do i set this to start at startup in ubuntu 16.04? Other answers to the "script on startup" problem don't work - because I'm assuming they're executed before the desktop environment has a chance to start up... I have a script c...
Robbie Barrat
1

votes
0

answer
6

Views

Replace part of line with different text from another file line by line

Im trying to solve the problem with that, but i can just replace the whole string instead of just part That's what i have so far: cat mock.txt | sed -i -e '/mock/{R/dev/stdin' -e 'd;}' test{1..500}.txt I want to replace the part of lines matching a pattern from the lines in order from another file,...
Pursentiy
11

votes
1

answer
649

Views

Output data type of sizeof() operator

I am using Ubuntu 16.04.5 and GCC version 5.4.0. I was playing with sizeof() operator, wrote the code below: #include int main(int argc, char *argv[]){ long int mylint = 31331313131.1313; printf("size of long int is %d\n", sizeof(mylint)); printf("size of long int is %d\n", sizeof(long int)); retur...
Adhamzhon Shukurov

View additional questions