14 April, 2008

Cisco Turns Routers Into Linux Application Servers

I've always had a good eye to Cisco's networking equipment, due to the fact that they are administered through a CLI (Command Line Interface), i.e.: POSIX-style ;^)

Now they're integrating a GPL'ed Linux environment on certain so-called "AXP" switches/routers to allow for hosted applications developed with the accompanying standardized SDK and API (which includes standard support for C, Java and Python).

"From a GPL perspective, we've taken all the things that are GPL and reciprocated the code back to the community," Conover said. "Obviously if a developer built an application on top of a GPL platform, that doesn't imply that they have to GPL that code. "


The GPL is a reciprocal license that requires any modification made be contributed back to the community.


Overall, Cisco expects the AXP to reduce the hardware footprint at branch offices and provide deeper network integration that provides IT managers with more control over what they can monitor.

I suppose they realized the potential for hosted applications on network equipment after releasing the WRT54** series of routers through their sister company "Linksys". These routers offer the possibility to flash the firmware, allowing home-brewed firmware/software to be deployed. I have a WRT54GL router @ home, running "DD-WRT" with a few cross-compiled custom apps for network monitoring. And I must say, it gives me monitoring capabilities I never could have imagined a few years ago ;)

13 April, 2008

Improved blog layout & design

I have now fixed a lot of my earlier bugs in the CSS script for the blog.
I also added some javascript code to import my del.icio.us links.

My blog now nearly conforms to valid CSS-3.0 and XHTML-1.0-STRICT, but not quite yet. Basically, it's because of some untraditional hacks in CSS for IE-bugs on float alignment, and also, the XHTML because of some bad syntax variables, but they are all contained in the widgets used in the sidebar, and I won't hastle to inform all the developers about it, simply because there are a few of them, and it doesn't bug me...

My revisions of the CSS and XHTML style template-files are valid, so, I'm happy ^_^

Embedded Linux: "Instant-On"

Yes :) They have finally done it! An Instant-On operating system, booted from an external USB flashdrive, or embedded on the motherboard (clever).

SplashTop Instant-On at CES 2008, YouTube promo video:


The video demonstrates the "ASUS Express Gate" Instant-On system booted using a flashdrive. Just a couple of seconds boot-time, and you have basic browsing and e-mail capabilities, it's a definite MUST-HAVE for when I buy my first UMPC.

24 March, 2008

Logitech Cordless Rumblepad II - 2.4GHz USB


My gamepad of choice for my emulation-gaming ;P with:
  • rumble-function
  • frequency-jumping
  • 100 hours of battery capacity
This pad should outwin my current gamepad setup by a long-shot.

(My current setup being: 2 x "USB-to-PSone" 1m. adaptor-cables)


I've always liked Logitech's accessory product-line. I also have a laser laptop-mouse from them, with an undisputable response-time. Another reason for preferring Logitech accessories is because they use Human Interaction Device drivers (USB-HID), so they usually work flawlessly in Linux ;D

Logitech-link for Rumblepad II: http://www.logitech.com/



Update 13.04.2008:

2 x Rumblepad II are on their way! ^_^

23 March, 2008

"The trinity of the table"

A french expression regarding wine, bread and cheese.

I'm not a big fan of the first, but I love the two latter. Maybe I just haven't found a bouquet that suits my taste? My general description of wine would simply be: "acid-water". Basically, I don't like acidic taste. But as they say, taste becomes better with age. So who knows? Maybe I'll grow to like wine some day.

18 March, 2008

Kino i morgen!



Gleder meg ;P

Oppdatering 20.03.2008:

SJEFSfilm XD dødsmorsom.

15 March, 2008

Security focus: Securing Linux

Security focus published two articles on securing Linux systems. But the cool bit, is that they refer a lot to my favourite distribution, coincidence? ;P (Got Slack?)



(Originally written in 2000, these articles sadly address quite a lot of deprecated security issues, but a few are still applicable.) But still, after several years, the biggest real threat seems to be brute-forcing techniques. It just changes modus operandi, and counter-measures are following quickly. To be more specific, de-centralized criminal hacker behaviour is beginning to be a major issue online, mainly because of the many homes that have 24/7 broadband connections, giving the blackhats more reliable inter-connected botnets to 'play' with...

09 March, 2008

