Secret Waffle Labs

You were never here… You didn't see anything….

August 22nd, 2012

OpenWRT Recovery

No Comments, Linux, Tips & Tricks, by andarius.

As part of a test project I am working on I am installing OpenWRT on a TP-Link MR-3020. During the process I quickly learned that the default images would not have what I needed, and sadly installing additional packages via opkg was not an option as once the initial update was performed the file system on the tiny router was full. Into to the creation of a custom image using the OpenWRT Image Generator I launched.

The Image Generator makes it very easy to create custom images for supported routers. I went through and located all the packages I needed to add to and remove from the image. At one point I thought I had exactly what I needed, built the image and flashed it. Upon reboot I got a wonderful nothing. More

July 27th, 2012

My HTC Sensation

No Comments, Misc, by andarius.

There have been two things I have wanted to get done with my HTC Sensation for some time. Load an AOSP ROM and polish the case. I have managed to complete both. The AOSP ROM came first. Cyanogenmod released a nightly for the device based on the OpenSensation project. They had a few minor bugs, and still do, but the real features are all working and the ROM has done me well so far. The current results are phenomenal and I am very pleased with how things are working out. More

May 11th, 2012

Endian Firewall CE Install Notes

No Comments, Linux, Tips & Tricks, by andarius.

I have installed Endian Firewall CE quite a few times. There have been several times I have run in to odd anomalies during the install that cause problems and force me to try again. I figured it was worth sharing what seems to work to resolve these problems. Each time I boot up a Linux CD of some sort and zero the entire hard drive using “dd” and then the installs go smooth and complete successfully.

A good example of a bootable CD to use would be the System Rescue CD.

The command I use from withing the console (assuming /dev/sda is the HD in question):

dd if=/dev/zero of=/dev/sda

Clean and simple…

April 20th, 2012

They are “Events” now?

No Comments, Misc, by andarius.

I have been working with Windows 7 at home to adjust to it faster (we migrated at work recently) and to play some games. Of course, it does crash from time to time. Amusingly, the “Blue Screen of Death” is still there. On top of that it occurs some times in a stealthy fashion. I had a crash that occurred during boot, never even got a screen to display. Windows was kind enough to tell me a “Problem Event” occurred and that it was a blue screen. Go figure!

Problem Event - Blue Screen

Problem Event - Blue Screen

April 18th, 2012

Gentoo Server Config – 3

No Comments, News, by andarius.

This is part 3, but it is really an addendum to part 2. My hard drive SMART data stopped showing up. In fact I am not even sure how I got it in the first place unless perhaps I set the UID bit on smartctl… At any rate, these are the steps required to make sure you get SMART data from your drives when using phpsysinfo.

First, install sudo via:

emerge -aq sudo

And configure it to allow the apache user to run smartctl without the use of a password. This is accomplished with the folowing line added via “visudo”:

## Give apache permissions to use smartctl for phpsysinfo 
apache ALL=NOPASSWD: /usr/sbin/smartctl

Comment included for good measure. Don’t want other admins wondering what is going on.

Next, from the install path find and edit the file “plugins/SMART/class.SMART.inc.php”. The line number 60 should include:

if (CommonFunctions::executeProgram('smartctl', '--all'.((PSI_PLUGIN_SMART_DEVICE) ? ' --device '.PSI_PLUGIN_SMART_DEVICE : '').' '.$disk, $buffer, PSI_DEBUG)) {

Which needs to be changed to read:

if (CommonFunctions::executeProgram('sudo', '/usr/sbin/smartctl --all'.((PSI_PLUGIN_SMART_DEVICE) ? ' --device '.PSI_PLUGIN_SMART_DEVICE : '').' '.$disk, $buffer, PSI_DEBUG)) {

This should get things going.

Source for the fix originally came from:
http://mewbies.com/how_to_install_phpsysinfo_nix_tutorial.html

(No, I was not creative enough to nail this one)

March 21st, 2012

Windows 7

No Comments, News, Rant, by andarius.

I have decided it is time to look in to a few things. Such as how well can my desktop system play games! OK, so it is only one thing, but that one item requires Windows, and the latest is Windows 7. I would like to share something right off the bat, Win7 is a heffer. I mean straight up fat. The image below is a window capture taken right after a clean install and having loaded the drivers for base hardware and Avira. All I can say is holy crap Bat Man!

Win 7 Disk Usage

Win 7 Disk Usage

March 7th, 2012

WAP54GP Client Table

No Comments, Security, Tips & Tricks, by andarius.

During a recent security scan of the network I manage at work I came across an unauthorized Access Point. I started poking around to locate and lock down the AP but hit one major bump, I could not find a way to show which machines were associated with the AP that was on the network. The AP in use (that is supposed to be there) is a Linksys WAP54GP. The unit does not have very many features but is a PoE 802.11 b/g access point.

After a decent amount of digging and clicking on every link on every page in the web management UI I was able to find a client MAC table. It does not provide any other usefull data like signal level and so on, but the client MAC address was all I needed. Since it is not straight forward I figured I would share the details.

To get to the client MAC table you would log in as usual. Then navigate to “Wireless” -> “Wireless Connection Control” -> Click on “Select MAC Address From Networked Computers” as shown below:

Wireless Connection Control

Wireless Connection Control

Clicking on the link will result in a popup window similar to:

Wireless Client Table

Wireless Client Table

As you can see it is a simple list of the MAC addresses of clients connected via wireless. Nothing elegant about it but it does contain the data I needed.

February 12th, 2012

XFCE & Wireless Signal

No Comments, Code, Linux, Tips & Tricks, by andarius.

Currently if you wish to monitor the wireless signal level and other stats from your WiFi card under XFCE your options are limited. There is only one panel plug-in that is part of the XFCE Goodies project called xfce4-wavelan-plugin. It is nice but not quite what I wanted. I don’t use wicd (for several reasons) nor network manager (also several reasons). For the most part I am old school and use wpa_cli or manual configuration file editing. So the hunt was on to find something better.

In the end I decided to do a little custom solution. One can display most any data using the xfce4-genmon-plugin. This plug-in allows you to display data from just about any application and if the output is xml formatted it can get creative, for example displaying icons, percent bars and a tool tip. More

Pages: Prev 1 2 3 4 5 6 7 8 9 10 ... 15 16 17 Next