LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2017, 04:16 PM   #526
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Member response


Hi,

Mozilla states Linux support so I see no reason to worry about newer ARM system support; http://news.softpedia.com/news/mozil...s-514992.shtml
Quote:
Check out the full release notes and Mozilla developer's latest blog announcement to learn more about what's new in Firefox 53.0, which you can download for GNU/Linux, macOS, and Microsoft Windows operating systems right now from our website, and we recommend that you update as soon as possible.
EDIT: If the maintainer does not include Firefox you still have the option of building a package.
Hope this helps.
Have fun & enjoy!

Last edited by onebuck; 04-21-2017 at 04:17 PM.
 
Old 04-22-2017, 08:38 AM   #527
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,131
Blog Entries: 2

Rep: Reputation: 147Reputation: 147
Firefox already fails to build "clean" on arm, no Firefox there at the moment (-out of the box that is), and seeing it "drops" some "legacy" CPU support (and i fail to see how an supposedly "source code" project can drop binary support?), I can see that the code seems to be evolving towards "more" instead of "better" until it eventually won't run on CPUs "this weak"?

All in all a heads up for an alternative alternative browser (pun intended )

@onebuck:
Right on target sir! Kindest thanks for the heads up!
 
Old 04-22-2017, 10:55 PM   #528
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib." FreeBSD.
Posts: 3,526
Blog Entries: 1

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Quote:
Originally Posted by onebuck View Post
....If the maintainer does not include Firefox you still have the option of building a package.....
I just downloaded and installed the pre-compiled binary of Firefox-53, from Mozilla, and so far it is running perfectly (on -current).
 
Old 04-24-2017, 09:26 AM   #529
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Slackware tools/links for users. Gentle reminder

Hi,

Gentle reminder that we as Slackware users have a multitude of tools/links available to use to make things easier for us.

Just a few links;
I wanted to share some links that I actively use.
I know seasoned users will find these links already known but new Slackware users may not.

Hope this helps.
Have fun & enjoy!
 
2 members found this post helpful.
Old 05-05-2017, 08:20 AM   #530
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,131
Blog Entries: 2

Rep: Reputation: 147Reputation: 147
Lightbulb

may i add to that:
https://pink-mist.github.io/sbotools/downloads/
and
http://software.jaos.org/
with (my) config:
file /etc/slapt-get/slapt-getrc
Code:
WORKINGDIR=/var/slapt-get

EXCLUDE=^aaa_elflibs,^devs,^glibc-.*,^kernel-.*,^udev,.*-[0-9]+dl$,i[3456]86

SOURCE=http://mirrors.unixsol.org/slackware/slackware64-14.2/:OFFICIAL
SOURCE=http://mirrors.slackware.com/slackware/slackware64-14.2/extra/:PREFERRED

SOURCE=http://rlworkman.net/pkgs/14.2/
SOURCE=http://repository.slacky.eu/slackware64-14.2/
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64/

SOURCE=http://www.slackware.com/~alien/multilib/14.2/:PREFERRED
for 64bit multilib (comments excluded)
my two most fallback tools I use currently.

Last edited by SCerovec; 05-05-2017 at 08:21 AM. Reason: error! :]
 
1 members found this post helpful.
Old 07-23-2017, 02:41 PM   #531
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
My Way

Hi,

Lately, I have been busy doing some updates to my systems. For my Dell XPS L702X Laptop I decided to install Slackware64 -current. But I will make a backup copy image of the hosts SSD for safety sake. This a important piece of hardware for me and I know that '-current' is not suggested for production/active use environments but I did not update this machine earlier because of my time limits. I am confident that any issue that crops up can be easily handled. So now was the time to move it to 'Slackware64 -current';
Quote:
I like to use Eric's script; http://www.slackware.com/~alien/tools/mirror-slackware-current.sh
to create a local tree and necessary ISO files. Eric documents his scripts with great comments so you will understand what is going on. Be sure to read the comments to understand things.
I use the configuration file 'mirror-slackware-current.conf' that is created by mirror-slackware-current.sh when you pass '-w' to that script;
Code:
-w            Write a .conf file containing script defaults."
        echo "                It will be created in the script's directory,"
        echo "                as '$(basename $0 .sh).conf'"
You can modify the well documented file to suit your needs locally 'mirror-slackware-current.conf'. I use external USB drives to work with my systems so I can easily move between systems. By having my ISO and tree generated locally I can then move to other machines and perform a install via the portable USB drive. Sure, I could do a install via the network but I find the USB install much faster and smoother for the family since I would not be loading my LAN.

