Tips & tricks

Customization of java client initialization command

In Server-mode it is possible to add custom commands to (Connect) event handler.

To do this it needs to create file $HOME/.anyRemote/hook_connect and put all needed commands there. These command will be executed after commands defined in (Connect) event handler command sequence.

Support for non-UTF8 encodings

Anyremote java client supports only UTF8 encoding. If You system configured to use other encoding (e.g ISO-8859-15 used in Western Europe) then in Server-mode it is possible to handle this.

It just needs to create file $HOME/.anyRemote/hook_connect and put there commands like

Make(var,from_utf,by_value,|iconv -t ISO-8859-15 -f UTF8);
Make(var,  to_utf,by_value,|iconv -f ISO-8859-15 -t UTF8);

Be sure iconv utility is installed in You system.

Tune amixer utility to control appropriate sound card and channel.

If configuration file uses amixer utility to control sound volume and it needs to control a non-default sound card it is possible to create the file $HOME/.anyRemote/amixer.card with content like "-c X", where X is the number of the sound card to control.

If configuration file uses amixer utility to control sound volume and it needs to control a channel different from Master it is possible to create file $HOME/.anyRemote/amixer.channel with content equal to channel name to control.