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.

Filter by
Sorted by
Tagged with
25 votes
5 answers
15k views

How to set vim filetype when editing nginx config files

When I open vim for a file like /etc/nginx/sites-available/default, syntax highlighting works fine. But then if I create my own file /etc/nginx/sites-available/myapp, vim does not highlight its syntax....
HappyDeveloper's user avatar
25 votes
2 answers
31k views

Automatically keep current version of config files when apt-get install

I need to automatically install a package with its config file already present on the server. I'm looking for something like: apt-get install --yes --force-yes --keep-current-confs mysql-server ...
Falken's user avatar
  • 1,742
25 votes
7 answers
55k views

How do I upgrade an end-of-life Ubuntu distribution?

My do-release-upgrade fails. I get the following error message: Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www....
user238517's user avatar
25 votes
8 answers
77k views

Launch Nginx on startup

I was able to install and run nginx, and passenger but i'm not able to have nginx come up whenever i reboot my server. To start the nginx process i just type in sudo /opt/nginx/sbin/nginx. From my ...
user avatar
25 votes
8 answers
23k 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. ...
Poma's user avatar
  • 1,309
25 votes
15 answers
76k 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 ...
johnny's user avatar
  • 2,348
25 votes
3 answers
9k views

Stop Apache gracefully

Is there a way to stop the Apache server without terminating executing requests, basically a way to tell it - don't accept any more connections and shut down when you finish your current ones?
php_nub_qq's user avatar
25 votes
3 answers
54k views

Start Unix screen, Run command, Detach [duplicate]