I use the created 'slackware64-current-mini-install.iso' to generate my boot CD for setup on the particular system for install. I do partition the hosts SSD to suit my needs from the cli before starting 'setup'. For my install ISO I know the path for my ISO as '/dev/sdd2/slackware/slackware64-current-iso/slackware64-current-install-dvd.iso'. So I will then start 'setup' to follow the normal install process. Prepare the partitions as needed for the machine. As for the source I will default to selecting the device via a list as presented by setup. I will select device '/dev/sdd2' from the list then pick the directory as requested '/slackware/slackware64-current-iso'. Setup will then mount to the loop device the source device and directory which contains the ISO file so I can then start the install. Most times I will choose a full install then adapt the install to suit my needs for additional packages and necessary configuration.

Once I have Slaackware64 -current installed, I will then modify necessary configure files to suit that setup. I will polish the '/etc/fstab' to suit the 'SSD';
Code:
# cat /etc/fstab
/dev/sda2        swap             swap        defaults         0   0
/dev/sda5        /                ext4        defaults,noatime,discard         1   1
/dev/sda6        /home            ext4        defaults,noatime,discard         1   2
/dev/sda7        /usr             ext4        defaults,noatime,discard         1   2
/dev/sda8        /var             ext4        defaults,noatime,discard         1   2
/dev/sda9        /tmp             ext4        defaults,noatime,discard         1   2
#/dev/sdb2        /mnt/win7        ntfs-3g     fmask=111,dmask=000 1   0
/dev/sdb1        /mnt/win7        ntfs-3g     fmask=111,dmask=000 1   0

#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Plus move any configuration needs to '/etc/rc.d/rc.local';
Code:
# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
#
#09-25-12 gws 20:07
#
#08-20-12 gws 14:38
#set minimum swappiness
#
echo 1 > /proc/sys/vm/swappiness

#08-20-12 gws
#sets scheduler for SSD to 'noop'
#SSD=(device ID's of all 'SSD': see note below)
#Note Information revised from ArchWiki;

#This provides the links listed with targets information to place in bash array
#'SSD= ( ) parentheses in below 'SSD= ( );

#ls -l /dev/disk/by-id
#lrwxrwxrwx 1 root root  9 Aug 19 11:27 ata-OCZ-AGILITY3_OCZ-C93VFN4X0532CVMP -> ../../sda

#SSD=(ata-Crucial_CT256MX100SSD1_14270C86314F)
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
#
#09-25-12 gws 20:07
#
#08-20-12 gws 14:38
#set minimum swappiness
#
#echo 1 > /proc/sys/vm/swappiness

#08-20-12 gws
#sets scheduler for SSD to 'noop'
#SSD=(device ID's of all 'SSD': see note below)
#Note Information revised from ArchWiki;

#This provides the links listed with targets information to place in bash array
#'SSD= ( ) parentheses in below 'SSD= ( );

#ls -l /dev/disk/by-id
#lrwxrwxrwx 1 root root  9 Aug 19 11:27 ata-OCZ-AGILITY3_OCZ-C93VFN4X0532CVMP -> ../../sda

#Wed Nov 19 13:43:36 CST 2014 GWS change to new drive 
# ata-Crucial_CT256MX100SSD1_14270C86314F

SSD=(ata-Crucial_CT256MX100SSD1_14270C86314F)

declare -i i=0
while [ "${SSD[$i]}" != "" ]; do
  NODE=`ls -l /dev/disk/by-id/${SSD[$i]} | awk '{ print $NF }' | sed -e 's/[/\.]//g'`
  echo noop > /sys/block/$NODE/queue/scheduler
  i=i+1
done

#
#Copies for future use or edits
#commented out
#08-20-12 gws 14:45
#get some additional gain by setting up a write-back cache
#hdparm -W1 /dev/sda   #where x= a,b,c,d...

#
#Need to do a bumblebeed install
#11-19-14 gws 14:03

#09-20-12:16:14 gws bumblebee
#if [ -x /etc/rc.d/rc.bumblebeed ]; then
#     /etc/rc.d/rc.bumblebeed start
#fi


#declare -i i=0
#while [ "${SSD[$i]}" != "" ]; do
#  NODE=`ls -l /dev/disk/by-id/${SSD[$i]} | awk '{ print $NF }' | sed -e 's/[/\.]//g'`
#  echo noop > /sys/block/$NODE/queue/scheduler
#  i=i+1
#done

#08-20-12 gws 14:45
#get some additional gain by setting up a write-back cache
hdparm -W1 /dev/sda   #where x= a,b,c,d...

#
#09-20-12:16:14 gws bumblebee

if [ -x /etc/rc.d/rc.bumblebeed ]; then
     /etc/rc.d/rc.bumblebeed start
