Hot answers tagged

22

Upgrade all packages: apt-get update; apt-get upgrade; If you want to upgrade just one package (e.g. php5): apt-get update; apt-get install php5; For the package versions available on Debian take a look at: http://www.debian.org/distrib/packages If you want to install php5 5.4.4-2, that is only available on wheezy, you should add wheezy to your ...


20

su - username is interpreted by your su to mean "run username's shell as an interactive login shell" su username - is interpreted by your su to mean "run the following non-interactive command (-) as username" the latter only worked at all because: your su passes trailing arguments to sh for parsing sh takes - to mean "run as a login shell (read ...


19

Sounds very much like the drives are doing SMART scrubbing (automatic online testing). smartctl -a /dev/hdx should confirm the configuration with: Auto Offline Data Collection: Enabled. Disable with: smartctl --offlineauto=off /dev/hdx It could be something else too...


16

IIRC, an unlimited memory_limit isn't supported by the CLI (I'll try to find a source for this) but for now, try passing it into the command: php -d memory_limit=128M my_script.php UPDATE Apparently I was dreaming about the unlimited memory_limit not being supported for php cli. Regardless, it looks like the value from the ini is ignored. The simplest ...


14

First of all, they are only warnings, not errors. Warning: The modules file '/proc/modules' is missing. rkhunter is trying to check the kernel modules, but it cannot because the file /proc/modules doesn't exist. You can disable the test by changing the below line: DISABLE_TESTS="suspscan hidden_procs deleted_files packet_cap_apps" to: ...


14

I haven't tested this, but I believe that after you run your dpkg-reconfigure on an example machine, you can run debconf-get-selections | egrep "^gitolite\s" to get what was set. (it's in the debconf-utils package if you don't have it). Then on the CLI, debconf-set-selections $FILENAME before running apt. Then with puppet it would be something like: file ...


14

One consequence of removing the MTA is that mail generated by the system itself (usually sent to root), for example by Cron, Logwatch, rkhunter and others cannot be be delivered. So yes, an MTA is an integral part of any Unix-like system and I doubt Debian will let you uninstall the MTA without complaining and suggesting an alternative. But it's not a big ...


13

Pinning is going to put you in dependency hell, as @Juan noticed. When I want the bleeding edge on my Debian systems I usually turn to http://www.dotdeb.org/ For proper instructions -> http://www.dotdeb.org/instructions/


11

You don't tell logrotate which file to rotate on the command line. You pass it a configuration file. So in your case, logrotate is reading /var/log/syslog and trying to parse it as a config file and failing (hence your errors). If you want to rotate /var/log/syslog it needs to be listed in a logrotate config file somewhere, and you just run logrotate. If ...


11

apt-get install ntp. If you've never had it installed before, you should be good to go. If you have, and therefore, might have stale config files, you could apt-get remove --purge ntp and apt-get install ntp again to get new config files. Or if you want to keep your config files, I recommend checking that /etc/default/ntp has NTPD_OPTS='-g'. This says to ...


10

it appears that /usr/local and /usr/local/bin (both of which are owned by root:staff) are group-writable by default on Debian Squeeze. This is, at present, by design, you may review the team's missives on the purpose/importance of this choice in the following thread: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538392 Is there a reason that ...


10

What you're seeing is a stack trace. It's an un-handled error from the kernel showing the path of execution when something goes so damn wrong that there's nothing else in place to do except log the problem and leave it for a human to figure out. The call at the head is usually the defining one: WARNING: at ...


10

Have you checked this parameter: @local_domains_acl It is defined on /etc/amavis/conf.d/05-domain_id. According to the Amavisd-new documentaion on http://www.ijs.si/software/amavisd/: No spam-related headers inserted? Here are some reasons: @local_domains_acl is not correctly set. These headers are only inserted for recipients matching ...


10

You're on an OpenVZ (container) based virtual machine. As a result you have no control over the kernel; it is provided by your hosting provider, and you are limited to whatever the provider chooses to provide. If you want a different kernel, you either need to contact your hosting provider, or use something other than OpenVZ.


