Author: troy

How To Localize WordPress for German

Copy wordpress-de files (you can copy over the exiting (English) WP version) sudo cp -Rf /wordpress-de/* /var/www/www.furbeispeil.de sudo vi wp-config.php Here is the section: /** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de_DE.mo to wp-content/languages...

How To Install Canon MX925 on Debian

This is a fantastic printer for Linux machines and for the price its seems too good to be true. I’m not paid to say that. Download Drivers here Canon PIXMA MX925 Unzip the packages and $ cd ~/cnijfilter-mx920series-3.90-1-deb $ sudo ./install.sh ================================================== Canon Inkjet Printer DriverVersion 3.90Copyright CANON INC. 2001-2013All Rights Reserved. ==================================================Command executed = sudo dpkg -iG ./packages/cnijfilter-common_3.90-1_amd64.debSelecting previously...

Install Truecrypt

Note: When installing Truecrypt on a new linux system, the most common failure (install simply stops without an error message) is due to the permissions of the user. Make sure the user has been added to sudoers group and reboot (or logout and login again), or you will get the massage “user not in sudoers group”. Download Truecrypt Download signature...

Debian Environment Variables

And then I lived happily ever after – Fixed – BASH scripts executed from a user as sudo, resulted in the root ownership. In other words, a backup script executed by user became the property of root

BASH Shell Notes

The BASH Environment BASH executes in this order /etc/environment /etc/profile /etc/bash.bashrc /home/user/.profile /home/user/.bashrc Interactive vs Non-interactive Shell interactive execution order: /etc/profile then the first readable of ~/.bash_profile, ~/.bash_login, and ~/.profile .profile – is read when an interactive login shell is started. /etc/profile ~/.bash_profile ~/.bash_login ~/.profile non-interactive execution order: /etc/bash.bashrc then ~/.bashrc ~/.bashrc – is read when a non-login interactive shell...

Enable VI Colors on Debian 7 Wheezy

Debian and VI are different than other distros, such as Ubuntu. I found all kinds of other/newer advice that did not work. Hopefully this will save someone else some time beating around the Interbushes. Pre-requisite: If you have not already, install vim sudo apt-get install vim sudo vi /etc/profile Add this line to the end of the file alias vi=’vim’...

How to Edit the DNS of your Domain Name

This is how to Edit the DNS of your Domain Name (example here is for GoDaddy) The general method is similar at most hosts. An “A record” connects your domain name to your server IP address. This is what allows users to type your domain name in a Web browser to access your website. The DNS (domain name service) translates the...

Harden Debian 7 Server with PSAD

Install Port Scan Attack Detector on Debian 7 Server sudo apt-get install psad sudo vi /etc/psad/psad.conf change these lines EMAIL_ADDRESSES me@seleads.com; HOSTNAME my.seleads.com; HOME_NET NOT_USED; ALERTING_METHODS noemail; IPT_SYSLOG_FILE /var/log/syslog; EMAIL_LIMIT_STATUS_MSG N; ENABLE_AUTO_IDS Y; AUTO_IDS_DANGER_LEVEL 2; AUTO_BLOCK_TIMEOUT 2592000; ENABLE_AUTO_IDS_EMAILS N; Restart psad psad -R psad –sig-update psad -H sudo vi /etc/cron.hourly/save-bad-ips #!/bin/sh PATH=/usr/share:/usr/sbin:/usr/bin:/sbin:/bin /sbin/iptables-save -c > /tmp/iptables-save.txt #echo “SELECT lockdown_IP FROM...

How To Harden Debian Server

Its not enough to harden just Debain. Its necessary to harden the rest of Apache-MySQL-PHP as well. Harden MYSQL sudo mysql_secure_installation answer Yes to all questions (but no need to change password) Disabling SSH root login and settings sudo vi /etc/ssh/sshd_config change PermitRootLogin yes to PermitRootLogin no LoginGraceTime 120 to LoginGraceTime 30 add line AllowUsers username username username Consider disabling...

Netfilter iptables Log Message Codes

IN = Input interface OUT = Output interface MAC = Ethernet hardware address (aka MAC address) SRC = Source IP address DST = Destination IP address LEN = Packet length TOS = Type of Service (for packet prioritization) PREC = Precedent bits TTL = Time to Live ID = Packet identifier PROTO = Protocol (eg. TCP, UDP) SPT = Source...

Madcatz R.A.T.5 Mouse on Debian 7 Freezes – Fixed

Fixed – the RAT5 mouse gets “stuck” in one window, or freezes entirely. The only way to get unstuck seems to be toggling the Mode button. Even when that gets you unstuck, it will happen again, and seems to progressively get worse with time.

How To Get a Gravatar

An “avatar” is an image that represents you online—a little picture that appears next to your name when you interact with websites. A Gravatar is a Globally Recognized Avatar. You create your profile just once, and then when you participate in any Gravatar-enabled site, your Gravatar image will automatically follow you there. https://en.gravatar.com/site/signup/ If you want the maximum from your...

-bash: sudo: command not found

When you see this error message -bash: sudo: command not found su apt-get install sudo adduser username sudo apt-get install locales locale-gen en_US.UTF-8