fi
The above code does have duplicate lines that are commented out. Just active code is used.

I configure my network with static IP and needs for my device manually by moving copies from my backup the files '/etc/rc.d/rc.inet1.conf' and my '/etc/wpa_supplicant.conf' since the configuration are the same for this machine. Not lazy but practical!

Move a copy of my '/etc/hosts' file to provide hostnames with relative IP address and copy of '/etc/resolv.conf' for my DNS.

After all that then a reboot to my configuration needs. Once rebooted I will get all the updated SBo and alien packages that I use on my machines. Then install the packages.

I need to move my Firefox to 53 since '-current' does use ESR which does not support sync backup for my book marks, Firefox configuration and reference links.

As to the state of my XPS with 'Slackware64 -current' there are no major issues at this time. I do use 'slackpkg' to keep things up to date with PV's changelog for 'Slackware64 -current' as root. First edit '/etc/slackpkg/mirrors' to select one mirror by removing the '#' in the front of URL then save file then you can run;
Code:
slackpkg update gpg 
slackpkg update

##Modify /etc/slackpkg/blacklist to blacklist
by adding;
[0-9]+_SBo 
[0-9]+alien
## to disregard any packages from SBo & alien. You can add any other necessary blacklisted sources you wish to disregard.

##For a full system upgrade use this code;

slackpkg update 
slackpkg install-new 
slackpkg upgrade-all 
slackpkg clean-system
'Slackware64 -current' is crisp and clean as ever.

Many thanks to Eric for his useful tools/scripts that make my admin a dream to handle for all these years.

P.S. Some familiarity with Slackware setup is assumed. If you need additional help then look at; http://docs.slackware.com/start

If I happen to assume something by omission then my apologies. Look to the Slackware doc project for help.

Many thanks to PV & Slackware team for a great Gnu/Linux!

Hope this helps.
Have fun & enjoy!

Last edited by onebuck; 07-23-2017 at 10:56 PM. Reason: correct my path for ISO
 
2 members found this post helpful.
Old 07-30-2017, 10:16 AM   #532
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Slackware Live

Hi,

How to create a Slackware Live USB stick if you are not using Slackware
Quote:
This article describes how you transfer the content of a “Slackware Live EditionISO file onto a USB stick (aka pendrive) thereby making that USB drive bootable, and persistent. The guide is meant for people who are not already running Slackware but still want to try Slackware on a Live USB medium. Note that the parent article “Slackware Live Edition” describes in detail how Slackware users can create such a Live USB drive.
A heads up to users that want to try out Slackware Live and do not have or are using a Slackware distribution. Eric's well document blog entry can help you to get that new Slackware Live installed to a USB. That way you can use Slackware Live with persistence to impress your friends with and allow you a great experience with Slackware.

Great article and well documented to allow you a Slackware Live install.

Hope this helps.
Have fun & enjoy!
 
2 members found this post helpful.
Old 08-15-2017, 09:48 AM   #533
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Member response

Hi,

News for new and old Slackware users.

From Eric's blog; https://alien.slackbook.org/blog/
Quote:
New build server was ordered

OK, so I got frustrated too many times when waiting for packages that were compiling. My current build machine with its AMD ‘Athlon II X4 640’ CPU and 8 GB of RAM, is now 5 years old and obviously no longer quite fit for the tasks I need it to perform. Compiling Chromium for 64bit Slackware in a virtual machine took more than 24 hours last week (yes, for a single package). Basically, that convinced me to empty my stash of donated funds (thanks to all of you Slackware supporters) and order the most powerful midi tower I could buy for that money. What else is that money for, after all. Well, beer perhaps

Because the computer’s location will be the attic of my own house, its components (Seasonic PSU, Scythe CPU cooler, and the ‘be quiet Silent Base’ case itself) are chosen to minimize noise – it’s actually going to be sitting next to a bedroom wall.
The CPU I chose with the help of a friend, and after some consultation of my hardware store, is an AMD Ryzen 1700 at 3,0 GHz, along with 64GB of Corsair RAM (DDR4 at 3,0 GHz) but I am going to slightly overclock both. I added a 500GB Samsung 960 EVO SSD (NVMe) as well as a 4 TB Western Digital Red SATA disk. With that machine I will be able to parallellize my build efforts and that means, I can give you more updates and still spend more time with my family. The whole hardware order costs slightly more than 1700 Euros which sounds like a lot (Robby pointed me to Ebay discard servers for a couple of 100 dollar) … while rackmount servers are cheap, you can not put them in your home because of the noise.
But it’s going to be worth it. And I will still have money left in my donations account to keep paying the rent for the ‘bear‘ server for at least another year. And then it’s rock bottom.
I am very appreciative for the work and commitment that Eric does have for Slackware and community. Hopefully fellow Slackware users feel that way too.

