Tag Info

Hot answers tagged

50

By default Ubuntu doesn't specify a ServerName in the Apache configuration, because it doesn't know what the name of your server is. It tries a reverse lookup on your IP address, which returns nothing, so it just has to use the IP address as the ServerName. To fix it, either add a ServerName directive outside of any virtual host - e.g. in ...


32

Virtual memory isn't even necessarily memory. For example, if a process memory-maps a large file, the file is actually stored on disk, but it still takes up "address space" in the process. Address space (ie. virtual memory in the process list) doesn't cost anything; it's not real. What's real is the RSS (RES) column, which is resident memory. That's how ...


26

Here's a quick fix: echo ServerName $HOSTNAME > /etc/apache2/conf.d/fqdn


17

What goals do you have in mind for your security? Who are you protecting this against? Broad spectrum, use iptables to firewall port 22 against any unwanted IPs by specifically allowing the IPs you want, then blocking everything else. You can also specify whether users can use passwords to log in, or whether they have to have certificates, which might be ...


16

Another way around that warning is to put a fully qualified domain name on the 127.0.1.1 line of /etc/hosts. It doesn't even have to be a fqdn that would actually resolve to anything on a dns server. 127.0.1.1 hpdtp-ubuntu910.lan hpdtp-ubuntu910 would do the trick, while also preserving the behavior of any programs that aren't expecting the extra .lan. ...


9

From the top(1) man page: o: VIRT -- Virtual Image (kb) The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out. VIRT = SWAP + RES. Where RES means RESident memory (physical memory used). Actually that's not correct (anymore). When it ...


8

lsof and nmap are solutions, but they're not installed by default. What you want is netstat(8). sudo netstat -plunt |grep postgres


7

THIS SOLUTION WORKS FOR MY DEVELOPMENT NEEDS: Background: Debian Linux Sid: VirtualHost Development: have 10 server names [10 virtualhost entries inside sites-available] Added each one a unique localhost ip address inside /etc/hosts 127.0.0.1 joe localhost.localdomain localhost 127.0.1.1 joe 127.0.1.2 joomla ...


7

Keys named ssh_host_*_key in /etc/ssh are ssh host keys and are used to verify the authenticity of the host when someone is connecting to it. This mechanism also protects from Man-In-The-Middle Attacks. http://www.symantec.com/connect/articles/ssh-host-key-protection http://serverfault.com/search?q=ssh+host+keys


6

Setting ServerName in httpd.conf did not work for me. I fixed it by setting ServerName 127.0.0.1 in /etc/apache2/conf.d/name. I'm running Ubuntu 12.10 Alpha3 and have ServerName defined in both spots. Source: http://linuxconfig.net/manual-howto/error-solution-could-not-reliably-determine-the-servers-fully-qualified-domain-name.html


6

logon to webmin then, Webmin > Webmin configuration > Webmin Modules > (check) Third party module from ... then click buton labeled "..." find VSFTPD module on the list. click the module name. it will give you the module installation link in main window. then install... but, that module may be is not providing more options for vsftpd. i think you will use ...


5

Based on information found in this page about enabling XDCMP and the file /etc/gdm/gdm.schemas, I managed to create the following file: # /etc/gdm/custom.conf [xdmcp] [chooser] [security] DisallowTCP=false [debug] I also changed the /etc/X11/xinit/xserverrc file to: exec /usr/bin/X11/X i.e. I removed the -nolisten tcp options to the X executable. I ...


5

Your missing a server config level ServerName entry. You need to have a ServerName entry outside of any host, for apache to use as it's default. Putting a ServerName entry inside a VirtualHost will not fix the problem. See http://httpd.apache.org/docs/2.2/mod/core.html#servername.


5

I don't quite follow what you're trying to achieve. Maybe you're confusing the -L switch with the -R switch?


5

Groups and SGID. user1 would have group membership in www-data and you would set everything group writable under [domain]. Set user1's home directory to /var/www/[domain]. You would also want to set the SGID on [domain] and all directories under it, which would cause permissions to be inherited. (g+s) Be aware, user1 would have access to all Web content. ...


5

Actually Ubuntu 9.10 is EOL. It went EOL on April 30th, 2011 you can update by changing /etc/apt/sources.list as follows: ## EOL upgrade sources.list # Required deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-updates main restricted universe multiverse deb ...


4

If you're using the Ubuntu supplied VirtualBox package, then you're using the Open Source Edition (OSE). This edition lacks RDP support as well as USB and USB over RDP support. If you need RDP, then you need to download the non-OSE binary package from the VirtualBox website. http://www.virtualbox.org/wiki/Editions explains the different editions more ...


4

You are forwarding chris-desktop:3142 to 192.168.1.8:80 via the sshd process on yellow.example.com The output from root@yellow:~# netstat -lntp | grep 3142 root@yellow:~# is as expected. There is nothing listening on yellow:3142 because the connection to 192.168.1.8:80 is being managed by the sshd process on yellow. You should see a listening process ...


4

You almost certainly shouldn't have two default gateways. Try removing the default gateway from the eth1 stanza and see if that helps.


4

Depends on how you are counting used memory. If you are looking at "free", make sure to discount the cached and buffers used. Linux tries to cache as much disk activity as it can so that subsequent accesses to those files is much faster than having to go to the disk again. If memory is required, cache memory will be released to satisfy the new request. ...


4

You may want to add ip_nat_ftp to your list aswell as making sure everything is being loaded with using the command lsmod Is that a home server, from some internet provider ? if so you may be having a common issue where usually internet providers block ports from 1 to 1024 from their residential users so they dont create home servers (this approch is used ...


4

I'm assuming that nginx is not the server listening on port 5010 as well as 80, correct? Something else is listening on 5010 and you wish to have nginx proxy to that server? If that's the case, here's a nice sample config I've used in the past with success: server { listen 80; server_name <YOUR_HOSTNAME>; location / { ...


3

This is a confirmed bug of 9.10. See https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/497299 I changed the line 9 of /etc/init/rc-sysinit.conf from "start on (filesystem and net-device-up IFACE=lo)" to "start on filesystem and net-device-up". It's worked for me.


3

From what it sounds like, you're connecting your DHCP server directly to your internet connection. Not only is it unlikely that you have your DHCP server setup to give out correct IPs and network settings for your ISP, but this will likely conflict with your ISPs DHCP server, causing problems for other people using your ISP. Please don't do this. The ...


3

You first want to move /home onto the / partition. Unmount /home, remount it in /mnt, and move the directories in /mnt across to the now empty /home directory. Then edit fstab so that /home isn't mounted at boot any more. Then you want to remove the old /home partition and increase the size of the / partition. Gnuparted or qtparted will both let you do ...


3

To fix it, we need to edit the /etc/apache2/httpd.conf or /etc/apache2.conf and add the following line: ServerName nameofserver


3

McLovin: I am the primary author of ec2-consistent-snapshot. If you copy .awssecret to /root/.awssecret it should function as you want. There are a number of other ways to pass in the access key id and secret access key if you look at the manpage. The xfs_freeze error is only happening because of the previous error. The latest versions of this software ...



Only top voted, non community-wiki answers of a minimum length are eligible