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.

learn more… | top users | synonyms (2)

15
votes
1answer
6k views

Can I have two versions of the same package in an apt repository?

I'm running Ubuntu 10.04 across my entire environment. To make code deploys easier, we are implementing a private apt repository where we can deploy builds of our code. One of the requirements of ...
15
votes
2answers
5k views

How can I get Jenkins to stop listening for remote connections?

I have Jenkins sitting behind Nginx, with Nginx taking care of authentication, but Jenkins is still listening on port 8080 externally, so by accessing the box on port 8080 people can bypass Nginx. ...
15
votes
2answers
7k views

How to start setting up a VPN server for smart phone clients?

I have a Ubuntu Lucid Lynx VM which I've been tinkering with. I want to set up a VPN and I am happy to learn how to do it on my own but the vastness of options makes my head spin, so I'm just looking ...
14
votes
17answers
48k views

Shell Command for Getting IP Address?

Is there a bash command to find the IP address for an Ubuntu box? I need to find the IP address so I can ssh into the machine later.
14
votes
4answers
2k views

Is there a downside to installing VNC?

We have an Intel NUC in my university's language department that will soon host a web application used by faculty and students in the department. The NUC runs Ubuntu (14.10). I'm comfortable with the ...
14
votes
4answers
30k views

Ubuntu Server - How Do I Request a new IP From my DHCP Server?

I know there is a simple command for this, but how do I tell my ubuntu server instance to request a new IP address from the DHCP server on eth0?
14
votes
5answers
6k views

Most long-running commands instantly killed on Amazon EC2 (Ubuntu 10.04)

When running any sort of long-running command in the terminal, the program instantly dies and the terminal outputs the text Killed. Any pointers? Maybe there is a log file with data explaining why ...
14
votes
6answers
11k views

pam service(sshd) ignoring max retries

I have vps that I use to run a webserver on, it currently runs ubuntu server 12.04. Since a few weeks I keep getting a lot of errors in my ssh console. 2014 Apr 11 08:41:18 vps847 PAM service(sshd) ...
14
votes
2answers
8k views

What is the difference between sudo -i and sudo su -

What is the difference between commands sudo -i and sudo su -? Are they the same?
14
votes
3answers
44k views

How to setup a MySql server to accept remote connections?

I am installing a MySql server in Ubuntu desktop. I could connect MySql Query Browser to it when specifying the Server Hostname as localhost, but when I replace it by the machine's IP it stops working ...
14
votes
6answers
2k views

How to grant temporary access to server?

I've hired a remote consultant to tune up my servers. Now, I am not 100% confident about giving him root password and allow him to do whatever he wants to do on the servers. Ideally, I want to see ...
14
votes
2answers
8k views

Directory in /var/run gets deleted after hard reboot

I keep my sphinx pid in /var/run/sphinx/searchd.pid but every time I hard reboot the directory /var/run/sphinx disappears and sphinx fails to start. Is there a way to make that directory stick or ...
14
votes
4answers
1k views

How do limit disc i/o during backup?