Big 'Thank You to Eric'!

Hope this helps.
Have fun and enjoy!
 
5 members found this post helpful.
Old 08-18-2017, 10:16 AM   #534
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Member response

Hi,

For users that may wish to get valued deal for Linux Lessons. jefro posted a link in the thread; http://www.linuxquestions.org/questi...ux-4175612171/

I viewed the lessons content and think it will help new to intermediate Linux users at a more than fair price. Plus when you sign up at the site you will receive a 10% discount. I am in no way affiliated with the provider but feel it could be useful to new users and users that wish to have a good lesson plan to learn with.

Hope this helps.
Have fun & enjoy!
 
Old 08-22-2017, 05:33 AM   #535
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,131
Blog Entries: 2

Rep: Reputation: 147Reputation: 147
Thumbs up

Quote:
Originally Posted by onebuck View Post
Hi,

News for new and old Slackware users.

From Eric's blog; https://alien.slackbook.org/blog/
I am very appreciative for the work and commitment that Eric does have for Slackware and community. Hopefully fellow Slackware users feel that way too.

Big 'Thank You to Eric'!

Hope this helps.
Have fun and enjoy!
Updates ahoy!
 
Old 09-04-2017, 10:09 AM   #536
un1x
Member
 
Registered: Oct 2015
Posts: 538

Rep: Reputation: Disabled
Can I use Slackware livecd xfce (700mb) and then download the script setup2hd and make it 'persistent' on the usb to install to HDD ?

size : 15.2 kB (15204 bytes)

Code:
#!/bin/sh
#
# Copyright 1993,1994,1999  Patrick Volkerding, Moorhead, Minnesota USA
# Copyright 2001, 2003, 2004  Slackware Linux, Inc., Concord, CA
# Copyright 2006, 2007  Patrick Volkerding, Sebeka, Minnesota USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is 
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# As always, bug reports, suggestions, etc: volkerdi@slackware.com
#
# Modifications 2016, 2017 by Eric Hameleers <alien@slackware.com>
#

# The Slackware setup depends on english language settings because it
# parses program output like that of "fdisk -l". So, we need to override
# the Live user's local language settings here:
export LANG=C
export LC_ALL=C

if [ ! -d /mnt/livemedia/@LIVEMAIN@/system ]; then
 dialog --title "LIVE MEDIA NOT ACCESSIBLE" --msgbox "\
\n\
Before you can install software, complete the following tasks:\n\
\n\
1. Mount your Live media partition on /mnt/livemedia." 16 68
  exit 1
fi
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
rm -f $TMP/SeT*
# If a keymap was set up, restore that data:
if [ -r $TMP/Pkeymap ]; then
  cp $TMP/Pkeymap $TMP/SeTkeymap
fi
echo "on" > $TMP/SeTcolor # turn on color menus
PATH="$PATH:/usr/share/@LIVEMAIN@"
export PATH;
export COLOR=on
#echo
#echo
#echo "Probing disk partitions.  (Hint: if your ATAPI CD-ROM causes timeouts"
#echo "during the probe process, try hitting the eject button)"
#echo
#sleep 5
#
# Before probing, activate any LVM partitions
# that may exist from before the boot:
vgchange -ay 1> /dev/null 2> /dev/null
if probe -l 2> /dev/null | grep -E 'Linux$' 1> /dev/null 2> /dev/null ; then
 probe -l 2> /dev/null | grep -E 'Linux$' | sort 1> $TMP/SeTplist 2> /dev/null
else
 dialog --title "NO LINUX PARTITIONS DETECTED" \
 --msgbox "There don't seem to be any partitions on this machine of type \
Linux.  You'll need to make at least one of these to install Linux.  \
To do this, you'll need to leave 'setup', and make the partitions using \
'cfdisk' (MBR partitions) or 'cgdisk' (GPT partitions).  For more \
information, read the 'setup' help file from the next menu." 10 64
fi
if [ -d /sys/firmware/efi ]; then
  if ! probe -l 2> /dev/null | grep "EFI System Partition" 1> /dev/null 2> /dev/null ; then
     dialog --title "NO EFI SYSTEM PARTITION DETECTED" \
 --msgbox "This machine appears to be using EFI/UEFI, but no EFI System \
Partition was found.  You'll need to make an EFI System Partition in order \
to boot from the hard drive.  To do this, leave 'setup', and \
use 'cgdisk' to make a 100MB partition of type EF00.  For more information, \
read the 'setup' help file from the next menu." 10 64
  fi
