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.

Ubuntu is a free desktop and server operating system based on Debian GNU/Linux.

Note: 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 Stack Overflow.

Philosophy

The goal of the Ubuntu project is to provide a free computer environment, centered on a Linux distribution and complemented by online services. See Ubuntu's mission for full details.

Releases

The core of the Ubuntu 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.

Ubuntu 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 being (Jammy Jellyfish), released in April 2022. LTS releases get 5 years of full support (with additional support available), while non-LTS releases get 9 months.

Derivatives

Side projects of Ubuntu include:

  • 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

Common tasks

Related

60820 questions
189
votes
5 answers

Disable password authentication for SSH

I'm looking for a way to disable SSH clients from accessing the password prompt as noted here. I am unable to disable the password: prompt for root login. I have change the sshd_config file to read: ChallengeResponseAuthentication…
Matt Stokes
  • 4,618
  • 9
  • 33
  • 56
188
votes
17 answers

updating nodejs on ubuntu 16.04

I was recently going through the version of node in my ubuntu 16.04 when node -v command was used it shows me version 6.9.1 but when nodejs -v it shows 6.9.2 previously before using this commands npm update command was used. Now what's these…
ankur
  • 2,039
  • 2
  • 10
  • 12
188
votes
17 answers

Nginx: stat() failed (13: permission denied)

I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine. server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ##…
user299709
  • 4,922
  • 10
  • 56
  • 88
186
votes
8 answers

Colors with unix command "watch"?

Some commands that I use display colors, but when I use them with watch the colors disappears: watch -n 1 node file.js Is it possible to have the colors back on somehow?
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
184
votes
21 answers

How to count number of files in each directory?

I am able to list all the directories by find ./ -type d I attempted to list the contents of each directory and count the number of files in each directory by using the following command find ./ -type d | xargs ls -l | wc -l But this summed the…
user784637
  • 15,392
  • 32
  • 93
  • 156
182
votes
14 answers

How to show a GUI message box from a bash script in linux?

I'm writing a few little bash scripts under Ubuntu linux. I want to be able to run them from the GUI without needing a terminal window to enter any input or view any output. So far the only input required is a password for sudo - and gksudo handles…
Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
181
votes
11 answers

PHP Fatal error: Call to undefined function json_decode()

Apache is logging PHP Fatal error: Call to undefined function json_decode(). After some googling, it seems this problem is a result of not having the latest version of php. Oddly, running php --version ouputs PHP 5.5.1-2+debphp.org~precise+2 (cli)…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
178
votes
8 answers

How to download all files (but not HTML) from a website using wget?

How to use wget and get all the files from website? I need all files except the webpage files like HTML, PHP, ASP etc.
Aniruddhsinh
  • 2,099
  • 3
  • 15
  • 19
176
votes
12 answers

Renaming a virtualenv folder without breaking it

I've created folder and initialized a virtualenv instance in it. $ mkdir myproject $ cd myproject $ virtualenv env When I run (env)$ pip freeze, it shows the installed packages as it should. Now I want to rename myproject/ to project/. $ mv…
Riley Watkins
  • 3,453
  • 3
  • 25
  • 19
174
votes
16 answers

IntelliJ Idea Ctrl+Alt+Left shortcut doesn't work in Ubuntu

I am using IntelliJ Idea 2017.3 latest release in Ubuntu 2017.10 and shortcut Ctrl+Alt+Left/Right doesn't work. Whereas from menu Navigate -> Back/Forward works fine. Reference : https://www.jetbrains.com/help/idea/navigation-in-source-code.html
Samy
  • 2,387
  • 2
  • 17
  • 31
174
votes
12 answers

MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded"

My local environment is: fresh Ubuntu 16.04 with PHP 7 with installed MySQL 5.7 sudo apt-get install mysql-common mysql-server When I tried to login to MySQL (via CLI): mysql -u root -p I came across an cyclic issue with 3 steps. 1) First was…
Tomas Votruba
  • 23,240
  • 9
  • 79
  • 115
173
votes
3 answers

Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

Here's the console output: sergio@sergio-VirtualBox:~$ rvm list rvm rubies ruby-1.9.3 [ i386 ] sergio@sergio-VirtualBox:~$ rvm use 1.9.3 Using /usr/share/ruby-rvm/gems/ruby-1.9.3 sergio@sergio-VirtualBox:~$ ruby -v The program 'ruby' can be…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
171
votes
18 answers

How to upgrade AWS CLI to the latest version?

I recently noticed that I am running an old version of AWS CLI that is lacking some functionality I need: $aws --version aws-cli/1.2.9 Python/3.4.3 Linux/3.13.0-85-generic How can I upgrade to the latest version of the AWS CLI…
Borealis
  • 8,044
  • 17
  • 64
  • 112
170
votes
2 answers

How to clear all history in linux/ubuntu terminal or bash permanently?

When you use the up key in a Linux terminal, you can use previous commands again. Great feature. However, I started logging mysql into mysql with the sensitive details in the command. How can I delete that history permanently?
Frank Vilea
  • 8,323
  • 20
  • 65
  • 86
170
votes
4 answers

C++ error: undefined reference to 'clock_gettime' and 'clock_settime'

I am pretty new to Ubuntu, but I can't seem to get this to work. It works fine on my school computers and I don't know what I am not doing. I have checked usr/include and time.h is there just fine. Here is the code: #include #include…
naspinski
  • 34,020
  • 36
  • 111
  • 167