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)

12
votes
3answers
14k 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 ...
12
votes
4answers
13k views

How can I configure a private (friends only) IRC Server?

I am trying to setup an IRC server on my machine for a bunch of friends and me to use. This is an ubuntu box and I have installed dancer-ircd and dancer-services and gotten everything up and running ...
11
votes
20answers
1k views

Are there any reasons NOT to run an Ubuntu server?

I'm going to be setting up a network for a small office soon. The network will consist of about 5 workstations (soon to be more) and 2-3 servers (one "real" server and a couple ...
11
votes
3answers
55k views

How do I cleanly remove apache2 server on ubuntu server and then reinstall?

I am having some wierd issues with Apache2 server on my ubuntu server. I believe some configuration files may have been tampered with. What is the easiest way to remove apache2 completely from my ...
11
votes
3answers
9k views

Need to fix file permissions in a user's home directory

Does anyone have a tool or script that will recursively correct the file permissions on a directory? On an Ubuntu Linux machine, a bunch of files were copied to a USB disk with full 777 permissions ...
11
votes
2answers
25k views

setting up a basic mod_proxy virtual host

I'm trying to set up a basic virtual host to proxy all requests to test.local to a WEBrick server I have running on 127.0.0.1:8080 while keeping all requests to localhost going to my static files in ...
11
votes
4answers
2k views

Limit Apache to a single IP

I've got a server with a bunch of IP addresses, and I only want Apache listening on one of them. It doesn't sound like a hard thing to do, and I've done it once before a while ago, but I'm having some ...
11
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 ...
11
votes
3answers
9k views

Can't get bower working - bower ESUDO Cannot be run with sudo

I get the following error when I run bower: bower ESUDO Cannot be run with sudo Thing is, I'm not running bower with sudo. The command I run is: bower install foo or bower search cats I am ...
11
votes
5answers
652 views

Is it bad to have a very full hard drive on a high traffic database server?

Running an Ubuntu server with MySQL for a high traffic production database server. Nothing else is running on the machine except the MySQL instance. We store daily database backups on the DB server, ...
11
votes
3answers
8k views

Can't create symlinks in virtualbox shared folders [closed]