SSH, domains, crypto...

Finally, I've acquired a location to set up a desktop computer as a domain-gateway for my personal LAN/WAN/WiFi-connections! Sw33t! My earlier conclusion to carry an USB memory dongle was a good idea. I got so many notifications about brute-force attack-attempts running SSH-blockage rules on my firewall, so I decided to drop them all together.


Using private-key authentication with a passphrase, proved to be MUCH better. Nearly any excessive bandwidth-overhead, nor serious lagging (which was the main problems when running SSH firewall rules for brute-force attack tracking and blocking. It was basically too CPU intensive to be useful).

Regarding the key-authentication, both the generation of keys, and re-configuring of the SSH server to accept the keys was pretty straightforward. So now I'm enjoying fully secured SSHv2 sessions.

But again, I decided against utilizing some parts of my plans, like using 256bit
AES cipher, instead of the intended 448bit Blowfish cipher, as it would be overkill with regards to the processing power available on the desktop machine I'm going to use ;P (Pentium-III 1st gen. 800Mhz). From what I know, Norwegian government-sections use 256bit AES, so it will more than suffice for my uses. Less is more.

I also set up a basic, free static hostname (with wildcards) to reach my public gateway-machine, and a secondary hostname for dynamic http-forwarding to the web-server hosted on the domain.

Good luck to the ones wanting to crack these streams! ;D

More computer equipment.

CNet 54 Mbps 802.11g Wireless USB Dongle, for my desktop-computer@home.


Sunsway ST Lab USB 2.0 Pocket Hub 4P (bus powered), for my PS3.

And at last, my sound will be digitally processed ;P

Creative SoundBlaster X-Fi Extreme Audio, is on the way!

CNet PCI 54 Mbps 802.11g Wireless (RaLink chip), for my Linux gateway!

And finally, CNet Directional Antenna 6dBi 2.4 Ghz RP-SMA connector, to get better range and coverage of the WLAN@home.

My next tech-project ;D




eMagic 2,5" SATA USB-cabinet (yeah, ugly as f***, but it was all I could find that accepted 2,5" SATA drives), and a brand new 250GB SATA HD from Western Digital.


My project is to make some different kinds of recovery-images of my 40GB SATA HD drive from my PS3, then, install my new 250GB WD HD in the eMagic USB-cabinet, connect it to my computer and transfer the image-data to it for installation back into the PS3, approx. 200GB left to "play" with ;P

06 March, 2008

Elonex ONE

Linux UMPC from UK :)

Ultra small form factor, Linux based OS, under £100! (just above 1.000 NOK)

http://www.elonexone.co.uk/index.html

04 March, 2008

Første Linux-innlegg denne mnd, ;P

Kom på at jeg har skrevet relativt lite om Linux i det siste...til å være meg, er dette heller unormalt XD Men etter å ha lest artikkel på hardware.no om den første Linux kjernen som kom ut i år, ble jeg ivrig igjen.

http://www.hardware.no/artikler/aarets_forste_linux-kjerne/47816

Artikkelen trekker frem punkter som at 2.6.24-kjernen nå har bedre støtte for flere forskjellige prosessorer, og at koden for 32- og 64-bit databehandling nå er forent i samme kildekode.

Til sammen ble kodeendringene i denne utgivelsen på rundt 300.000 linjer, laget av 950 forskjellige utviklere fra
130 forskjellige selskaper rundt om i verden. ^_^

03 March, 2008

Slackware software repository

Once I've set up my static IP, and gotten either a Dynamic DNS address or a static domain-name, I've thought of setting up a basic FTP housing a repository of my private generated/pre-built vanilla Slackware software packages ;) address coming soon!

Packages should work on any vanilla/unmodified versions of Slackware Linux 12.0.

Any requirements are added in 'slack-required' files in the packages, making 'slapt-get' able to find, download and install requirements so the software included should work out-of-the-box.

Any non-standard requirements are present in the repository.

Extending your laptop battery life on Linux

Phoronix has an interesting article on using PowerTOP from Intel and your graphics card control-panel utility to extend the battery-power lifespan. PowerTOP analyzes the system it runs on, and from the results, it recommends and even configures the system-changes and power consumption features needed to utilize the battery-capacity in an optimized fashion, like avoiding idle wake-up calls in hardware and such.

