Category: Linux

Fix 64 bit Google Talk Plugin Linux

Credit for this fix belongs here but I have copied it here for ease of access Download the 64-bit .deb from: http://www.google.com/tools/dlpage/res/talkvideo/hangouts/ Create a tmp dir: mkdir tmp Extract the contents of the .deb to the tmp dir: dpkg-deb -x google-talkplugin_current_amd64.deb tmp Extract the control files: dpkg-deb –control google-talkplugin_current_amd64.deb tmp/DEBIAN Fix the dependency: sed -i "s/lib32v4l-0/libv4l-0/" tmp/DEBIAN/control Repackage the .deb:...

GPG PGP Keys

Generate an SSH Key pair and upload public key to remote host

Apache Permissions on ServerRoot Directories

Apache Permissions on ServerRoot Directories In typical operation, Apache is started by the root user, and it switches to the user defined by the User directive to serve hits. As is the case with any command that root executes, you must take care that it is protected from modification by non-root users. Not only must the files themselves be writable...

FIND Command Usage Notes for Webmasters

File manipulation using FIND These examples are Ubuntu 12.04 and Apache2 FIND find a file by name # sudo find ~/ -name ‘banner3.jpg’ 2>/dev/null find and copy # combined to make a script to double filter sudo find /media/backup01/* -name ‘*.txt’ -exec cp {} ~/dump \; + increases speed sudo find . -name ‘*.py’ -exec grep –color ‘xrange’ {} +...

Unix-Linux Does Not Require Disk Defrag

I’m a convert to Linux in the last several years. I don’t remember when it happened exactly, but I vividly remember the first time I (tried to) used Microsoft Office 2007, I was sure I was on the right path. Recently some friends have asked me why they should make the migration to Linux. I can list many reasons, but...

Eliminate error “127.0.0.1 Directory index forbidden by Options directive” in log files (and other needless noise)

Ubuntu Apache Error : client 127.0.0.1 Directory index forbidden by Options directive This error and many others clog your log files with noise which can be easily eliminated without compromising security. The reason I get this error is because I have set .htaccess in the server root directory to Options -Index for security reasons. I don’t want anyone browsing /var/www...

Where is Magento a Guide to Finding your way around Magento

Where are files in magento root Magento directory cd /var/www/shop.example.com/ Files of interest index.php .htaccess All extension files (modules) cd ../app/etc/modules Cache cd ../var/cache Delete directory to clear cache Sessions cd ../var/session Delete directory to clear sessions

The Weak Link in Ubuntu 12.04 Desktop

I’ve tried to love Unity. I keep trying every time I install Ubuntu since Unity was introduced as the GUI of choice. I’ve read a lot about UI design over the years, (Doug Engelbart to John Sculley’s Personal Digital Assistant) so I don’t think I’m a curmudeon about it. But I just can’t be productive on a daily basis with...

Edit “Other Applications List” in Unity Ubuntu 12.04 Desktop

When installing Padre IDE on Ubuntu Desktop, I found Ubuntu (12.04) does not recognize it as an already installed program. So when trying to open a Perl file for editing using right-click, its a dead end – Padre was nowhere to be found. I wasted an hour looking for the answer; found it here > Ubuntu 12.04 Add Program to...

Apache Virtual Host Example

There are so many variation of how to setup Apache VirtualHost that its difficult for a beginner to figure it all out. Here is how I have found works best for a LAMP server that you own. If its not a standard Linux distro (Debian/Ubuntu here) all bets are off. sudo vi /etc/apache2/sites-available/www.example.com copy this code into the file <VirtualHost...

Setup Fail2ban for Debian and Ubuntu

My Notes Only taken from various sources. There are other much more complete guides for Fail2ban available. Install Fail2ban sudo apt-get install fail2ban filter definitions located in /etc/fail2ban/filter.d action definitions located in /etc/fail2ban/action.d The following is a minimal setup. Configure Fail2ban sudo vi /etc/fail2ban/jail.conf Configuration for jail.conf destemail = you@example.com # Email of where alerts should be sent to ignoreip...