You are not logged in.

#1 2012-03-22 11:11:03

scjet
Member
Registered: 2010-12-01
Posts: 1,405

(Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Please Note, this Post (and the "scripts" within it) may frequently "change".
Warning: (This)ArchBang-Netinstall will download ~400 MBytes of updates during installation.
- feedback welcome.


ArchBang-Netinstall(x86_64) : Based on ArchBang-2012.05
--------------------------------------------------------------------------------------------------------------------------------

I used a modified/Remastered "archlinux-2011.08.19-netinstall-x86_64.iso" img as my base,
http://www.archlinux.org/download/,  and with a few modified "AIF" semi-auto-installer scripts, see "Steps" below, away I went.
(Also see the below Post: "[FIXED]: Basic Remastering using "xorriso" for my HowTo create a custom Arch "image/iso").

IMPORTANT Notice !!!
http://www.archlinux.org/news/grub-lega … supported/
Note: AIF does not support Grub2. AIF (in this scenario) only works with "Syslinux" now. So, Do NOT select "Grub", as your bootloader during this installation.

"Sylinux" is a fine bootloader, however, if you prefer Grub2, then you'll need to manually install Grub2 after this installation.
https://wiki.archlinux.org/index.php/GR … Arch_Linux

This ArchBang-Netinstall will always install all the "latest" Arch(Bang)  kernel, pkgs, ... ( from core, extra, community, ... ).

What ArchBang-Netinstall Is NOT ?:
- This is NOT an (Official) ArchBang "LiveCD/DVD" - for that, please checkout the "Official" ArchBang Releases: -> http://archbang.org/download, And/Or the "Updated" ArchBang-Testing-ISO Releases, see post: ->http://bbs.archbang.org/viewtopic.php?id=2576
( Instead, "ArchBang-Netinstall" only gives you a CLI - "Live Console", from which you'll need to invoke your (modified) script, "/arch/setup_archbang", for a semi-automated "aif" net-installation-procedure. )

Pros:
- Upon succesful completion, when doing a pacman -Syu, or packer -Syyu, or ..., it's soooo nice to finally see nothing else to do wink
- It's small, ~200MBytes for the .iso, (x86_64, or  i686).
- Create multiple "profile"'s for your own customized Archbang-Netinstall's, ... (see Step "3./" below).
- It can potentially save the unwary User from literally "100's of" the worrisome, but required Arch update/upgrade "gotcha's".

Cons: (during AIF initial full install)
  - You can only use "Syslinux" as your bootloader during Installation.
  -[FIXED] - (see Steps "4a/4b" below for an automated netinstall script of latest packer/AUR packages, using /etc/rc.local, once, during bootup).
  -[FIXED] - (see Steps "4b/4c" below) "pacman-key --init" and "pacman-key --populate archlinux" are now fully-automated within scripts below).

TODO:
- !!! Incorporate a "Grub2" bootloader into this !!! ...eventually.  smile
- an "archbang-netinstall-dual.iso" (choice of i686, or x86_64) combo at boot.

Test-drive it first ?:  Sure, if you just want to test-drive this, before manually trying all the Steps below,
then grab the "new"(as of July 15, 2012) iso from here: https://docs.google.com/open?id=0BxvW3o … FBXXzIyeFU  (~200 MBytes)
BUT, be aware that you must remove "aif" from the "TARGET_PACKAGES" list in "/arch/scripts/archbang_netinstall.profile" prior to running the "/arch/setup_archbang", AND, make sure you choose "Syslinux" as your bootloader.


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Alternatively, if you want to build this manually, with your own "schtuff", then here are all the basic Steps:

1./ Just after booting from an "archlinux-2011.08.19-netinstall-x86_64.iso", you'll need to overwrite "/usr/lib/aif/core/procedures/automatic" with the below modified "semi_Automatic" bash procedure.
/arch/aif_mods/automatic:

#!/bin/bash
### This script is: "automatic", located as "/arch/aif_mods/automatic"
### This is a "semi_Automatic" Archbang* NetInstall Procedural script. #################
### This script replaces "/usr/lib/aif/core/procedures/automatic" #####################

depend_procedure core base # important, don't be confused when worker/variable definitions seem to be missing here.

var_OPTS_STRING="c:"
var_ARGS_USAGE="-c <config>: Specify a configfile (profile) to be used"
var_AUTOMATIC_PROFILE=""
# TODO: if the user does aif -p automatic -c, then $1 is ":-" ??? if you do -c <something> then it's ok.

process_args ()
{
	if [ "$1" = '-c' ]
	then
		[ -z "$2" ] && die_error "You must specify a config"
		var_AUTOMATIC_PROFILE=$2
	else
		usage
		exit 5
	fi
}

worker_intro ()
{
	notify "Semi-Automatic procedure running profile $var_AUTOMATIC_PROFILE ...\n$DISCLAIMER"
}

worker_configure ()
{
	var_UI_TYPE=${arg_ui_type:-cli}
	ui_init
	[ -z "$var_AUTOMATIC_PROFILE" ] && die_error "You must specify a config file to use this procedure"
	source $var_AUTOMATIC_PROFILE   || die_error "Could not source config $var_AUTOMATIC_PROFILE"
	# Check mandatory options
	# [ -z "$PARTITIONS" ] && die_error "You did not specify a partition scheme"
	# [ -z "$BLOCKDATA"  ] && die_error "You did not specify a partition scheme"
	# [ -z "$GRUB_DEVICE" ] && die_error "You did not specify a grub device"
	[ -z "$TARGET_REPOSITORIES" ] && die_error "You did not specify \$TARGET_REPOSITORIES"
	# initialize internal variables based on variables set by the user (some of the vars are handled in other workers):
	var_RUNTIME_REPOSITORIES=$RUNTIME_REPOSITORIES
	var_RUNTIME_PACKAGES=$RUNTIME_PACKAGES
	var_GRUB_DEVICE=$GRUB_DEVICE
	var_PARTITIONS=$PARTITIONS
	var_BLOCKDATA=$BLOCKDATA
	HARDWARECLOCK=${HARDWARECLOCK:-localtime}
	TIMEZONE=${TIMEZONE:-Canada/Pacific}
}

worker_select_source ()
{
	true # TARGET_REPOSITORIES, MIRROR is already sourced from config
}

worker_prepare_disks ()
{
	### Interactive Disc selector/partitioner ###########################################
	get_possible_fs && interactive_prepare_disks
	inform "Partitions and filesystems made successfully"
	# TODO: fstab? auto-add to fstab with libs? auto mkdir's on target_dir?
	####################################################################################
}

worker_package_list ()
{
	var_TARGET_PACKAGES=$TARGET_PACKAGES
	var_TARGET_GROUPS=$TARGET_GROUPS
	var_TARGET_PACKAGES_EXCLUDE=$TARGET_PACKAGES_EXCLUDE

	### Choose Syslinux as your bootloader, NOT Grub !!! ####################################### 
        ask_option no "Choose bootloader" "Which bootloader would you like to use?" optional \
        "grub" "GRUB bootloader" \
        "syslinux" "Syslinux bootloader (${syslinux_supported_fs[*]})"

	bootloader=$ANSWER_OPTION
	###################################################################################### 

	[ -z "$var_TARGET_PACKAGES" -a -z "$var_TARGET_GROUPS" ] && var_TARGET_GROUPS=base
	true
}

worker_install_packages ()
{
	target_prepare_pacman && installpkg
}

worker_set_clock ()
{
	### uses $TIMEZONE, clock itself remains untouched. ##############################
	interactive_timezone
	copy_timezone_file
	echo $TIMEZONE
	sleep 1
        ### set HARDWARE clock #########################################################
	interactive_time
	echo $HARDWARECLOCK
	sleep 1
	##################################################################################
}

worker_install_bootloader ()
{
	echo $bootloader
        sleep 1
	### Interactive bootloader #####################################################
	interactive_install_bootloader
        sleep 1
	inform "Please Reboot now ..."
	################################################################################
	sleep 2
}

2./ you'll also need to modify the line "kernel_parameters=..." in "/usr/lib/aif/core/libs/lib-ui-interactive.sh" to:

kernel_parameters="root=$rootpart loglevel=3 ro quiet nomodeset"

3./  You'll need to have your "Archbang"-Configs, Folders, Files, ... ready, to be copied over, in the approporiate section of the below ".profile".
/arch/scripts/archbang_netinstall.profile:

### DATE Updated: July 23, 2012 ###
### This profile is: "archbang_netinstall.profile", located as "/arch/scripts/archbang_netinstall.profile".
### This profile is used in conjunction with the modified "/usr/lib/aif/core/procedures/automatic" procedure ###
#
### - configure Network for dhcp, or static IP's - ##################
inform "Setting up Network...please wait"
aif -p partial-configure-network
### - need sleep here to give time for eth[0-9] to grab (dhcp) IP - ######
sleep 5
#
### - MAIN - #######################################
if [ -d /repo/core ]; then
	TARGET_REPOSITORIES=(core 'file:///repo/$repo/$arch')
else
        MIRROR='ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch'
	TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST community $var_MIRRORLIST) 
        # $var_MIRRORLIST is set by AIF
fi

HARDWARECLOCK="localtime" # UTC is the better option, but some OS'es don't support it (i.e. Windows)
TIMEZONE="America/Toronto"
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HOSTNAME=
RUNTIME_REPOSITORIES=
RUNTIME_PACKAGES=

# packages to install
TARGET_GROUPS='base base-devel xorg lxde'
TARGET_PACKAGES_EXCLUDE='reiserfsprogs pcmanfm'
# Get the latest ArcgBang packages #
TARGET_PACKAGES='alsa-firmware alsa-oss alsa-utils arandr arj batti ca-certificates cairo catfish cdparanoia cifs-utils conky consolekit dbus deadbeef dhclient dialog dmenu dnsutils dosfstools epdfview expect faac faad2 firefox flashplugin fribidi galculator git gmrun gnome-disk-utility gnome-keyring gnome-mplayer gstreamer0.10-bad gstreamer0.10-bad-plugins gstreamer0.10-base-plugins gstreamer0.10-ffmpeg gstreamer0.10-good gstreamer0.10-good-plugins gstreamer0.10-ugly gstreamer0.10-ugly-plugins gtk-engine-murrine gtk-engine-unico gtk-engines gucharmap gvfs hardinfo haveged hicolor-icon-theme jack jshon lame leafpad libui-sh linux-headers lzop memtest86+ mencoder mesa mjpegtools mkvtoolnix mlocate mplayer networkmanager network-manager-applet nitrogen notification-daemon ntfs-3g ntfsprogs obconf oblogout obmenu openbox-themes openssh p7zip parcellite python python-wnck python-xlib rsync scrot sdl slim spacefm squashfs-tools sudo syslinux sysstat tcl tint2 transmission-gtk tree ttf-dejavu unrar unzip upower volumeicon vorbis-tools wireless_tools wxgtk x264 xcompmgr xdg-utils xfburn xfce4-notifyd xorg-server-utils xorg-utils xorg-xinit xsel xvidcore xz zip'

# you can optionally also override some functions...
# $var_TARGET_DIR = /mnt ; as called by AIF
# This way you can change/extend/remove pretty much all functionality in AIF !
worker_intro () {
	inform "Automatic procedure running this setup_archbang.  THIS WILL ERASE AND OVERWRITE YOUR /dev/sd[a-?].  IF YOU DO NOT WANT THIS PRESS CTRL+C WITHIN 3 SECONDS"
	sleep 3
        echo "-----------------------------------------------------------------------------------"
        read -p "Enter host_name : " host_name
        echo "-----------------------------------------------------------------------------------"
        sleep 1
        echo "-----------------------------------------------------------------------------------"
        read -p "Enter user_name : " user_name
        echo "-----------------------------------------------------------------------------------"
        sleep 1
}

worker_configure_system () {
	preconfigure_target
	sleep 1
	postconfigure_target
	sed -i 's/^DAEMON_LOCALE="yes"/DAEMON_LOCALE="no"/' $var_TARGET_DIR/etc/rc.conf
	sed -i 's/^LOCALE=.*/LOCALE="en_US.UTF-8"/' $var_TARGET_DIR/etc/rc.conf
        sed -i 's/^HOSTNAME=.*$/HOSTNAME=\"'$host_name'\"/' $var_TARGET_DIR/etc/rc.conf
	sed -i 's/^interface=/#interface=/' $var_TARGET_DIR/etc/rc.conf
        sed -i 's/^address=/#address=/' $var_TARGET_DIR/etc/rc.conf
        sed -i 's/^netmask=/#netmask=/' $var_TARGET_DIR/etc/rc.conf
        sed -i 's/^broadcast=/#broadcast=/' $var_TARGET_DIR/etc/rc.conf
        sed -i 's/^gateway=/#gateway=/' $var_TARGET_DIR/etc/rc.conf
	sed -i 's/^DAEMONS=/#DAEMONS=/' $var_TARGET_DIR/etc/rc.conf
	echo DAEMONS=\(dbus networkmanager \!network \!dhcdbd syslog\-ng \@alsa \@sshd\) >> $var_TARGET_DIR/etc/rc.conf
        #
        sed -i 's/^#en_US\.UTF.*/en_US\.UTF\-8 UTF\-8/' $var_TARGET_DIR/etc/locale.gen
        #
	###   Copy over any files/configs/... from your default 2012.05 system. See above ".iso". Un-comment below when ready.  ######
	cd /arch/configs_archbang
	cp -rv etc $var_TARGET_DIR
	cp -rv usr $var_TARGET_DIR
	cp -pv /arch/scripts/post_install_packer.bash $var_TARGET_DIR
        cp -pv /arch/scripts/pacman_key_yes  $var_TARGET_DIR
        ####################################################################################
        #
        cd ..
        sleep 1
        #
        ### Change passwd for root, Create User and change passwd for User #######################################
        echo Hostname is $host_name
	sleep 1
	echo Username is $user_name
	sleep 1
        inform "Change root password:"
        chroot /mnt passwd root
        sleep 1
        inform "Create /home/$user_name, and Change $user_name password:"
        sleep 1 
        chroot /mnt useradd -m -g users -G wheel,disk,audio,lp,network,optical,power,storage,video,log $user_name
        chroot /mnt passwd $user_name
        sleep 1
        rm -vf $var_TARGET_DIR/home/$user_name/".bash_profile"
        #################################################################
        #
        chroot /mnt locale-gen
	sleep 1
}

4a./ Post-Install Packer/AUR packages:
(pre-modify "/arch/configs_archbang/etc/rc.local", so that "/post_install_packer.bash", when initiated by "rc.local", will make for a complete automated install).
-See both example scripts below;
/arch/configs_archbang/etc/rc.local:

#!/bin/bash
# This script is "rc.local", located as "/arch/configs_archbang/etc/rc.local".
#
# /etc/rc.local: Local multi-user startup script.
#
### After "Packer/AUR" is installed , you can AND should remove all the below Lines ######
#
until [ `nm-tool|grep State|cut -f2 -d' '` == "connected" ]; do
       echo "Waiting for Networkmanager to come up before continuing with AUR" >&2
sleep 2 
done
       echo "Ok, lets install packer, and the extra AUR packages for ArchBang"
sleep 1
cd /
./post_install_packer.bash
sleep 1
#
echo
echo "... all AUR packages installed successfully..."
echo " Do NOT forget to remove/comment all these startup lines in /etc/rc.local afterwards" \!
echo
read -p "Press the [Enter] key to continue booting..."
sleep 1
### Clean everything up, and remove nm-applet Icon from system tray ###################
echo
echo "...cleaning un-needed files..."
echo
rm -vf /post_install_packer.bash
rm -vf /pacman_key_yes
rm -vf /etc/xdg/autostart/nm-applet.desktop
#
exit

4b./ Post-Install Packer/AUR packages:
/arch/scripts/post_install_packer.bash:

#!/bin/bash
# This script is "post_install_packer.bash", located as "/arch/scripts/post_install_packer.bash".
#
###################################################################
# We should NOT need to "packer/AUR" at all, for an "Initial" install, but the AB-2012 look n' feel needs it. :) #
###################################################################
#
### stupid Key initializations are req'd here (: ###
### NOTE: "haveged" will be used to quickly generate entropy for pacman-key --init, afterwhich you may Remove "haveged" ###
#############################
haveged -w 1024
pacman-key --init
pkill haveged
pacman -Rs haveged
#
### Now we populate with the new keys ###
cd /
./pacman_key_yes
sleep 1
#############################
pacman -Syyu
cd /
#
wget http://aur.archlinux.org/packages/pa/packer/packer.tar.gz
sleep 1
tar -zxvf packer.tar.gz
cd /packer
makepkg --asroot
sleep 1
pacman -U --noconfirm packer-*.pkg.tar.xz
cd /
packer -S --noconfirm --noedit packer
packer -Syyu
### Install the extra AUR packages for Archbang's look n feel ########################
packer -S --noconfirm --noedit archey fbxkb gnome-carbonate-icon-theme gsimplecal lxinput obkey openbox-menu slimlock zukitwo-themes
####################################################################################
# Notes
# ###################################################################################
# The below "AUR" packages(on the left) were replaced and/or removed in favour of  the "pacman" ones, as explained to the right of the  "->" 
# They are listed here in detail, for your convenience, in case you want to (re)install them instead. 
# 
# cairo-ubuntu -> cairo (pacman)
# dmenu-xft -> dmenu (pacman)
# fontconfig-ubuntu -> fontconfig (pacman)
# freetype2-ubuntu -> freetype2 (pacman)
# libxft-ubuntu -> libxft (pacman)
# obkey-git -> obkey (packer/AUR)
# paccheck -> (don't need it)
# tintwizard -> (don't need it)
# vcp -> (don't need it)
# xcompmgr-dana -> xcompmgr (pacman)
###########################################################
#
# For archbang enhanced Terminal colors...
ln -s /usr/bin/archey /usr/bin/archbey
### Cleaning up ###
rm -vv /packer.tar.gz
rm -rv /packer
exit

4c./ pacman_key_yes using "expect":
/arch/scripts/pacman_key_yes:

#!/usr/bin/expect
# This script is: "pacman_key_yes", located as "/arch/scripts/pacman_key_yes".
#
spawn pacman-key --populate archlinux
for {} 1 {} {
expect eof break \
{Really sign? (y/N)} { send "y\r" }
}

[MAIN]: Below, is MAIN "aif" semi-automatic installer script: "/arch/setup_archbang"
- make sure the above Steps:(1./, 2./, 3./, 4a./, 4b./, & 4c./) have been completed to your liking, prior to running this.
(Note: Previously, and for testing purposes only, I had mounted all these scripts/modifications from another external flash-usb-drive. copied them over, ie: mount /dev/sde1 /media; cd /media; cp -rp arch / , then just ran):

/arch/setup_archbang:

#!/bin/bash
# This script is: "setup_archbang", located as "/arch/setup_archbang".
### This is the MAIN aif - "/arch/setup_archbang" semi-automatic-script: #########
cp -pf /arch/aif_mods/automatic /usr/lib/aif/core/procedures/
cp -pf /arch/aif_mods/lib-ui-interactive.sh /usr/lib/aif/core/libs/
sleep 1
aif -p automatic -i dia -d -l -c /arch/scripts/archbang_netinstall.profile
sleep 1
exit

5./ (Optionally)  ... don't forget to checkout the below Post, "[FIXED]: Basic Remastering using "xorriso", if you wanna build your own "*.iso", that includes these (optional) "/arch" script directory/files, along with any of your own scripts, and any other personal modifications, content ...
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Last edited by scjet (2012-07-24 10:29:24)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#2 2012-03-22 11:12:29

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

[FIXED]: Basic Remastering using "xorriso" from mkarchiso :

Here is what I did to re-build an official "archlinux-2011.08.19-netinstall-x86_64.iso" to an unofficial "ArchBang-Netinstall" iso.
-(See the Top post "Steps" here, to pre-add/modify any static files, automated scripts. ..,and with no need to chroot, prior to doing the below).
You'll also need, (along with your own ArchBang configs') the "squashfs-tools", and "xorriso"-from AUR,  for the below:

