Zsuetam Ikslybyzrp

How I work everyday

I'm used to integrated development environment (IDE) for Programming. For java i'm using IntelliJ IDEA which has great refactoring capabilities, great code completion, is just great. Natural question was "is there any native IDE for AROS?". Ofcourse i was sure there was no IDE like Intellij Idea but i was expecting something like Code::Blocks or atleast Geany. But I found out that such software which can be run under AROS doesn't exists. After playing with Netbeans on linux with cross compilers I must admit that i don't regret.

How to setup linux (Apply to x86 not AMD64)

Basic AROS installation

Before You start you need to download latest nightlies (linux-i386-system, pc-i386-contrib, pc-i386-sdk) from AROS site

As I am debian fan first steps will apply to debian/ubuntu. We need to be a root user to install software so before any commends write in terminal for debian su or sudo su for ubuntu.

You need to install gcc and other system stuff:

 apt-get install build-essentials uml-utilities

You need to create place for aros:

 mkdir /opt/aros

And give this place rigth to write by Your user (replace username with your system username)

 chown username:usernam /opt/aros

Now type exit and change current directory to /opt/aros cd /opt/aros and extract downloaded nightlies. If you downloaded to standard location commands should look like bellow (there can be different date in archives and directories names):

 tar xf ~/Downloads/AROS-20161010-linux-i386-system.tar.bz2
 tar xf ~/Downloads/AROS-20161010-pc-i386-sdk.tar.bz2
 tar xf ~/Downloads/AROS-20161010-pc-i386-contrib.tar.bz2
 cd AROS-20161010-pc-i386-contrib/
 mv * ../AROS-20161010-linux-i386-system
 cd ..
 rm AROS-20161010-pc-i386-contrib
 mv AROS-20161010-linux-i386-system system

After unpacking You need to setup cross compilers (as location of sdk i used /opt/aros/sdk):

 cd AROS-20161010-pc-i386-sdk

Post installation network in AROS and Linux setup

You can skip networking setup if you doesn't want to use networking in your app. To use network in linux hosted we need to setup virtual interface on linux side, i prepared script for that. It is placed in /opt/aros/net-setup.sh and looks like this (replace username with your linux username):

tunctl -b -u username -t aros0
ifconfig aros0
ifconfig aros0 up
chmod 666 /dev/net/tun
route add -host dev aros0
iptables-restore <  /opt/aros/firewall.rules

As you can see last command restores firewall rules which enables ip forwarding and masquerading rules. My file looks like this (replace IFACE with name of internet interface (probably one of these wlan0, eth0 or ppp0):

-A PREROUTING -i IFACE -p tcp -m tcp --dport 50000 -j DNAT --to-destination

-A INPUT -i lo -j ACCEPT
-A FORWARD -i wlan0 -p tcp -m tcp --dport 50000 -m state --state NEW -j ACCEPT

You should chmod /opt/aros/net-setup.sh to allow it execution with command

chmod 755 /opt/aros/net-setup.sh

Now as root (su or sudo su) edit file /etc/rc.local to enable networking at boot. My file looks like this:

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
exit 0

Now you need setup AROS part:

AROS Network Preferences

Finally you need to install Netbeans

Download it from Netbeans homepage after installing it you need to setup AROS build tools like this:

Netbeans build tools setup

Now your good to go with your projects :)

Opening post

Hello World in AROS

Zsuetam Ikslybyzrp

Blog for beginners AROS developers from beginner AROS developer

I started this blog because I want collect data about software development for AROS for newbies like me in one place. In future i will publish easy to try tutorials about AROS coding.

Personally I am profesional JAVA developer. I started coding on Amiga in AmigaE in 1998. I was using my Amiga till she died in 2005. Then was some experience with perl, a lot with PHP and ActionScript3, and finally Java. Which probably will be my main coding language till retire.

As You noticed I am not programmer beginner. So You will not find here tutorials about code syntax, code statements like IF etc. Here you find only juicy meat about Librararies in AROS world and such.