How can screen be used to start a new session and run a command within that session without killing that session? screen -S myScreenName runSomething I tried the above command and it says [screen ...
Nyxynyx's user avatar
  • 1,479
25 votes
3 answers
22k views

nginx logging to access.log.1 instead of access.log, logrotate failing?

I have an nginx instance that is set to log access to /var/log/nginx/access.log and errors to /var/log/nginx/errors.log, but as soon as logrotate runs each week, the file gets moves to *.log.1 and the ...
Ben Torell's user avatar
25 votes
5 answers
6k 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 ...
i-CONICA's user avatar
  • 648
25 votes
9 answers
56k views

How to remotely install Linux via SSH?

I need to remotely install Ubuntu Server 10.04 (x86) on a server currently running RHEL 3.4 (x86). I'll have to be very careful because no one can press the restart button for me if anything goes ...
netvope's user avatar
  • 2,143
25 votes
1 answer
21k views

add_header directives in location overwriting add_header directives in server

Using nginx 1.2.1 I am able to use add_header under some circumstances. Here is a working example: server { listen 80; server_name localhost; root /var/www; add_header Name1 ...
Max's user avatar
  • 3,563
24 votes
6 answers
37k views

Enable passwordless access to MySQL

How can I delete my password for MySQL? I dont want to have a password to connect to the database. My server is running Ubuntu.
Ben's user avatar
  • 775
24 votes
4 answers
18k 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 ...
victorgp's user avatar
  • 531
24 votes
3 answers
35k views

Turning off cp (copy) command's interactive mode (cp : overwrite ?)

Does anyone know how I would turn off the interactive mode when using cp? I am trying to copy a directory recursively into another and for each file that is getting overwritten I have to answer 'y'. ...
Faisal Vali's user avatar
24 votes
4 answers
139k views

How to write ISO image to usb memory stick from linux command-line?

I'm having trouble figuring out how I would write an ISO disk image to a USB flash memory device from the command line in Ubuntu. I have the Startup Disk Creator utility, but I need to be able to ...
mikepurvis's user avatar
  • 1,067
24 votes
4 answers
65k views

hosts file seems to be ignored

I have almost fresh Ubuntu desktop box. OS was installed two weeks ago and updated from karmic repositories. Last week I had no problems with DNS. But this week something had changed. I'm not sure ...
z4y4ts's user avatar
  • 343
24 votes
6 answers
31k views

Ubuntu - can non-root user run process in chroot jail?

Is it possible for a non-root user to run a chroot process on Ubuntu?
Hawkeye's user avatar
  • 2,739
24 votes
2 answers
41k views

why do nginx process run with user nobody

I was trying to setup nginx to run with one of my rails apps, when having a look at output for ps -e | grep nginx , I realised nginx worker processes run with user nobody. Is there a reason why they ...
Anshul Goyal's user avatar
24 votes
4 answers
122k views

How to disable all power management in Ubuntu (for a server netbook)?

I need to disable everything related to having the netbook-server go into sleep/hibernate/shutdown. Spinning down the disks during inactivity is fine, but it is crucial that the machine remain in a ...
adewinter's user avatar
  • 351
24 votes
9 answers
150k 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 ...
John Bachir's user avatar
  • 2,364
24 votes
5 answers
62k views

ulimit -n not changing - values limits.conf has no effect

I am trying to raise the open file descriptor maximum for all users on an ubuntu machine. This question is somewhat of a follow up to this question. open file descriptor limits.conf setting isn'...
Abbas Gadhia's user avatar
24 votes
6 answers
31k views

Prevent SSH connection lost after logging into VPN on server machine

I encountered an issue that I can't deal with. When I'm logged onto an VPS over SSH and try to estabilish VPN connection on that VPS, the SSH connection between VPS and my machine get lost. I assume ...
mic22's user avatar
  • 341
24 votes
5 answers
55k views

netstat -ntap doesn't show pid/process name for some connections?

I have ubuntu/hardy server, with kernel 2.6.24-23-server and netstat: # netstat --version net-tools 1.60 netstat 1.42 (2001-04-15) The problem is that we have a lot of ESTABLISHED connections that ...
user avatar
23 votes
5 answers
33k views

Adding file to /etc/cron.d doesn't make it run (ubuntu 10.04)

If I scp a cron file into /etc/cron.d it doesn't run unless I edit the file and change the command. Then crond seems to pick up the cron file. How can I make cron reload its cron files in ubuntu 10....
tom's user avatar
  • 343
23 votes
6 answers
94k views

Ubuntu get PostGreSQL running

I have installed PostGreSQL 8.3 on an Ubuntu machine and I want to configure a pssw for it, however when I run this command: sudu su postgres -c psql template1 I get the following error: "psql: ...
Tony The Lion's user avatar
23 votes
6 answers
61k 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 ...
Jakub Arnold's user avatar
  • 1,794
23 votes
5 answers
58k 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).
rampr's user avatar
  • 458
23 votes
6 answers
11k views

How to make upstart back off, rather than give up

I want Upstart to do two things: stop trying to respawn a failed process so fast never give up trying to respawn In an ideal world, upstart would try to restart a dead process after 1s, then double ...
fadedbee's user avatar
  • 2,118
23 votes
5 answers
19k 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 ...
Luke's user avatar
  • 3,856
23 votes
2 answers
78k views

Nginx - Forward HTTP AUTH - User

I have some trouble with Nginx and Jenkins (Hudson). I am trying to use Nginx as Reverse Proxy for the Jenkins instance with HTTP Basic Authentication. It works so far, but i have no idea how to pass ...
opHASnoNAME's user avatar
23 votes
4 answers
31k 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 ...
Journeyman Geek's user avatar
23 votes
6 answers
52k views

Rabbitmq -> epmd reports: node 'rabbit' not running at all?

ubuntu@hostname:~$ sudo service rabbitmq-server start * Starting message broker rabbitmq-server [ OK ] ubuntu@hostname:~$ sudo service rabbitmq-server stop * ...
Shravan40's user avatar
  • 369
22 votes
8 answers
13k 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 ...
Simone Carletti's user avatar
22 votes
3 answers
32k views

500 Internal Server Error - Invalid command 'Header' in .htaccess

I'm getting in my server error log. [Mon Jan 27 08:04:06 2014] [alert] [client x.x.x.x] /home/.../public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not ...
MikeOscarEcho's user avatar
22 votes
2 answers
50k 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 ...
okapa's user avatar
  • 323
22 votes
3 answers
80k views

How to renew dhcp ip address in ubuntu?

This is a simple question in ubuntu server How do I renew a dhcp assigned IP address?
elviejo79's user avatar
  • 561
22 votes
3 answers
84k views

Completely reset PostgreSQL to default?

Question Is there a way to completely reset a PostgreSQL installation on Linux, so it is in the same state as when I installed it? Idea I have considered rm -rf /var/lib/pgsql/* rm -rf /var/lib/...
Jasmine Lognnes's user avatar
22 votes
3 answers
99k views

Node.js is not accessible from external IPs on Ubuntu

I'm sure this is very noobish, so forgive me. I'm trying to run a node.js server on port 8080 of my ubuntu 10.04. Here's the result of iptables -L on the server: Chain INPUT (policy ACCEPT) target ...
Mikael Gramont's user avatar
22 votes
1 answer
41k views

How to limit nginx access log file size and compress?

I'm hoping to get some direction on how to set up truncating and gzip'ing on my domains' access logs. I notice that the core nginx access logs get split and compressed by default, yet my individual ...
Draculater's user avatar
22 votes
6 answers
38k 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 ...
Colin Pickard's user avatar
22 votes
2 answers
26k views

How to grant sudo rights only to specific script files?

I would like a user to have sudo rights (without password check) to a couple of shell scripts under a specific directory (in my case, /usr/local/tomcat7/bin), and to nowhere else. What's the simplest ...
Jonik's user avatar
  • 3,021
22 votes
4 answers
23k views

What are Ubuntu cloud images?

What's the difference between Ubuntu's cloud images and Ubuntu's server images?
benmccann's user avatar
  • 598
22 votes
3 answers
21k views

Bash prompt on Ubuntu - FQDN (\H) same as hostname (\h)

We've got seperate environments at my workplace for development, testing, integration, and staging. Within those envs, we've overloaded the hostnames in DNS - e.g. in the dev environment, the primary ...
Ben Williams's user avatar
22 votes
2 answers
25k views

~/.bashrc is NOT sourced on ssh 'command'

At the end of .bashrc I added: touch /tmp/bash_noninteractive_test Run: /usr/bin/ssh -v -C [email protected] 'ls' On the host (logged in interactively before): % ls -l /tmp/bash_noninteractive_test ...
LetMeSOThat4U's user avatar
22 votes
1 answer
19k 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 ...
GregB's user avatar
  • 1,402
22 votes
1 answer
31k views

What's the cause of high LOC interrupts?

I'm seeing huge spikes in LOC interrupts - around 4 million per second, what exactly is the LOC interrupt, what would cause these spikes, and what can I do about it? Here's a Munin graph illustrating ...
Paul Dixon's user avatar
  • 1,576
22 votes
1 answer
12k views

What is the difference between installing libcurl4-gnutls-dev or libcurl4-nss-dev in ubuntu 11.10?

For a software that I am installing in an ubuntu server, it needs the curl deb packages. When I try to install libcurl4-dev it says that this is a virtual package and I need to install libcurl4-gnutls-...
Pablo Marin-Garcia's user avatar
21 votes
5 answers
31k views

`sudo echo "bla" >> /etc/sysctl.conf` permission denied

Disclaimer: I'm pretty novice at sysadmin stuff. I'm trying to set up port forwarding in an AWS EC2 instance, this has to be done in the command-line because I don't want to go in and edit anything, ...
bevacqua's user avatar
  • 327
21 votes
2 answers
45k views

ServerName wildcards in Apache name-based virtual hosts?

On our LAN I've set up several 'fake' TLDs in the DNS server, with the intention of using them for Apache name-based virtual hosting. I'd like to combine this with mass-virtual-hosting (i.e. ...
Martijn Heemels's user avatar

1
3 4
5
6 7
332