http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People

Home

English

Česky

Deutsch

Ελληυικά

Français

Italiano

Nederlands

Polski

Português

Русский

Español

Suomi

Svenska


News

Archive

Introduction

Status
Screenshots
Ports
License

Download


Documentation

Users
Installation
Using
Shell
Applications
FAQ
HowTo
Hardware Compatibility
Developers
Contribute
Roadmap
Bug Tracker
Working with Subversion
Compiling
Application Development Manual
Zune Application Development Manual
System Development Manual
Debugging Manual
Reference
Specifications
UI Style Guide
Documenting
Porting
Translating
Summaries
Links

Contact

Mailing lists
IRC channels

Credits

Acknowledgements


Pictures

Developers
Developers en Masse

Sponsors

Linking

Links

Get AROS Research Operating System at SourceForge.net. Fast, secure and Free Open Source software downloads

"How To" Documentation

How to?

How do I access AROS's disk images from UAE?

The floppy disk image can be mounted as a hardfile and then used as a 1.4 MB harddisk within UAE. After you have put the files you want on the hardfile disk image (or whatever you wanted to do), you can write it to a floppy.

The geometry of the hardfile is as follows:

Sectors    = 32
Surfaces   = 1
Reserved   = 2
Block Size = 90

How do I access AROS's disk images from hosted flavors of AROS?

Copy the disk image to the DiskImages directory in AROS (SYS:DiskImages, e.g. bin/linux-i386/AROS/DiskImages) and rename it to "Unit0". After starting AROS, you can mount the disk image with:

> mount AFD0:

How can I restore my Prefs to defaults?

In AROS, open CLI shell, go to Envarc: and delete relevant files for the pref you want to restore.

How do I change the screensaver/background?

At the moment the only way to change screensaver is to write your own one. Blanker commodity could be tuned with Exchange, but it is able to do only "starfield" with given amount of stars. Background of Wanderer is set by Pref tool Prefs/Wanderer. Background of Zune Windows is set by Zune prefs Prefs/Zune. You can also set your chosen application preferences by using the Zune <application> command.

How can I make windows refresh from black on AROS-hosted?

You must supply the following string (as is!) to the "Device" section of your /etc/X11/xorg.conf (or XFree.conf):

Option  "BackingStore"

See Installation for details.

How can I transfer files to virtual machine with AROS?

First and simplest way is to put files to the ISO image and and connect it to VM. There's a lot of programs able to create/edit ISO's like UltraISO, WinImage, or mkisofs. Second, you can set up the network in AROS and FTP server on your host machine. Then you can use FTP client for AROS to transfer files (look for MarranoFTP). This is tricky enough to stop at this point. User documentation contains a chapter about networking, go for it. Also, now there`s a promising utility (AFS Util), allowing to read (no write support yet) files from AROS AFFS/OFS disks and floppies.

How do I clear the shell window? How do I set it permanently?

Type this command in the shell:

Echo "*E[0;0H*E[J* "

You can edit your S:Shell-Startup and insert this line somewhere, so you'll have a new "Cls" command:

Alias Cls "Echo *"*E[0;0H*E[J*" "

BTW: here is my new S:Shell-Startup modified to start the shell in black and with a modified prompt:

Alias Edit SYS:Tools/Editor
Alias Cls "Echo *"*E[0;0H*E[J*" "
Echo "*e[>1m*e[32;41m*e[0;0H*e[J"
Prompt "*n*e[>1m*e[33;41m*e[1m%N/%R - *e[30;41m%S>*e[0m*e[32;41m "
date

More about printer escape sequences:

Esc[0m
Standard Set

Esc[1m and Esc[22m
Bold

Esc[3m and Esc[23m
Italics

Esc[4m and Esc[24m
Underline

Esc[30m to Esc[39m
Set Front Color

Esc[40m to Esc[49m
Set Background Color

Values meanings:

30 grey char -- 40 grey cell -- >0 grey background ---- 0 all attributes off
31 black char - 41 black cell - >1 black background --- 1 boldface
32 white char - 42 white cell - >2 white background --- 2 faint
33 blue char -- 43 blue cell -- >3 blue background ---- 3 italic
34 grey char -- 44 grey cell -- >4 grey background ---- 4 underscore
35 black char - 45 black cell - >5 black background --- 7 reverse video
36 white char - 46 white cell - >6 white background --- 8 invisible
37 blue char -- 47 blue cell -- >7 blue background

The codes can be combined by separating them with a semicolon.

How do I launch AROS-hosted in fullscreen?

Start AROS with the option "--fullscreen".

How to make 2-state AROS Icons?

AROS icons are actually renamed PNG files. But if you want icons in two states (normal/selected) use this command:

join img_1.png img_2.png TO img.info

How to mount an ISO image on AROS? And can I update my nightly build this way?

  • Get the ISO into AROS (by wget or else way)

  • Copy the ISO into sys:DiskImages (drawer must be created if it isn`t exist).

  • Rename ISO to Unit0 in that dir.

  • You must add this to your Devs:Mountlist

    ISO:
    FileSystem = cdrom.handler
    Device = fdsk.device
    Unit = 0
    
  • Then mount ISO: You can copy anything from ISO:. Additionally, you can create a script to update your nightly build like this:

    copy ISO:boot/aros-pc-i386.gz sys:boot/
    copy ISO:C sys:C all quiet
    copy ISO:Classes sys:Classes all quiet
    copy ISO:Demos sys:Demos all quiet
    

