Tag Info

Hot answers tagged

41

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 ...


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 ...


14

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. ...


12

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 ...


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

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 ...


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


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

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

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 ...


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

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 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

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

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 ...


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

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

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 ...


3

You don't need to reboot your server to free up memory. Use the top command to identify which process uses the memory and restart it and try to diagnose what causes the abnormal memory consumption. For the probable cause of your problem, this is kind of a shot in the dark but there is a well-known memory leak in console-kit-daemon, an Ubuntu-specific daemon ...


3

You can use the setting DefaultRoot to chroot a group to the /var/www/[domain] directory. For example, this will chroot the group group1 to example.net: DefaultRoot /var/www/example.net group1 Add to proftpd.conf and restart ftpd. The parameter after the path accepts boolean input.


3

Try the _netdev option for that filesystem in /etc/fstab. _netdev The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).


3

I would edit /etc/network/interfaces to have the following contents: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 auto eth0 iface eth0 inet static address ...


3

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 ...


3

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

I ran some experiments on a virtual machine running Ubuntu 9.10, these are the working instructions: Remove all previously dotdeb installed lines into /etc/apt/sources.list and insert this line only deb http://php53.dotdeb.org oldstable all Then you should update package list using aptitude update, after this you should be able to select the php5.3 ...


3

Set your hostname correctly Read more here http://www.randombugs.com/linux/change-hostname-domainname-linux-system.html about changing domainname/hostname Look what you have in /etc/mailname and modify accordingly Don't forget about /etc/hosts & reverse DNS. After everything is in place, restart postfix. Regards



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