Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #8006

Re: Remove need for User & Password ?

From Unknown <dog@gmail.com>
Newsgroups alt.os.linux.debian, alt.os.linux.slackware, comp.os.linux.misc, comp.os.linux.hardware, comp.sys.raspberry-pi
Subject Re: Remove need for User & Password ?
Date 2013-04-30 04:49 +0000
Organization A noiseless patient Spider
Message-ID <klnigt$8pe$1@dont-email.me> (permalink)
References (3 earlier) <XnsA1A44928A5123gandalfparker@78.46.70.116> <kklivv$5gc$1@dont-email.me> <kkm5uh$k4n$1@dont-email.me> <kkmm68$r7g$1@dont-email.me> <kkn106$b9g$4@dont-email.me>

Cross-posted to 5 groups.

Show all headers | View raw


On Wed, 17 Apr 2013 20:34:15 +0000, J G Miller wrote:

>> the need to login is the bottleneck
> 
> No it is not.
> 
> With most display managers it is very easy to configure them to use an
> autologin mode to a predefined userid, so there is no need to enter any
> password.
> 
> If you want autologin to a particular account on a virtual console TTY,
> this is also simple to achieve by replacing the getty with mingetty and
> configuring it for autologin.
> 
> See the details at
> 
>   <http://linux.koolsolutions.COM/2009/04/30/autologin-linux-console-
mode/>
> 
> 
> But in another thread on the same topic in comp.os.linux.misc and
> comp.os.linux.hardware, John Hasler has provided you with an even
> simpler rPi specific method way of doing this without having to install
> a different getty, as explained at
> 
>     <http://elinux.ORG/RPi_Debian_Auto_Login>
> 
>> which prevents the rpi from being used without a keyboard.
> 
> No it does not.
> 
> People have been using rPi as a media center with XBMC with autologin
> and no keyboard and no mouse for some time now, details at
> 
>    <http://wiki.xbmc.org/index.php?title=Raspberry_Pi>
> 
>    <http://lifehacker.com/5929913/build-a-xbmc-media-center-with-a-35-
raspberry-pi>
> 
OK, thanks for these pointers.
Yes there are several articles on fiddling <near init> and many may work
depending on the specific configuration of the particular system.

> QUOTE
> 
>    A remote control:
> 
>    I you don't want to use a mouse and keyboard to control your media
>    center once its set up, you'll need a remote.
> 
> UNQUOTE
> 
No good: I want a rPi, PSU, cable to analog-TV & mouse ONLY.

> But now when faced with real life accomplishments of other people doing
> what you claim you are trying to do, are you now going to ignore the
> facts and repost the same questions again in a slightly different form
> in other newsgroups in a few days to a week's time?
> 
That cos you've got a short attention span from your WaltDisney 
environment.
I'm still working on projects that I initiated decades ago. Always date 
your records.
This little project, which involves init, has an interesting [for me] 
side benefit:
 http://linux.koolsolutions.com/2009/11/12/initramfs-ramfs-tmpfs-
compressed-image/
   $ mkdir -p /tmp/initramfs
   $ cd /tmp/initramfs
   $ cp /boot/initrd.img-2.6.14-1-686 initramfs.gz <- replace with:
-> cp /mnt/LennyP35/boot/initrd.img-2.6.26-2-486 initramfs.gz
   $ gzip -d initramfs.gz
   $ cpio -i < initramfs
== 28632 blocks
   50243 blocks
   rm initramfs
-> ls == .....init....

AFAIK /tmp/initramfs now has a <mininSystem> with its own init.
Of course the REAL init is binary, [but since it only runs once, need not 
be IMO]
so you can't easily see its algorithm; but /tmp/initramfsinit ==
#!/bin/sh

echo "Loading, please wait..."

[ -d /dev ] || mkdir -m 0755 /dev
[ -d /root ] || mkdir -m 0700 /root
...
# Parse command line options
for x in $(cat /proc/cmdline); do
        case $x in
        init=*)
                init=${x#init=}
...
# Move virtual filesystems over to the real filesystem
mount -n -o move /sys ${rootmnt}/sys
mount -n -o move /proc ${rootmnt}/proc
...
# Search for valid init
if [ -z "${init}" ] ; then
        for init in /sbin/init /etc/init /bin/init /bin/sh; do
                if [ ! -x "${rootmnt}${init}" ]; then
                        continue
...
# No init on rootmount
if [ ! -x "${rootmnt}${init}" ]; then
        panic "No init found. Try passing init= bootarg."
fi
...
# Chain to real filesystem
maybe_break init
exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/
dev/console
panic "Could not execute run-init."
=========EOF============
I find it interesting and reasuring to see some actual code for `init`.
I'm still looking for the code for 'pivot'.
===
PS. how do I get a 800 char message/question to someone's twitter:URL ?

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Remove need for User & Password ? J G Miller <miller@yoyo.ORG> - 2013-04-17 12:52 +0000
  Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-17 15:01 +0100
    Re: Remove need for User & Password ? Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2013-04-17 07:46 -0700
      Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-17 19:19 +0100
        Re: Remove need for User & Password ? Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2013-04-17 11:46 -0700
          Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-17 20:54 +0100
          Re: Remove need for User & Password ? cipher <cipher@nospamforme.org> - 2013-04-19 01:12 +0000
            Re: Remove need for User & Password ? mike <ham789@netzero.net> - 2013-04-18 20:42 -0700
              Re: Remove need for User & Password ? Michael Black <et472@ncf.ca> - 2013-04-18 23:54 -0400
      Re: Remove need for User & Password ? Octothorpe <Octothorpe@invalid.com> - 2013-04-17 18:04 -0400
    Re: Remove need for User & Password ? Joe <joe@jretrading.com> - 2013-04-17 18:02 +0100
  Re: Remove need for User & Password ? Aragorn <stryder@telenet.be.invalid> - 2013-04-17 16:55 +0200
    Re: Remove need for User & Password ? J G Miller <miller@yoyo.ORG> - 2013-04-17 15:52 +0000
      Re: Remove need for User & Password ? Aragorn <stryder@telenet.be.invalid> - 2013-04-17 18:09 +0200
        Re: Remove need for User & Password ? Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us> - 2013-04-17 11:11 -0700
      Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-17 19:20 +0100
        Re: Remove need for User & Password ? J G Miller <miller@yoyo.ORG> - 2013-04-17 19:35 +0000
          Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-17 20:57 +0100
  Re: Remove need for User & Password ? Unknown <dog@gmail.com> - 2013-04-17 17:29 +0000
    Re: Remove need for User & Password ? J G Miller <miller@yoyo.ORG> - 2013-04-17 20:34 +0000
      Re: Remove need for User & Password ? Jasen Betts <jasen@xnet.co.nz> - 2013-04-18 08:46 +0000
        Re: Remove need for User & Password ? J G Miller <miller@yoyo.ORG> - 2013-04-18 10:30 +0000
          Re: Remove need for User & Password ? The Natural Philosopher <tnp@invalid.invalid> - 2013-04-18 11:50 +0100
            Re: Remove need for User & Password ? Jasen Betts <jasen@xnet.co.nz> - 2013-04-18 11:33 +0000
        Re: Remove need for User & Password ? Unknown <dog@gmail.com> - 2013-04-25 12:17 +0000
      Re: Remove need for User & Password ? Unknown <dog@gmail.com> - 2013-04-30 04:49 +0000

csiph-web