fi
T_PX="/setup2hd"
mkdir -p ${T_PX}
echo "$T_PX" > $TMP/SeTT_PX
ROOT_DEVICE="`mount | grep "on / " | cut -f 1 -d ' '`"
echo "$ROOT_DEVICE" > $TMP/SeTrootdev
if mount | grep /var/log/mount 1> /dev/null 2> /dev/null ; then # clear source
 umount /var/log/mount                                           # location
fi
# Anything mounted on /var/log/mount now is a fatal error:
if mount | grep /var/log/mount 1> /dev/null 2> /dev/null ; then
  echo "Can't umount /var/log/mount.  Reboot machine and run setup again."
  exit
fi
# If the mount table is corrupt, the above might not do it, so we will
# try to detect Linux and FAT32 partitions that have slipped by:
if [ -d /var/log/mount/lost+found -o -d /var/log/mount/recycled \
     -o -r /var/log/mount/io.sys ]; then
  echo "Mount table corrupt.  Reboot machine and run setup again."
  exit
fi
rm -f /var/log/mount 2> /dev/null
rmdir /var/log/mount 2> /dev/null
mkdir /var/log/mount 2> /dev/null

while [ 0 ]; do

 dialog --title "@CDISTRO@ Linux Setup (version @SL_VERSION@)" \
--menu \
"Welcome to @CDISTRO@ Linux Setup (Live Edition).\n\
Select an option below using the UP/DOWN keys and SPACE or ENTER.\n\
Alternate keys may also be used: '+', '-', and TAB." 18 72 9 \
"HELP" "Read the @CDISTRO@ Setup HELP file" \
"KEYMAP" "Remap your keyboard if you're not using a US one" \
"ADDSWAP" "Set up your swap partition(s)" \
"TARGET" "Set up your target partitions" \
"INSTALL" "Install @CDISTRO@ Live to disk" \
"CONFIGURE" "Reconfigure your Linux system" \
"EXIT" "Exit @CDISTRO@ Linux Setup" 2> $TMP/hdset
 if [ ! $? = 0 ]; then
  rm -f $TMP/hdset $TMP/SeT*
  exit
 fi
 MAINSELECT="`cat $TMP/hdset`"
 rm $TMP/hdset

 # Start checking what to do. Some modules may reset MAINSELECT to run the
 # next item in line.

 if [ "$MAINSELECT" = "HELP" ]; then
  SeTfdHELP
 fi

 if [ "$MAINSELECT" = "KEYMAP" ]; then
  SeTkeymap
  if [ -r $TMP/SeTkeymap ]; then
   MAINSELECT="ADDSWAP" 
  fi
 fi
 
 if [ "$MAINSELECT" = "MAKE TAGS" ]; then
  SeTmaketag
 fi
 
 if [ "$MAINSELECT" = "ADDSWAP" ]; then
  SeTswap
  if [ -r $TMP/SeTswap ]; then
   MAINSELECT="TARGET"
  elif [ -r $TMP/SeTswapskip ]; then
   # Go ahead to TARGET without swap space:
   MAINSELECT="TARGET"
  fi
 fi

 if [ "$MAINSELECT" = "TARGET" ]; then
  SeTpartitions
  SeTEFI
  SeTDOS
  if [ -r $TMP/SeTnative ]; then
   MAINSELECT="INSTALL"
  fi
 fi

 if [ "$MAINSELECT" = "INSTALL" ]; then
  if [ ! -r $TMP/SeTnative ]; then
   dialog --title "CANNOT INSTALL SOFTWARE YET" --msgbox "\
\n\
Before you can install software, complete the following tasks:\n\
\n\
1. Set up your target Linux partition(s).\n\
\n\
You may also optionally remap your keyboard and set up your\n\
swap partition(s). \n\
\n\
Press ENTER to return to the main menu." 16 68
   continue
  fi

  # --------------------------------------------- #
  #   Slackware Live Edition - install to disk:   #
  # --------------------------------------------- #

  # Buy us some time while we are calculating disk usage:
  dialog --title "WELCOME TO @UDISTRO@ LIVE (@LIVEDE@)" --infobox \
   "\nCalculating disk usage, please be patient ..." 5 65

  ACT_MODS=$(ls -rt --indicator-style=none /mnt/live/modules/ |wc -l)
  TOT_MODS=$(find /mnt/livemedia/@LIVEMAIN@/ -type f -name "*.sxz" |wc -l)
  DU_LIVE=$(du -s /mnt/@LIVEMAIN@fs/ |tr -s '\t' ' ' |cut -f1 -d' ')
  PARTFREE=$(df -P -BM $T_PX |tail -1 |tr -s '\t' ' ' |cut -d' ' -f4)
  PARTFREE=${PARTFREE%M}

  # Warn when it looks we have insufficient room:
  if [ $PARTFREE -lt $(($DU_LIVE/1024)) ]; then