http://www.phoronix.com/scan.php?page=article&item=ubuntu_battery_life&num=1

My notebook's battery has already seen it's last days. But I'll be buying a new one soon, and then I'll be experimenting with this to see if I can extend beyond the 2 hours specified in the manual (that is to say: running the machine with Windows XP with all features turned on).

Demystifying Denial-of-Service attacks

Interesting article uncovering the various ways of performing Denial-of-Service attacks through advanced networking.

http://www.securityfocus.com/infocus/1853

02 March, 2008

Securing PHP

I already have a machine with SSL/TLS-ready Apache running, now I need to be able to secure PHP, my favourite scripting language ;)

This useful little tutorial uses chroot and mod_security to achieve this.


http://www.securityfocus.com/infocus/1706

I'm testing this in combination with PHP scripting, to make my web-2.0 applications more secure, and when I'm satisfied with my setup of secured backends, I'll start using PHP in combination with Javascript and AJAX to make my apps more dynamic with regards to user-input and interaction. My whole point of this personal adventure is to maybe develop a content-management system that is a little more resistant to cross-site scripting and SQL-injections.

This is made possible by holding the apache-server and the PHP-backend in a chroot-jail, additionally secured by using mod_security as a web-firewall and not allowing HTTP headers with direct script execution and SQL manipulation.

As web-security gets more and more focus, I'm inspired to do my part in contributing to safer and more worry-free web environments. I'm not a programming guru, nor am I a security expert, but I understand the principles and concepts, so I just want to do my part as best as I can ;)

SSH port forwarding

SSH port forwarding (or: tunnelling encrypted connections).

http://www.securityfocus.com/infocus/1816

MASQUERADE / NAT

I knew this was some kind of unfinished technology, it somehow felt...like it wasn't a fully standardized method of implementation. Every time I've had more and more experience using this, I've always found new ways of using it, and alternative methods to boot. I don't fully understand the concept of complex protocol transmission yet, but my job let's me see the usage of NAT in WAN deployment.

This is the current, most widely used method of setting up transmission backbones from a large customer-base from within an ISP with limited IP ranges.

Or from my own setup @ my mom's place: forcing a medium-sized LAN to share an Internet access with 2 dynamic, restrictive IP addresses (one of which is switched between two internal cabled LANs, and the other serves as the Internet access for the wireless LAN) and one static, fully public, NAT'ed point-to-point IP address to serve my private DMZ.

Caveats using NAT

In computer networking, network address translation (NAT, also known as network masquerading, native address translation or IP masquerading) is a technique of transceiving network traffic through a router that involves re-writing the source and/or destination IP addresses and usually also the TCP/UDP port numbers of IP packets as they pass through.

[...] there are quite a lot of minor caveats with using NAT. The main problem is certain protocols and applications which may not work at all. Hopefully, these applications are not too common in the networks that you administer, and in such case, it should cause no huge problems.

The second and smaller problem is applications and protocols which will only work partially. These protocols are more common than the ones that will not work at all, which is quite unfortunate, but there isn't very much we can do about it as it seems. If complex protocols continue to be built, this is a problem we will have to continue living with. Especially if the protocols aren't standardized.

The third, and largest problem, in my point of view, is the fact that the user who sits behind a NAT server to get out on the internet will not be able to run his own server. It could be done, of course, but it takes a lot more time and work to set this up. In companies, this is probably preferred over having tons of servers run by different employees that are reachable from the Internet, without any supervision. However, when it comes to home users, this should be avoided to the very last. You should never as an Internet service provider NAT your customers from a private IP range to a public IP. It will cause you more trouble than it is worth having to deal with, and there will always be one or another client which will want this or that protocol to work flawlessly. When it doesn't, you will be called down upon.

