Linux

Transcend WiFi SD card hacking links

http://www.fernjager.net/post-8/sdcard:

As a 400 MHz Linux system with 32 MB of RAM, using only ~100 mA @ 3.3 V, the possibilities are endless!

http://haxit.blogspot.com/2013/08/hacking-transcend-wifi-sd-cards.html:

This post is written with the intention of exposing not only the exploits which will allow you to root (or jailbreak) the device, but also the process of discovering and exploiting bugs, some of which are a dead end, while others lead to the holy root B-)

http://hackaday.com/2013/08/12/hacking-transcend-wifi-sd-cards/:

As he suspected that some kind of Linux was running on it, he began to see if he could get a root access on it… and succeeded.

Building GEOS on CentOS

It should be simple, but I ran into a number of errors.

First I got stuck on libtool: line 990: g++: command not found. It turns out I needed to install g++ using:

yum install gcc-c++

Then I got stuck on this one:

platform.h:110:2: error: #error "Can not compile without isnan function or macro
[...]
"Coordinate.inl:38: error: ‘ISNAN’ was not declared in this scope

The author of this page faced the problem, but the real insight came from this bug report on an unrelated project:

In these versions of g++ isnan is defined as a macro in unless is included, in which case std::isnan() is defined instead.

And so I tried replacing #include <math.h> with #include <cmath> in include/geos/platform.h. Amazingly, that worked.

Configuring Amazon Linux For Web Services (Spring 2012)

I’ve tested this cookbook against Amazon Linux, but it will probably work just as well with the current version of CentOS. Basic Installation First, get root and update the OS: With that done, let’s get the basic packages and services installed: That gets us Apache HTTPD with SSL, PHP with a number of modules, Memcached, […] » about 400 words

Configuring Amazon Linux For Web Services

UPDATED: an updated installation cookbook is available. Amazon has introduced their own distribution of linux with tweaks to optimize it for their Elastic Compute Cloud platform. Like CentOS, it appears to be based on Red Hat Enterprise Linux, though unlike the current versions of RHEL and CentOS, the packaged applications are up to date with […] » about 300 words

SCO vs. Novell Lawsuit Over, Linux Safe

According to Groklaw, the long running battle between SCO and Novell may finally be over. The Judge ruled that SCO, the company that claimed Linux infringed on it’s IP and sued everybody in sight, never did own any rights to Unix in the first place, and has ordered the company to pay millions. Novell and others are unlikely to ever see much of that, though, as SCO is in bankruptcy.

Installing PHP APC On RHEL/CentOS

  1. Yum up some packages:

    yum install php-pear php-devel httpd-devel

    1. Install APC using pear (the pear installer is smarter than the pecl installer):

    When the installer asks about APXS, say ‘no’. 

    ``` pear install pecl/apc

          </td>
        </tr>
      </table>
    </div>
    
    3. Tell PHP to load APC: <div class="wp_syntax">
      <table>
        <tr>
          <td class="code">
            ```
    echo extension=apc.so > /etc/php.d/apc.ini
    
      </td>
    </tr>
    

    1. Restart Apache:
      /sbin/service httpd graceful

JSON on RHEL & PHP 5.1.6

Stuck with PHP 5.1.6 on RHEL or even CentOS (and a sysadmin who insists on using packages)? Need JSON? I did. The solution is easy:

yum install php-devel<br /> pecl install json

The pecl install failed when it hit an 8MB memory limit, and I was clueless about how to fix it until I learned that the pecl installer ignores the php.ini. Turns out the best solution is to use the pear installer (which does follow php.ini settings):

pear install pecl/json

CentOS 5 Released

At work I use Red Hat Enterprise Linux, but my personal stuff is served from machines running CentOS. Both distros were just bumped to version 5, bringing with them support for current components of the LAMP stack. I care because I want Apache 2.2.4, and while it’s pretty easy to get MySQL & PHP 5 […] » about 300 words

Linux Leads On World’s Top Supercomputers

The real map of the world’s top 100 supercomputers isn’t nearly as US-centric as my screenshot suggests, but the operating system stats are seriously tilted toward Linux. Over 400 of the top 500 supercomputers in the November 2006 report run some form of the free operating system. Generic “Linux” leads the pack, but Redhat and […] » about 200 words