Category Archives: Linux
filtering spam with procmail | http://www.benya.com/
This is a collection of procmail recipes which I use to pre-filter the incoming mail before letting SpamBayes take a crack at it. This combination seems to provide a fairly decent level of protection. Naturally, your mileage may vary.
procmail is a mail processor installed on most Linux systems and used to by the mail server to deliver mail to your mailbox. If your mail server is hosted on linux you may use procmail to remove spam and sort messages before they are placed into your mailbox. If, like me, you prefer to use pine in a shell window to check your e-mail, this type of filtering may be your only defense against spam.
In order to understand these recipes, at least some knowledge of procmail and regular expressions syntax is required. The basics can be learned from procmail man pages and from links on procmail home page. Here is a great procmail documentation project and a library of recipes
Spam filters and other useful procmail recipes
Source: filtering spam with procmail | http://www.benya.com/
Installing and Using Ranger, a Terminal File Manager, on a Ubuntu VPS | DigitalOcean
This tutorial will cover how to install and use ranger, a terminal file manager. Ranger is a file management application that can be used from within a terminal window to traverse the file hierarchy and manipulate files within a simple, visually appea
Source: Installing and Using Ranger, a Terminal File Manager, on a Ubuntu VPS | DigitalOcean
sound – Can I downmix stereo audio to mono? – Ask Ubuntu | https://askubuntu.com/
- Find the name of your audio sink by running
pacmd list-sinks | grep name:- Then run this command (taking care to remove the angled brackets):
pacmd load-module module-remap-sink sink_name=mono master=name_of_audio sink_given_by_previous_command channels=2 channel_map=mono,monoor add
load-module module-remap-sink sink_name=mono master=name_of_audio sink_given_by_previous_command channels=2 channel_map=mono,monoto
/etc/pulse/default.pato have it run at startup.- Then in Sound Preferences choose “Mono” as the output, but remember to reduce volumes by half, since two channels are getting mixed into one, or else you’ll have distortion. To test, run:
speaker-test -c 2 -t sineSame thing in a single command:
pacmd load-module module-remap-sink sink_name=mono master=$(pacmd list-sinks | grep -m 1 -oP 'name:\s<\K.*(?=>)') channels=2 channel_map=mono,mono
- To remove the mono channel, just use:
pacmd unload-module module-remap-sink
Source: sound – Can I downmix stereo audio to mono? – Ask Ubuntu | https://askubuntu.com/
Linux Mint dumps Ubuntu Snap | ZDNet
The popular desktop Linux distribution, Linux Mint, wants nothing to do with Ubuntu’s Snap software installation system.
Postfix Basic Configuration
Introduction
Postfix has several hundred configuration parameters that are controlled via the main.cf file. Fortunately, all parameters have sensible default values. In many cases, you need to configure only two or three parameters before you can start to play with the mail system. Here’s a quick introduction to the syntax:
Source: Postfix Basic Configuration
Postfix masquerading or changing outgoing SMTP email or mail address – nixCraft
SwapFaq – Community Help Wiki
cat /proc/sys/vm/swappiness
Source: SwapFaq – Community Help Wiki
amavisd-new
Source: amavisd-new
Migration from Sendmail to Postfix
Migration from Sendmail to Postfix