+    dialog --title "WELCOME TO @UDISTRO@ LIVE (@LIVEDE@)" --yesno \
   "\nAvailable space: $PARTFREE MB\nRequired space: $(($DU_LIVE/1024))\nIt looks like your hard drive partition is too small.\nDo you want to continue?" 10 65
    retval=$?
    if [ $retval = 1 ]; then
      umount $T_PX
      exit 1
    fi
  else
    dialog --title "WELCOME TO @UDISTRO@ LIVE (@LIVEDE@)" --msgbox \
   "\nAvailable space: $PARTFREE MB\nRequired space: $(($DU_LIVE/1024)) MB\nIt looks like you're good to go!" 10 65
  fi

  (
    # Install the Live OS by rsyncing the readonly overlay to the harddisk:
    rsync -Hav --progress --no-inc-recursive /mnt/@LIVEMAIN@fs/ $T_PX/ \
      | awk '{ if (index($0, "to-chk=") > 0) { split($0, pieces, "to-chk="); split(pieces[2], term, ")"); split(term[1], division, "/"); print (1-(division[1]/division[2]))*100 };  fflush(); }' \
      | sed --unbuffered 's/^\([0-9]*\).*/\1/'
  ) | dialog --title "INSTALLING @UDISTRO@ LIVE (@LIVEDE@) TO DISK" --gauge \
       "\nProcessing ${TOT_MODS} @CDISTRO@ Live modules ($(( $DU_LIVE/1024 )) MB)" 8 65

  #
  # Live OS Post Install routine. If you want, you can override this routine
  # by (re-)defining this function "live_post_install()" in a file called
  # "/usr/share/@LIVEMAIN@/setup2hd.@DISTRO@".
  #

  live_post_install () {
    # Re-use some of the custom configuration from 0099-@DISTRO@_zzzconf-*.sxz
    # (some of these may not be present but the command will not fail):
    dialog --title "POST-INSTALL @UDISTRO@ LIVE (@LIVEDE@) DATA" --infobox \
     "\nCopying Live modifications to hard disk ..." 5 65
    # Do not overwrite a custom keymap:
    if [ ! -f $T_PX/etc/rc.d/rc.keymap ]; then
      unsquashfs -f -dest $T_PX \
        /mnt/livemedia/@LIVEMAIN@/system/0099*zzzconf*.sxz \
        /etc/rc.d/rc.keymap
    fi
    unsquashfs -f -dest $T_PX \
      /mnt/livemedia/@LIVEMAIN@/system/0099*zzzconf*.sxz \
      /etc/X11/xdm/liveslak-xdm \
      /etc/X11/xorg.conf.d/30-keyboard.conf \
      /etc/inittab \
      /etc/profile.d/lang.sh \
      /etc/rc.d/rc.font \
      /etc/rc.d/rc.gpm \
      /etc/slackpkg
    # Point xdm to the custom /etc/X11/xdm/liveslak-xdm/xdm-config:
    sed -i ${T_PX}/etc/rc.d/rc.4 -e 's,bin/xdm -nodaemon,& -config /etc/X11/xdm/liveslak-xdm/xdm-config,'
    # Remove the marker file from the filesystem root:
    rm -f ${T_PX}/@MARKER@

    cat << EOF > $TMP/tempmsg

 @CDISTRO@ Live Edition (@LIVEDE@) has been installed to your hard drive!
 We installed the ${ACT_MODS} active modules (out of ${TOT_MODS} available).
 The following configuration was copied from the Live OS to your harddisk:
  - console font
  - default runlevel
  - keyboard layout
  - language setting
 After finishing system configuration and before rebooting, you can add any further Live modules from /@LIVEMAIN@/addons/ and /@LIVEMAIN@/optional/ to your hard drive, using a command similar to this:
    # unsquashfs -f -dest $T_PX /mnt/livemedia/@LIVEMAIN@/addons/mymodule.sxz

EOF
    dialog --title "POST INSTALL HINTS AND TIPS" --msgbox "`cat $TMP/tempmsg`" \
      20 65
    rm $TMP/tempmsg

    MAINSELECT="CONFIGURE"
  }

  if [ -f /usr/share/@LIVEMAIN@/setup2hd.@DISTRO@ ]; then
    # If the setup2hd post-configuration file exists, source it.
    # The file should re-define the live_post_install() function.
    . /usr/share/@LIVEMAIN@/setup2hd.@DISTRO@
  fi

  # Now, execute the function - either our own built-in version
  # or the re-defined function from the custom setup2hd.@DISTRO@ file.
  live_post_install

  # --------------------------------------------- #
  # Slackware Live Edition - end install to disk: #
  # --------------------------------------------- #

 fi

 if [ "$MAINSELECT" = "CONFIGURE" ]; then
  # Patch (e)liloconfig on the target systems to remove hardcoded /mnt:
  if [ -f /sbin/liloconfig -a -f $T_PX/sbin/liloconfig ]; then
    cat /sbin/liloconfig > $T_PX/sbin/liloconfig
  fi
  if [ -f /usr/sbin/eliloconfig -a -f $T_PX/usr/sbin/eliloconfig ]; then
    cat /usr/sbin/eliloconfig > $T_PX/usr/sbin/eliloconfig
  fi
  SeTconfig
  REPLACE_FSTAB=Y
  if [ -r $TMP/SeTnative ]; then
   if [ -r $T_PX/etc/fstab ]; then
    dialog --title "REPLACE /etc/fstab?" --yesno "You already have an \
/etc/fstab on your install partition.  If you were just adding software, \
you should probably keep your old /etc/fstab.  If you've changed your \
partitioning scheme, you should use the new /etc/fstab.  Do you want \
to replace your old /etc/fstab with the new one?" 10 58
    if [ ! $? = 0 ]; then
     REPLACE_FSTAB=N
    fi
   fi
   if [ "$REPLACE_FSTAB" = "Y" ]; then
    cat /dev/null > $T_PX/etc/fstab
    if [ -r $TMP/SeTswap ]; then
     cat $TMP/SeTswap > $T_PX/etc/fstab
    fi
    cat $TMP/SeTnative >> $T_PX/etc/fstab
    if [ -r $TMP/SeTDOS ]; then
     cat $TMP/SeTDOS >> $T_PX/etc/fstab
    fi
    printf "%-16s %-16s %-11s %-16s %-3s %s\n" "#/dev/cdrom" "/mnt/cdrom" "auto" "noauto,owner,ro,comment=x-gvfs-show" "0" "0" >> $T_PX/etc/fstab
    printf "%-16s %-16s %-11s %-16s %-3s %s\n" "/dev/fd0" "/mnt/floppy" "auto" "noauto,owner" "0" "0" >> $T_PX/etc/fstab
    printf "%-16s %-16s %-11s %-16s %-3s %s\n" "devpts" "/dev/pts" "devpts" "gid=5,mode=620" "0" "0" >> $T_PX/etc/fstab
    printf "%-16s %-16s %-11s %-16s %-3s %s\n" "proc" "/proc" "proc" "defaults" "0" "0" >> $T_PX/etc/fstab
    printf "%-16s %-16s %-11s %-16s %-3s %s\n" "tmpfs" "/dev/shm" "tmpfs" "defaults" "0" "0" >> $T_PX/etc/fstab
   fi
   dialog --title "SETUP COMPLETE" --msgbox "System configuration \
and installation is complete. \
\n\nYou may now reboot your system." 7 55
  fi
 fi

 if [ "$MAINSELECT" = "EXIT" ]; then
  break
 fi

