Questions tagged [server]

Questions related to Ubuntu Server, and server-related packages.

Filter by
Sorted by
Tagged with
520
votes
19answers
930k views

How do I fix my locale issue?

I am getting this message every time I do something like starting or stopping a service. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: ...
449
votes
14answers
1.4m views

Apache error “Could not reliably determine the server's fully qualified domain name”

When I restart my Apache server using the command sudo /etc/init.d/apache2 restart I get the following error: Restarting web server apache2 apache2: Could not reliably determine the server's fully ...
268
votes
10answers
527k views

How can I monitor the memory usage?

I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the ...
259
votes
12answers
1.3m views

How do you restart Apache?

I switched from SLES to Ubuntu and now I want to restart my local server. In SLES I used : rcapache2 restart but this somehow seems not to work in Ubuntu. :( How do i restart my Apache?
230
votes
5answers
346k views

What is LVM and what is it used for?

As a Linux/Ubuntu newbie, what is LVM and what is it used for? In terms of a web server installation, what benefits does it provide? Would you recommend using it?
209
votes
13answers
1.4m views

How do you run Ubuntu Server with a GUI?

Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI?
189
votes
10answers
392k views

How do I check if a package is installed on my server?

I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have ran into a bit of problem. At the end of the install, it asks you for several extra packages whether you want them or ...
184
votes
10answers
277k views

How do I add locale to ubuntu server?

I currently have those locales: locale -a C en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 ...
182
votes
18answers
372k views

How do I free up disk space?

My Ubuntu cloud server has left only 900MB of disk space. I'll just empty the directory /tmp and wondering if there is any other location to clean up.
176
votes
10answers
316k views

How do I copy files that need root access with scp?

I have an Ubuntu server to which I am connecting using SSH. I need to upload files from my machine into /var/www/ on the server, the files in /var/www/ are owned by root. Using PuTTY, after I log in,...
161
votes
7answers
470k views

How can I see what ports are open on my machine?

I would like to see what ports are open on my machine, e.g. what ports my machine is listening on. E.g. port 80 if I have installed a web server, and so on. Is there any command for this?
161
votes
6answers
212k views

How to add a PPA on a server?

The server version of Ubuntu does not have the add-apt-repository command. How can I add a Personal Package Archive (PPA) to the server without this command?
151
votes
4answers
216k views

Disable autostart for a service without uninstalling? [duplicate]

How can I disable autostart for a service without uninstalling? For example, I'd like to leave tomcat installed, but I don't want it turning on every time I restart.
144
votes
5answers
297k views

Chkconfig alternative for Ubuntu Server?

I've become very accustomed to managing service startups on Redhat/RHEL platforms using chkconfig though that doesn't appear to be the Debian/Ubuntu way - How do I update runlevel information for ...
141
votes
8answers
379k views

How to find out how much disk space is remaining?

What is the command to find out how much disk space is being used/remaining?
121
votes
18answers
806k views

SSH Permission denied (publickey)

I am trying to connect to a Linode (running Ubuntu 12.04 LTS) from my local machine (also running Ubuntu 12.04 LTS) I have created a private and public key on my local machine and copied my public ...
120
votes
3answers
737k views

How do I configure my DNS settings in Ubuntu server?

According to this page it appears to be simple. However, /etc/bind does not exist on the default installation of Ubuntu 12.04.3 LTS server. So, without installing any further software, how can ...
115
votes
8answers
272k views

Changing TTY keyboard layout on a server?

I use 12.04 Server in command line mode (no X installed), and I would like to change the keyboard layout. How can I do this?
110
votes
8answers
467k views

Create a new SSH user on Ubuntu Server

Just created a new virtual Ubuntu server and I'm in the process of hardening it for production use. I currently have a root account. I want to do the following: Create a new user (let's call them jim ...
102
votes
1answer
547k views

Give user write access to folder [duplicate]

How do i give the user 'testuser' write privileges on the folder: /var/www/test/public_html
100
votes
0answers
261k views

How do I see which ports are open? [duplicate]

I am running a web server on a machine with Ubuntu 11. Everything is accessible from the local network, but not from outside. What can I do to check to make sure the appropriate ports are open? I am ...
96
votes
8answers
195k views

Nginx failing to reload - how to track down why?

Hi I've had my Nginx server running great on Ubuntu server 12.04 for a while. I've been gradually bolting on various bits, and got as far as optimising load times on my wordpress page. After making ...
93
votes
10answers
272k views

How do I get resolvconf to regenerate resolv.conf after I change /etc/network/interfaces?

After updating /etc/network/interfaces with something very similar to below, how do I get /etc/resolv.conf to update? I tried (as root) resolver -u, service networking restart but they didn't work. I ...
87
votes
11answers
191k views

How do I install and manage RPMs?

I have a burning desire to install RPMs onto my Ubuntu installation - is this possible? Can I use Yum - or another RPM Package Management tool?
84
votes
3answers
123k views

netstat or alternative in docker ubuntu server 16.04 container

Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04? I am running an ubuntu:16.04 container in docker for Windows, it seems that ...
84
votes
6answers
734k views

SSH Public Key - No supported authentication methods available (server sent public key)

I have a 12.10 server setup in a virtual machine with its network set to bridged (essentially will be seen as a computer connected to my switch). I installed opensshd via apt-get and was able to ...
83
votes
4answers
234k views

How do I change mirrors in Ubuntu Server from regional to main?

I have a Lucid Server (10.04) set up and I would like to change the mirror from US (or any other country) to the Main Ubuntu Mirror. For example my two first entries in sources.list are: deb http://...
82
votes
4answers
433k views

How to setup a restricted SFTP server on Ubuntu?

I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home ...
79
votes
4answers
53k views

What's the risk of upgrading over SSH?

When I run sudo do-release-upgrade over ssh, I get the following message. This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in ...
79
votes
5answers
386k views

Reboot a Server from Command Line?

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which ...
79
votes
4answers
67k views

How can I check if automatic updates are enabled?

I want to be sure if automatic updates are enabled on Ubuntu 12.04 server. How exactly can I check this? And how can I disable automatic updates if it's enabled?
76
votes
12answers
177k views

How to have two versions of PHP installed and switch easily between them?

I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?
75
votes
6answers
93k views

What is the difference between “service restart” and “service reload”

I'm trying to understand the difference between service restart [someservice] and service reload [someservice]. I understand that "restart" restarts the service whereas "reload" reloads the ...
75
votes
8answers
81k views

Debian Stable vs Ubuntu LTS for Server? [closed]

Which is a better platform for a professional use server? Debian Stable or Ubuntu LTS? The third party software we plan to use, works on both. Which one is better on it own merits? Take into ...
75
votes
8answers
133k views

systemctl failed to connect to bus - docker ubuntu:16.04 container

I'm trying to use the systemctl command in a ubuntu:16.04 docker container. I'm running the following command... systemctl status ssh However I'm getting the error... Failed to connect to bus: No ...
72
votes
3answers
111k views

How to find and install latest Ruby version using RVM?

I finally got RVM working and now I would like RVM to install the latest stable ruby version. In the tutorial I am using they installed ruby 1.9.3 with command : rvm install 1.9.3 Now I want to ...
68
votes
2answers
45k views

Missing parameter in configuration file. Keyword: path

Im trying to boot ubuntu 14.10-server-i386 in a pendrive. But im getting this error when boot from pendrive. Missing parameter in configuration file. Keyword: path What does it mean? How to ...
66
votes
4answers
539k views

Assigning a static IP to Ubuntu Server 14.04 LTS

I've installed Ubuntu 14.04 LTS Server in my machine on a separate hard drive alonside my Windows 7 installation. The Windows OS has full network connectivity and internet access through the Ethernet, ...
65
votes
7answers
114k views

Turn off monitor using command line

I am runnning Ubuntu Server on my laptop. There is really no reason for the screen to be on. I have been trying to use this command to turn the screen off: sleep 1 && xset dpms force off The ...
65
votes
2answers
79k views

How do I create a self-signed SSL certificate?

I've set up SSL on my webserver, now I need two files: a certificate a certificate Key How do I create a self-signed certificate for testing purposes?
60
votes
8answers
97k views

Nginx installation error in Ubuntu 16.04

:~$ sudo apt-get remove nginx* && sudo apt-get install nginx-full* Reading package lists... Done Building dependency tree Reading state information... Done After this operation, 5,579 kB of ...
60
votes
7answers
193k views

vsftpd: 530 Login incorrect

I can't get vsfptd working on Ubuntu 12.04. my vsftpd.conf file looks like this, and I try to connect with a local user: listen=YES anonymous_enable=NO local_enable=YES write_enable=YES ...
59
votes
1answer
55k views

Ubuntu Server 13.10 now goes to sleep when closing laptop lid

I recently upgraded to the latest version (13.10). I have it running on an old laptop. Since the upgrade, whenever I close the laptop lid, it goes to sleep mode. Any idea on how to fix? I've ...
59
votes
3answers
66k views

How is /etc/motd updated?

I was wondering how /etc/motd is automatically updated (I'm on Ubuntu 10.04, server edition). I found the update-motd manpage via a web search, but that program is not installed on my machine. The /...
59
votes
4answers
62k views

How do I set up an email server?

My VPS is running Ubuntu, and I'd like to be able to receive email to my domain. How do I easily set up a mail server to do this?
57
votes
8answers
130k views

Setting up a git server

I've recently set up ubuntu-server on Amazon EC2. I would like to use it as my git server, so I could store my repos there. So, where can I find some detailed instructions of how to setup git on ...
56
votes
3answers
82k views

How do I disable remote SSH login as root from a server?

For security purposes my company wants me to not allow anyone to be able to log into our Ubuntu server as root remotely over SSH. We still want the root account to exist, we just do not want it to be ...
56
votes
5answers
72k views

How do I disable the blank console “screensaver” on Ubuntu Server?

How to disable blank screensaver on Ubuntu Server? There's no desktop or X, only console (command-line interface).
55
votes
3answers
276k views

How do I install and configure a DHCP server?

How to install and configure a DHCP server in Ubuntu 12.04? I need a step-by-step tutorial if somebody has one.
54
votes
15answers
284k views

Trying to do ssh authentication with key files: server refused our key

I'm trying to setup ssh authentication with key files in stead of username/password. The client is a Windows box running PuTTY and the server is a Ubuntu 12.04 LTS server. I downloaded puttygen.exe ...

1 2 3 4 5 255