Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unmerged com_err, how screwed am I?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 4:36 am    Post subject: unmerged com_err, how screwed am I? Reply with quote

Hi all -

I somehow unwittingly unmerged com_err on a remote machine. I'm still logged in, but if I lose the connection I'll have no way of fixing this :( I usually use ssh and scp for things, but since I'm missing libcom_err, I can't ssh. I don't have com_err anywhere on the machine in question, but I could easily copy it (just long enough to re-emerge it) from another machine... if I could figure out how. I'm trying rcp but I can't do rsh... connection refused. I've tried mucking with xinetd/rsh and pam.d/rsh and adding a .rhosts, but it doesn't seem to work. Anyone knowledgeable want to chime in?

Thanks!
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 5:02 am    Post subject: Reply with quote

I should note that com_err seems necessary for both ssh and wget, and I don't have ftp installed. I DO have rcp, but can't get it to work.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Apr 24, 2009 5:54 am    Post subject: Reply with quote

Now would be the time to hop into your car and go to the machine to emerge com_err from the machine itself.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 6:04 am    Post subject: Reply with quote

I was afraid of that.

Thanks.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Apr 24, 2009 6:26 am    Post subject: Reply with quote

pappy_mcfae wrote:
Now would be the time to hop into your car and go to the machine to emerge com_err from the machine itself.
Why, unless the ssh session died?
Back to top
View user's profile Send private message
xtz
Apprentice
Apprentice


Joined: 29 Oct 2007
Posts: 181
Location: Singapore

PostPosted: Fri Apr 24, 2009 6:59 am    Post subject: Reply with quote

graphicsMan wrote:
I should note that com_err seems necessary for both ssh and wget, and I don't have ftp installed. I DO have rcp, but can't get it to work.
Do you have the com_err package in /usr/portage/distfiles :?: If not, can you use sftp / lynx/links to get the file from somethere :?:
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 2:44 pm    Post subject: Reply with quote

Unfortunately any of the s* commands don't work without the library, so no sftp. Alas I don't have ftp or lynx or links installed. Truly, I shish.
I also had checked the distfiles, which DID have a tbz for the library, but alas it was corrupted :/.

My connection is still open, but I fear that I will need a physical presence to get the machine fixed. Time to call a colleague :)

Thanks for the ideas everyone.
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Fri Apr 24, 2009 4:36 pm    Post subject: Reply with quote

I'm not sure I understand: You have a remote server that's connected to the internet. You have a local computer that's also connected to the internet. You have an SSH connection open, allowing you to execute commands on the remote server. On the remote server, you need to acquire a file. You cannot open any new connections to the remote server, besides the ssh connection you already have open.

Is this correct? Why not just use wget?
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 6:09 pm    Post subject: Reply with quote

Absolutely I'd love to. It seems that wget is also reliant up on libcom_err.so :(
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 6:15 pm    Post subject: Reply with quote

I just found this:
http://www.odi.ch/weblog/posting.php?posting=524
Back to top
View user's profile Send private message
graphicsMan
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 87

PostPosted: Fri Apr 24, 2009 6:28 pm    Post subject: Reply with quote

In case this helps anyone, I re-emerged wget with USE="-ssl -nls" and it no longer depends on libcom_err :)

Woot!
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Apr 24, 2009 7:44 pm    Post subject: Reply with quote

desultory wrote:
pappy_mcfae wrote:
Now would be the time to hop into your car and go to the machine to emerge com_err from the machine itself.
Why, unless the ssh session died?

It was my impression that such was the case...that the session had died and there was nothing he could do.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Fri Apr 24, 2009 9:21 pm    Post subject: Reply with quote

Well, now that you've solved your problem, you could also emerge the new e2fsprogs and e2fsprogs-libs as outlined in this thread. (but seriously, who reads stickies nowadays?)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23064

PostPosted: Sat Apr 25, 2009 2:47 am    Post subject: Reply with quote

Given sufficient time and persistence, you could have uploaded the file to the system by encoding it on the local machine, running a decoder on the remote machine with stdin attached to the terminal and stdout pointed at a file, and then pasting the encoded content into the ssh window. This would be slow and manual, but if the server is far enough away, it still works out to be easier.

If port forwarding were permitted, you could simplify this by directing ssh to forward a port from the remote machine to the local, and connecting /bin/cat to the port on the remote end. You would then run a server locally that prints the file to its client. When the remote cat connects over the forward, it will be streamed the file, which it can then write to the remote disk.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2091
Location: San Jose, CA

PostPosted: Sat Apr 25, 2009 3:31 am    Post subject: Reply with quote

Or you can download the package with another computer, put it on a USB key and then copy it off the key with the computer that needs it.

Or you can emerge the old comm_err, fetch the new one and then start over.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23064

PostPosted: Sat Apr 25, 2009 3:26 pm    Post subject: Reply with quote

RayDude wrote:
Or you can download the package with another computer, put it on a USB key and then copy it off the key with the computer that needs it.

Or you can emerge the old comm_err, fetch the new one and then start over.


The first solution requires physical proximity, which he does not have. The second assumes he still has the source for the old version, since he initially said wget was broken.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2091
Location: San Jose, CA

PostPosted: Sat Apr 25, 2009 8:02 pm    Post subject: Reply with quote

Hu wrote:
RayDude wrote:
Or you can download the package with another computer, put it on a USB key and then copy it off the key with the computer that needs it.

Or you can emerge the old comm_err, fetch the new one and then start over.


The first solution requires physical proximity, which he does not have. The second assumes he still has the source for the old version, since he initially said wget was broken.


On the second point, chances are he still has the source since he had previously merged it.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum