drybjed
  • Member for 12 years, 7 months
  • Last seen more than 7 years ago
Suggestions for entries in a sysadmins .vimrc
17 votes

First, if you have more than a couple machines you work with, consider putting your ~/.vim/, ~/.vimrc and other useful config files (screen, your shell, etc.) in a revision control system. I prefer ...

View answer
How do I change swap partition in Linux?
14 votes

If you have decent amount of RAM and your applications aren't memory-intensive, you might consider using a separate file as a swap instead of the whole partition. That way you can easily select the ...

View answer
Shell script to execute something when one of the daemon dies?
Accepted answer
7 votes

monit is great in this case - it runs on localhost, so you don't need a network connection to restart your daemon (in case it fails, or daemon is responsible for networking). It also has small ...

View answer
ssh-copy-id in one line with password, possible?
3 votes

Here's a method I use to provision new Debian hosts without known ssh keys. Host needs to have python and python-apt packages installed for this playbook to work out of the box. If you want to test it ...

View answer
Preventing specific packages from getting installed in Debian
2 votes

You can use apt pinning to prevent certain packages from being installed. Try putting this in /etc/apt/preferences: Package: xserver-xorg* Pin-Priority: -100 Should prevent installing all xserver-...

View answer
Spam prevention tips for Postfix
2 votes

Nice idea is to have two separate machines (physical or virtual) for incoming and internal/outgoing SMTP traffic. That way you can have more restrictions in place for outside messages, more strict ...

View answer
How to deal with a stubborn sysadmin?
2 votes

I guess that depends on who you are asking... If the question is meant for a fellow sysadmin, then in my opinion, whatever the "rank" (senior, junior), sysadmins should help each other in fixing ...

View answer
All sub-domains to one IP in hosts file?
2 votes

You can use dnsmasq for that, just add in the config file: address=/.vm/192.168.56.3

View answer
What is a zombie process and how do I kill it?
1 votes

As for the virtual shotgun... $ shoot <pid> #!/bin/sh victim=`ps -e -o pid,ppid | egrep "^\s*$1\b" | awk '{print $2}'` victim\_name=`ps -e -o pid,cmd | egrep "^\s*${victim}\b" | head -n 1 | ...

View answer
Control Panels for Servers without a monitor
1 votes

All our Linux servers are used through ssh, it's just easier that way, with configuration file editing (vim), service management, and such. As for "much repetitive typing" - how much clicks can be ...

View answer
Using CCZE with multiple log files
1 votes

I'm not sure what you mean by 'always visible' - you want to have certain lines stay on screen while the rest is scrolled away? That's hard to do with ccze, perhaps you need a different log viewing ...

View answer
Setting $TERM for gnu screen
0 votes

Add in your '~/.screenrc': attrcolor b ".I" termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' defbce "on"

View answer
Is there a GUI tool for managing VirtualBox drives/machines?
0 votes

There is a VirtualBox Manager GUI, both for Linux and for Windows version. I use it all the time on my Debian (just running 'virtualbox' opens up the GUI interface). You can see it on screenshots ...

View answer
My server is about to be switched off. I run a LAMP set up, what should I back up?
0 votes

If it's a VPS to which you have full access, it's good idea to backup /etc, /home, /var, /usr/local directories, and anything else that you had to change by hand. Other directories, like /usr are ...

View answer
Desert Island Tools?
0 votes

Debian netinst CD network connection That's how I setup all my servers anyway...

View answer
How to find out how much disk space I'm using on a VPS?
0 votes

You can try ncdu /<path>, it's a nice frontend to du -shx /<path>, you will have to install it though, because it's not included on standard installations.

View answer
DNS: Subdomains that Require Both an MX Record and a CNAME
-4 votes

MX and CNAME are completely separate records - first one determines the mail server for given domain, second gives the address for a domain. This should work: @ IN SOA ns1.mywebservice....

View answer