Source: How do I connect my Scarlett or Clarett USB interface to an iPad? – Focusrite Audio Engineering
Monthly Archives: April 2020
amavisd-new
Source: amavisd-new
Migration from Sendmail to Postfix
Migration from Sendmail to Postfix
Postfix Configuration Parameters
Postfix Configuration ParametersPostfix main.cf file format
Source: Postfix Configuration Parameters
Postfix TLS Support
What Postfix TLS support does for youTransport Layer Security (TLS, formerly called SSL) provides certificate-based authentication and encrypted sessions. An encrypted session protects the information that is transmitted with SMTP mail or with SASL authentication.NOTE: By turning on TLS support in Postfix, you not only get the ability to encrypt mail and to authenticate remote SMTP clients or servers. You also turn on hundreds of thousands of lines of OpenSSL library code. Assuming that OpenSSL is written as carefully as Wietse’s own code, every 1000 lines introduce one additional bug into Postfix.Topics covered in this document:How Postfix TLS support worksSMTP Server specific settingsSMTP Client specific settingsTLS manager specific settingsBuilding Postfix with TLS supportReporting problemsCreditsAnd last but not least, for the impatient:Getting started, quick and dirty
Source: Postfix TLS Support
PostfixAmavisNew – Community Help Wiki
Official User Guide · ranger/ranger Wiki
Introduction
This guide will teach you how to efficiently use
ranger.User interface
The main window consists of three panels by default (it’s called Miller columns by the way):
- the middle one with the contents of the current directory,
- the left one shows the parent directory, with the current directory highlighted,
- the right one serves various previews; I will tell you more about it later.
If you’re familiar with vim, you should feel right at home with
ranger'sUI conventions.rangeruses thehjklkeys for navigation and borrows many idioms fromvim. For example:yy(copy line invim) copies a file,pppastes it andddcuts the file. The more complex functions may be called from the command line invoked with:(a colon).The current file’s attributes may be seen at the bottom and the current directory path may be seen at the top.
For the
mcusersIf you’re familiar with
mc(Midnight Commander) the first thing you may notice is the lack of the second panel for the file navigation. It may seem like a limitation but in most cases people use only one panel at a time.rangerallows you to create new tabs (like in a web browser) and switch between them with eitherAlt-numberorTab. If you open just two tabs,ranger'stabs effectively behave just likemc'spanels. And you can even open more if such need arises.Movement
The basic movement keys are inspired by
vim:jkmoves up and down,lenters the selected directory or opens a file andhreturns to the parent directory. Many other navigation keys known fromvimwork too, feel free to try them.Configuration files
rangeruses 4 main configuration files:
commands.pycontains various functions’ implementation, written in Python, used to modifyranger'sbehavior,rc.confis used for setting various options and binding the keys to functions,rifle.confdecides which program to use for opening which file,scope.shis a shell script used to generate the previews for various file types.It’s quite common to use
ranger --copy-config=allto copy the default config files to~/.config/rangerand modify them there. Be aware that forrc.confandcommands.py, ranger reads both the global and the user’s config (in that order). It allows the user to maintain only a small config which sets only the things not set in the default one. Forscope.shandrifle.conf, ranger reads either the users or the global config.The best practice is to only add the options/keybindings you actually want to change to your rc.conf, rather than to have a complete copy of the default rc.conf. This eliminates the need to update your config manually and gives you the benefits from new options/keybindings of future ranger versions. If you want to keep the full rc.conf though, you may want to set the environment variable
RANGER_LOAD_DEFAULT_RCtoFALSEto avoid loading both the default and your own rc.conf. In this case you have to update your config manually though.File operations
To open a file and let Ranger choose which program to use to open it with (via
rifle), just press Enter. To choose yourself, pressr, and either choose from the list or type the program you want to use. You can also use the command:open_with.To add a file handler to Ranger’s repertoire, run the command
ranger --copy-config=rifle, then edit the resulting file. For example, to add Kolourpaint as an image editor, you could add:mime ^image, has kolourpaint, X, flag f = kolourpaint -- "$@"The order of statements in this file reflects the order programs will be used and appear on the
rlist in.To copy a file, highlight it, press
yyto mark it for copying (analogously to copying a line invimwithyy), then navigate to a target directory (or switch a tab if you decided to do it the “mcway”) and then press “pp” to paste it (again, almost like invim).(To copy only the directory, filename, or file path with name as text to your clipboard — requires that xclip, xsel or pbcopy (in case of mac os) is installed — use
yd,yn, andyprespectively. Copying actual files remains internal to ranger.)Moving a file differs very little from copying it: just use
ddinstead ofyyat the beginning.To copy/move multiple files, just mark them with
Spacethen usedd/yy. If you want to operate on multiple files stored in different directories, you may useya/dato add them to the list of files to be copied/moved before pasting them.(Note that the copy/cut buffers can be used for other operations as well, by using the
%cmacro in your commands. For example, adding files to the cut/copy buffer usingya/dathen using the:shell -w printf %c | xargs rmcommand allows you to delete multiple files in multiple directories. Remember to clear the buffer once you’re done usingud/uy.)If you’d like to copy files from one ranger instance to another, type
:save_copy_bufferin one and:load_copy_bufferin the other ranger instance. This method can also be used to export a list of files. They are saved in the file~/.config/ranger/copy_buffer.Tabs
If you’re working in more than one directory at a time — and you most likely are — you may create tabs for each directory to which you want to have a quick access. The tabs are numbered. To switch to the N-th tab, press
Alt-N, whereNis the tab number. If such tab does not exist yet, it will be created. To close a tab, pressq(if you close the last tab, the entirerangerprocess will close).Previews
I’ve mentioned the previews in the right column of
ranger. I believe they deserve a separate section in this guide.All file previews are supplied by the
scope.shconfig file. It is a regular shell script and it’s behavior is documented in detail inside of it.Image previews
A very special case of the previews are the image previews. Yes,
rangercan display images in your terminal. It uses an utility supplied with thew3mweb browser (sometimes packaged in a separate package, likew3m-imgin Debian). While it’s reliable most of the time, please be aware that it is a hack and may behave very strangely at times.Since the commit
9b73aeb(merged around 10 October 2016)rangersupports reliable image previews inurxvtandiTerm2terminal emulators. To enable it, setpreview_images_methodto eitherurxvtoriTerm2. Please refer to the documentation for further information. For theurxvtmethod to work on Arch Linux it might be needed to install therxvt-unicode-pixbufpackage instead of the regularrxvt-unicode.Custom image previews
In the recent versions of
ranger, the mechanism of the image previews was extended and generalized. When callingscope.sh,rangersets the$cachedenvironmental variable containing a unique path to a file where the image preview may be generated if needed.scope.shmay then save an image to that path and exit with the exitcode6(documented insidescope.sh, may be a subject to some changes) to tellrangerto use it. Simply saying: if you can convert a file to a jpg,rangeris able to show a graphical preview for it. Videos, PDFs, all sort of files.Rifle
rifleis a powerful smart file opener bundled withranger. It tries to guess with what program it should open a given file based on its MIME type, extension, the available programs and a few other factors. It is configured with therifle.conffile. It is used byrangerinternally but may be used as a standalone program too.More tips
Getting Help
You can get help while using Ranger by pressing
?, followed by:
m: opens the man page for rangerk: opens a list of keybindingsc: opens a list of available commands and descriptionss: opens a list of settings and their current valuesFile tagging
By pressing
tyou may mark a file with an asterisk (*). It is persistent and will be there until you remove it manually. It may be used for example for marking the already read e-books, or files that need some action.You can actually mark files with almost any other character besides the asterisk. Pressing a quotation mark (
") followed by any other character marks the file with that character.The tags may also be used to automatically enable some options in certain directories. Refer to the documentation of the
:setintagcommand.Metadata
Storing the file metadata is a brand new feature of
ranger. It may be used to add arbitrary key-value data to any file. Calling:meta title a very interesting titlewill set the tag “title” of the current file to “a very interesting title”.
:metais most commonly used in conjunction with:linemode. The built-in linemodes are bound to “M” followed by some letter. At the moment of writing this guide, there are 6 built-in linemodes:
filename: no metadata, the default mode of ranger,permissions: file permissions are displayed next to the files,fileinfo: show file type information based on shellfilecommmandmtime: show the modified time of filessizemtime: show the size and the modified timemetatitle: see below.The last line mode,
metatitle, is extremely handy for organizing all sorts of documents: books, movies, pictures and more. It displays the files based on their metadata. The current format is:[[year - ]title] alignment [authors]. Bracketed content is ignored if empty. Thetitlefield is mandatory for this to work. To define a custom linemode, please refer to this page: Custom linemodes.
:metastores the metadata in the “.metadata.json” file for each directory in which it is used.Directory flattening
If you’re browsing a moderetely nested directory tree, you may find
:flatuseful. It allows to browse a directory tree in a linear fashion: all the files up to the n-th level are shown together. It’s a bit hard to explain so just call:flat 1and observe what happens. The argument is the maximum number of directories to flatten. Pass -1 for no limit (use with caution!) and 0 to disable:flat.Bulk renaming
rangersupports bulk file renaming with the:bulkrenamecommand. Mark the files that you want to rename and call:bulkrename. It should open a file containing a list of these files in your text editor (determined withrifle). You may freely change the names in that file. When you are done, save the file and close the editor.rangerwill show you a preview of what will happen in a few moments.
:bulkrenameworks great with:flat!
SwapFaq – Community Help Wiki
Source: SwapFaq – Community Help Wiki
16.04 – How to eliminate EDID checksum errors? – Ask Ubuntu
Set the video settings for kernel boot options via grub:
sudo nano /etc/default/grub
Add this line, or change it to this, or add this to the current line (if you know what you’re doing). You can adjust the mode_options, the most import magic is nomodeset and noedid, minimally you can try just adding the noedid:
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset video=uvesafb:mode_options=1024x768-16@60,mtrr=0,scroll=ywrap,noedid"
This turns off KMS mode switching in the kernel; Use the uvesafb frame buffer; Set it to a resolution of 1024×768, with a depth of 16 at 60 Hz sync rate (other options can be 1920x1080-16, or 1600x1200-32@50, depends on your hardware) ; disable the memory type range registers (mtrr) for the framebuffer; enable display panning in a wrap-around mode, using VESA protected mode; do not probe the display to check for edid data. When you switch over to it or connect it to a monitor, then it should be set to that mode (already).
sudo update-grub
To make the grub settings get written to your /boot. Reboot and check it’s working, with noedid you won’t necessarily get a working display if you plug a different monitor in, possibly it could break (eg if the frequency is set higher than the display can handle; though I think modern displays avoid this).
Source: 16.04 – How to eliminate EDID checksum errors? – Ask Ubuntu