Solved: unable to allocate pty when ssh to Fedora 6 nfsroot
by vincenzo romero
The problem I reported below was caused by not having the devpts
mounted in my /etc/fstab. When I created my NFSROOT, I edited the
fstab to place the nfs-mounted root line; and in doing so the special
mounts - /proc, /sys, /dev/pts were also removed.
by adding the following in my /etc/fstab, I was then able to ssh ....
(doh, obviously it is able to create the necessary /dev/pts/0 ...
device file):
devpts /dev/pts devpts gid=5,mode=620 0 0
- V.
On Fri, Feb 29, 2008 at 2:12 AM, vincenzo romero <new2xen(a)gmail.com> wrote:
> Hello all,
>
> I am unable to ssh into a diskless host running Fedora. When I boot
> into the golden image (same kernel and root files), I can ssh.
> Perhaps I'm missing something?
>
> Description: Fedora 6 - kernel: 2.6.22.14 which I recompiled in
> order to make the necessary kernel changes to support NFSROOT.
>
> Problem: The host boots ok via PXE as expected. I can login into the
> host via tty. Attempts to ssh from another host causes it to hang. I
> checked its /var/log/secure message and found the following:
>
> Feb 28 17:55:09 localhost sshd[2964]: Accepted password for sofia from
> 127.0.0.1 port 36123 ssh2
> Feb 28 17:55:09 localhost sshd[2964]: error: openpty: No such file or directory
> Feb 28 17:55:09 localhost sshd[2966]: error: session_pty_req: session
> 0 alloc failed
>
> 1. I also tried to ssh to localhost on the machine, it hangs too.
> 2. I looked at the /dev/pts - and I notice that nothing is created there.
> 3. I boot into the golden image running same kernel but root is on
> disk. I can successfully ssh into this box; and notice that when
> ssh'ing the /dev/pts/0 directory(ies) are created appropriately.
>
> 4. As I googled further ... I stumbled into a suggestion to perform
> the following:
>
> ssh <host> bash -i
>
> I performed this, and I am able to ssh into the box:
>
> [sofia@test1 tmp]# ssh 192.168.16.29 bash -i
> sofia(a)192.168.16.29's password:
> [sofia@localhost ~]# ls -al
> total 200
>
> ....
>
> Any thought? Perhaps I'm missing something obvious ... I will also
> post this question in an ssh list.
>
> Thanks in advance.
>
> --
> best,
>
> Vince
>
--
best,
Vince
16 years, 1 month
What/where is default route set?
by Chris G
Another minor hiccough after my move from F7 to F8, I don't get a
network default route set when I reboot the system.
I.e. I have to do:-
route add default gw 192.168.1.1
after booting to get everything to work.
Whereabouts in the initialisation scripts should this be set and/or is
there a GUI for setting it up?
--
Chris Green
16 years, 1 month
cannot set speed to 1000/FD
by Steven C. Liu
Folks,
I recently replaced a FE 3Com card in my Linux server (hostname is
imladris) with a Netgear GigE card. I am unable to set it to 1000FD, no
matter what I do. I tried forcing it using 'ethtool -s', and setting
autoneg off and on. Rebooting didn't help. Using a different port on
my GigE switch/hub didn't help.
BTW - I also put a duplicate Netgear GigE card into another Linux server
(hostname is numenor; additional NIC, not a replacement -- if it
matters). On numenor, that NIC is at 1000FD.
I have not yet tried swapping the port and ethernet cable between
imladris and numenor...
Any other suggestions? I included some system information below.
TIA,
Steve
---
[root@imladris ~]# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes
[root@imladris ~]# ethtool -i eth1
driver: r8169
version: 2.2LK-NAPI
firmware-version:
bus-info: 0000:01:05.0
[root@imladris ~]# uname -a
Linux imladris.steven-c-liu.com 2.6.22.9-61.fc6 #1 SMP Thu Sep 27
18:48:03 EDT 2007 i686 i686 i386 GNU/Linux
[root@imladris ~]#
---
[root@numenor ~]# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes
[root@numenor ~]# ethtool -i eth1
driver: r8169
version: 2.2LK-NAPI
firmware-version:
bus-info: 0000:00:09.0
[root@numenor ~]# uname -a
Linux numenor.steven-c-liu.com 2.6.22.9-61.fc6 #1 SMP Thu Sep 27
18:48:03 EDT 2007 i686 i686 i386 GNU/Linux
[root@numenor ~]#
16 years, 1 month
how to install man pages?
by Mike Wright
Hi all,
I've two fc6 boxes that for whatever reason have different parts of the
man pages installed.
One has the man pages for mdadm.conf(5) but none for mdadm. The other
has man pages for mdadm.conf(5) and mdadm(8). "man 8 mdadm" refers to
mdadm(4) which exists on neither. Note that neither box is running a
raid array!? (%#*&!;D)
Can anybody enlighten me on how to install some/any/all man pages for
some/any/all applications?
Many TIA,
Mike Wright :m)
16 years, 1 month
F8: Login via web page no longer works...what am I doing wrong?
by Gilbert Sebenste
Hello all,
I set up a password-protected page to access weather data files from home.
This worked great until I installed F8. Using an etc/httpd/conf/httpd.conf
file to allow .htaccess files, I put this in the directory:
AuthType Basic
AuthName "Weather Data"
AuthUserFile /blah/blah/.blahsomething
require valid-user
Options +ExecCGI
AddHandler cgi-script
Now when I do this, I get a 401 error.
"401 Authorization Required
This server could not verify that you are authorized to access the
document requested. Either you supplied the wrong credentials (e.g., bad
password), or your browser doesn't understand how to supply the
credentials required."
Looking in my Apache logs, I see:
File does not exist: /blah/.blahsomething
When it should be looking for: /blah/blah/.blahsomething (it's looking in
a previous directory).
Both F7 and F8 use the same Apache versions (2.2.8), and I have it working
on an F7 machine, exact same configuration. What am I doing wrong?
*******************************************************************************
Gilbert Sebenste ********
(My opinions only!) ******
*******************************************************************************
16 years, 1 month
Perl problem (Scalar::Util)
by SternData
I'm getting the following error from various perl programs:
Use of uninitialized value in concatenation (.) or string at
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Scalar/Util.pm line 30.
OK... maybe we need an update:
[root@ccim-mx3 ~]# perl -MCPAN -e shell
cpan> install Scalar::Util
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Fri, 29 Feb 2008 15:31:08 GMT
Scalar::Util is up to date.
Anyone have a solution?
16 years, 1 month
nv driver does not support VGA port?
by Julius Smith
Greetings,
I have an HP Pavilion 2000 series laptop, and generally Fedora 8 works
very well on it. However, I have discovered that I cannot connect to
an external screen projector. As far as I can tell,
there is no way to obtain output of any kind to the VGA connector.
The driver is `nv', and the graphics hardware is NVIDIA GeForce Go
6150. Apparently I cannot try an nvidia driver because I am running a
32-bit system on a 64-bit AMD processor (the Turion64x2), and there is
only a 64-bit AMD version of the driver.
Has anyone else encountered this problem?
Thanks for any leads,
Julius
16 years, 1 month
Re: A great article on why to use SeLinux
by Patrick O'Callaghan
On Fri, 2008-02-29 at 08:41 +0000, klybear wrote:
> On Thu, 28 Feb 2008 09:31:05 +0900, John Summerfield wrote:
>
> > The only penetrations I've seen arrived by ssh. I don't think selinux
> > would have helped there; the sorts of restrictions I can think of would
> > also prevent the user from doing what users ought be able to do such as
> > download stuff (including email), sending email and so forth.
>
> I'm new full time linux user, having temped with one or two distros in
> the past, and I have to say that my experience of selinux has been
> frustrating. I never had any Selinux issues with Ubuntu or Debian, but
> since using Fedora, three of the four problems I've solved so far turned
> out to be related selinux permissions and the fourth one I'm still
> working on :)
AFAIK Selinux is disabled by default in Ubuntu and Debian. Note that you
can also disable it (or limit it to warnings) in Fedora.
poc
16 years, 1 month
How to get KDE4 ?
by Kevin Kempter
Hi List;
Can anyone point me to a how to per installing KDE4
on Fedora 7, and Fedora 8 ?
Is there a yum repo I can configure that will just pull the whole of
KDE4 for me via yum ?
Thanks in advance...
16 years, 1 month