I have a cron that basically do a simple "tar zcf" in the night. The server has: 8 Cores - Intel(R) Xeon(R) CPU E5606 @ 2.13GHz 25GB RAM Ubuntu 12.04.2 LTS Hardware RAID 1 (LSI Logic / Symbios ...
14
votes
3answers
478 views

Putting /etc under source control

I would like to put my /etc directory iunder source control using bazaar. Are there any gotchas in doing this. It seems safer to do it user an ordinary user rather than root - might there a be a ...
14
votes
5answers
24k views

Dovecot vs Courier vs Cyrus [closed]

What is best for a Personal/SMB mail server running on an Ubuntu Server (8.04+)? I want to setup my own mail server at home to evaluate some options for my company before I make a recommendation. ...
14
votes
3answers
31k views

MySQL: How do I get my “Maximum possible memory usage” down?

I've recently been having problems with thrashing as a result of running out of memory. (My VPS has 256M total) I'm trying to tune MySQL using mysqltuner.pl, and get the following results: -------- ...
14
votes
5answers
30k views

Setting up RADIUS + LDAP for WPA2 on Ubuntu

I'm setting up a wireless network for ~150 users. In short, I'm looking for a guide to set RADIUS server to authenticate WPA2 against a LDAP. On Ubuntu. I got a working LDAP, but as it is not in ...
13
votes
3answers
40k views

Iptables: How to allow only one ip through specific port?

How can I on my ubuntu server, in Iptables only allow one IP adress on a specific port? Thanks
13
votes
3answers
28k views

Apache “Client denied by server configuration”, despite allowing access to directory (vhost configuration)

in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says "Client denied by server configuration: /home/remix/". Looking for the solution ...
13
votes
3answers
528 views

Which method to use for granting sudo

What is the difference between adding a user to /etc/sudoers and usermod -a -G sudo? Which method should be used for granting sudo?
13
votes
4answers
19k views

How to run script via SSH that doesn't end when I close connection?

I need to run script, that takes long time to execute, or I just want it to run forever. I can't just SSH to my machine, because when I disconnect it stops running. Is there any way to run script ...
13
votes
2answers
35k views

Linux e1000e (Intel networking driver) problems galore, where do I start?

I'm currently having a major problem with e1000e (not working at all) in Ubuntu Maverick (1.0.2-k4), after resume I'm getting a lot of stuff in dmesg: [ 9085.820197] e1000e 0000:02:00.0: PCI INT A ...
13
votes
5answers
13k views

Recover from shutdown during Ubuntu distribution upgrade

I have a computer which was unexpectedly shut down during a distribution upgrade (Ubuntu 8.10 -> 9.04). It now won't finish booting - various X errors, then it goes to the login screen but won't ...
13
votes
5answers
2k views

Fixing services that have been disabled in /etc/default/ with puppet?

I'm using puppet to (theoretically) get npcd to start upon installation, however on Ubuntu, that service comes installed with the default setting in /etc/default/npcd of RUN="no": $ cat ...
13
votes
1answer
17k views

How to configure Tomcat to only listen to 127.0.0.1?

The environment is Ubuntu 10.04.1 LTS running Tomcat 6 and Apache 2.2 from the repos. Apache is configured to proxy requests to Tomcat, so I really want to turn off Tomcat listening to requests on ...
13
votes
5answers
39k views

console-kit-daemon - can it be stopped?

I have 60 instances of Console Kit daemon on Ubuntu 9.04 server installation. Is it safe to kill those or stop these processes. They seem to be taking about 20% of RAM each(see on htop).
13
votes
3answers
4k views

Alternatives to apache benchmark? [closed]

I'd like some tools for ubuntu that I can use to test my server, how much it can handle. Any suggestions? I've used apache benchmark before, but I'd like to try out something else. (As a side ...
13
votes
7answers
22k views

Out of disk space, what's the source?

Filesystem Size Used Avail Use% Mounted on /dev/sda1 220G 220G 0 100% / none 1.9G 168K 1.9G 1% /dev none 1.9G 0 1.9G 0% ...
13
votes
2answers
4k views

Why does Debian clean php sessions with a cron job instead of using php's built-in garbage collector?

Debian and derivatives (Ubuntu) don't use the php session garbage collector session.gc_probability = 0 instead they use a cron /etc/cron.d/php5 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] ...
13
votes
5answers
13k views

How can I configure unattended installation of Ubuntu?

I'd like to configure an installer for Ubuntu which runs in 'unattended' mode and answers all the questions with defaults or pre-configured settings. Ideally it should run and reboot on it's own, ...
13
votes
3answers
6k views

Set up sftp to use password but ssh not to use password

Is it possible to set up a user on ubuntu with openssh so that ssh does not use password authentication but sftp does? I assume that if I change /etc/ssh/ssh_config to have PasswordAuthentication yes ...
13
votes
5answers
141 views

ubuntu servers - what do i need to do to keep it uptodate

I am setting up an ubuntu server and want to know what I should be doing on it regularly. apt-get update/upgrade seems obvious. Is there a glsa check for example? Anything else I should be running? ...
13
votes
3answers
5k views

max files per directory in ext4

I manage an application that contains a filestore in which all the files are stored with the filenames equal to their md5 sums. All files are stored in one directory. Currently there are thousands, ...
13
votes
3answers
47k views

How to fix “BUG: soft lockup - CPU#0 stuck for 17163091968s”?

UPDATE: I updated the title of the message, because I've recently seen more of these problems with this exact time amount of 17163091968s. This should help people investigating the symptoms to find ...
13
votes
3answers
15k views

Starting network connection from Ubuntu recovery?

I tried to upgrade Ubuntu from Hardy to Intrepid last night, and seem to have killed it. I can boot into "recovery mode" and the root shell, but it freezes when it tries to start the Gnome ...
13
votes
1answer
8k views

Multiple php versions simultaneously on Ubuntu

I want to be able to run multiple php versions on my development box running Ubuntu 12.04. What I want to accomplish is that when I use localhost as domain a default is used (let's say php 5.3.17). ...
12
votes
7answers
29k views

df says disk is full, but it is not

On a virtualized server running Ubuntu 10.04, df reports the following: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 7.4G 7.0G 0 100% / none ...
12
votes
3answers
2k views

How to make folders 00-99 with a single command in Ubuntu?

I need to create folders starting from 00 to 99 (00, 01, 02, 03, etc....) in several hundred places. Is there a single line command that will let me do that?
12
votes
6answers
22k views

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld ...
12
votes
3answers
858 views

grep behaving differently on Fedora vs Ubuntu

So when I run this in Fedora I'm seeing this: $ ls hmm_data/indivA12_AATAAG/refs/par1/ 2R-orths.alleles 2R-ref.alleles $ ls hmm_data/indivA12_AATAAG/refs/par1/ | grep -F '-ref.alleles' ...
12
votes
5answers
2k views

How to remove many (200 000) files?

I must remove 200 000 files (all of them) from a folder, and I don't want to delete the folder itself. using rm, I get an "Argument list too long" error. I've tried to do something with xargs, but ...
12
votes
3answers
15k views

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 ...
12
votes
8answers
11k views

Should I completely turn off swap for linux webserver?

Recently my friend told me that it is a good idea to turn off swap on linux webservers with enough memory. My server has 12 GB and currently uses 4GB (not counting cache and buffers) under peak load. ...
12
votes
9answers
20k views

How can I find the biggest directories in unix / Ubuntu?

Is there a way in Unix to see the biggest directories on disk ? I need to know why I'm almost done with the space on the server, and I dunno where most of the space is used.. thanks
12
votes
4answers
8k views

Can dpkg verify files from an installed package?

With rpm -qV openssh-server I will get a list of files that have changed compared to default. ~$ rpm -qV openssh-server S.?....T. c /etc/ssh/sshd_config ~$ Can dpkg on Ubuntu do the same?
12
votes
3answers
64k views

How to check my PHP and MySQL version on Ubuntu VPS?

HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL. PHP version 5.1.0 or above with XML Extension installed MySQL version 4.0 or ...
12
votes
4answers
17k views

Block range of IP Addresses

I am getting bombarded with attempted hacks from China all with similar IPs. How would I block the IP range with something like 116.10.191.* etc. I am running Ubuntu Server 13.10. The current line ...
12
votes
3answers
12k views

Why is ssh agent forwarding not working?

In my own computer, running MacOSX, I have this in ~/.ssh/config Host * ForwardAgent yes Host b1 ForwardAgent yes b1 is a virtual machine running Ubuntu 12.04. I ssh to it like this: ssh pupeno@b1 ...
12
votes
3answers
19k views

How to get - number of threads per process?

This is one Ubuntu 9.10 server. Also how to see memory usage per process? Thanks
12
votes
4answers
9k views

What is vmlinuz and why do I care?

I just got a network alert that I've never seen before, on one of the few Ubuntu boxes that we have: The following monitoring trigger has been fired: /vmlinuz has been changed on server XXXXX: ...