As one last note on the caveats of NAT, it should be mentioned that NAT is actually just a hack more or less. NAT was a solution that was worked out while the IANA and other organisations noted that the Internet grew exponentially, and that the IP addresses would soon be in shortage. NAT was and is a short term solution to the problem of the IPv4 (Yes, IP which we have talked about before is a short version of IPv4 which stands for Internet Protocol version 4). The long term solution to the IPv4 address shortage is the IPv6 protocol, which also solves a ton of other problems. IPv6 has 128 bits assigned to their addresses, while IPv4 only have 32 bits used for IP addresses. This is an incredible increase in address space. It may seem like ridiculous to have enough IP addresses to set one IP address for every atom in our planet, but on the other hand, noone expected the IPv4 address range to be too small either.
The only grieveance for me in this sense, is the loss of opportunity to serve. I cannot set up SSH, Apache or any other form of server-application to establish outgoing connections based on incoming requests through this NAT setup. So, that's why I had to acquire a point-to-point IP address and route it manually to my DMZ. The problem I have now, is the lack of cabled internals in our house. I had to devise a hybrid LAN on both cabled and wireless connections to achieve my goal.

01 March, 2008

Distribuert Wardriving ^_^

Online liste over usikrede og sikrede WiFi-LAN ;P Genialt!

http://www.dinside.no/php/art.php?id=512387

http://www.wigle.net/

25 February, 2008

We-Hey! ;D



Se her ja, Valve viser endelig interesse for Linux-plattformen! Dette lover bra ;P


http://www.hardware.no/artikler/valve_viser_interesse_for_linux/43251

Så har vi også dette med at Incomniac Games skal slippe koden for spillmotoren deres 0_o Ikke at dette er noe negativt i-og-for-seg, kan jo bety at noen snapper opp koden og utvikler neste generasjons 3D-spill ;) Har jo andre eksempler på det samme, som f.eks. når ID Games slapp "Quake III"-motoren som åpen kildekode, men man måtte ha spill-CDen for å kunne bruke motoren som Quake-motor. De utgir rett og slett rammeverket rundt spillet, ikke selve spillet.


http://www.hardware.no/artikler/deler_spill-koden/48906

24 February, 2008

NOC: Non-Official Cover (espionage)

I was actually looking for normal operation information on a Network Operation Central (NOC). But I came across this article explaining the espionage aspect of 'NOC'. Interesting stuff.

It is reserved for the situation where agents assume covert roles in an organization without ties to the government for which they work. Such operatives are named in espionage linguo as a NOC (pronounced "knock").

http://en.wikipedia.org/wiki/Non-official_cover

23 February, 2008

SpooOOooky


Morgue? Institution? Guarded prison? Containment center?

...or just a construction site outside my work office, in the dark morning hours of February? :-P hahaha, Norway can look pretty gloomy sometimes.

"...a catch 22..."

Catch-22 is a term coined by Joseph Heller in his novel Catch-22, describing a paradox in a law, regulation or practice in which one is a victim regardless of the choice one makes. Just wanted to find out where the expression "Catch 22" originated from.

I knew the basis, like in a "hopeless" situation, any choices made would generate a negative lunge on oneself.



Og på Norsk: Catch-22 er en betegnelse fremstilt av Joseph Heller i novellen "Catch-22", som beskriver et paradoks i en lov, regulasjon eller praksis hvor en blir offer uavhengig av hvilke beslutninger en tar.

Ville bare finne ut hvor uttrykket "Catch 22" kom fra. Visste egentlig at det handlet om f.eks. en "håpløs" situasjon, hvor alle alternativer ville gi et negativt utfall.

Men da jeg leste litt mer om dette, viste det seg at det finnes allerede, mange fastsatte beskrivelser for mange logiske situasjoner. Ble enda mer engasjert når jeg så uttrykket "Høna eller egget?", det fortalte en del om dette engelske uttrykket.

Vi har vel mange uttrykker om slike situasjoner i det Norske språk? Ikke vet jeg.


Det jeg ble mest interessert i var data-avsnittet om "Deadlock" (dødlås) i data-terminologi, oversatt fra engelsk:

I data vitenskap, er en deadlock (dødlås) en situasjon hvor to konkurrerende prosesser venter på en ressurs den andre har kontroll over. Hver prosess vil bare frigi ressursen den har kontroll over dersom den mottar kontroll over ressursen den venter på. Derfor, vil en ressurs bare bli tilgjengelig for en av prosessene dersom den andre frigir sin ressurs - som ingen vil gjøre, inntil den mottar kontroll over ressursen den andre har.

