Questions tagged [ubuntu]

Ubuntu Linux is a Debian derivative that aims to bring Linux mainstream. Questions on this site should generally refer to Ubuntu Server. Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.

Ubuntu Linux is a Debian derivative that aims to bring Linux mainstream. Ubuntu is named after the South African philosophy of "humanity towards others," and the community observes a Code of Conduct in an effort to keep the project civil and appealing to novices.

Ubuntu versions are released every six months, following a YEAR.MONTH pattern. For example, the release codenamed Maverick was officially published October 10th 2010 as Ubuntu 10.10. Each release gets the software from the Debian Unstable repository, freezes it and fix and adapt it to Ubuntu philosophy.

A list of Ubuntu releases can be found here

Ubuntu Linux is backed by Canonical Ltd., a company founded and funded by South African Mark Shuttleworth, entrepreneur and Debian Developer. The focus of Canonical is to provide support and services to Ubuntu Linux Desktop and Server editions. Canonical employers sometimes develop to Ubuntu and Debian at the same time, that way keeping the contributions flowing back to Debian.

There is a Stack Exchange site dedicated to Ubuntu which is a good place to ask any Ubuntu-related questions.

16409 questions
69
votes
9 answers

Unknown/unsupported storage engine: InnoDB | MySQL Ubuntu

I recently upgraded from the previous LTS Ubuntu to Precise and now mysql refuses to start. It complains of the following when I attempt to start it: ╰$ sudo service mysql restart stop: Unknown instance: start: Job failed to start And this shows in…
Garrett
  • 823
  • 1
  • 7
  • 8
69
votes
11 answers

How do I check if Log4j is installed on my server?

I have read about security vulnerabilities related to Log4j. How do I check if Log4j is installed on my server? My specific servers use Ubuntu 18.04.6 LTS. I have installed many third-party packages and maybe some of them contain it. Is there a…
Uri
  • 881
  • 1
  • 9
  • 16
66
votes
6 answers

Straight forward way to run ssh-agent and ssh-add on login via SSH?

I'm trying to have the following commands be auto-executed when I login to my server via ssh: ssh-agent /bin/bash ssh-add ~/.ssh/id_rsa My ssh key has a passphrase and I'm fine with entering it once per login. I tried putting this in my .bashrc…
Click Upvote
  • 855
  • 2
  • 8
  • 12
64
votes
9 answers

Deleting All Partitions From the Command Line

How do you delete all partitions on a device from the command line on Linux (specifically Ubuntu)? I tried looking at fdisk, but it presents an interactive prompt. I'm looking for a single command, which I can give a device path (e.g. /dev/sda) and…
Cerin
  • 3,600
  • 19
  • 61
  • 79
63
votes
4 answers

Purpose of Debian "sites-available" and "sites-enabled" directories?

Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian? /etc/apache2/sites-enabled /etc/apache2/sites-available I notice that diffing sites-available/000-default and sites-enabled/default shows they are…
aaaidan
  • 732
  • 1
  • 5
  • 8
63
votes
7 answers

What permissions are needed to write a PID file in /var/run?

On Ubuntu: touch: cannot touch `/var/run/test.pid': Permission denied I am starting start-stop-daemon and like to write the PID file in /var/run start-stop-daemon is run as my-program-user /var/run setting is drwxr-xr-x 9 root root I like to…
s5804
  • 755
  • 1
  • 6
  • 8
62
votes
5 answers

How can I check /dev/xvda1?

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof shows jbd2/xvda 172 root cwd …
user1836587
  • 723
  • 1
  • 6
  • 4
62
votes
2 answers

debian packages version convention

I'm using debian/Ubuntu, and get confused about versions of packages. When using dpkg -l command, I get: ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - enhanced vi editor ii vim-common …
cizixs
  • 923
  • 2
  • 8
  • 11
62
votes
5 answers

How do you use apt-get to only install critical security updates on ubuntu?

How do you use apt-get to only install critical security updates on ubuntu? We'd like to only upgrade packages that need to be upgraded for security reasons, without upgrading all other packages.
readonly
  • 3,359
  • 4
  • 26
  • 23
62
votes
5 answers

associate name with ip for ssh?

Let's say I just have an ip address for a server and I don't have a domain with it (it's just a database server, so it doesn't need a domain). I don't want to have to remember the ip address every time, so is there a way I could still use the syntax…
Matthew
  • 1,859
  • 4
  • 22
  • 32
61
votes
7 answers

How to convert 'dmesg' time format to 'real' time format

I have (for example) this log entry in dmesg output: [600711.395348] do_trap: 6 callbacks suppressed Is there a possibility to convert this 'dmesg' time to 'real' time to know, when this event happend?
Jan Marek
  • 2,180
  • 1
  • 13
  • 14
60
votes
7 answers

adding password to .ssh/config

I'm using ubuntu 12.04. I'm using ssh for connecting to many servers daily, so I put their parameters in .ssh/config file; like this : Host server1 User tux Port 2202 HostName xxx.x.xx.x I know we should use key-pair ensure security, however…
Ajo Augustine
  • 1,262
  • 4
  • 16
  • 21
60
votes
2 answers

Where are the logs for ufw located on Ubuntu Server?

I have an Ubuntu server where I am blocking some IPs with ufw. I enabled logging, but I don't know where to find the logs. Where might the logs be or why might ufw not be logging?
blockhead
  • 861
  • 1
  • 8
  • 13
59
votes
1 answer

Can't enter the letter 'e' over ssh

Right now I am experiencing some very, very weird behaviour on a Ubuntu 14.04.2 LTS server I am managing. Connecting to the server over ssh either from cygwin(mintty) or a terminal on a Linux machine, I can't type the letter e. I have done the…
Zulakis
  • 4,153
  • 14
  • 48
  • 76
59
votes
3 answers

Soft limit vs Hard limit?

Can anyone explain in layman's terms what the difference between soft and hard limit is? Should I set my soft and hard limit to be the same? Or should soft be significantly lower? Does the system benefit either way?
kidcapital
  • 847
  • 2
  • 8
  • 10