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)

29
votes
2answers
45k views

How to reduce number of sockets in TIME_WAIT?

Ubuntu Server 10.04.1 x86 I've got a machine with a FCGI HTTP service behind nginx, that serves a lot of small HTTP requests to a lot of different clients. (About 230 requests per second in the peak ...
23
votes
8answers
5k views

accidently ran “chown www-data:www-data / -R” as root

i just ran this a few seconds ago, i managed to do ctrl-c as soon as i realized what i started doing. so far in the only dir its started going through is /bin im afraid to do anything else, so far ...
13
votes
2answers
2k views

Weird syslog order

Have you ever seen wrong order in /var/log/syslog ? I think that it causes only crontab. Jun 28 22:20:01 alex CRON[2327]: (root) CMD (something > /dev/null) Jun 28 22:21:01 alex CRON[2700]: (root) ...
104
votes
17answers
154k views

CentOS vs. Ubuntu [closed]

I had a web server that ran Ubuntu, but the hard drive failed recently and everything was erased. I decided to try CentOS on the machine instead of Ubuntu, since it's based on Red Hat. That ...
80
votes
8answers
40k views

Heartbleed: how to reliably and portably check the OpenSSL version?

I was looking at a reliable and portable way to check the OpenSSL version on GNU/Linux and other systems, so users can easily discover if they should upgrade their SSL because of the Heartbleed bug. ...
4
votes
1answer
3k views

How do I set permissions structure for multiple users editing multiple sites in /var/www on Ubuntu 9.10?

I'm setting up an Ubuntu server that will have 3 or 4 VirtualHosts that I want users to be able to work in (add new files, edit old files, etc.). I currently plan on storing the sites in /var/www but ...
4
votes
5answers
1k views

What's needed for a complete backup system?

For my new server, I want to setup a proper backup solution. I've found a great setup that will do twice-daily incremental backups via Dropbox. I plan on backing up my various databases, the webroot ...
20
votes
7answers
9k views

How to configure a shortcut for an SSH connection through a SSH tunnel

My company production servers (FOO, BAR...) are located behind two gateway servers (A, B). In order to connect to server FOO, I have to open a ssh connection with server A or B with my username ...
10
votes
2answers
6k views

SSL site not using the correct IP in Apache and Ubuntu

