Minor problems with nic_config_tivo.

General Discussion

Minor problems with nic_config_tivo.

Postby markbanang » Tue Aug 23, 2011 2:01 pm

Has anyone else had problems with nic_config_tivo?

Yesterday I imaged a new hard drive for an old Tivo using the altepg-1_0b.iso cd. I got it up and working with DHCP, ran it through guided setup and let it index over night and I was happy.

This morning I decided to give it a static IP address, so I ran nic_config_tivo but found two problems with it:

    Using the standard Windows Vista telnet, nic_config_tivo was displaying control codes on screen, making it quite difficult to be sure that the correct values were being entered. For example:

Code: Select all
? Enter IP Address.[9;59H?
? Leave null for DHCP.[10;59H?


    The other problem was that I could enter IP address, MAC address and subnet mask, but it skipped straight past the Gateway address without giving me the opportunity to adjust it.

I fixed these problems by editing the config file directly and it's all working now, but has anyone else seen these problems?

I'm guessing the first is a termcap problem but I'm not sure what to do to fix it. The second seems like a bug in the bash script.
markbanang
Powering up...
Powering up...
 
Posts: 10
Joined: Wed Feb 16, 2011 12:20 am

Re: Minor problems with nic_config_tivo.

Postby SolidTechie » Tue Aug 23, 2011 3:25 pm

Yes, I've had similar problems in the past, resolved like you by editing the file directly. I think it's a terminal emulation issue - and the reason that the gateway adress gets "skipped over" is that something in the control codes is being interpreted as a Carriage Return.

One day, I might have time to have a look...
Regards,



Ian
SolidTechie
TiVo lover
TiVo lover
 
Posts: 236
Joined: Wed Feb 16, 2011 10:34 pm
Location: GB

Re: Minor problems with nic_config_tivo.

Postby healeydave » Tue Aug 23, 2011 7:00 pm

Yes, you could try a better terminal emulator than the windows one like putty. Editing manually also is just as easy, the scripted interface is more for novices not comfortable with editing system files.

Also, Brian has created a method to change all network settings through the TiVo UI in the next version of the AltEPG image (currently in testing) !!
Keeping the dream alive.
healeydave
AltEPG Team
AltEPG Team
 
Posts: 921
Joined: Mon Mar 20, 2006 7:42 pm
Location: Worcester

Re: Minor problems with nic_config_tivo.

Postby BrokenStar » Wed Aug 24, 2011 6:34 am

markbanang wrote:The other problem was that I could enter IP address, MAC address and subnet mask, but it skipped straight past the Gateway address without giving me the opportunity to adjust it.

That's normal behaviour for the built-in Windows XP Telnet. For some extraordinary reason Microsoft made the Windows XP telnet send two carriage returns for a single tap of the Enter key. Why they though this is a good idea is anybodys guess.

The fix is to hold down Ctrl and tap J (for brevity often written as "Ctrl-J" or "Ctrl+J") instead of tapping Enter. That will just send a single carriage return and therfore programs like nic_config_tivo will behave properly.
BrokenStar
Almost there...
Almost there...
 
Posts: 28
Joined: Thu Jul 07, 2011 7:14 am

Re: Minor problems with nic_config_tivo.

Postby markbanang » Thu Aug 25, 2011 11:21 pm

BrokenStar wrote:That's normal behaviour for the built-in Windows XP Telnet. For some extraordinary reason Microsoft made the Windows XP telnet send two carriage returns for a single tap of the Enter key. Why they though this is a good idea is anybodys guess.

That is particularly braindead, thanks for the Ctrl+J workaround. It showed that there were actually several screens in-between the screens it stopped on that I had never seen before as they were cleared away too quickly for me to notice.
markbanang
Powering up...
Powering up...
 
Posts: 10
Joined: Wed Feb 16, 2011 12:20 am

Re: Minor problems with nic_config_tivo.

Postby markbanang » Thu Aug 25, 2011 11:22 pm

healeydave wrote:Yes, you could try a better terminal emulator than the windows one like putty.

Yeah, not sure why I didn't use putty in the first place. All of the control codes are properly interpreted by putty, unlike windows telnet. Interestingly even in putty, each press of the enter key is being transmitted to the Tivo as two CR's, so I still have to use the Ctrl+J workaround.
markbanang
Powering up...
Powering up...
 
Posts: 10
Joined: Wed Feb 16, 2011 12:20 am

Re: Minor problems with nic_config_tivo.

Postby SolidTechie » Fri Aug 26, 2011 6:21 am

Not quite correct - there is a setting in PuTTY - under System Menu/Connection/Telnet - "Return key sends Telnet New Line instead of ^M" - if you uncheck this, then it should work correctly for you.
Regards,



Ian
SolidTechie
TiVo lover
TiVo lover
 
Posts: 236
Joined: Wed Feb 16, 2011 10:34 pm
Location: GB

Re: Minor problems with nic_config_tivo.

Postby spitfires » Fri Aug 26, 2011 6:28 am

You could also try "stty igncr" or "stty sane" as soon as you telnet in.
spitfires
Valued Contributor
Valued Contributor
 
Posts: 411
Joined: Tue Feb 15, 2011 3:29 pm

Re: Minor problems with nic_config_tivo.

Postby SolidTechie » Fri Aug 26, 2011 10:58 am

You'd have to do that every time though - changing the settings, will allow you to make a custom setup for TiVo.

For example, i always change the scrollback buffer to 200,000 lines, and then I change the background and screen colours so I can easily identify which of my 3 TiVos I am accessing at a glance - without having to worry about being able to see the titlebar. And of course if you save a session, it allows you to save it as telnet (rather than the SSH default) so you can just double click its name on the list....

In the office, I use PuTTY Connection Manager - gives it a tabbed interface - as I often have 15-20 similtaneous connections open.
Regards,



Ian
SolidTechie
TiVo lover
TiVo lover
 
Posts: 236
Joined: Wed Feb 16, 2011 10:34 pm
Location: GB

Re: Minor problems with nic_config_tivo.

Postby spitfires » Fri Aug 26, 2011 2:11 pm

SolidTechie wrote:You'd have to do that every time though
Not if you put it in your bash profile ;)
spitfires
Valued Contributor
Valued Contributor
 
Posts: 411
Joined: Tue Feb 15, 2011 3:29 pm

Re: Minor problems with nic_config_tivo.

Postby SolidTechie » Fri Aug 26, 2011 2:39 pm

Okay - okay - can we call it a draw? :)
Regards,