9

The cron.weekly scripts are started by run-parts which skips all files with extension. Rename runcheck.sh to runcheck and it should do


9

Is dhcpcd/dhclient still running? It will refresh its DHCP address on the interface if you don't kill it. Also, did you configure Network Manager? That'll override the interfaces file. Get rid of it if you're not using it.


9

At the top of /etc/init.d/apache2, you'll see the lsb-header section which looks like this: ### BEGIN INIT INFO # Provides: apache2 # Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # ...


9

The best way to go for it are the daemontools. They allow you to monitor and respawn processes. See the documentation on their website: http://cr.yp.to/daemontools.html


9

supervise is a lightweight, efficient alternative. Under debian it is packaged in daemontools. You can also read this related question, which lists some supervise criticisms, and mentions restartd as another possibility. Finally, if you want something incredibly easy to setup, I've had great success with monit. It is also packaged in Debian.


8

When your primary isn't available, the foreign mailserver queues mails und does a delivery retry up to five days. I haven`t setup an additional MX, because most spammers deliver to the secondary first. Often this server isn't maintained as good as the primary. summa summarum: much work, less benefit. Let the world queue your mails!


8

You've probably stumbled into a 32-bit/64-bit problem. Disks with the MBR partitioning layout are limited to a 2TB maximum drive size due to the field widths in the partition table and the block-size; the field is 32-bits wide, but with a 512 block-size 2TB is as big as it allows. You can get higher with 4K-block devices, but those don't appear to be used in ...


8

There is an lsb-release package that supplies the lsb_release command. This is separate from the lsb, lsb-base, and lsb-core packages. None of the lsb packages are essential. So if your package needs lsb_release it should specify that it depends on lsb-release.


7

Install devscripts Get the patch for lenny from http://pastebin.com/Hhsut197 (based on the official glibc patch, removed ChangeLog, NEWS stuff, adapted Makefile for lenny, removed patch #2 for getXXbyYY_r.c) Run: apt-get update && apt-get source libc6; apt-get build-dep libc6 Copy your patch in glibc-2.7/debian/patches/all Add the patch name in ...


7

If you don't want to write anything, maybe netcat listening on one port, piping to tee, and tee going to a couple named pipes, that are in turn netcat to the prod and test server ports? Something like: mkfifo /tmp/prodpipe mkfifo /tmp/testpipe nc -l 9999 -k | tee /tmp/prodpipe | tee /tmp/testpipe And, in separate terminals: cat /tmp/prodpipe | nc ...


7

The reason your showing lots of space is because your linode image is 956mb in size, and you have 20gb in total on your account. Hence, your actual server is only 956mb in size (giving you 6.9mb currently avilable). To solve- shutdown your linode instance, resize the image to use more of your account (suggest using it all, unless you have other images you ...


7

It's not the TTYs you would disable; it is the gettys (you can also modify udev rules to not create device files for the ttys, but they are implemented in the kernel). If you log in only via SSH and do not log in through any of the console ttys or a serial tty ever, by all means remove the inittab rules that run a getty on them. However, I would personally ...


7

It's in the systemd package. It's not there because you haven't installed it.


7

The MTA is used to handle all kinds of messaging, not just email to user mailboxes. On my CentOS system, it is using a whopping 4 MB of RAM. That's less than one PHP thread. Don't jeopardize the stability and operation of your server for a pittance of extra capacity. Buy more capacity instead.


6

It is exactly what is says on the tin. Your DN cn=myuser,dc=mydomain,dc=com does not have enough permissions to modify the cn=config tree. And when you are trying "to specify the config database" you are using an entirely different DN, cn=myuser,cn=config, which apparently either doesn't exist or you are using a wrong password. To do modifications like ...


6

What you want to have is port forwarding. So, if your virtual machine is named 'windows7', you can forward the RDP port by the following command: virsh qemu-monitor-command --hmp windows7 'hostfwd_add ::13389-:3389' The first port number is the one which is opened on your hypervisor, and the second one is the one opened by the Windows guest's remote ...



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