Friday, 7 September 2012

auto login command line Debian


If you want to auto login and startx without a display manager inDebian use the one of the following method

1:2345:respawn:/sbin/mingetty --autologin username --noclear tty1
Method 1
First you need to edit the /etc/inittab file
#nano /etc/inittab
look for the following line
1:2345:respawn:/sbin/getty 38400 tty1
and commentout
#1:2345:respawn:/sbin/getty 38400 tty1
add the following line
1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
Save and exit the file
Now you need to edit .bash_profile and at the bottom add  the following command and save
startx
Method 2
First install rungetty using the following command
#apt-get install rungetty
you need to edit the /etc/inittab file
#nano /etc/inittab
look for the following line
comment out
#1:2345:respawn:/sbin/getty 38400 tty1
and add
1:2345:respawn:/sbin/rungetty tty1 --autologin YOUR_USER_NAME
edit .bash_profile and at the bottom add
if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
while true
do
startx --
sleep 10
done
fi

Sunday, 19 August 2012

Embedded System Design on a Shoestring

In this practical guide, experienced embedded engineer Lewin Edwards demonstrates faster, lower-cost methods for developing high-end embedded systems. With today's tight schedules and lower budgets, embedded designers are under greater pressure to deliver prototypes and system designs faster and cheaper. Edwards demonstrates how the use of the right tools and operating systems can make seemingly impossible deadlines possible. Designer's Guide to Embedded Systems Development shares many advanced, "in-the-trenches" design secrets to help engineers achieve better performance on the job. In particular, it covers many of the newer design tools supported by the GPL (GNU Public License) system. Code examples are given to provide concrete illustrations of tasks described in the text. The general procedures are applicable to many possible projects based on any 16/32-bit microcontroller. The book covers choosing the right architecture and development hardware to fit the project; choosing an operating system and developing a toolchain; evaluating software licenses and how they affect a project; step-by-step building instructions for gcc, binutils, gdb and newlib for the ARM7 core used in the case study project; prototyping techniques using a custom printed circuit board; debugging tips; and portability considerations. The accompanying companion website contains all the code used in the design examples as well as useful open-source tools for embedded design. ·A wealth of practical tips, tricks and techniques ·Design better, faster and more cost-effectively ·Accompanying companion website includes useful open-source tools for embedded design

Sunday, 18 March 2012

Kogan 7" Android tablet working with O2 3G dongle



These are the steps needed to get the O2 3G dongle working with the Kogan tablet, which is a great device for the price.


Please note all steps must be completed to ensure the settings are correctly configured.

Please ensure that when entering O2 into the settings that the letter O is selected and not azero.
When entering the following information do not press Save until told to in the instructions.
Press the Menu key
Tap Settings
Tap Wireless & networks
Tap Mobile networks
Tap Access Point Names
Press the Menu key
Tap New APN
Tap Name then tap the text box and enter O2 Mobile Web then tap OK
Tap APN then tap the text box and enter mobile.o2.co.uk then tap OK
Skip passed Proxy and Port as they are preset as Not set
Tap Username then tap the text box and enter o2web then tap OK
Tap Password then tap the text box and enter password then tap OK
Skip past Server MMSC, MMS proxy, MMS port as these are preset as Not set
Tap MMS protocol then tap WAP 2.0
Tap MCC then tap the text box and enter 234 then tap OK
Tap MNC then tap the text box and enter 10 then tap OK
Tap Authentication type then tap None
Tap APN type and enter default,hipri then tap OK
Tap the Menu key
Tap Save
Tap your new account so a green dot appears next to it
Press the Back key four times to return to the standby screen.

What to do next:

Reboot  to complete your settings.