Questions tagged [ubuntu]

Ubuntu is a free desktop and server operating system based on Debian GNU/Linux. This tag is for programming questions specific to 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.

Questions concerning the use and administration of Ubuntu, running third-party applications, development, or services provided by Ubuntu may be better suited for Ask Ubuntu rather than StackOverflow.

Philosophy

The goal of the Ubuntu project is to provide a free computer environment, centered on a Linux distribution and complemented by online services.

Releases

The core of the distribution contains a -based desktop environment which is tightly integrated to the system, in particular providing a GUI for hardware management and system administration. The supported core also includes other desktop environments such as , although their integration is managed by side projects such as Kubuntu.

includes a small amount of non-free software such as drivers. Ubuntu offers a large amount of packages directly taken from Debian's unstable distribution, in the form of the universe repository.

There is a release of Ubuntu every six months: one in April and one in October. One in four is a long-term support (LTS) release. The latest LTS version of Ubuntu is (Bionic Beaver). It was released in April 2018 and is supported until April 2023.

Latest release: 20.04.1 LTS (Focal Fossa) released on August 2020

Derivatives

Side projects of Ubuntu include:

  • Edubuntu: for use in teaching.
  • Kubuntu: managing the integration of KDE into Ubuntu.
  • Ubuntu Studio: for multimedia production.
  • Xubuntu: managing the integration of Xfce into Ubuntu.
  • Lubuntu: managing the integration of LXDE into Ubuntu, focusing on speed and energy efficiency.

Documentation

Currently supported versions

Common tasks

Related

53906 questions
410
votes
4 answers

.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't run at login?
Hobhouse
  • 13,237
  • 12
  • 33
  • 42
408
votes
12 answers

Clear a terminal screen for real

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 life difficult when you are drowning in a tsunami…
Autodidact
  • 25,926
  • 15
  • 63
  • 81
401
votes
27 answers

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't figure out how to stop this server and start a…
Qcom
  • 16,009
  • 27
  • 82
  • 112
380
votes
20 answers

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/ directory, though. Writing npm --version shows…
Jatin
  • 13,582
  • 14
  • 46
  • 73
367
votes
44 answers

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 --skip-grant-tables & I would never get the…
dot
  • 11,828
  • 34
  • 79
  • 156
363
votes
20 answers

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 '\''Song.insert_latest'\''' It runs, but is this running…
Matt Elhotiby
  • 39,076
  • 79
  • 210
  • 312
359
votes
29 answers

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 gtx 960m gpu. When I import tensorflow this is the…
Tamim Addari
  • 6,271
  • 9
  • 37
  • 52
355
votes
7 answers

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

I'm new to 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 message: "No such file or…
AlexPandiyan
  • 3,667
  • 2
  • 12
  • 10
352
votes
8 answers

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 belong to, in order to assign permissions. I tried…
rfj001
  • 6,048
  • 6
  • 25
  • 42
346
votes
2 answers

Color picker utility (color pipette) in Ubuntu

I'am looking for a color picker utility on Ubuntu/Debian. Anything simple and easy to use.
leninzprahy
  • 4,117
  • 3
  • 15
  • 13
338
votes
16 answers

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
  • 3,663
  • 2
  • 10
  • 19
337
votes
36 answers

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/splash sudo docker run -p 8050:8050…
Umair Ayub
  • 13,220
  • 12
  • 53
  • 124
314
votes
18 answers

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 install npm sudo npm install -g grunt-cli Typing…
Rosamunda
  • 13,549
  • 8
  • 31
  • 60
313
votes
13 answers

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 command to have this repeat automatically.
Marty Wallace
  • 28,588
  • 50
  • 124
  • 189
308
votes
4 answers

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-interactive way? That is, write a script that can provide…
Venkat
  • 4,159
  • 4
  • 21
  • 19