For eksempel, la oss si prosess A har en minneblokk, og trenger disk-aksess. Imens, har prosess B kontroll over disk-aksessen, og trenger å legge sin informasjon i minnet - spesifikt, trenger den minneblokken prosess A kontrollerer. Prosess A vil holde på minneblokken og vente på at disk-aksess blir tilgjengelig. Begge prosesser er avhengig av hverandre, og vil derfor vente på hverandre uendelig inntil datamaskinen legger merke til deadlocken, velger et deadlock-offer og tvinger offeret til å frigi ressursene sine.

Denne situasjonen blir derfor en ond sirkel og er derfor et godt eksempel på en Catch-22. Denne typen situasjon har også blitt referert til som en "deadly embrace" (dødelig omfavnelse). En deadlock er, selvfølgelig, en uønsket situasjon i et datasystem.

http://en.wikipedia.org/wiki/Catch-22_(logic)

Everex "Cloudbook" running gOS ("Google Linux")

Everex Cloudbook:
gOS:

From the Everex website:

Think CloudBook

Experience the Ultimate in Mobility 9 Inches, 2 pounds, 5 hours of battery life. Surf, email, blog, IM, Skype, compute. Cloud computing makes it simple and easy for everyone.

Based on the latest gOS Rocket operating system, the ultra-mobile Everex PC comes with popular applications from Google, Mozilla, Skype, OpenOffice.org and more.

Find your $399 CloudBook at
Walmart.com and ZaReason.com.

Additional Preinstalled and Linked Software

Mozilla Firefox, gMail, Meebo, Skype, Wikipedia, GIMP, Blogger, YouTube, Xing Movie Player, RythemBox, Faqly, Facebook and OpenOffice.org 2.3 (includes WRITER, IMPRESS, DRAW, CALC, BASE)

Hardware Specifications
1.2GHz, VIA C7®-M Processor ULV, 512MB DDR2 533MHz, SDRAM, 30GB Hard Disk Drive, 7" WVGA TFT Display (800 x 480), VIA UniChrome Pro IGP Graphics, VIA High-Definition Audio, 802.11b/g, (1) 10/100 Ethernet Port, (1) DVI-I Port, (2) USB 2.0 Ports, (1) 4-in1 Media Card Reader, (1) .3MP Webcam, (1) Headphone/Line-Out Port, (1) Microphone/Line-In Port, (1) Set of Stereo Speaker, (1) Touchpad, (1) 4-Cell Lithium-Ion Battery
http://www.everex.com/

Specifications:
http://www.walmart.com/catalog/product.do?product_id=8245470#Specifications

What's even more exciting about Everex, is their desktop computer featuring gOS, the "gPC".

I think "free computing" is becoming more and more attractive to a lot of users in the US. It's always been an accepted principal to use open source software in Norway, authorities are even considering "open formats" for official state documents nowadays. We've even seen groups and initiatives form as a result of open source software being more and more talked about in the media, etc.

I think this is all really encouraging.

Since I use all-Google web-apps for my daily 'webbing', this wouldn't be a bad choice, despite the extra $200 compared to the OLPC. This unit actually CAN do computer tasks, as well as basic gaming and emulation. Worth mentioning is also the 5 hour battery life expectancy, this really won my vote.

"gOS" on the web:
http://www.thinkgos.com/

gOS mezmerizes me. It is a complete platform to do basic computing, as well as development! ;) Includes desktop-shortcuts to well-known online resources and web-applications, from Google online apps, to web-based instant messaging services like meebo.com, and a lot more. Native, locally installed applications and environments include: Openoffice.org for office tasks, Enlightenment as a window manager giving the GUI a really updated and fresh look, the standardized web-suite from Mozilla; Firefox (browsing) and Thunderbird (mail), Pidgin and Skype for P2P instant messaging and the GIMP for image manipulation.

gOS provides a complete desktop environment for general use, without overloading the system with unnecessary overbloated software-packages.

gOS IS considered beta-software, but computer-manufacturers dispatching systems with gOS have all given positive feedback from customers, and the first stock at Walmart were sold out at launch and over 2000+ developers downloaded the distribution in the first 48 hours of launch. All good notions about this system. And using gOS, gives you freely available system updates, nice ;-) open source at it's best!

Allthough I'm still waiting for Acer's contribution to the Ultra Mobile-scene, this candidate has won my attention for the time being... and sporting all this hardware for under 2200 NOK, not bad at all ;P

In comparison, my Playstation 3 40GB cost almost double that.