# Example Steps: (optionally)as root for everything:
cd /
mkdir /root-image
#
mount -o loop /archlinux-2011.08.19-netinstall-x86_64.iso /mnt
cp -a /mnt /customiso
umount /mnt
cd /customiso/arch/x86_64
mv root-image.fs.sfs /root-image
cd /root-image
unsquashfs root-image.fs.sfs
mv root-image.fs.sfs root-image.fs.sfs.OLD
cd squashfs-root
mount root-image.fs /mnt
cd /mnt
# (...copy "isohdpfx.bin" over, to create the isohybrid MBR using "xorriso")
cp usr/lib/syslinux/isohdpfx.bin /tmp
#############################################################
#
# make any "static" changes you want here. ie: add your "/arch" aif directory/configs/files,.., to /mnt ...
# Be careful in here !  :)
# 
#############################################################
cd /
umount /mnt
cd /root-image
mksquashfs squashfs-root root-image.fs.sfs
mv -v root-image.fs.sfs /customiso/arch/x86_64
#
cd /customiso
xorriso -as mkisofs -o /arch-custom.iso -r -l -V "ARCH_201108" -b isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot -boot-load-size 4 -boot-info-table -isohybrid-mbr /tmp/isohdpfx.bin .
### Or
# If, for example, you want to remaster the newer "archlinux-2012.07.22_04-00-02-netinstall-x86_64.iso" image, 
# then simply change the iso-label from "ARCH_201108" to "ARCH_201207" in the above "xorriso ..." command.
######################################################################

