formats

/usr/bin/mint-fortune: line 35: [: ==: unary operator expected

Published on May 29, 2011, by + in linux.

/usr/bin/mint-fortune: line 35: [: ==: unary operator expected | In Linux Mint Debian Edition, a recent update made the fortune script stop working. I’ll show you how to fix it! 1. Open this file with nano, or your favorite editor: sudo nano /usr/bin/mint-fortune 2. Locate line 35 which looks like this: if [ $showfortunes == "true" ]; then (Tip: in nano, press Control+C to

formats

Prevent Hotlinking with htaccess

Published on May 27, 2011, by + in linux, sysadmin.

Prevent Hotlinking with htaccess | Hotlinking is the use of another person’s hosted image embedded on a different site without permission. I’ll show you how to prevent hotlinking with htaccess! Place the following in an .htaccess file on your web server to prevent hotlinking of images but however allow google, bing, and yahoo image searches access. Change the first entry

formats

Prevent Postfix Brute Force

Published on May 26, 2011, by + in linux, sysadmin.

Prevent Postfix Brute Force | An often used attack vector is brute forcing MTA logins. While most admins watch ssh auth logs like a hawk, email auth/login logs are most often not closely watched for this sort of thing if at all. I’ll show you one way to easily prevent a Postfix brute force attack! This how-to focuses on fail2ban

formats

Linux Mint Debian Edition LMDE Review

Published on May 21, 2011, by + in linux.

Linux Mint Debian Edition LMDE Review | I have decided to give Linux Mint Debian Edition a go on my main desktop! Here is my quick minty-fresh brushed metal review. LMDE is Debian testing ever so slightly fine-tuned for the desktop. Elegance is the most apt (pun intended) word to describe LMDE. LMDE is 100% Debian compatible (uses regular Debian repositories), but

formats

Select Fastest Debian Mirror for apt-get

Published on May 15, 2011, by + in linux, sysadmin.

Select Fastest Debian Mirror for apt-get | With Debian you can easily auto-detect the fastest mirror for apt-get! First install this package: $ sudo apt-get install netselect-apt Then run the following, adjusting for your desired version. I’m using LMDE, so I’m going to run: $ sudo netselect-apt testing Other examples: sudo netselect-apt [stable|testing|unstable|experimental|release_codename|sid] This will query various debian mirrors then leave a

formats

Compact VirtualBox Hard Disk .vdi

Published on May 9, 2011, by + in linux, osx, windows.

Compact VirtualBox Hard Disk .vdi | If you use VirtualBox ‘Dynamically Expanding’ disk images, you can also compact the image back down in size. This example shows how to shrink down a Windows virtual machine guest running on a Linux host. Step 1: Inside the Windows VM, defrag the hard drive. Go ahead and defrag even if it says a defrag

formats

Detect Network Cable Link in Linux

Published on May 4, 2011, by + in linux, sysadmin.

Detect Network Cable Link in Linux | To check for the presence of a network link, use the command ethtool. For example, this checks eth0: # ethtool eth0 or $ sudo ethtool eth0 Look for a line which says ‘Link detected: yes / no’. The exact output may vary depending on your Linux distribution. Debian / Ubuntu looks like this: Red Hat

formats

Bash Tips – Return to Previous Location

Published on May 1, 2011, by + in linux, osx, sysadmin.

Bash Tips – Return to Previous Location | Ok this is a quick one, but useful! To return to the previous working directory, simply type: cd – and hit enter. Cool!

formats

Batch Rename Files with rename

Published on April 24, 2011, by + in linux, sysadmin.

Batch Rename Files with rename | How can I batch rename files in Linux? There are tons of how-tos and guides on using sed, mv, and other commands to batch rename files. However, a very powerful tool available in Debian and Ubuntu Linux is simply rename. The rename command can be used to mass / bulk rename files, file extensions, rename

formats

Quick Intro to VBoxManage

Published on April 15, 2011, by + in linux, osx.

Quick Intro to VBoxManage | VBoxManage is the command line utility to manage all things VirtualBox. VirtualBox geeks will all tell you that there is much more you can do with VBoxManage – many things that are not written into the GUI. Below is a simple intro to VBoxManage! 1. List your available virtual machines: VBoxManage list vms stmiller@brahms:~$ VBoxManage

Home Archive for category "linux" (Page 15)