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)

9
votes
6answers
3k views

GUI on Ubuntu server?

I'm primarily a developer, but as part of this I'm running an Ubuntu server for a client where he has several small to medium sized websites. Although my main development environment has generally ...
8
votes
5answers
1k views

Setting up an Email Server on Ubuntu

What are some of the Dos and Don't to setting up an email server on Ubuntu? Are there any gotcha's?
7
votes
2answers
7k views

SFTP fatal bad ownership or modes for chroot directory ubuntu 12.04

I just set up my SFTP server and it works fine when I use it from my first user account. I wanted to add a user which we will call 'magnarp'. At first I did like this in sshd_config: Subsystem sftp ...
6
votes
3answers
7k views

Iptables - Bridge and Forward chain

I have setup ethernet bridge br0 that contains two interfaces eth0 and tap0 brctl addbr br0 brctl addif eth0 brctl addif tap0 ifconfig eth0 0.0.0.0 promisc up ifconfig tap0 0.0.0.0 promisc up ...
5
votes
6answers
2k views

/var is using 91.4% of 3.99GB in new Ubuntu dedicated server from 1and1

Yesterday I purchased a dedicated server package from 1and1. I installed Rails, Mongo and nginx. Today, when I logged in, it displays this message: Welcome to Ubuntu 12.04 LTS (GNU/Linux ...
5
votes
2answers
2k views

Network authentication + roaming home directory - which technology should I look into using?

I'm looking into software which provides a user with a single identity across multiple computers. That is, a user should have the same permissions on each computer, and the user should have access to ...
5
votes
3answers
1k views

Setting up a postfix email server

When I set up an email server using postfix on ubuntu server, how do I make sure that it won't be an open relay??
4
votes
7answers
9k views

How to disable CD-ROM and USB for normal users in Linux?

How can access to CD-ROM and USB be disabled for normal users in Linux? As a part of security policy we need to disable CD-ROM and USB access for normal users. Only root users should have the access. ...
4
votes
3answers
4k views

PHP 5.2x on Ubuntu 10.04 Lucid Lynx

It appears that Lucid Lynx comes with PHP 5.3. Is there a convenient way to downgrade to the latest 5.2x release?
2
votes
3answers
4k views

Using GlusterFS for simple replication

newbie question. I need to build this: /shared folder ~500GB of files, ~1MB each one. Two boxes (server1 and server2) connected by a 1Gbs LAN Every box needs to get r/w access to the files, so ...
2
votes
8answers
6k views

What next after Ubuntu? Arch Linux / FreeBSD / Gentoo

I have been using Ubuntu, mainly as a production system for a very long time. Fedora Core and Mandrake before that. I am a developer, mostly working over networking core - L3/L4. I wish to graduate to ...
0
votes
3answers
3k views

how to completely disable ipv6 on Ubuntu 9.04

what i have done: /etc/modprobe.d/blacklist.conf blacklist net-pf-10 blacklist ipv6 /boot/grub/menu.lst title Ubuntu 9.04, kernel 2.6.28-15-server kernel ...
20
votes
5answers
3k views

A domain I've never heard of resolves to my website [duplicate]

I've discovered (via looking at mod_pagespeed cache entries) that a completely random domain I've never heard of before is resolving to my website. If I visit this domain, my website loads. The DNS ...
15
votes
4answers
3k views

Is there an open source email client that will work with Exchange 2007?

Recently I've been playing around with Ubuntu 9.04 on one of my work systems. The only real bump in the road that keeps it from being being used as my main workstation is that I cannot find a ...
10
votes
1answer
2k views

I am still running Ubuntu 13.04, how should I react to the Heartbleed Bug? [duplicate]

I know that 13.04 is affected (or at least my installation is) because of the OpenSSL version currently installed. However, after running sudo apt-get update sudo apt-get upgrade I checked my ...
9
votes
4answers
4k views

Given a debian source package - How do I install the build-deps?

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies. Normally ...
8
votes
2answers
15k views

Run nginx as a non-root user

I followed this process to installing nginx on my Ubuntu 10.04 Lucid Server http://library.linode.com/web-servers/nginx/installation/ubuntu-10.04-lucid I got lost after the point of creating an init ...
8
votes
5answers
3k views

Boot Debian while RAID array is degraded

Recently, I came across Ubuntu Server install. During install, it asked me whether or not to allow booting system from degraded RAID array (probably because I installed system onto RAID1 /dev/md0 ...
8
votes
7answers
7k views

Simple Mail System for Ubuntu?

What I'm looking for should be relatively easy. All I want to do is setup something VERY small for Ubuntu that will allow me to use the mail() function in PHP from my web server (/var/www/). I don't ...
7
votes
4answers
4k views

RAID 1+0 vs RAID 0+1

I went with some advice I was given from someone I know to go with a RAID setup for this server I ordered. The specs are below. I plan on using this server to host multiple sites in a PHP/MySQL ...
7
votes
4answers
6k views

/bin/ls not found, even though it exists!

This is a server running ubuntu 8.04 server, any idea what's going on? # ls -bash: /bin/ls: No such file or directory # /bin/ls -bash: /bin/ls: No such file or directory # stat /bin/ls File: ...
6
votes
4answers
1k views

Easy way to convert custom 32-bit AMI into 64-bit one?

I have customised (EBS-backed) AMI for running a demo version of an application of ours. (The AMI contains Ubuntu 11.04 with a Tomcat & MySQL setup for the app itself, and Jenkins for easy ...
6
votes
2answers
3k 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 ...
6
votes
3answers
8k views

Allow scp/ssh for www-data user

I am on Amazon EC2 using Ubuntu 10.04.2 My web folder is owned by www-data so I want to be able to log into my server as www-data for ssh and scp. Thanks! Adding the line to my /etc/ssh/sshd_config ...
5
votes
5answers
2k views

Disable/Remove Apt(-get)

Is there anyway to disable/remove apt-get on a debian based server. I'd prefer to use aptitude, and don't want the other users to be installing packages with apt-get, to avoid package/database issues. ...
4
votes
2answers
5k views

What are the ramifications of setting tcp_tw_recycle/reuse to 1?

I set both tcp_tw_recycle/reuse to 1 in my configuration file. What are the ramifications of doing this? If a tcp socket is re-used, does that pose a security risk? i.e. 2 different connections both ...
4
votes
2answers
1k views

Remote server hangs, gets stuck. How to debug?

I have an vps running on VmWare ESX with Ubuntu 8.04 LTS. It has been running smoothly for the past 3 months, however recently we've notices two strange bugs. a. The server hangs, today was second ...
4
votes
2answers
2k views

Port forwarding to virtual machine

I'm running an http(zope) server on Ubuntu 8.04 server, in a Virtualbox machine, on an Ubuntu 9.04 box. The guest system accesses network over NAT. How can I forward the host machine's port 80 to the ...
3
votes
2answers
3k views

How do I install the latest stable version of Redis?

I am new to redis. and I just followed cli to install redis sudo apt-get install redis. but the install server version is 2.2.12 . If I want to update this version and I want to install redis 2.7 + ...
2
votes
3answers
5k views

Multiple UCARP VIPs on single Interface with Debian/Ubuntu

The example ucarp config for a virtual IP for Debian/Ubuntu is in /usr/share/doc/ucarp/README.Debian and is as follows: The recommended method for configuring ucarp is via /etc/network/interfaces. ...
2
votes
3answers
6k views

Tips to backup ubuntu server

I have a Ubuntu server hosting a PHP5 / MySQL webapp. I also have another server (offsite) with a directory just for backups of my webapp server. Currently, I have a simple cron job which performs ...
1
vote
3answers
1k views

Ubuntu 8.04 (Hardy): How to automatically apt-get / aptitude upgrade packages for bugs/security?

I have a lab full of workstations running Ubuntu 8.04 (Hardy Heron). My predecessors made a hackish bit of cron script to update, upgrade, and clean daily. I like the fact that it requires zero ...
0
votes
8answers
2k views

Best Server For Java [closed]

I'm starting in Java Web development, then i want to ask, what is the best server, like Apache Tomcat, Resin and others. Remember that i use Linux Ubuntu. Thanks!
17
votes
9answers
6k views

Find last time update was performed with apt-get

I need to find the last time that the apt-get update command was run on my server. How can I determine this information?
14
votes
3answers
447 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 ...
12
votes
4answers
22k 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?
11
votes
4answers
4k views

Ubuntu's garbage collection cron job for PHP sessions takes 25 minutes to run, why?

Ubuntu has a cron job set up which looks for and deletes old PHP sessions: # Look for and purge old sessions every 30 minutes 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] \ ...
9
votes
2answers
1k views

Installing open-vm-tools in Ubuntu via Puppet; what's the lesser evil?

In an ideal world, configuring puppet to install the open-vm-tools should be as simple as this: class vm-tools { package { 'open-vm-tools': ensure => installed } package { ...
9
votes
4answers
4k views

Port Forwarding from Host to Guest with libvirt 0.8.3 Using KVM on Ubuntu

The host has a single external IP available, so I set my KVM guests up with NAT. How do I set up a port forwarding to forward some of the requests from the outside to the guests? I couldn't find ...
9
votes
9answers
19k views

Can Ubuntu Desktop “become” Ubuntu Server?

Am I correct that Ubuntu desktop and server are the same os but that desktop runs X and lacks things that a server might have like dhcp server, mysqld, apache, etc.? And that if I add those items it ...
9
votes
11answers
4k 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 ...
8
votes
2answers
3k views

Automate the installation of postfix on Ubuntu

My system configuration script does an "apt-get install -y postfix". Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix ...
8
votes
5answers
3k views

How do I turn off the beep in the terminal in Linux?

I've recently started using a new desktop PC with Ubuntu Linux installed. However the terminal beeps annoyingly. i.e. If I'm at the start of the line and I press Backspace, it'll beep to tell me that ...
7
votes
4answers
3k views

Migrating from one dedicated linux server to another?

I have a dedicated server running ubuntu server 9.04 for web, database and mail. There's about 5 GB of data on the entire hard drive. I want to migrate the server to a more affordable dedicated ...
6
votes
2answers
5k views

Disk/RAID Monitoring for HP Proliant Servers and Ubuntu 12.04

How can I monitor the status of the hard disks and the RAIDs of an HP Proliant server using Ubuntu 12.04. In Ubuntu 10.04 I could use the cciss-vol-status to query the RAID status periodically but ...
6
votes
1answer
7k views

How do I set a default host for nginx?

I'm trying to figure out how to set a default host for my nginx installation. I found this article in the nginx Wiki: http://wiki.nginx.org/NginxVirtualHostExample#A_Default_Catchall_Virtual_Host ...
6
votes
1answer
9k views

Debian/Ubuntu - How to restore /var/cache/apt structure after deleting it?

I was running out of space on an Ubuntu server, so I did this command to save space sudo rm -rf /var/cache/apt/archives However now when trying to do things with apt, I get the following errors: ...
5
votes
1answer
713 views

add_header directives in location overwriting add_header directives in server

Using nginx 1.2.1 I am able to add multiple headers using add_header as follows: server { listen 80; server_name localhost; root /var/www; add_header Name1 Value1; <=== ...
5
votes
4answers
7k views

ubuntu server, ssh, write failed: broken pipe

I'm getting some bizarre behavior with Ubuntu Server 10.04 64bit on two of our new servers (both fresh installs). I have ubuntu server (same version) deployed on 4-5 other servers without this issue. ...
5
votes
3answers
3k views

/etc/cron.daily/apt and /etc/cron.daily/aptitude on ubuntu hardy

I am a sys admin newb, otherwise I would figure this out on my own. I have a slicehost slice and I noticed that there are a couple scripts that get run (the ones I mentioned in my question title) ...