A few days ago I found I can no longer create symlinks from Ubuntu in any directories that are shared with the OS X host. ln: creating symbolic link `foo': Read-only file system I'm able to create ...
11
votes
3answers
11k 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 ...
11
votes
3answers
4k views

Check incoming network traffic in real time?

Is there a way I can monitor incoming network traffic in real time on my server? Preferably in terms of *bps Running Ubuntu
11
votes
4answers
808 views

Which logs to track regularly

I run my own server at home for my personal website running Ubuntu Server with Apache, Bind9 and Django. What logs would you suggest are best to keep track of on a regular basis? (rather than on a ...
11
votes
3answers
25k views

Ubuntu 10.04/CURL: How do I fix/update the CA Bundle?

I recently upgraded our server from 8.04 to 10.04, and all the software along with it. From what I've found online, it seems that the new version of CURL doesn't include a CA bundle, and, as a ...
11
votes
2answers
2k views

How to setup etckeeper with Mercurial in Ubuntu?

I'm interested in installing etckeeper with Mercurial in my Ubuntu system. My reason is that I don't know how to use Git and don't want to learn at the moment. If I check the package description it ...
11
votes
1answer
2k views

ubuntu 10.10 sshd contains “YOU WANNA SMOKE A SPLIFF” and pot leaf ascii art. Does this mean I've been hacked?

My sshd binary on an ubuntu 10.10 machine contains the following ascii artwork: ng: %.100sToo many lines in environment file %sUser %.100s not allowed because %s exists YOU WANNA . ...
11
votes
2answers
11k views

How do I set default permissions for SFTP for an Ubuntu Server?

We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)? I'm also using setgid (chmod g+s) so that ...
11
votes
2answers
31k views

Install php extensions on ubuntu

I have a Ubuntu 9.10 server. I have installed apache2 and php5 using the apt-get commands. How does one install php extensions? Are there commands like apt-get to get them? Or should I manually look ...
11
votes
3answers
5k views

How to recreate a working AMI from recovery snapshot after Aug 8 outage?

After Amazon's Aug 8 outage, all (EBS based) AMIs stopped working for many users. This is due to corruption of some sectors in snapshots that the AMIs are based on. However, Amazon created recovery ...
11
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 ...
11
votes
2answers
15k views

How do I get rsyslogd to log a server's FQDN instead of it's short hostname?

I'm trying to implement a simple centralized syslog server using stock rsyslogd (4.2.0-2ubuntu8.1) on Ubuntu 10.04 LTS. At this point I have all my client nodes sending logs to the central server, but ...
11
votes
6answers
25k views

Checkpoint VPN Linux Client

Is there a Linux client for Checkpoint VPN? Preferably for Ubuntu? -- Rubem
11
votes
5answers
10k views

How do I mount sshfs at boot?

Using a NAS box as 24/7 file server, I'd like to use sshfs to connect to it from an Ubuntu 9.04 desktop. Currently, I have this line in the desktop's fstab: sshfs#jldugger@storage:/mnt/HD_a2/ ...
11
votes
10answers
25k views

How do I make sphinx restart when I reboot my Ubuntu server?

I built and installed sphinx search on my ubuntu 9.04 server. How do I make the sphinx daemon start automatically when I reboot?
11
votes
1answer
8k views

Why does this ldapadd command quit with an “Invalid syntax” error?

I'm very new to openldap but extremely well versed in the linux/unix environment. I'm trying to setup my very first test openldap environment using the guide here. I've also read most of the admin ...
11
votes
2answers
2k views

Anyway to get GRUB failsafe to timeout?

I've got a bunch of headless servers installed in random (remote) locations all running Ubuntu 11.04. Sometimes the boxes go down and never come back up, eventually someone goes out to check on them ...
11
votes
1answer
6k views

open file descriptor limits.conf setting isn't read by ulimit even when pam_limits.so is required

I am trying to raise the open file descriptor maximum for all users on an ubuntu machine. I've added the following lines to /etc/security/limits.conf: * soft nofile 100000 ...
11
votes
3answers
11k views

Why can't I ssh into (or even ping) my Ubuntu VM from the Mac OS X host?

I'm running Ubuntu 8.04 as a virtual machine using VMware Fusion 3.0 on Mac OS X 10.5.8. I want to be able to ssh into my VM from the Mac OS X host (so I can use MacFUSE and SSHFS to mount the VM's ...
11
votes
2answers
7k views

PXE Booting Virtualbox guests in internal networking mode?

I am not sure if this is just specific to my distro's packages or is a vbox limitation. So, any help would be appreciated. Ok, so I have a network of VMs, with one VM acting as a NAT for the other ...
11
votes
4answers
1k views

96 GB RAM on a Dell T7500 showing up as 78GB in Ubuntu Server 11.04

Running Ubuntu Server 11.04. I've got a new Dell Precision T7500 workstation loaded up with 12x8GB DIMMs and the BIOS shows 96GB but checking /proc/meminfo gives: cat /proc/meminfo | grep MemTotal ...
10
votes
11answers
6k views

Any way to run Linux as a Virtual Machine on top of Windows so can have best of both worlds?

Since Linux has a lot of useful tools, while Windows has a lot of apps (like Chrome), instead of buying another machine to run Linux, is there a way to run it as a Virtual Machine on the PC? The ...
10
votes
6answers
9k views

SSD for swap on Ubuntu server

Currently I am reading SSD reviews and I wonder how much exactly I will benefit if I move the 24 GB swap from 7200rpm HDD to SSD. Does anyone implemented swap space on SSD? Is this generally good ...
10
votes
2answers
15k views

How can I block all but three ports in Ubuntu?

How can I block all ports except for 1962, 999, 12020? One port for SSH and two others for a kind of script. So, it's necessary to allow outgoing on these ports, right? My iptables: # Generated by ...
10
votes
4answers
10k views

How do you swap the caps lock to control in xfce?

I used to have the caps lock and control swapped in GNOME, but when I upgraded to Ubuntu 9.04 I also changed my desktop environment to Xfce. I have the following line in my xorg.conf: Option ...
10
votes
6answers
6k views

How can I manage apt efficiently on multiple machines?

I manage around 30 Ubuntu servers using puppet. I've seen many references to cron-apt and apticron as approaches to keeping their packages up to date but I haven't been able to find a way to ...
10
votes
4answers
379 views

Effective way to ensure “clean slate system” for continuous integration service

We want to set up a continuous integration (CI) service for our project. That CI service should control all aspects of the project life, including deployment. That is, we want a CI agent at each ...
10
votes
2answers
11k views

Ubuntu ufw: set a rule on a per interface basis

I want to create a rule that allows anyone on eth1 to access port 80. Can UFW do this or should I go back to using Shorewall? To clarify: this is a capabilties question, can ufw handle interfaces as ...
10
votes
6answers
7k views

How do I get /dev/random to work on an Ubuntu virtual machine?

Apparently, /dev/random is based on hardware interrupts or similar unpredictable aspects of physical hardware. Since virtual machines don't have physical hardware, running cat /dev/random within a ...
10
votes
5answers
621 views

Tips to gracefully take over a (UNIX) production server

After months of neglect, e-mail flames and management battles our current sysadmin was fired and handed over "the server credentials" to me. Such credentials consist in a root password and nothing ...
10
votes
2answers
14k views

How to divert traffic based on hostname using HAProxy?

I've had some initial success with HAProxy setting up a bunch of app servers listening on various other ports. I now have another webserver listening on one port, and i'd like to what changes to make ...
10
votes
2answers
13k views

Installing imagick PHP extension on Ubuntu

I'm trying to install the imagick pecl extension on my Ubuntu server and am getting the below error. I've installed the ImageMagick rpm using aptitude already and the pecl extension is version 2.3.0. ...
10
votes
4answers
139k views

What's the default username and password for an Ubuntu Live CD?

What's the username and password for an Ubuntu Live CD image? I ask cause I've recently copied the contents of an Ubuntu based live ISO (easypeasy, the ldistro for nwtbooks) onto a harddisk, but the ...
10
votes
3answers
6k views

What is the different usages for sites-available vs the conf.d directory for nginx

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server. I have used apt-get to install nginx and all seems ...
10
votes
4answers
15k views

simple postfix configuration - forward all incoming email to single address

I've a Ubuntu 9.04 server installation which is hosting a small number of websites (currently two, and will remain in single figures). The email requirements for the server are very limited - to ...
10
votes
7answers
62k views

Why is ntpd not updating the time on my server?

I have ntpd running on my server. It's all the default settings, except I commented out its ability to be a server to other machines: # restrict -4 default kod notrap nomodify nopeer noquery ...
10
votes
6answers
40k views

mount.nfs: access denied by server while mounting

On my Ubuntu system, I have this line in /etc/fstab: myserver:/home/me /mnt/me nfs rsize=8192,wsize=8192,timeo=14,intr When I do sudo mount -a I get: mount.nfs: access denied by server while ...
10
votes
2answers
5k views

Run command as Linux “system” user (shell = /bin/false)

I created a "system" user in Ubuntu 11.04 (adduser --system) for running certain cron jobs, but sometimes I want to test things out by manually running commands as that user. What's the easiest way to ...
10
votes
2answers
256 views

Should the virtualization host be allowed to run any service?

I recently setup a virtualization server for the small company I'm running. This server runs few virtual machines that are used for development, testing, etc... My business partner works from a ...
10
votes
1answer
4k views

php-mysqlnd or php-mysql

Long story short: just installed Ubuntu 12.04 (Debian based), nginx, php-fpm and mysql. Now I need the MySQL driver for PHP, but which should I choose? Which is better php-mysqlnd or php-mysql?