I'm trying to set up an apache-ubuntu-php webserver. My webserver will host multiple SSL sites, each SSL site will have it's own IP address (unless there's a better way to do this). So I suppose the ...
2
votes
1answer
8k views

Installing Ubuntu 12.04 on HP Proliant DL380e with 1TB SAS Drive

I have an HP Proliant DL380e with a 1TB SAS Drive and I am trying to install ubuntu server 12.04 on it. I have created a RAID array using Array Controller Utility and had a RAID0 logical volume ...
2
votes
1answer
743 views

Dealing with multiple private DNS servers

I'll try to explain this as best I can... I'm on ubuntu 13.04, and I am running a local BIND instance at 127.0.0.1 for access to basic wild-card DNS for development (i.e. "*.dev == 127.0.0.1" - yes, ...
51
votes
4answers
25k views

Why don't EC2 ubuntu images have swap?

I started a couple servers on EC2 and they don't have swap. Am I doing something wrong or is it that the machines just don't have any?
45
votes
3answers
92k views

How do I upgrade from PHP 5.3 to PHP 5.4.6 in Ubuntu?

Is there an easy way out to get the latest PHP? I have tried updating my package but none of it has 5.4.6 yet... if anyone knows on how to do it quickly, can it be shared here? I've tried compiling ...
25
votes
9answers
3k views

Ubuntu, how to setup a new machine like an existing one

I have one machine setup with the apps I need, and I'd like to install the same on a new Ubuntu box. Is there a script that will list all the installed apps, so that I can diff between the boxes and ...
18
votes
3answers
46k 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
38
votes
4answers
68k views

Setup ubuntu server to send mail()

I tried searching a lot but unable to find how to actually setup a ubuntu server, so that I can send mails through php using mail() function in php. I have apache2, mysql and php5 installed on my ...
20
votes
5answers
15k views

Scripted install of MySQL on Ubuntu

I need to write a script that will build my server from a fresh Ubuntu server install. Among things like Apache and PHP it needs to install MySQL. The only problem here is that when I install MySQL ...
32
votes
2answers
13k views

Can someone clarify Ubuntu (Debian) dist-upgrade for me?

I've got an Ubuntu 8.04 LTS server. There are several packages which are "kept back" ("the following updates have been kept back:") when I do an apt-get upgrade. It's my understanding that I can do ...
9
votes
10answers
12k views

Which Distributed File System as a backend for Cloud Computing?

I have a basic cloud running on Ubuntu Server (9.04) and Eucalyptus. Walrus (Eucalyptus' API compatable S3 implementation) stores files by on the cloud controller. However each of the other 4 server ...
14
votes
2answers
40k 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 ...
10
votes
8answers
20k views

Ubuntu: Resize the root LVM(2?) partition

I have an Ubuntu virtual machine running in VirtualBox 2.2.4, and I created it on an 8gb virtual disk which is too small. So, I am trying to increase the size of the disk. So far, I have done this: ...
5
votes
7answers
12k views

What causes PHP pages to consistently download instead of running normally

I'm running a Ubuntu Server on a VM, to test out different web forum solutions. I have set up a ~/public_html/ to be accessible with the apache2 web server, and that works fine. However when I go to ...
11
votes
2answers
3k views

How can I install packages without starting their associated services?

As you're probably aware, by default when you install a package on a Debian or Ubuntu based system, if the package contains a service, that service will generally be enabled and started automatically ...
6
votes
2answers
4k views

My cron tasks report command not found [duplicate]

This is the contents of my crontab file: 0 0,6,12,18 * * * cd /var/www/app/current && backup perform --trigger db_backup --config_file config/backup.rb --data-path db --log-path log --tmp-...
4
votes
2answers
10k views

MySQL: Allow both remote AND local connections

In my Ubuntu's /etc/mysql/my.conf, I have: bind-address = 192.168.2.20 # My external IP It works fine from remote, but when I want to connect locally, the app that uses on MySQL says: java.net....
6
votes
1answer
2k views

No space left on device — but there is space

I'm running an Ubuntu 12.04.1 server in a VMware virtualized environment that has a strange issue. Twice now, at seemingly random times, the machine has suddenly been unable to write to the root ...
5
votes
1answer
2k views

Encrypted LVM on RAID1 - Failure testing, manual mount

We have an Ubuntu 10.04 LTS server set up with LVM running on top of disk encryption, which runs on top of a RAID1 volume comprised of two physical SATA disks. The configuration looks like this: ...
3
votes
5answers
3k views

Enable access without “www.” on Ubuntu

I want to enable the access to my site without the "www." prefix. I tried to insert this in my /etc/apache2/sites-available file: <VirtualHost *:80> serverName mydomain.gov.br ...
0
votes
1answer
716 views

Postfix forwards to Gmail being rate limited even with unmodified headers

I've installed Postfix on Ubuntu 14.04 with the defaults. I then configured some virtual aliases to forward email from a few addresses to various personal (mostly Gmail) accounts. This is just to make ...
34
votes
10answers
14k views

Securing a fresh Ubuntu server [closed]

Say I've got a fresh install of Ubuntu, what steps should I take to secure it for use as a Rails application server?
58
votes
12answers
273k views

How to start/stop iptables on Ubuntu?

How can I start/stop the iptables service on Ubuntu? I have tried service iptables stop but it is giving "unrecognized service". Why is it doing so? Is there any other method?
16
votes
6answers
15k views

How to Setup Ubuntu Mail Server with Google Apps?

I have a domain, let's call it foobar.com. All of the MX records for foobar.com point to Google's mail servers because I am using Google Apps for your domain to manage it. It's great because everyone ...
12
votes
2answers
21k 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 ...
33
votes
8answers
65k views

Apache2 config variable is not defined

I installed apache2 on ubuntu 13.10. If I try to restart it using sudo /etc/init.d/apache2 restart I get this message: AH00558: apache2: Could not reliably determine the server's fully ...
22
votes
4answers
24k views

upstart scripts: run a task after networking goes up

I'm working on moving my current server setup to newer hardware, and migrating from ubuntu karmic koala to lucid lynx. Currently i'm using gw6c (compiled from the gogo6 website, as opposed to the ...
15
votes
2answers
13k 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?
5
votes
4answers
12k views

How to setup Apache NameVirtualHost on SSL?

I would like to set the A record of two DNS to point to my Ubuntu intance. Apache should then read the domain name accordingly and point the incoming request to the right physical path. I have set ...
5
votes
3answers
4k views

How do I setup ssh with both private key and password?

How do I setup ssh with both private key and password? In /etc/ssh/sshd_config, I currently have: RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication yes But apparently this ...
6
votes
4answers
2k views

Record everything on command line centos /fedora/ ubuntu

we are 100% Linux user across the network and we do work round clock, what happens shift change next admin come to his shift on that time what all issues comes he get resolve the issues but they just ...
4
votes
1answer
3k views

How can I monitor bandwidth usage by Virtual Host in Apache on Ubuntu

My Environment: Apache 2.2.9, Ubuntu 8.10 I am trying to find a way to monitor the bandwidth usage on my server broken out by each virtualhost WITHOUT installing something like PLESK, CPanel, or ...
5
votes
7answers
2k views

ubuntu server slowly filling up

We had our samba server (ubuntu 8.04 ltr) share fill up the other day but when I went to look at it I cant see any of the shares have to much on them we have 5 group shares and then each users has an ...
4
votes
2answers
6k views

fsck root filesystem on a remote machine

I have filesystem problems on a machine running Ubuntu 8.04 machine in a colocation facility. What was once a directory now looks like this: b--xr-SrwT 52 825452087 876163170 56, 97 2021-10-10 05:43 ...
14
votes
4answers
4k views

Disable prompts while installing a Debian package

How can i disable totally the prompts that appear while installing a Debian package, i've used all the options that i've found but there are some packages that are still prompting. I'm using this ...
4
votes
3answers
9k views

Add email account to postfix

I have add a user in linux called "mailer". I'm only using this user to send outgoing mail, not receive. What do I need to do in order use the following SMTP information to send outgoing mail? $...
2
votes
1answer
5k views

how can i disable outbound mail in postfix?

i want to be able to send mail to someuser@localhost but not allow any mail to go out to the outside world from anyone to anyone. i've seen multiple entries about how to filter or restrict outgoing ...
2
votes
6answers
7k views

Ubuntu installation can't detect hard drives

I'm installing Ubuntu onto a HP Proliant DL360 G7 server, which has a hardware Smart Array RAID controller that is not compatible with Ubuntu. HP say the RAID controller needs to be disabled in the ...
6
votes
5answers
4k views

MySQL stopped working - full disk

Maybe it is because I am lacking in free disk space, take a look: Filesystem Size Used Avail Use% Mounted on /dev/sda2 1.9G 208M 1.6G 12% / none 998M 192K ...
4
votes
3answers
2k views

Sendmail : ignore local delivery

I've a Ubuntu webserver with Sendmail as my MTA Currently when i email outside my webserver's domain e.g. example.com to something like gmail or any other email outside the example.com domain it ...
3
votes
3answers
16k views

Serial port forwarding over TCP/IP (linux server)

I am looking for a way to use a remote serial port on a linux machine over LAN. The machine is running ubuntu 10.04 and I have a arduino board connected to it, that I would like to be able to ...
1
vote
1answer
2k views

Trouble getting Tomcat to start up during install

I installed Java and now added Tomcat. I configured Tomcat, but it is not running. What I did was add the line: export JAVA_HOME=/usr/lib/jvm/java-6-sun as the first non-comment line in the /home/...