Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to rexec to gentoo client from other linux client.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Wed Nov 28, 2012 9:44 am    Post subject: Unable to rexec to gentoo client from other linux client. Reply with quote

Hi,

I have installed gentoo. I am able to do rexec to gentoo succesfully but unable to do rexec to gentoo client from other linux client.

Please help me in resolving this.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Nov 28, 2012 5:13 pm    Post subject: Reply with quote

welcome to gentoo.

a few questions:
is there a particular reason for using rexec? why not use ssh?
which way does not work? from gentoo? or to gentoo?
what did you install/emerge?


V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Thu Nov 29, 2012 8:36 am    Post subject: Reply with quote

Hi Veldrin

Thanks for you reply.

I am not able to rexec to gentoo.

I emerged net-misc/netkit-rsh.
Even ssh is not working so i wanted to use rexec.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Thu Nov 29, 2012 9:39 am    Post subject: Reply with quote

you need to start the daemon the target machine in order to get it working.
Run as root the following commands for ssh and rexec respectively
Code:
/etc/init.d/sshd start
/etc/init.d/rexecd start


if you want the system to start a daemon automatically us the following commands for ssh and rexec respectively
Code:
rc-update add sshd default
rc-update add rexec default


like i mentioned my the initial post, if there is no good reason to use rexec, I strongly recommend to use ssh.
if you haven't done so, you have to emerge openssh (or dropbear) for ssh to work.

HTH
V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Thu Nov 29, 2012 10:11 am    Post subject: Reply with quote

Hi,

When i restart sshd it throws the following error:

gentoo / # /etc/init.d/sshd restart
* stopping sshd
* starting udev
* start-stop-daemon: /sbin/udevd already running
* Failed to start udev
* ERROR: udev failed to start
* starting sshd

if i give.. ssh hostname date, it throws error saying connection refused.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Thu Nov 29, 2012 11:11 am    Post subject: Reply with quote

are you trying this inside a chroot?
are you currently installing gentoo?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Thu Nov 29, 2012 12:04 pm    Post subject: Reply with quote

yes i am inside chroot.
I installed gentoo, but after compiling i didnt reboot the gentoo due to fear it will go to kernel panic.

So i am trying all the commands without rebooting itself.
Back to top
View user's profile Send private message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Thu Nov 29, 2012 12:54 pm    Post subject: Reply with quote

Hi Veldrin,

After compiling the kernel and configuring the grub, when i reboot my gentoo it throws the following error

VFS: Cannot open root device sda3 or unknown-block(0,0)
Please apend a correct "root=" boot option:here are the avilable partitions:

sr0 driver:sr
Kernel panic-not syncing: VFS:unable to mount root fs on unknown-block(0,0)


I am not understanding where i am going wrong. Appreciate ur help in solving this.

Let me know if you have any link for installing gentoo properly.

Sree...
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Thu Nov 29, 2012 1:10 pm    Post subject: Reply with quote

ok, that would explain the message.

from the later error message, I can read, that it is able to boot the kernel, but unable to mount /
please post /etc/fstab and your grub.conf.

are you using a custom kernel? are you using genkernel?
for a custom kernel, http://kernel-seeds.org/ is a good source.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Nov 29, 2012 2:45 pm    Post subject: Reply with quote

Moved from Gentoo Chat to Installing Gentoo.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
sreelakshmi.madisetty
n00b
n00b


Joined: 28 Nov 2012
Posts: 6

PostPosted: Fri Nov 30, 2012 5:14 am    Post subject: Reply with quote

Hi Veldrin,

I am using custom kernel.

Please find the /etc/fstab and grub.conf entries:

/etc/fstab entries:
============

/dev/sda1 /boot ext2 defaults,noatime 0 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1

/dev/cdrom /mnt/cdrom auto noauto,user 0 0


grub.conf entries:
============
default 0
title Gentoo Linux 3.5.7
root (hd0,0)
kernel /boot/kernel-3.5.7-gentoo root=/dev/sda3

title Gentoo Linux 3.5.7 (rescue)
root (hd0,0)
kernel /boot/kernel-3.5.7-gentoo root=/dev/sda3 init=/bin/bb
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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