done # end of main loop
sync

chmod 755 $T_PX
if [ -d $T_PX/tmp ]; then
 chmod 1777 $T_PX/tmp
fi
if mount | grep /var/log/mntiso 1> /dev/null 2> /dev/null ; then
 umount -f /var/log/mntiso
fi
if mount | grep /var/log/mount 1> /dev/null 2> /dev/null ; then
 umount /var/log/mount
fi
# Anything mounted on /var/log/mount now is a fatal error:
if mount | grep /var/log/mount 1> /dev/null 2> /dev/null ; then
  exit
fi
# If the mount table is corrupt, the above might not do it, so we will
# try to detect Linux and FAT32 partitions that have slipped by:
if [ -d /var/log/mount/lost+found -o -d /var/log/mount/recycled \
     -o -r /var/log/mount/io.sys ]; then
  exit
fi
rm -f /var/log/mount 2> /dev/null
rmdir /var/log/mount 2> /dev/null
mkdir /var/log/mount 2> /dev/null
chmod 755 /var/log/mount

# An fstab file is indicative of an OS installation, rather than
# just loading the "setup" script and selecting "EXIT"
if [ -f ${T_PX}/etc/fstab ]; then
  # umount CD:
  if [ -r $TMP/SeTCDdev ]; then
    if mount | grep iso9660 > /dev/null 2> /dev/null ; then
      umount `mount | grep iso9660 | cut -f 1 -d ' '`
    fi
    eject -s `cat $TMP/SeTCDdev`
    # Tell the user to remove the disc, if one had previously been mounted
    # (it should now be ejected):
    dialog \
     --clear \
     --title "@CDISTRO@ Linux Setup is complete" "$@" \
     --msgbox "\nPlease remove the installation disc.\n" 7 40
  fi
  # Offer to reboot or drop to shell:
  dialog \
     --title "@CDISTRO@ Linux Setup is complete" "$@" \
     --yesno \
     "\nWould you like to reboot your system?\n\n\n\
If you choose \"No\", you will be dropped to a shell.\n" 11 50
    retval=$?
    if [ $retval = 1 ]; then
      clear
      echo
      echo "You may now reboot your system once you are ready."
      echo "You can issue the 'reboot' command; or if your system has"
      echo "a keyboard attached, you can use the key combination: control+alt+delete"
      echo
    else
      touch /reboot
    fi
