[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Further configuration (changes from hurd_install 0.0 to 0.1)



Hi,

this is further configuration, for a better terminal and login.

You can copy it in a script and run it with /gnu as first parameter, or run
the commands by hand, substituting ${1} with your path (eg /gnu).

Later, this will be in some packages, but to do this, some decisions have to
be made I would like to do later, when we have a better base system (that
means, when we are closer to release).

Enjoy!

# Setup ttys.
cat << _NIL_ > ${1}/etc/ttys
console "/libexec/getty 9600"           mach    on      secure trusted console
_NIL_

# Setup terminal.
install -d -m 755 -o root -g root ${1}/share/terminfo/m
cd ${1}
uudecode << _NIL_
begin 666 share/terminfo/m/mach
M&@$2``D``P"E`.D`;6%C:'Q-86-H($-O;G-O;&4```$````````!`%``"``9
M`/__```"`/____\$``<`"P#_____#P`@`"(`__\F`/____\H`/__+`#_____
M,`#_______\T`#D`________________/@!#`/_______T@`________30#_
M______________________]2`/__5@#_______]8`/__7`#__________V``
M9`!H`&P`<`!T`'@`?`"``(0`B`",`/__D`"4`)@`G`"@`/_______Z0`____
M____________________________________J`#_____JP"T`/____^]`,8`
MSP#__]@`_____________________________________^$`___________C
M`/__________________________________________________________
M___________________E``<`#0`;8P`;6TL`&UM*`!M;)6DE<#$E9#LE<#(E
M9$@`"@`;6T@`"``;6T,`&UM!`!M;30`;6S5M`!M;,6T`&ULW;0`;6S=M`!M;
M,&T`&ULP;0`;6TP`"``;6SD`&UM"`!M/4``;3UD`&T]1`!M/4@`;3U,`&T]4
M`!M/50`;3U8`&T]7`!M/6``;6T@`&UM``!M;1``;6T8`&UM5`!M;5@`;6T,`
M&UM!``T*`!M;)7`Q)61-`!M;)7`Q)61"`!M;)7`Q)61,`!M;)7`Q)61$`!M;
8)7`Q)61#`!M;)7`Q)61!``H`"0`;6UD`
`
end
_NIL_
uudecode << _NIL_
begin 666 share/terminfo/m/mach-bold
M&@$V``D``P"E`.\`;6%C:"UB;VQD?$UA8V@@0V]N<V]L92!W:71H(&)O;&0@
M:6YS=&5A9"!O9B!U;F1E<FQI;F4```$````````!`%``"``9`/__```"`/__
M__\$``<`"P#_____#P`@`"(`__\F`/____\H`/__+`#_____,`#_______\T
M`#D`________________/@!#`$@`_____TT`________4@!7`/__________
M__________]<`/__8`#_______]B`/__9@#__________V@`;`!P`'0`>`!\
M`(``A`"(`(P`D`"4`/__F`":`)X`H@"F`/_______ZH`________________
M________________________K@#_____L0"Z`/_____#`,P`U0#__]X`____
M_________________________________^<`___________I`/__________
M____________________________________________________________
M_______K``<`#0`;8P`;6TL`&UM*`!M;)6DE<#$E9#LE<#(E9$@`"@`;6T@`
M"``;6T,`&UM!`!M;30`;6S5M`!M;,6T`&ULW;0`;6S=M`!M;,6T`&ULP;0`;
M6S!M`!M;,&T`&UM,``@`&ULY``H`&T]0`!M/60`;3U$`&T]2`!M/4P`;3U0`
M&T]5`!M/5@`;3U<`&T]8`!M;2``;6T``"``;6T8`&UM5`!M;5@`;6T,`&UM!
M``T*`!M;)7`Q)61-`!M;)7`Q)61"`!M;)7`Q)61,`!M;)7`Q)61$`!M;)7`Q
5)61#`!M;)7`Q)61!``H`"0`;6UD`
`
end
_NIL_

#
# Setup etc/login
#
install -d -m 755 -o root -g root ${1}/etc/login
cat << _NIL_ > ${1}/etc/login/README
This is a hurd login shell; it is a normal user shell, but has no user
privileges.  To login as a user with a userid of USER, use the command:

  login USER

other useful commands:

  ql USER       # quick login -- just start a shell in USER's home directory
  su USER       # set the id of the current (login) shell to USER
                # (use the `unsu' command to undo this, or just exit the shell)
_NIL_

cat << _NIL_ > ${1}/etc/login/.bash_login
. .bashrc
. .profile
_NIL_

cat << _NIL_ > ${1}/etc/login/.bashrc
# login -- a normal login
alias login='exec login -p -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes'
alias logon=login
alias l=login

# quick login -- don't act like a login shell, but do cd to $HOME
alias ql='exec login -pSL -aMOTD -R-p -R-aHOME -R-aMOTD -R-e_LOGIN_RETRY=yes'

alias help='cat $HOME/README'
alias '?'=help
_NIL_

cat << _NIL_ > ${1}/etc/login/.profile
PS1='login> '
test "$_LOGIN_RETRY" || echo "Use \`login USER' to login, or \`help' for more information."
unset _LOGIN_RETRY
_NIL_

touch ${1}/etc/login/.hushlogin


-- 
"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09


Reply to: