From: loc on
I installed Slackware 13, actually Slackware-current without using the
setup script and I think it may have resulted in a broken install.
Basically everything seems to work, but I'm having trouble with USB
devices. Some usb storage devices work and are auto mounted, but some
are detected and show up with lsusb but no device in /dev/ is created
for them. Also the Pidgin icon in the systray is missing, it's just a
piece of paper. Here is how I did the install, I did this on a
running Slackware 12 system:

Mounted a new partition on /mnt and installed all the Slackware
packages with
this script

#!/bin/sh
for dir in a ap d e f k kde l n t tcl x xap y ; do
( cd $dir ; installpkg -root /mnt *.t?z )
done

Copy /etc/fstab /mnt/etc/fstab and modified accordingly
Modify /mnt/etc/hosts
Modify /mnt/etc/HOSTNAME
Setup grub
chroot /mnt set root password and create user account
Set time zone by running `timeconfig' /var/log/setup/setup.timeconfig

Is there anything wrong with installing a new system this way? I also
setup another computer with the same version of Slack, but installed
with a boot cdrom and running the Slackware setup script, this
installation works and all the same USB devices that don't work on the
manually installed box work on this one. Why would installing the
way I did cause USB, udev, and or hal to not work for some devices?
From: Douglas Mayne on
On Thu, 22 Apr 2010 16:03:34 -0700, loc wrote:

> I installed Slackware 13, actually Slackware-current without using the
> setup script and I think it may have resulted in a broken install.
> Basically everything seems to work, but I'm having trouble with USB
> devices. Some usb storage devices work and are auto mounted, but some
> are detected and show up with lsusb but no device in /dev/ is created
> for them. Also the Pidgin icon in the systray is missing, it's just a
> piece of paper. Here is how I did the install, I did this on a running
> Slackware 12 system:
>
> Mounted a new partition on /mnt and installed all the Slackware packages
> with
> this script
>
> #!/bin/sh
> for dir in a ap d e f k kde l n t tcl x xap y ; do
> ( cd $dir ; installpkg -root /mnt *.t?z )
> done
>
> Copy /etc/fstab /mnt/etc/fstab and modified accordingly Modify
> /mnt/etc/hosts
> Modify /mnt/etc/HOSTNAME
> Setup grub
> chroot /mnt set root password and create user account Set time zone by
> running `timeconfig' /var/log/setup/setup.timeconfig
>
> Is there anything wrong with installing a new system this way? I also
> setup another computer with the same version of Slack, but installed
> with a boot cdrom and running the Slackware setup script, this
> installation works and all the same USB devices that don't work on the
> manually installed box work on this one. Why would installing the way
> I did cause USB, udev, and or hal to not work for some devices?
>
Jumping from 12.0 to 13.0 may be too big of a jump. I've never attempted
it. How did you account for the different compression method? As a WAG,
you might get away with following initial upgrade steps (to 12.1, then to
12.2, then 13.0). Again, only the initial upgrade steps as documented in
the files "UPGRADE.TXT" and again - only a WAG.

I have upgraded some systems using a method similar to as shown. However,
I did follow the initial steps that are documented in the file
"UPGRADE.TXT." Specifically, I started with a working version 12.2 setup,
and ran these commands* :

upgradepkg slackware/a/pkgtools-*.tgz
upgradepkg slackware/a/tar-*.tgz
installpkg slackware/a/xz-*.tgz
upgradepkg slackware/a/findutils-*.txz

upgradepkg slackware/a/glibc-solibs-*.t?z

* The above steps can be omitted if the system is already running version
13.0.

Now, I begin to deviate from the instructions slightly. Instead of
upgrading the rest of the packages, I installed using the "root" directive
similar to what you have done. It worked form me. YMMV.

target=/mnt/new
for i in a ap d l n;do
for j in $(find slackware/${i} -type f | grep t.z$ | sort);do
installpkg -root $target $j
done
done


Finally, remember ot fixup the target's bootloader, kernel, initrd, and
etc/fstab.

Then when you boot your new system for the first time, run "pkgtool" and
select "Choose the slackware setup scripts to run again." When that is
complete, finish by installing the n, x, xap and the current set of
security patches.

Of course, with all of these steps, it may be easier to just do it the
standard way. ;)

--
Douglas Mayne
 | 
Pages: 1
Prev: Slackware reference
Next: Slackware reference