Ian
SolidTechie
TiVo lover
TiVo lover
 
Posts: 236
Joined: Wed Feb 16, 2011 10:34 pm
Location: GB

Re: Minor problems with nic_config_tivo.

Postby mrtickle » Fri Aug 26, 2011 3:52 pm

spitfires cheated! He wrote "as soon as you telnet in" and then did a little side-step :mrgreen:
--
links to my TiVo logos, TivoWebPlus 2.1.b3 UK-20120818, Tracker v3.3.3 & v3.3.4 (17th Jun 2013), GDchecker v1.06b, Digiguide checker v0.4.3-rc5 and Autospace v1.65 can all be found in this post.
mrtickle
TVGuide Admin
TVGuide Admin
 
Posts: 3292
Joined: Sat May 14, 2011 1:46 pm
Location: Birmingham, UK

Re: Minor problems with nic_config_tivo.

Postby SolidTechie » Fri Aug 26, 2011 4:48 pm

Ah good point I win!

Spitfires - you should be ASHAMED of yourself! :mrgreen:
Regards,



Ian
SolidTechie
TiVo lover
TiVo lover
 
Posts: 236
Joined: Wed Feb 16, 2011 10:34 pm
Location: GB

Re: Minor problems with nic_config_tivo.

Postby spitfires » Fri Aug 26, 2011 6:35 pm

:(
I shall get my wakizashi and carry out seppuku immediately :mrgreen:
spitfires
Valued Contributor
Valued Contributor
 
Posts: 411
Joined: Tue Feb 15, 2011 3:29 pm


Return to General

Who is online

Users browsing this forum: No registered users and 106 guests

cron