When you delete a file from the recycle bin in Windows, rather than deleting the actual file, the space the file is occupying is simply marked as free so that another file can come and use those blocks on your hard drive. One way of making sure that your data is not recoverable is to simply overwrite all the free space with random data.(more…)
As disk sizes explode, I’ve found myself having to mirror disks which I don’t have enough storage for. My tool of choice is ddrescue.
However, it doesn’t support compression because it needs to be able to
seek through the output as it rescues data. A solution I’ve found is to
create a sparse file, format it btrfs, and mount it with the
compression=lzo option. This allows ddrescue to operate normally, while giving me fast + decent compression.
This is a little trick for Postfix, it lets you log the
to of all the emails postfix sends (or which pass through it if you run it as
a relay). It comes in handy when you need to debug an email issue and need to
confirm your mailserver has sent the message.
First create the file
/etc/postfix/header_checks and insert this into it:
/^subject:/ WARN /^to:/ WARN /^from:/ WARN /^Subject:/ WARN /^To:/ WARN /^From:/ WARN
The base of the Linux sound software stack is formed by ALSA, the
Advanced Linux Sound Architecture, with these days normally a midlevel
layer on top in the form of Pulseaudio; you can arrange for volume
adjustment at both levels; should preferably do so at the Pulseaudio
Pulseaudio makes available the
pactl tool, which you can use in the form of, say,
pactl set-sink-volume 0 0 pactl set-sink-volume 0 50% pactl set-sink-volume 0 +10% pactl set-sink-volume 0 -10%
In Mint 17.3
pactl has a bug that necessitates writing that last example as
pactl -- set-sink-volume 0 -10% instead; would not know if the Mint 18 version still has the issue; see https://bugs.freedesktop.org/show_bug.cgi?id=77108. The first
in those commands specifies the sink, the sound card, and is
automatically correct if you have only one card installed. Otherwise
decide which sink to use from the output of
pactl list sinks. Use
man pactl for further information.
At the ALSA level you have available the
amixer command line mixer. For example,
amixer set Master 0 amixer set Master 50% amixer set Master 10%+ amixer set Master 10%-
In this, not specifying a card number with
-c <number> means card 0; if not, use
aplay -l to identify the number. “Master” is the name of a generally available control; you can list available controls with
amixer scontrols and learn more from
If you are not specifying correct sink for pactl or card/device/control for amixer please see your outputs of
pactl list sinks and
Notepad++ is one of the popular code editors and the fact that most of the users run Windows, it is available for Windows only. Some Linux users have surely missed it. Good news is that Notepad++ is now (unofficially) available as a Snap package for Linux user. Though this Notepad++ Linux application is not natively developed for Linux platform and actually runs on Wine, it’s now a command (or click) away for you.(more…)
Most digital cameras and cell phone add EXIF metadata to the images.
If you’re worried about the privacy, you may want to anonymize your images and photos by removing all the EXIF metadata.
In this small guide, i’ll show how to read and then remove all EXIF metadata, using Linux command line utility, named ExifTool. (more…)
innodb_file_per_table is by default ON Mysql 5.6.6 and onwards. There is plenty of stuff on Google about pros & cons of
This post details how to enable innodb_file_per_table on an existing database. Because innodb_file_per_table affects new tables only, created after innodb_file_per_table is enabled, we need to recreate old databases to force innodb_file_per_table on old tables and reclaim some disk space.
Create a dir to take backups:
cd ~ mkdir backup cd backup
I fresh install of win10 and elementary OS, want customizer. My PC is booting into elementary by default instead of into win10. I use both, but I want o boot into win10 by default. This is method to install Grub Customizer in Loki (maybe in other Ubuntu/Debian Linux OS).
sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-get install grub-customizer grub-customizer