Skip to main content

Questions tagged [ubuntu]

GENERAL UBUNTU SUPPORT IS OFF-TOPIC. Support questions may be asked at https://askubuntu.com/. Ubuntu is a free desktop and server operating system based on Debian GNU/Linux. This tag is for programming questions specific to Ubuntu.

Filter by
Sorted by
Tagged with
1362 votes
28 answers
3.7m views

How can I close some specific port on Linux? [closed]

How can I remove the port that some application/process has used it but didn't close the port? For example: when I run ssh on my ubuntu and tunnel the ssh connection on some port <PORT> on my ...
KavinduWije's user avatar
  • 41.9k
894 votes
30 answers
2.0m views

How to kill a process on a port on ubuntu [closed]

I am trying to kill a process in the command line for a specific port in ubuntu. If I run this command I get the port: sudo lsof -t -i:9001 so...now I want to run: sudo kill 'sudo lsof -t -i:9001' ...
Tampa's user avatar
  • 77.4k
868 votes
70 answers
2.7m views

Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?

I have applied every solution available on internet but still I cannot run Docker. I want to use Scrapy Splash on my server. Here is history of commands I ran. docker run -p 8050:8050 scrapinghub/...
Umair Ayub's user avatar
  • 20.6k
852 votes
15 answers
419k views

ImageMagick security policy 'PDF' blocking conversion

The Imagemagick security policy seems to be not allowing me perform this conversion from pdf to png. Converting other extensions seem to be working, just not from pdf. I haven't changed any of the ...
T. Zack Crawford's user avatar
737 votes
32 answers
705k views

Docker error : no space left on device

I installed docker on a Debian 7 machine in the following way $ echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list $ sudo apt-get update $ curl -sSL https://...
user_mda's user avatar
  • 19k
733 votes
8 answers
1.1m views

Docker - Ubuntu - bash: ping: command not found

I've got a Docker container running Ubuntu which I did as follows: docker run -it ubuntu /bin/bash however it doesn't seem to have ping. E.g. bash: ping: command not found Do I need to install ...
Snowcrash's user avatar
  • 84.4k
717 votes
37 answers
621k views

Delete all local git branches

I follow a development process where I create a new local branch for every new feature or story card. When finished I merge the branch into master and then push. What tends to happen over time due to ...
Louth's user avatar
  • 12.1k
660 votes
10 answers
1.1m views

How to install Boost on Ubuntu

I'm on Ubuntu, and I want to install Boost. I tried with sudo apt-get install boost But there was no such package. What is the best way to install Boost on Ubuntu?
k53sc's user avatar
  • 6,980
650 votes
13 answers
634k views

How to permanently add a private key with ssh-add on Ubuntu? [closed]

I have a private key protected with a password to access a server via SSH. I have 2 linux (ubuntu 10.04) machines and the behavior of ssh-add command is different in both of them. In one machine, ...
duduklein's user avatar
  • 10.4k
610 votes
31 answers
827k views

Where does PostgreSQL store configuration/conf files?

I have recently installed PostgreSQL on Ubuntu with the EnterpriseDB package. I can connect to the database locally, but I can't configure it because I can't find config files. I searched through ...
Timur Sadykov's user avatar
604 votes
34 answers
1.4m views

How to install the JDK on Ubuntu Linux

Note: This is an old question and the answers reflect the world as it was then. Modern Ubuntu distributions have OpenJDK available which can be installed with sudo apt install default-jdk I am ...
user2057084's user avatar
  • 6,119
587 votes
19 answers
433k views

Nginx no-www to www and www to no-www

I am using nginx on Rackspace cloud following a tutorial and having searched the net and so far can't get this sorted. I want www.mysite.example to go to mysite.example as normal in .htaccess for SEO ...
TheBlackBenzKid's user avatar
569 votes
10 answers
175k views

