gdb and simulavr are the backend of AVR studio. With gdb and simulavr you can do the same things you can do with AVR studio. Ubuntu has in its repository some ready packages. Look for gcc-avr, binutils-avr, avr-libc, avrdude, gdb-avr, simulavr. Just install them, that's it Cool The downside is that you don't have a GUI, you probably need to simulate your code from the command line.
This tutorial will demonstrate the following development process: Write C programs in AVR Studio. Compile them into a .hex file using the AVR-GCC compiler (which integrates into AVR Studio). Simulate the target AVR chip and debug the code within AVR Studio. Program the actual chip using the AVRISP mkII USB device, which is attached to our target chip with a special 6-pin cable. Once programmed, the chip runs the program in your circuit.
TITLE 'DEMOAST1 - READ AND PRINT'
*
* AUTHOR. DON HIGGINS.
* DATE. 12/30/82.
* REMARKS. PC/370 DEMO TO ILLUSTRATE ASSIST DUMP AND LOG OUTPUT.
*
* THIS PROGRAM READS CARDS FROM DEMOAST1.DAT AND LISTS THEM ALONG
* WITH SELECTED DUMPS OF REGISTERS AND STORAGE ON DEMOAST1.LOG.
*
* MAINTENANCE
*
* 05/18/87 CONVERTED TO R2.0 XFILI/XFILO PATH/FILENAME FORMAT
*
*
DEMOAST1 CSECT
USING *,R15
XFILI =C'DEMOAST1.DAT'
XFILO =C'DEMOAST1.LOG'
XDUMP
LOOP EQU *
XREAD CARD
BNZ EOF
XPRNT CARD,80
B LOOP
EOF EQU *
XDUMP CARD,80
XDUMP CARD
SVC EXIT
R15 EQU 15
EXIT EQU 0
CARD DC CL80' '
END DEMOAST1
/pre>