"Name collision between ... ..." when launching Term-VT100

Discussion in 'iOS Development' started by krysus, Feb 23, 2008.

  1. krysus

    krysus New Member

    Joined:
    Dec 26, 2007
    Messages:
    101
    Likes Received:
    0
    I'm getting a bizarre error when i launch Term-VT100 on my iPod Touch...

    Name collision between unknown unknown
    Name collision between vt52 vt52
    Name collision between xterm xterm

    Plus loads more!!

    Anyone got any ideas?
  2. krysus

    krysus New Member

    Joined:
    Dec 26, 2007
    Messages:
    101
    Likes Received:
    0
    Ok, i seem to have found the problem...

    It is down to a combination of BSD Subsystem 2.1 and the BossPrefs Term-Vt100 fix.

    As BossPrefs' fix adds "export TERM=vt100" to the /etc/profile file, it appears BSD 2.1 has some issues with this - removing it stops the "Name Collision between..." errors, but then you've still got the problem of no backspace !

    Please Register or Log in to view images

  3. Scythal

    Scythal New Member

    Joined:
    Nov 27, 2007
    Messages:
    413
    Likes Received:
    4
    Device:
    iPod touch
    You can get revision 207 here: http://code.google.com/p/mobileterminal/

    There's only one catch, with that version you can't have root access, the author removed that for some obscure reason. To get it back, you can modify the binary, search "login" and replace as shown below:

    Original:
    Code:
    0000df50  65 6e 69 65 64 0a 00 00  65 78 65 63 6c 70 3a 00  |enied...execlp:.|
    0000df60  6c 6f 67 69 6e 00 00 00  2d 66 70 00 [COLOR="Red"]6d 6f 62 69[/COLOR]  |login...-fp.[COLOR="Red"]mobi[/COLOR]|
    0000df70  [COLOR="Red"]6c 65 00[/COLOR] 00 73 68 00 00  54 45 52 4d 3d 76 74 31  |[COLOR="Red"]le[/COLOR]..sh..TERM=vt1|
    0000df80  30 30 00 00 4f 6e 6c 79  20 6f 6e 65 20 53 75 62  |00..Only one Sub|
    Modified:
    Code:
    0000df50  65 6e 69 65 64 0a 00 00  65 78 65 63 6c 70 3a 00  |enied...execlp:.|
    0000df60  6c 6f 67 69 6e 00 00 00  2d 66 70 00 [COLOR="Red"]72 6f 6f 74[/COLOR]  |login...-fp.[COLOR="Red"]root[/COLOR]|
    0000df70  [COLOR="Red"]00[/COLOR] 00 00 00 73 68 00 00  54 45 52 4d 3d 76 74 31  |....sh..TERM=vt1|
    0000df80  30 30 00 00 4f 6e 6c 79  20 6f 6e 65 20 53 75 62  |00..Only one Sub|
    Make sure to put a zero byte after "root"!

    Then you'll still have to enter the password of course, but at least you'll have root access. You can leave the terminal in the background, so you only have to login once.

Share This Page