eEcho blog

A journey of a thousand miles starts with a single step.

The 5 Most Common Problems New Programmers Face–And How You Can Solve Them

http://www.cprogramming.com/beginner_programming_mistakes.html
When you’re just starting out with programming, it’s easy to run into problems that make you wonder how anyone has ever managed to write a computer program. But the fact is, just about everyone else who’s learned to code has had that experience and wondered the same thing, when they were starting out. I’ve helped […]

Design and Layout wordpress

Basics of WordPress Site Design
http://codex.wordpress.org/Blog_Design_and_Layout
Now What?
You’ve just completed the famous 5 Minute Installation of WordPress without stress or fuss. WordPress is packed with many amazing features. So now that you’ve got it installed, what should you do?
Let’s take a step-by-step tour through your WordPress site and learn about how all the different functions […]

Troubleshooting VirtualBox

The character device /dev/vboxdrv does not exist
When starting VirtualBox OSE, the following message is shown:
*
      WARNING: The character device /dev/vboxdrv does not exist.
               Please install the virtualbox-ose-modules package for your kernel and
               load the module named vboxdrv into your system.
               You will not be able to start VMs until this problem is fixed.

Load the VirtualBox […]

Starting VirtualBox

#
In KDE, go to: KDE menu > System > VirtualBox OSE
#
In GNOME, go to: GNOME menu > Applications > System tools > VirtualBox OSE
#
From an X terminal:
$ virtualbox

Installation VirtualBox Lenny

VirtualBox OSE 1.6.6 is packaged for Debian Lenny and available as backported packages for Debian Etch. VirtualBox OSE 2.1.4 is currently packaged for testing.
Lenny
Using Etch? Skip to the Etch section.
udevcontrol reload_rules is not invoked at virtualbox-ose postinst as /sbin/udevcontrol does not exist in Lenny
1.
Install the virtualbox-ose […]

virtualBox OpenExistingSession

Problem VirtualBox zombi.

/usr/bin/vboxmanage controlvm or-prodtest reset
[!] FAILED calling virtualBox->OpenExistingSession (session, uuid) at line 5536!
[!] Primary RC = E_ACCESSDENIED (0×80070005) - Access denied
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0×80070005) - Access denied
[!] Text       = The machine 'or-prodtest' does not have an open session
[!] Component   = […]

Introducing List Filtering

>>> li = ["a", "mpilgrim", "foo", "b", "c", "b", "d", "d"]
>>> [elem for elem in li if len(elem) > 1]       1
['mpilgrim', 'foo']
>>> [elem for elem in li if elem != "b"]         2
['a', 'mpilgrim', 'foo', 'c', 'd', 'd']
>>> [elem for elem in li if li.count(elem) == 1] 3
['a', 'mpilgrim', 'foo', 'c']
1 The mapping expression here is simple […]

HOWTO: Install X Window System and a Desktop Environment

So, you have just installed Debian GNU/Linux. Good for you! But, what now? All you have is a black screen in front of you with no mouse pointer or application menu or anything! What gives?!
What you need now is to install a Desktop Environment. Don’t fret, it’s actually pretty easy.
1. Install The X Window System
First, […]

setterm

setterm writes to standard output a character string that will invoke the specified terminal capabilities. Where possible terminfo is consulted
to find the string to use. Some options however (marked “virtual consoles only” below) do not correspond to a terminfo(5) capability. In […]

Bash

Which shell am i running?
grep yourloginname /etc/passwd
/etc/profile
Configuration file for bash any data like variables, path, start options, hotsname, Histsize etc..
/etc/bashrc
Aliases and functions any logic
It is to make changes globaly.
/etc/skel/
Contains hidden files .bash_logout .bash_profile .bashrc this setting is for all user on the system. It is to make changes for eth new user.
To add new […]

Change console keyboard layout in debian

However I did come across a weird problem. I’d installed Debian linux and the console keyboard layout wasn’t correct for my Apple USB keyboard.
The solution was to use this command
dpkg-reconfigure console-data

More powerful command line option parser

http://docs.python.org/library/optparse.html
New in version 2.3.
optparse is a more convenient, flexible, and powerful library for parsing command-line options than the old getopt module. optparse uses a more declarative style of command-line parsing: you create an instance of OptionParser, populate it with options, and parse the command line. optparse allows users to specify options in the conventional GNU/POSIX […]

Debian root password reset

Boot from any emergency boot/root disk set. (SystemCD, rescue cd). If /dev/hda3 is the original root partition, the following will let one edit the password file juist as:
#mkdir fixit
# lvm vgchange -a y
# lvdisplay
#mount /dev/debain/root fixit
#cd fixit/etc
#vi passwd

show all dev

To activate the LVMs in FC4 Rescue Mode

To activate the LVMs in FC4 Rescue Mode, run this from the command line:
lvm vgchange -a y
For a list of LVM commands, run:
lvm help
There is a really good LVM HowTo here
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/LVM-HOWTO.html

The bottom line about resizing ext3 logical volumes is that it is easy to make them bigger, but difficult to make them smaller. In theory, […]

Ubuntu PXE Install

From C4 Wiki
Jump to: navigation, search
Contents
[hide]
* 1 Howto
o 1.1 Install services
o 1.2 Prepare your tftp server
o 1.3 Prepare your dhcp-server
[…]

Digital Subscriber Line

An Overview of Wiring Requirements to Support Residential DSL Service
Digital Subscriber Line (DSL) refers to a set of technologies used to provide broadband services via the existing copper cable plant. One variation of DSL is Asymmetric Digital Subscriber Line or ADSL, which has become very popular for residential internet access. ADSL can provide a subscriber […]

SFG

0. Introduction
1. July Project of the Month: Piwik
2. August Project of the Month: eyeOS
3. Policy Change: Advertising In Project Web Space
4. Mail Alias Opt-Out
5. Statistics and Top Projects
This email is sponsored by: Adobe
——
Create RIAs more quickly with the Adobe® Flex® software
framework and Adobe Flex Builder™ software. Now it’s easy
to build engaging, cross-platform web apps when […]

Linux Advanced Routing & Traffic Control HOWTO

http://tldp.org/HOWTO/Adv-Routing-HOWTO/
Exploring your current configuration
This may come as a surprise, but iproute2 is already configured! The current commands ifconfig and route are already using the advanced syscalls, but mostly with very default (ie. boring) settings.
The ip tool is central, and we’ll ask it to display our interfaces for us.
3.4.1. ip shows us our links
[ahu@home ahu]$ ip […]

iperf

iperf is a tool for performing network throughput measurements. It can test either TCP or UDP throughput. To perform an iperf test the user must
establish both a server (to discard traffic) and a client (to generate traffic).
======================================= Server side:
./iperf -s
Client connecting to 192.168.202.62, TCP port 5001
TCP window […]

Netcat useful commands.

In this tutorual will go over the most useful netcat commands. Netcat is a tool that every IT professional should have in their tool box, if you’re responsible for network or systems security, it is essential that you understand the capabilities of netcat. The original version of netcat is a UNIX program. Its author is […]