fi

# Fix the date:
fixdate

# final cleanup
rm -f $TMP/tagfile $TMP/SeT* $TMP/tar-error $TMP/unsquash_output $TMP/unsquash_error $TMP/PKGTOOL_REMOVED
rm -f /var/log/mount/treecache
rmdir /var/log/mntiso 2>/dev/null
rm -rf $TMP/treecache
rm -rf $TMP/pkgcache
rmdir ${T_PX}/tmp/orbit-root 2> /dev/null

# If the OS had been installed and the user elected to reboot:
if [ -f /reboot ]; then
   clear
   echo "** Starting reboot **"
   sleep 1
   reboot
fi

# end slackware setup script

Last edited by un1x; 09-04-2017 at 10:12 AM.
 
Old 09-04-2017, 02:15 PM   #537
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Member response

Hi,

I suggest that you look at Eric's blog; https://alien.slackbook.org/blog/liv...ew-iso-images/

Hope this helps.
Have fun & enjoy!
 
Old 09-04-2017, 03:07 PM   #538
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,620

Rep: Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914Reputation: 3914
Quote:
Originally Posted by un1x View Post
Can I use Slackware livecd xfce (700mb) and then download the script setup2hd and make it 'persistent' on the usb to install to HDD ?
From https://docs.slackware.com/slackware...ipts_and_tools :
Code:
if the Live system contains a huge kernel (all ISO variants except XFCE)
then the “setup2hd” script and the Slackware installer files are copied
to “/usr/local/sbin” and “/usr/share/liveslak” respectively.
Downloading the script won't work. You miss all the other installer files and you won't have a huge kernel to use (the setup2hd script will not create an initrd for your generic kernel).

The XFCE variant is simply not meant to be installed to a hard drive. It is seriously mangled in order to fit in the 700 MB constraint and should not be used for other purposes than running it as a Live environment off a CDROM or USB stick IMHO.

Last edited by Alien Bob; 09-04-2017 at 03:10 PM.
 
4 members found this post helpful.
Old 09-05-2017, 02:22 AM   #539
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,131
Blog Entries: 2

Rep: Reputation: 147Reputation: 147
^ Murphy's law at force?
 
Old Yesterday, 09:54 AM   #540
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,831
Blog Entries: 27

Original Poster
Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Member response

Hi,

I have removed old stale links within Get Slackware Linux section of
Slackware®-Links .

For historic Slackware then use;
Quote:
Historic Slackware®:
Historic Slackware by Niels Horn <- 'Versions 1.01, 1.1.2, 3.5'
Historic GNU/Linux Slackware® <- 'Versions 1.1.2, 2.1, 3.0, 3.1, 3.9'

If you need older releases then consider using Slackware mirrors list to get those. Searches will provide additional information. If you need the ISO then consider LQ http://iso.linuxquestions.org/slackware/ for 14.2 thru 9.1 ISO downloads.

Sorry for any inconveniences but I cannot see putting a lot of effort into maintaining older broken link information.

Hope this helps.
Have fun & enjoy!

 
  


Reply

Tags
install, latest-firefox, machine, network, nic, slackware, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm a new Slacker olias Slackware 29 08-27-2014 11:07 AM
Another slacker! :) multios Slackware 37 01-30-2008 06:22 PM
Another Slacker... :) TtuEd LinuxQuestions.org Member Intro 1 09-03-2007 02:41 PM
Greetings from a slacker Bread LinuxQuestions.org Member Intro 1 01-19-2006 06:53 PM
I'm a slacker in need Tekime Slackware 2 07-30-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration