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


Groups > alt.os.linux.slackware > #34181

Re: How do *you* install Slackware

From Henrik Carlqvist <Henrik.Carlqvist@deadspam.com>
Newsgroups alt.os.linux.slackware
Subject Re: How do *you* install Slackware
Date 2023-03-18 10:37 +0000
Organization A noiseless patient Spider
Message-ID <tv449d$2enb9$1@dont-email.me> (permalink)
References <tupcnq$88kk$1@dont-email.me> <tuq0af$c755$1@dont-email.me> <slrnu112sc.3bl.JimDiamond@x360.localdomain> <87r0tqabpl.fsf@bogus.nodomain.nowhere> <slrnu19igc.u98.JimDiamond@x360.localdomain>

Show all headers | View raw


On Fri, 17 Mar 2023 17:14:03 -0300, Jim Diamond wrote:
> I was really hoping the guy who talked about his many systems (some
> clean installs, some upgrades) would chime in.  But so far, no luck.

I have many systems, but I don't think I am that guy as all my systems 
are clean installs (with patches and some extra packages applied).

On my 14.2 systems and earlier /etc/mtab is a file.
On my 15.0 system /etc/mtab is a symbolic link.

I have not had the need to umount nfs as a normal user as I make /etc/
rc.d/rc.autofs executable on my systems and instead access nfs exports 
by /net/<the_other_host_name>.

I think the above is the default behavior with the automounter running, 
but I have made some customizations to /etc/auto.master so I can't say 
for sure. In my /etc/auto.master there is a line:

/net    /etc/auto.net

I am rather sure that /etc/auto.net has not been modified by me, but this 
is what it looks like:

-8<-------------------------
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc  /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#/net   -hosts
#       -hosts does no longer work with autofs 5.0.8
/net    /etc/auto.net
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master.slack150
bash-5.1$ ls /etc/auto.master.d/
bash-5.1$ md5sum /etc/auto.net 
9113a0a4baccab3bf5cc9a476476d9c6  /etc/auto.net
bash-5.1$ cat /etc/auto.net 
#!/bin/bash

# This file must be executable to work! chmod 755!

# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well

key="$1"

# add "nosymlink" here if you want to suppress symlinking local 
filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,nodev,nosuid"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for M in showmount kshowmount
        do
                if [ -x $P/$M ]
                then
                        SMNT=$P/$M
                        break 2
                fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT | LC_ALL=C cut -d' ' -f1 | LC_ALL=C sort -u | \
        awk -v key="$key" -v opts="$opts" -- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, 
key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' | sed 's/#/\\#/g'

-8<-------------------------

Whenever someone or something tries to cd to /net/the_other_hostname the 
automounter calls the above executable script which uses showmount to see 
what that host exports by NFS and the automounter mounts those 
directories. When the directories are no longer in use the aoutmounter 
will umount them after some time.

regards Henrik

