Use SMS for a reminder for meds, birthdays, etc.

March 17, 2018 Comments off

You can use SMS to remind yourself with a text message if you have access to one the cellphone
gateways for SMS and run your own mail server (you can use a client too but this example
is for a linux server).

Here are the major US SMS gateways. Most all the MNVO providers are listed on line too.

Sprint [insert 10-digit number]
T-Mobile [insert 10-digit number]
U.S. Cellular [insert 10-digit number]
Verizon [insert 10-digit number]

Just use the mail command and set up a crontab entry (Debian example):

30 22 * * * /usr/bin/mail -s “take your meds” 12345678910@cellgateway > /dev/null
will send you “take your meds” at 10:30pm every day.

Other reminders can be added.

I find this more useful than email or cell phone alarms.

Categories: sysadmin

Easily add to pdf file

October 30, 2017 Comments off

You can easily add to a pdf file with pdftk (Debian apt install pdftk).

Simple syntax:

pdftk file1 file2 cat output file3.pdf

It does much more than that. Read the man pages for more info.

Categories: sysadmin

vim on Debian 9 issue with cut and paste

July 25, 2017 Comments off

While using vi (vim) on Debian 9 via cli, there is an issue with cut and paste with a mouse.
This can be corrected by adding a .vimrc file to your user folder as shown below
##CONTENTS OF .vimrc
set mouse=””

This will re-enable the mouse cut and paste feature from a terminal.

Categories: sysadmin

Upgrade Debian Jessie to Strech

June 24, 2017 Comments off

The upgrade process is easy via the cli.
Just complete the following and answer any questions.
I let the system restart daemons automatically and kept original conf files.
This has worked on three Debian 8 systems without a hitch.

apt-get update
apt-get upgrade
apt-get dist-upgrade
cp /etc/apt/sources.list /etc/apt/sources.list_backup
sed -i ‘s/jessie/stretch/g’ /etc/apt/sources.list
apt-get update
apt list –upgradable
apt-get upgrade
apt-get dist-upgrade

After completing you can reboot and autoremove old packages.

Categories: sysadmin

copy your debian installed packages to a new machine

June 17, 2017 Comments off

Run this to retrieve a list of installed packages:

dpkg -l | grep ^ii | awk ‘{print $2}’ > installed_packages

Then install on new system with:

apt-get install $(cat installed_packages)

You should probably look at installed_packages and remove any obvious

Categories: sysadmin

Turn on syntax (color) in vim for Debian

February 8, 2017 Comments off

To add syntax checking to vim with Debian, just edit /etc/vim/vimrc and uncomment
the “syntax on” line.

Then your editor will show (in color) syntax errors in Postfix and html/css files.

Categories: sysadmin

disable or enable ipv6 ssh

September 20, 2016 Comments off

You may experience problems with ssh and ipv6. If so edit the /etc/ssh/sshd_config file
and enable the ListenAddress option. You can also enable (unpound) the ipv6
option ListenAddress ::.

You may experience lockouts from ssh if you have AAAA ipv6 records in your nameserver if
you don’t make theses changes.

Be sure and restart ssh after changes.

Categories: sysadmin