Skip to main content

Tethering an AmaySIMmed phone on Linux

Tethering one’s Nokia E5 to take advantage of the 4GB of Internet traffic included in AmaySIM’s $39.90 plan (for 30 days) is quite simple, once all of the knowledge is in place.

Switch your phone to “PC Suite” mode...

Press [Menu]
Select [Ctrl. Panel]
Select [Settings]
Select [Connection]
Select [USB]
Select [PC Suite]
Select [OK]
Select [Back] until Menu closes

...at which point a serial device appears when you plug it into your PC (in this case, a laptop running Natty Narhal Kubuntu) at /dev/ttyACM0.

Now follow AmaySIM’s instructions:

Press [Menu]
Select [Ctrl. Panel]
Select [Settings]
Select [Connection]
Select [Destinations]
Select [Access point]
Press [No]
Select [Packet data]
Enter amaysim Internet and press [OK]
Select [Internet] as the destination
Select [Internet]
Highlight [Optus Internet], press [Options] and select [Edit]
Ensure Data bearer is set to [Packet Data]
Select [Access point name]
Enter or change to internet and press [OK]
User name and Password should be left blank [set to None]
Ensure Prompt password is set to [No]
Ensure Authentication is set to [Normal]
Ensure Use access point is set to [Automatically]
Press Options and select [Advanced settings]
Ensure Network type is set to [IPv4]
Ensure IP address is set to [Automatic]
Ensure DNS addresses is set to [Automatic]
Ensure Proxy server address is set to [None]
Ensure Proxy port number is [0]
Press [Back] until you return to the main menu
Select [Internet]
Select [Web]
Press [Options] and select [Settings]
Select [General]
Select [Access Point]
Select [Internet]
Press [Options] and select [Exit]

All well & good. Now (you will need to be SuperUser/root) make your /etc/wvdial.conf file look like this:

[Dialer Defaults]
Modem = /dev/ttyACM0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+cgdcont=1,"IP","internet"
Carrier Check = no
Dial Command = ATDT
Phone = *99#
Username = *
Password = *
Ask Password = 0
Auto Reconnect = yes
Stupid Mode = yes
ISDN = 0
Auto DNS = on
Check DNS = on
Check Def Route = on

Depending upon your Linux distribution, you may need to (as SuperUser) mark the pppd file as SUID. In my case, finding the executable file was done with which pppd & ensuring the setting with chmod u+s /usr/sbin/pppd.

You may need to make your user(s) members of the groups dialout & dip by (as SuperUser) editing the /etc/group file, then logging them out & back in.

As one of said users, type wvdial & press Enter. Ten seconds later, the world appears. The command “ping ii.net” is a simple way to verify that DNS & traffic are both afloat.

Comments

Popular posts from this blog

every-application-is-part-of-a-toolkit at work

I have a LibreOffice Impress slideshow that I wish to turn into a narrated video. 1. export the slideshow as PNG images (if that is partially broken — as at now — at higher resolutions, Export Directly as PDF then use ‘pdftoppm’ (from the poppler-utils package) to do the same). 2. write a small C program (63 lines including comments) to display those images one at a time, writing a config file entry for Imagination (default transition: ‘cross fade’) based on when the image-viewer application (‘display,’ from the GraphicsMagick suite) is closed on each one; run that, read each image aloud, then close each image in turn. 3. run ‘Imagination’ over the config file to produce a silent MP4 video with the correct timings. 4. run ‘Audacity’ to record speech while using ‘SMPlayer’ to display the silent video, then export that recording as a WAV file. 4a. optionally, use ‘TiMIDIty’ to convert a non-copyright-encumbered MIDI tune to WAV, then import that and blend it with the speech (as a quiet b

new life for an old (FTX) PSU, improved life for one human

the LEDs on this 5m strip happen to emit light centred on a red that does unexpectedly helpful things to (and surprisingly deeply within) a human routinely exposed to it. it has been soldered to a Molex connector, plugged into a TFX power supply from a (retired: the MoBo is cactus) Small Form Factor PC, the assorted PSU connectors (and loose end from the strip) have been taped over. the LED strip cost $10.24 including postage, the rest cost $0, the PSU is running at 12½% of capacity, consumes less power than a laptop plug-pack despite running a fan. trial runs begin today.

boundaries

pushing the actual boundaries of the physical (not extremes, the boundaries themselves) can often remove barriers not otherwise perceived. one can then often resolve an issue itself, rather than merely stonewalling at the physical consequences of the issue.