`require': no such file to load -- mkmf (LoadError)

I was trying to install rails on Ubuntu Natty Narwhal 11.04, using ruby1.9.1. I installed ruby using apt-get install ruby1.9.1-full which contains the dev package. I googled the error and all have ...
omars's user avatar
  • 8,604
545 votes
30 answers
840k views

How can I stop redis-server?

I apparently have a redis-server instance running because when I try to start a new server by entering redis-server, I'm greeted with the following: Opening port: bind: Address already in use I can'...
Qcom's user avatar
  • 18.9k
541 votes
10 answers
809k views

How to add users to Docker container?

I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user and a uwsgi user for these processes as well as a worker group that they will both ...
rfj001's user avatar
  • 8,268
525 votes
19 answers
259k views

Cannot install packages using node package manager in Ubuntu

NodeJS interpreter name(node) on Ubuntu has been renamed to nodejs because of a name conflict with another package. Here's what the readme. Debian says: The upstream name for the Node.js ...
Sayem's user avatar
  • 6,099
521 votes
2 answers
1.1m views

Lost httpd.conf file located apache [closed]

How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can't find my Apache config.
Shalin Shah's user avatar
  • 8,163
513 votes
8 answers
583k views

How to append one file to another in Linux from the shell?

I have two files: file1 and file2. How do I append the contents of file2 to file1 so that contents of file1 persist the process?
asir's user avatar
  • 13.2k
508 votes
13 answers
765k views

Adding a new entry to the PATH variable in ZSH

I'm using zsh terminal, and I'm trying to add a new entry (/home/david/pear/bin) to the PATH variable. I don't see a reference to the PATH variable in my ~/.zshrc file, but doing echo $PATH returns: /...
David Barreto's user avatar
485 votes
7 answers
202k views

.bashrc at ssh login

When I ssh into my ubuntu-box running Hardy 8.04, the environment variables in my .bashrc are not set. If I do a source .bashrc, the variables are properly set, and all is well. How come .bashrc isn'...
Hobhouse's user avatar
  • 16k
475 votes
54 answers
2.2m views

error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' -- Missing /var/run/mysqld/mysqld.sock

My problem started off with me not being able to log in as root any more on my mysql install. I was attempting to run mysql without passwords turned on... but whenever I ran the command # mysqld_safe ...
dot's user avatar
  • 15.4k
460 votes
12 answers
255k views

Clear a terminal screen for real [closed]

Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when you scroll using the mouse. This makes ...
Sandeep Datta's user avatar
455 votes
12 answers
298k views

How to install lxml on Ubuntu

I'm having difficulty installing lxml with easy_install on Ubuntu 11. When I type $ easy_install lxml I get: Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak....
Eric Wilson's user avatar
  • 58.9k
452 votes
25 answers
452k views

Yarn install command error No such file or directory: 'install'

I am installing sylius bundle and while install sylius I need to run yarn install So While I run the command: yarn install I get the error: ERROR: [Errno 2] No such file or directory: 'install'
Ricky ponting's user avatar
451 votes
21 answers
992k views

Running a cron every 30 seconds

Ok so I have a cron that I need to run every 30 seconds. Here is what I have: */30 * * * * /bin/bash -l -c 'cd /srv/last_song/releases/20120308133159 && script/rails runner -e production '\''...
Matt Elhotiby's user avatar
450 votes
32 answers
872k views

How to tell if tensorflow is using gpu acceleration from inside python shell?

I have installed tensorflow in my ubuntu 16.04 using the second answer here with ubuntu's builtin apt cuda installation. Now my question is how can I test if tensorflow is really using gpu? I have a ...
Tamim Addari's user avatar
  • 7,761
449 votes
13 answers
313k views

How do I escape spaces in path for scp copy in Linux?

I want to copy a file from remote to local system. Now I'm using scp command in linux system. I have some folders or files names are with spaces, when I try to copy that file, it shows the error ...
AlexPandiyan's user avatar
  • 4,605
441 votes
19 answers
449k views

How to install python3 version of package via pip on Ubuntu?

I have both python2.7 and python3.2 installed in Ubuntu 12.04. The symbolic link python links to python2.7. When I type: sudo pip install package-name It will default install python2 version of ...
kev's user avatar
  • 159k
404 votes
28 answers
588k views

nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

All of a sudden I am getting the below nginx error * Restarting nginx * Stopping nginx nginx ...done. * Starting nginx nginx nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) ...
Tampa's user avatar
  • 77.4k
394 votes
20 answers
1.2m views

How to find which version of TensorFlow is installed in my system?

I need to find which version of TensorFlow I have installed. I'm using Ubuntu 16.04 Long Term Support.
Hans Krupakar's user avatar
390 votes
22 answers
241k views

nodejs vs node on ubuntu 12.04

I installed nodejs on ubuntu from instructions given here When I write node --version in the terminal I see this : -bash: /usr/sbin/node: No such file or directory I can see node in the /usr/sbin/ ...
Jatin's user avatar
  • 14.2k
384 votes
2 answers
225k views

Color picker utility (color pipette) in Ubuntu [closed]

I'am looking for a color picker utility on Ubuntu/Debian. Anything simple and easy to use.
leninzprahy's user avatar
  • 4,743
374 votes
10 answers
841k views

How do I install the OpenSSL libraries on Ubuntu?

I'm trying to build some code on Ubuntu 10.04 LTS that uses OpenSSL 1.0.0. When I run make, it invokes g++ with the "-lssl" option. The source includes: #include <openssl/bio.h> #include <...
Daryl Spitzer's user avatar
367 votes
22 answers
383k views

Cannot install NodeJs: /usr/bin/env: node: No such file or directory

I'm trying to install nodeJs into my Ubuntu 14.04 in order to use GruntJs. I've read about Ubuntu different way of doing it (issues?), so this is what I've done in order to install it: sudo apt-get ...
Rosamunda's user avatar
  • 14.9k
367 votes
28 answers
779k views

How do I SET the GOPATH environment variable on Ubuntu? What file must I edit?

I am trying to do a go get: go get github.com/go-sql-driver/mysql and it fails with the following error: package github.com/go-sql-driver/mysql: cannot download, $GOPATH not set. For more details ...
David Saintloth's user avatar
358 votes
33 answers
632k views

"git submodule update" failed with 'fatal: detected dubious ownership in repository at...'

I mounted a new hard disk drive in my Linux workstation. It looks like it is working well. I want to download some repository in the new disk. So I execute git clone XXX, and it works well. But when I ...
Huihua Jiang's user avatar
  • 3,689
341 votes
13 answers
379k views

Repeat command automatically in Linux

Is it possible in Linux command line to have a command repeat every n seconds? Say, I have an import running, and I am doing ls -l to check if the file size is increasing. I would like to have a ...
Marty Wallace's user avatar
334 votes
32 answers
723k views

After installing with pip, "jupyter: command not found"

After installing with pip install jupyter, terminal still cannot find jupyter notebook. Ubuntu simply says command not found. Similar with ipython. Did pip not get install properly or something? ...
john mangual's user avatar
  • 8,048
324 votes
42 answers
953k views

Docker Error bind: address already in use

When I run docker-compose up in my Docker project it fails with the following message: Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use netstat -pna | grep 3000 ...
Ngoral's user avatar
  • 4,624
314 votes
4 answers
150k views

Install MySQL on Ubuntu without a password prompt

How do I write a script to install MySQL server on Ubuntu? sudo apt-get install mysql will install, but it will also ask for a password to be entered in the console. How do I do this in a non-...
Venkat's user avatar
  • 4,279
308 votes
8 answers
320k views

sh: 0: getcwd() failed: No such file or directory on cited drive

I am trying to compile ARM code on Ubuntu 12.04 (Precise Pangolin). Everything is working fine when I put the code in the local directory. But when I put the code in the cited mount directory, an ...
CrazyKitty Rotoshi's user avatar
307 votes
8 answers
335k views

What is makeinfo, and how do I get it?

I'm trying to build GNU grep, and when I run make, I get: [snip] /bin/bash: line 9: makeinfo: command not found What is makeinfo, and how do I get it? (This is Ubuntu, if it makes a difference)
mike's user avatar
  • 48.5k
305 votes
13 answers
226k views

Eclipse cannot load SWT libraries

Every time I try to open Eclipse in Ubuntu 12.04 I get an Unsatisfied Link Error and it will not open. I have recently installed the java JDK and Android SDK, could this be the problem? I followed ...
TomRichardson's user avatar
300 votes
31 answers
227k views

set up device for development (???????????? no permissions)

I am using a Samsung galaxy nexus phone (Android 4.0 platform) . I am developing Android app on Ubuntu linux OS. I would like to run my application directly on the Samsung handset device, so I ...
Leem.fin's user avatar
  • 42k
300 votes
17 answers
400k views

Allow docker container to connect to a local/host postgres database

I've recently been playing around with Docker and QGIS and have installed a container following the instructions in this tutorial. Everything works great, although I am unable to connect to a ...
marty_c's user avatar
  • 6,209
296 votes
3 answers
125k views

Window appears off screen on ubuntu [closed]

I have a dual monitor setup, and I am using Ubuntu 12.04 LTS I have changed the positioning of the monitors several times, and now for some reason some of the windows open up off-screen (outside of ...
Mladen Danic's user avatar
  • 3,659
294 votes
6 answers
496k views

How to run cron job every 2 hours? [closed]

How can I write a Crontab that will run my /home/username/test.sh script every 2 hours?
Vignesh's user avatar
  • 8,459
290 votes
25 answers
684k views

Unable to set default python version to python3 in ubuntu

I was trying to set default python version to python3 in Ubuntu 16.04. By default it is python2 (2.7). I followed below steps : update-alternatives --remove python /usr/bin/python2 update-alternatives ...
RejeeshChandran's user avatar
289 votes
45 answers
470k views

Getting permission denied (public key) on gitlab

My problem is that I can't push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push : Permission denied (publickey) fatal : Could not read from ...
Alexandre Fernandes Bartolomeu's user avatar
287 votes
7 answers
914k views

How can I completely uninstall nodejs, npm and node in Ubuntu [closed]

The Question is similar to How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) but for Ubuntu, and just for uninstalling. Installation was done by: sudo apt-get install node ...
lpares12's user avatar
  • 3,915

1
2 3 4 5
1224