Gentoo Archives: gentoo-embedded

From: Natanael Copa <mlists@××××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] How are pttys created in embedded gentoo?
Date: Thu, 16 Jun 2005 09:09:02
Message-Id: 42B14166.2030901@tanael.org
In Reply to: [gentoo-embedded] How are pttys created in embedded gentoo? by michael@michaelshiloh.com
1 michael@×××××××××××××.com wrote:
2
3 > I now have an sshd running on my embedded gentoo setup, but when I try
4 > to connect I get the following message on my embedded gentoo server:
5 >
6 > openpty: no such file or directory
7 >
8 > Indeed, there are no pty in /dev.
9 >
10 > Doing a bit of research, I learned that there is a new scheme to create
11 > pseudo ttys as needed:
12 >
13 > ............... a virtual file system which can be mounted on
14 > /dev/pts with "mount -t devpts".
15
16 <snip>
17
18 >
19 > Does the gentoo-embedded libc support this? If not, then we need to make
20 > all those pseudo ttys manually.
21
22
23 I use udev and devpts with uclibc.
24
25 Here is from my initscripts:
26 # start udev
27 mount /dev
28 udevstart
29
30 # create pts file system
31 [ -d /dev/pts ] || mkdir --mode=755 /dev/pts
32 [ -c /dev/ptmx ] || mknod --mode=666 /dev/ptmx c 5 2
33
34 mount /dev/pts
35
36 And my fstab:
37
38 none /proc proc defaults 0 0
39 none /sys sysfs defaults 0 0
40 none /dev/pts devpts defaults 0 0
41 tmpfs /dev/shm tmpfs defaults 0 0
42 udev /dev tmpfs size=100k 0 0
43 /dev/cdroms/cdrom0 /media/cdrom iso9660 ro 0 0
44 /dev/fd0 /media/floppy vfat noauto 0 0
45 /dev/uba1 /media/usb auto noauto 0 0
46 none /proc/bus/usb usbfs noauto 0 0
47
48
49 --
50 Natanael Copa
51
52 --
53 gentoo-embedded@g.o mailing list