And so on for each directory except Prefs, Extras:Networking/Stacks, and devs:mountlist itself. Prefs have to be kept if you want it. Also you can set AROSTcp to keep its settings in separate directory.

If you want to write all over, just do:

copy ISO:C sys:C all quiet newer

How to unmount a volume?

Launch these two commands in CLI:

assign DOSVOLUME: dismount
assign DOSVOLUME: remove

where DOSVOLUME is DH0:, DF0:, etc

How to mount a FAT Floppy with the FAT.handler?

Currently the FAT volumes are autodetected and automounted, but here`s how to manually mount it.

Create a mountfile (text file) with the 3 magic lines:

device = trackdisk.device
filesystem = fat.handler
unit = 0
  • Call it somehow, PC0 for example. Set this file default tool to c:mount in properties (or put mountfile to devs:dosdrivers or sys:storage/dosdrivers)
  • Double click on it.
  • Insert a FAT formatted floppy.
  • See the icon appearing on Wanderer`s desktop.

How to mount a real HD FAT partition with the FAT.handler?

Currently the FAT volumes are autodetected and automounted, but here`s how to manually mount it.

First you`d need to read the drive`s geometry and write down some values. You can use HDToolbox or Linux fdisk for that. The BlocksPerTrack value is taken from the sectors/track value. Note that it has absolutely nothing to do with the physical disk geometry - FAT only uses it as a multiplier. If you get the Cylinders e.g. from HDToolbox or using the Linux fdisk like this:

sudo fdisk -u -l /dev/hda,

Then you'll need to set BlocksPerTrack=63. To ensure you have numbers in cylinders look for Units=Cylinders in output. If you got fdisk output in sectors (Units=sectors), set BlocksPerTrack=1.

LowCyl and HighCyl are partition`s cylinders like:

mark@ubuntu:~$ sudo fdisk -l -u /dev/hda
...
/dev/hda1 * 63 20980889 10490413+ c W95 FAT32 (LBA)

So, LowCyl is 63, and HighCyl is 20980889, blockspertrack=1

Create a mountfile (text file) with these lines:

device = ata.device
filesystem = fat.handler,
Unit = 0

BlocksPerTrack = 1
LowCyl = 63
HighCyl = 20980889
Blocksize=512
  • Call it somehow, FAT0 for example
  • Set this file`s default tool to c:mount in properties (or put mountfile to devs:dosdrivers or sys:storage/dosdrivers)
  • Double click on it
  • See the icon appearing on Wanderer`s desktop

Note: Formula for counting the blocks: block = ((highcyl - lowcyl) x surfaces + head) x blockspertrack + sec

How to use joystick or gamepad with AROS?

Just plug in your digital/analogue joystick or gamepad into USB port. The device will be handled by Poseidon USB stack.

How to change joystick mode to analogue?

By default a connected USB joystick emulates Amiga digital joystick. To change this behaviour so that the joystick is presented as analogue you need to use Trident preferences application (System:Prefs/Trident).

Open Trident and go to Devices window. Select your controller from the list and then click on Settings button. This will open a new window. On the "General" tab find the "Lowlevel Library Joypad Emulation" section. Find ports which are set to "Merge with USB" or "Override with USB" and change them into "Analogue Hack"

Please note that analogue joystick support is an extension of original Amiga functionality, thus an Amiga application must be explicitly written to use it. AROS SDL library uses this functionality, thus all SDL applications that use joystick, can use the analogue joystick feature.

How to change joystick port assignment?

By default a connected USB joystick is present in Port 1. To change its location to Port 0 you need to use Trident preferences.

Open Trident and go to Devices window. Select your controller from the list and then click on Settings button. This will open a new window. On the "General" tab find the "Lowlevel Library Joypad Emulation" section. Port 1 should be set as either "Merge with USB" or "Override with USB". Change this setting to "Don't touch". Change Port 0 setting to "Merge with USB".

Go to "Actions" tab. In the "Reports and collection" select first entry named "Joystick". in the "Usage items" select "X axis". Go to "Performed actions" area. On the left there will be a list of triggers. Each of them should have (port1) in their params. Click on the first trigger and using buttons to the right of the list change port1 into port 0. Repeat this for all triggers and for all items on "Usage items" list.

How to make joystick simulate keyboard keys?

With Poseidon it is possible to make the joystick simulate the keyboard pressings. This might enable using joystick for playing games which only have keyboard support. This feature is configured in Trident preferences.

Open Trident and go to Devices window. Select your controller from the list and then click on Settings button. This will open a new window. Go to "Actions" tab. On the right top window select X axis. On the left bottom list select an entry "Digital Joystick, Push left(port 1)". On the panel to the right change "Digital joystick" into "Raw Key". A list of keys will be displayed. Select key you wish to send. Repeat the same procedure for "Digital Joystick, Release left (port 1)" option but this time check "Send key up even instead of key down".

Open shell and move your joystick to the left - your selected letter should appear in the shell.


Copyright © 1995-2011, The AROS Development Team. All rights reserved.
Amiga® is a trademark of Amiga Inc. All other trademarks belong to their respective owners.