That's it, now just burn your "/arch-custom.iso" to your favvorite media.
CD/DVD ? -yes
USB ? -yes, just "dd if=/arch-custom.iso of=/dev/sd[x]

Enjoy.
smile

BTW: The "latest" netinstall images can be found here: http://releng.archlinux.org/isos/

A lot has changed with arch netinstall's since 2011.08.19
I have tried a few of the "newer" arch-netinstall .iso's, and they seem very stable again, but with a couple major changes:
1./ - The "aif" Installer, as mentioned elsewhere, has been deprecated in favour of a more "manual" method: https://wiki.archlinux.org/index.php/Ar … ll_Scripts
2./ - As well, "Grub-Legacy" has been deprecated in favour of "Grub2".

Again, be aware that these newer releng's, are a "manual" installation method, but the "Arch Install Scripts" wki is constantly being updated, to make this transition easier.

Last edited by scjet (2012-07-26 06:08:31)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#3 2012-04-28 09:20:22

mastis
Member
From: Finland
Registered: 2011-10-02
Posts: 131

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Neat

Offline

#4 2012-07-11 08:59:56

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

NOTE !:
-If you tried the latest (Unofficial) "archbang-netinstall-*-x86_x64.iso" as mentioned in the download link above (see Post #1), and something doesn't work?,
then ALWAYS trust the scripts posted in the above Steps: "3./" "4a./b./c."

-Because those "Steps" (as mentioned above), I will try to keep up-to-date and functional, as much as possible,
and of course, you can also modify them anyway, to your liking.  wink

Last edited by scjet (2012-07-16 00:03:03)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#5 2012-07-12 10:14:33

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

https://github.com/Dieterbe/aif-configs … eter-t420s
...nuthin' to woory about here, for now, but sadly, "AIF" at present, does NOT support Grub2 in Arch, yet.
That above link is just a future mental "Aif-Configs" note to 'self, for whenever Grub2 moves to [core], and our ole' faithful "Grub Legacy" gets trashed to AUR. sad

Last edited by scjet (2012-07-16 01:42:04)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#6 2012-07-12 12:00:22

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

If I can get it working I will use syslinux


"Have done an install of archbang while on a bus"

Offline

#7 2012-07-16 01:43:37

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Some NEWS:
as far as the new Releng's go, http://releng.archlinux.org/isos/,
it looks like "AIF" has been "ditched" for now, and it'll be back to the manual "Arch Install Scripts", atleast until some "documentation" appears later.
https://bbs.archlinux.org/viewtopic.php?id=145095
http://mailman.archlinux.org/pipermail/ … 02625.html
https://bbs.archlinux.org/viewtopic.php?id=144991

Last edited by scjet (2012-07-16 01:51:06)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#8 2012-07-16 02:03:57

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

It may have something to do with testing isos rather than testing installer. With recent changes systemd and future grub changes it would have had to be rewritten.

Users now has to partition drive drive and set up filesystems, mount points and network.

pacstrap is a cool way of installing base system smile

2012_07_16_1342425728_556x459_scrot.jpg


"Have done an install of archbang while on a bus"

Offline

#9 2012-07-16 03:39:45

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Mr Green wrote:

It may have something to do with testing isos rather than testing installer. With recent changes systemd and future grub changes it would have had to be rewritten.

Users now has to partition drive drive and set up filesystems, mount points and network.

pacstrap is a cool way of installing base system smile

...actually I just installed a very simple base, base-devel using their latest archlinux-2012.07.16_04-00-01-netinstall-x86_64, and "pacstrap" worked great.
However, almost everything else will have to be done manually. sad
This is still a long way off from an "AIF", or even a "kickstart", but hopefully some nice helpful docs will popup to show automation techniques, for lazy slobs like me.
also, this might make it easier to handle grub2 ?  wink

Last edited by scjet (2012-07-16 03:46:00)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#10 2012-07-16 04:46:59

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Thinking about offering help with docs...

You could easily run up a simple script to help with networking mounting etc..

Personally think pacstrap is beautiful, you could hack it to add packages. Not to mention arch-chroot why is not part of base


"Have done an install of archbang while on a bus"

Offline

#11 2012-07-16 05:16:38

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Mr Green wrote:

...Not to mention arch-chroot why is not part of base

Actually, arch-chroot was there for me, since I needed it to chroot in /mnt, ..., but I installed both base + base-devel.
And yes, +1 if you want to help out with docs,...   smile

Last edited by scjet (2012-07-16 05:20:26)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#12 2012-07-16 05:33:21

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Well put my name in the hat, not sure if Dave will go for it.

The Arch Linux way is to keep it simple so I am all for no AIF....

That said the problem with net-installer is you do not have any real documentation or more likely no network connection.

How do you grab docs install {via pacman} if you have no way of connecting to the internet.

With the addition of a nice creamy layer you could install via {though it hurts to say it} *Ubuntu.

All the tools are there either live or installed makes no difference.

* Ubuntu reference is just used as an example


"Have done an install of archbang while on a bus"

Offline

#13 2012-07-16 08:06:00

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

I'm startin' to think they(Arch), might wanna discourage big Netinstalls 'cause it pulls several hundred Megs of latest pkgs, downloading overhead, every single time, unless you're just useing your own arch-install server, within your own internal network.
A [base] only is tolerable, but "big" automated netinstalls, involving, Xorg, kde, gnome3, ..., and many other huge apps, ..., can flood the pipes to these servers, if enough ppl use them.
Paranoia?, get to knowia
smile hehe.

Last edited by scjet (2012-07-16 08:14:29)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#14 2012-07-16 08:12:27

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Not really, as normal install disc is from november you would have to update the whole thing anyway....fix all the breakages along the way.

Base install is only ~100mb which is nothing

abinstall is going to get real borke real soon, so we will need to find a replacement.

Plenty of talk of using Python for installer scripts, nice gui anyone?


"Have done an install of archbang while on a bus"

Offline

#15 2012-07-16 08:18:55

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Exactly, thats why RedHat put so much work, and manpower into developing Kickstart/anaconda, the last time we had setup kickstart server for dozens of clients,...it was a breeze.
If ONLY Arch had an customizable installer, such as kickstart, it's comin' though in Arch.
Trouble is, Arch, by nature is a very bleeding-edge constantly "rolling"/changing distro, much moreso than the Bumtu's, redhats, CentOS, .... which makes it difficult to keeep up with the countless changes within Arch a bit. <- hence why "AIF" slowly ran into troubles, as well as lack of manpower.
my 2 cents.

Last edited by scjet (2012-07-16 08:25:25)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#16 2012-07-16 08:33:04

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

That is what github is for....

Everybody wants to install Arch, but no one wants to work on installer.


"Have done an install of archbang while on a bus"

Offline

#17 2012-07-16 09:00:54

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Mr Green wrote:

That is what github is for....

Everybody wants to install Arch, but no one wants to work on installer.

So true.

It kinda reminds of my mechanic, he never wants to really fix my car ! , actually bad comparison ('cause he gets paid by the hour),, but it came to my mind just then.
wink

Last edited by scjet (2012-07-16 09:04:05)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#18 2012-07-16 11:09:13

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

I am seriously impressed by this "Arch Installer Scripts" as mentioned also in https://bbs.archlinux.org/viewtopic.php?id=144991
...summarily, "arch-chroot", and "archlinux-keyring" (whch is pre-installed by default), opens the whole thing up nicely, especially for a Netinstall, ... , it ended up being fairly easy, clean, and very scriptable.
Obviously an interactive fdisk,..., disk(s)-partioner scheme will be req'd early on to set things up, but after that, it's a breeze.
Lol -I sound like an "Ad" now.

So, "Hats-off" to the Releng guys/gals at Arch for this one.

Last edited by scjet (2012-07-16 11:26:23)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#19 2012-07-16 12:17:32

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Mr Green wrote:

...abinstall is going to get real borke real soon, so we will need to find a replacement.
Plenty of talk of using Python for installer scripts, nice gui anyone?

Python(like kickstart)  is a long way from a fully-interactive Arch Installer, as of yet, unfortunately, but who knows?, what'll happen tommorow.
can you build/modify the (gui-interactive)parts of "abinstall" that you need around "Arch Installer Scripts" from core, or visa-verca.,,. ?
-pre-install "any" pkgs (via pacman) seems easier now with these new "Releng's". err atleast as far as I've seen, and then just "image" the whole (archbang)core, once it's ready to be all built.
-I realize this is all over-simplified, but hope it helps.

Last edited by scjet (2012-07-16 13:30:43)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#20 2012-07-16 23:22:52

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

abinstall is based on AIF, why they are [were] similar

If you know what drive/partition you want install on then cfdisk is more visual.

Possibly a bootloader script


"Have done an install of archbang while on a bus"

Offline

#21 2012-07-17 00:57:07

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Been looking at pacstrap and cannot figure it out

http://pastebin.com/PQSpc62Q

un/mangle and fstype_is_pseudofs from what I can see are not called

Plus arch-chroot has mostly the same code....


"Have done an install of archbang while on a bus"

Offline

#22 2012-07-17 06:08:09

fschiff
Member
Registered: 2011-04-04
Posts: 31

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

That isn't the version in git.  There is a common file that is included by all of the scripts, but appears to be inlined here.  That is what you are seeing as "the same code"

Offline

#23 2012-07-17 06:36:50

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Thanks for pointing out git version will check it out

https://github.com/falconindy/arch-inst … ipts/tree/

mangle is part of genfstab {common}

Still not sure why its in pacstrap

Even better it is part of extra

extra/arch-install-scripts 2-1
    Scripts to aid in installing Arch Linux

Interesting the package version does not load {common}

Would it be of any use to add it too ArchBang iso?


"Have done an install of archbang while on a bus"

Offline

#24 2012-07-17 09:41:10

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.


"Have done an install of archbang while on a bus"

Offline

#25 2012-07-17 11:01:02

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

yep, that's the link I used,
the "# pacstrap /mnt base{,-devel}" ?, didn't make syntax-sense, but a simple
"pacstrap /mnt base base-devel networkmanager" brought in grub, syslinux,... just fine.

Last edited by scjet (2012-07-17 11:01:31)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#26 2012-07-17 11:15:13

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

pacstrap /mnt base

Try this:

echo base{,-devel}

If you want to check what is in a group package use

pacman -Sg base

You can simply grep for package you are looking for

Thing is grub is part of base packages so is already loaded....


"Have done an install of archbang while on a bus"

Offline

#27 2012-07-18 08:26:22

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

@scjet you really should look at sai scripts...

https://github.com/taylorchu/sai

Very well written...


"Have done an install of archbang while on a bus"

Offline

#28 2012-07-18 23:34:15

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Mr Green wrote:

@scjet you really should look at sai scripts...

https://github.com/taylorchu/sai

Very well written...

Thanks for reminding me,
I forgot all about "sai", I did look at it back then breifly, but then I thought "AIF" was here to stay ? -at that time. -lol.
Of course these days, in "Arch time" with so many changes in Arch, that could mean anytime.

I want to see when/if Arch Installer's are going to more easily incorporate "grub2" in the near future.
  "sai" is only syslinux,
but it's still worth a look again.

Last edited by scjet (2012-07-18 23:59:47)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#29 2012-07-19 00:14:35

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

sia may only be syslinux but its loaded and you then reboot into and change to grub2 if you so wish.

sai  | ais smile

Do you want me to look at sai see I can get it working with grub2?


"Have done an install of archbang while on a bus"

Offline

#30 2012-07-19 04:56:52

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Ok so I am looking at a grub2 function for installer scripts

This is very much work in progress!!!!

root+path is /mnt  so could be changed to suit users needs, $EDITOR well not getting into that one again!... can of course flesh it out as needed....

You will of course have to load up grub2-bios package {whatever its called}

Basically raided arch wiki and added editor wrapped it up in a function()

#!/bin/bash

root_path=/mnt

grub2_install() 
{

modprobe dm_mod # load it anyway!

# /mnt ? or do we need to chroot in?
grub-install --directory=${root_path}/usr/lib/grub/i386-pc --target=i386-pc \
			 --boot-directory=${root_path}/boot --recheck --debug ${root_path}

mkdir -p ${root_path}/boot/grub/locale

# check if it is loaded on new root?
cp  ${root_path}/usr/share/locale/en@quot/LC_MESSAGES/grub.mo \
	${root_path}/boot/grub/locale/en.mo


grub-mkconfig -o ${root_path}/boot/grub/grub.cfg

# Check config!
$EDITOR ${root_path}/boot/grub/grub.cfg
}

#grub2_install

"Have done an install of archbang while on a bus"

Offline

#31 2012-07-19 07:56:56

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

@Mr. G   -well there you go, that looks promising  smile

In retrospect, I can understand somewhat why Arch has "ditched" aif, but Arch should have "ATLEAST" incorporated some kind of semi-automated-installer in their daily/test snapshots, like as you mentioned "sai", since obviously "archlinux-2011.08.09*" by now is getting very old in the tooth, with too many update/upgrade issues to install from scratch. -IMOH, especially for any "new" user ?
In fact, on the "Arch" forum, they're all running around advising everyone else to just use "Netinstall" instead ?!, ahh well.

Arch sometimes reminds me of that old saying used by some "devs" I heard of during my travels:
"Hey, Real men write their OWN drivers, ..." blah, blah, blah. <- do you remeber that one ?
wink

Last edited by scjet (2012-07-19 08:06:24)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#32 2012-07-19 09:05:49

scjet
Member
Registered: 2010-12-01
Posts: 1,405

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

regarding "sai", I wanted to take a look at the latest "Live" iso https://github.com/taylorchu/march/downloads
"march-2012.07.14-x86_64.iso"
But it just died/froze at "...Starting kdm..." ??? -and right off the bat. sad That's a show-stopper for me.

Atleast my little "updated" archbang-netinstall-2012.07.15-x86_64.iso works fine - OOB.
EDIT: oops, except for the recent fact, that now "aif" needs to be removed from the netinstall pkg list-(above post #1), AND, Syslinux is the only bootloader of choice -for now. -Lol. But other than that, it still works great, within its temporary limits.

Albeit, a "Live"/CD/DVD... is much more complicated to setup than a simpler netinstall image.

Last edited by scjet (2012-07-21 22:40:24)


The "BSD" things in life are "Free of Systemd" ! ..but who knows what could happen tomorrow ?

Offline

#33 2012-07-19 10:26:59

Mr Green
^! Developer
Registered: 2010-11-07
Posts: 5,379

Re: (Unofficial) "ArchBang-Netinstall" : "AIF" with "Syslinux" only.

Let me test 'march' out and I will get back to you [it has got massive!]

sai has got more elements, possibly blend in ais.

A modular installer is on the cards

What other elements so you need?


"Have done an install of archbang while on a bus"

Offline

Board footer

Powered by FluxBB