Back to alt.os.linux.slackware | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2023-03-14 08:54 +0000
  Re: How do *you* install Slackware David Robley <david@me.invalid> - 2023-03-14 20:30 +1030
    Re: How do *you* install Slackware John Forkosh <ian@moone.com> - 2023-03-14 11:32 +0000
      Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2023-03-14 22:39 +0000
        Re: How do *you* install Slackware Jimmy Johnson <Jimmy@disposable.invalid> - 2023-03-14 22:33 -0700
  Re: How do *you* install Slackware Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-03-14 14:28 +0000
    Re: How do *you* install Slackware Jim Diamond <JimDiamond@ns.sympatico.ca> - 2023-03-14 11:58 -0300
      Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-03-14 19:11 +0000
      Re: How do *you* install Slackware Mike Spencer <mds@bogus.nodomain.nowhere> - 2023-03-15 01:19 -0300
        Re: How do *you* install Slackware Jim Diamond <JimDiamond@jdvb.ca> - 2023-03-17 17:14 -0300
          Re: How do *you* install Slackware Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2023-03-18 10:37 +0000
          Re: How do *you* install Slackware Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-03-18 16:06 +0000
            Re: How do *you* install Slackware Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-03-18 17:39 +0000
            Re: How do *you* install Slackware Jim Diamond <JimDiamond@jdvb.ca> - 2023-03-20 16:09 -0300
              Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-03-20 22:00 +0000
                Re: How do *you* install Slackware Jim Diamond <JimDiamond@jdvb.ca> - 2023-03-22 17:47 -0300
                Re: How do *you* install Slackware Jimmy Johnson <Jimmy@disposable.invalid> - 2023-03-22 18:20 -0700
                Re: How do *you* install Slackware Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2023-03-23 06:44 +0000
                Re: How do *you* install Slackware Jim Diamond <JimDiamond@jdvb.ca> - 2023-03-25 15:37 -0300
                Re: How do *you* install Slackware Jimmy Johnson <Jimmy@disposable.invalid> - 2023-03-25 15:24 -0700
                Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-03-26 04:21 +0000
                Re: How do *you* install Slackware Jimmy Johnson <Jimmy@disposable.invalid> - 2023-03-25 23:18 -0700
                Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-03-26 15:50 +0000
              Re: How do *you* install Slackware Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-03-20 22:39 +0000
                Re: How do *you* install Slackware Jim Diamond <JimDiamond@jdvb.ca> - 2023-03-22 17:42 -0300
              Re: How do *you* install Slackware republicanismiscancer@tutanota.com (TronNerd82) - 2024-12-16 01:30 +0000
                Re: How do *you* install Slackware Gilberto F da Silva <gfs1989@gmx.net> - 2026-07-30 18:17 +0000
                Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2026-08-03 06:19 +0000
                Re: How do *you* install Slackware jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-08-03 11:19 -0400
  Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-03-14 14:57 +0000
  Re: How do *you* install Slackware Silvenshadow <bogus@mail.com> - 2023-03-14 10:21 -0700
  Re: How do *you* install Slackware Dan C <youmustbejoking@lan.invalid> - 2023-03-14 17:34 +0000
    Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2023-03-14 22:24 +0000
  Re: How do *you* install Slackware Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2023-03-15 06:36 +0000
  Re: How do *you* install Slackware bad sector <forgetski@INVALID.net> - 2023-03-15 08:16 -0400
    Re: How do *you* install Slackware Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2023-03-16 06:45 +0000
      Re: How do *you* install Slackware Martin Schöön <martin.schoon@gmail.com> - 2023-03-16 20:40 +0000
        Re: How do *you* install Slackware Martin Schöön <martin.schoon@gmail.com> - 2023-04-08 09:43 +0000
          Re: How do *you* install Slackware maus@smaus.org - 2023-04-08 11:47 +0000
            Re: How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-04-08 23:05 +1000
              Re: How do *you* install Slackware maus@smaus.org - 2023-04-08 14:40 +0000
                Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-04-08 14:48 +0000
                Re: How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-04-14 22:10 +1000
                Re: How do *you* install Slackware Rich <rich@example.invalid> - 2023-04-14 13:04 +0000
                Re: How do *you* install Slackware maus <maus@dmany.org> - 2023-04-14 13:21 +0000
                Re: How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-05-21 18:02 +1000
                Re: How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-05-21 17:47 +1000
                Re: How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-04-14 21:59 +1000
                Re: How do *you* install Slackware Ferannia <ferannia@invalid.com> - 2023-06-06 12:17 -0700
                Re: How do *you* install Slackware Ted Heise <theise@panix.com> - 2023-06-06 19:40 +0000
                Re: How do *you* install Slackware Ferannia <ferannia@invalid.com> - 2023-06-06 13:01 -0700
                Re: How do *you* install Slackware Ted Heise <theise@panix.com> - 2023-06-07 01:10 +0000
                Re: How do *you* install Slackware bad sector <forgetski@_INVALID.net> - 2023-06-07 01:22 -0400
                Re: How do *you* install Slackware slash <slash@invalid.invalid> - 2023-06-07 16:34 +0200
                Re: How do *you* install Slackware bad sector <forgetski@invalid.org> - 2023-06-07 15:55 +0000
                Re: How do *you* install Slackware slash <slash@invalid.invalid> - 2023-06-08 11:33 +0200
                Re: {OT} How do *you* install Slackware bad sector <forgetski@_INVALID.net> - 2023-06-08 06:49 -0400
                Re: {OT} How do *you* install Slackware slash <slash@invalid.invalid> - 2023-06-09 15:58 +0200
                Re: {OT} How do *you* install Slackware bad sector <forgetski@_INVALID.net> - 2023-06-09 20:23 -0400
                Re: {OT} How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-06-10 13:15 +1000
                Re: {OT} How do *you* install Slackware bad sector <forgetski@INVALID.net> - 2023-06-10 13:22 -0400
                Re: {OT} How do *you* install Slackware noel <deletethis@invalid.lan> - 2023-06-11 18:49 +1000
                Re: {OT} How do *you* install Slackware Erte Ribbile <erteribbile@sfracel.li> - 2023-06-12 08:17 +0200
                Re: {OT} How do *you* install Slackware bad sector <nomail@_invalid.nos.pam> - 2023-06-12 05:33 -0400
            Re: How do *you* install Slackware bad sector <forgetski@INVALID.net> - 2023-06-02 17:49 -0400
          Re: How do *you* install Slackware Martin Schöön <martin.schoon@gmail.com> - 2023-06-13 20:49 +0000
      Re: How do *you* install Slackware bad sector <forgetski@INVALID.net> - 2023-03-16 20:12 -0400
  Re: How do *you* install Slackware Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2023-03-16 09:57 +1100
  Re: How do *you* install Slackware "K. Venken" <karel.venken@domain.invalid> - 2023-03-16 16:37 +0100
  Re: How do *you* install Slackware Sylvain Robitaille <syl@therockgarden.ca> - 2023-05-01 06:07 +0000
    Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2023-07-01 13:59 +0000
      Re: How do *you* install Slackware Sylvain Robitaille <syl@alcor.concordia.ca> - 2024-03-22 01:12 +0000
        Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2024-03-26 06:14 +0000
          Re: How do *you* install Slackware "Auric__" <not.my.real@email.address> - 2024-03-27 18:26 +0000
            Re: How do *you* install Slackware Sam <sam@email-scan.com> - 2024-03-27 17:40 -0400
          Re: How do *you* install Slackware Sylvain Robitaille <syl@therockgarden.ca> - 2024-03-27 21:12 +0000
            Re: How do *you* install Slackware Joseph Rosevear <Mail@JoesLife.org> - 2024-03-29 20:27 +0000
              Re: How do *you* install Slackware Sylvain Robitaille <syl@therockgarden.ca> - 2024-03-29 23:40 +0000
                Re: How do *you* install Slackware Luis Mendes <luisXXXlupeXXX@gmail.com> - 2024-04-15 20:27 +0000
                Re: How do *you* install Slackware Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2024-04-16 05:49 +0000
                Re: How do *you* install Slackware Luis Mendes <luisXXXlupeXXX@gmail.com> - 2024-04-16 18:08 +0000
                Re: How do *you* install Slackware Sylvain Robitaille <syl@therockgarden.ca> - 2024-04-19 12:18 +0000
                Re: How do *you* install Slackware The Real Bev <bashley101@gmail.com> - 2024-04-19 14:56 -0700
                Re: How do *you* install Slackware Sylvain Robitaille <syl@therockgarden.ca> - 2024-04-21 14:34 +0000
                Re: How do *you* install Slackware The Real Bev <bashley101@gmail.com> - 2024-04-21 08:50 -0700

csiph-web