View previous topic :: View next topic |
Author |
Message |
kc8tbe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2003 Posts: 135 Location: Cleveland, OH USA
|
Posted: Fri Jun 25, 2004 12:45 pm Post subject: kermit hangs on connect |
|
|
I'm trying to use ckermit to connect to a Cisco router. Here's what I did for setup:
emerge ckermit
chown uucp /usr/bin/ckermit
And on each system startup:
chown uucp /dev/ttyS0
chmod u+rwx /dev/ttyS0
Once the Cisco router is turned on:
kermit
> set line /dev/ttyS0
> set carrier-watch off
> connect
I get the message about what escape characters are enabled, and then ckermit hangs. No prompt from the router. I need to to a kill -9 to get out of it. I've also tried this:
kermit
> set line /dev/ttyS0
> set carrier-watch off
> set speed 9600
> set stop-bits 1
> set parity none
> set flow-control none
> connect
with the same results. Using Windows Hyperterminal or an old Sherwood terminal I have no trouble connecting to the router. Any idea what I am doing wrong? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kc8tbe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Aug 2003 Posts: 135 Location: Cleveland, OH USA
|
Posted: Fri Jun 25, 2004 1:38 pm Post subject: |
|
|
...and as usual, I discover the solution right after I post. The problem was in a network cable, and kermit was hanging because fopen() was blocking the program. FYI, here's a little howto for connecting to Cisco routers with kermit for any other newbies like me:
1. Install kermit:
# emerge ckermit
# chown uucp /usr/bin/kermit
2. Every system bootup (or whenever you want to use kermit). Replace /dev/ttyS0 with the approriate device file:
# chown uucp /dev/ttyS0
# chmod u+rw /dev/ttyS0
3. To connect (note that > denotes a Kermit prompt):
# kermit
> set line /dev/ttyS0
> set carrier-watch off
> connect
4. To disconnect and exit kermit, press Ctrl+\+C, then:
> quit
Enjoy! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
diaz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Nov 2003 Posts: 15 Location: Oslo, Norway
|
Posted: Fri Sep 17, 2004 7:26 pm Post subject: |
|
|
Just wanted to say:
Thanks alot. ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ Leftfield - Chant of a poor man |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JoshFed n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_zapp_brannigan.gif)
Joined: 21 Jul 2003 Posts: 44 Location: Tacoma, WA USA
|
Posted: Tue Jul 31, 2007 4:01 pm Post subject: |
|
|
I can connect to the Cisco via kermit as root. There's another user who will need access to the Cisco too. Can I make it so kermit can be used by non root users?
Code: | (/home/josh/) C-Kermit>set line /dev/ttyS0
/var/lock: Permission denied
Sorry, write access to UUCP lockfile directory denied.
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Stever Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Mar 2005 Posts: 151 Location: North Carolina
|
Posted: Tue Jul 31, 2007 5:34 pm Post subject: |
|
|
What if you add the user to the uucp group? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JoshFed n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_zapp_brannigan.gif)
Joined: 21 Jul 2003 Posts: 44 Location: Tacoma, WA USA
|
Posted: Tue Jul 31, 2007 6:41 pm Post subject: |
|
|
Good thinkin Stever. That works. Thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gemi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Oct 2012 Posts: 31
|
Posted: Thu Oct 18, 2012 12:08 am Post subject: |
|
|
all the above does not work for me.
I installed ckermit from scratch and followed the instructions above. I still get the /var/lock: Permission denied Worry, write access to UUCP lockfile directory denied.
Any ideas anyone? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23092
|
Posted: Thu Oct 18, 2012 1:38 am Post subject: |
|
|
Resurrecting a five year old thread is not particularly good practice.
What is the output of ls -la /var/lock{,/} ; id? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|