Post Install Scripts

I am creating an image with System Utility. One module i can add is called "Add Packages and Post-Install Scripts".
I put one of my scripts in it:
#!bin/sh
defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Hello"
But I get an error when trying to image saying "install setup failed: run postinstall script"
I know the script works because i tested it.
Any ideas?

probably not…
try using the defined installer variables instead of a specific path. there's a quick rundown here, though there's probably better documentation of it elsewhere: http://tinyurl.com/yejppmm
basically, you probably want $3:
$1: Full Path to Package
$2: Full Path to target installation directory: /Applications
$3: Mountpoint of installation disk: / or /Volumes/External_Drive
$4: Root directory of currently booted system
your script may be failing because the installer is trying to run it on the booted volume, which won't work. you want it to apply to the restored/newly installed volume.

Similar Messages

  • About post install scripts...

    hi,
    i wonder if there is a solution for the post-install script problem to prevent some commands like "rm -rf /" to be executed. I know that Gentoo hasn't got this problem because ebuild scripts use a particular language that doesn't implement a such command. But for Arch which uses bash, could this problem be really resolved ?
    Comete.

    Toth wrote:[...]
    A package is software, and you have to trust that the software you are downloading is legit. If it is, and you trust the packager, you have no reason not to trust the package.
    exactly ---> do not download from sources you dont trust
    (if you ever worked on a windows, you know that already, because there is a lot of evil things around (spyware, virus, bacteria, nice VB-scripts, nice JS-scripts ...))
    -> the problem about security: if your OS becomes popular, then the bad guys see it as enough popular to do something bad with it
    Toth wrote:I assure you, if the package maintainers ever run across a submitted package with "rm -rf /" in the post install script, they won't add it to the Arch Linux repositories. If/when you find a 3rd-party Arch package for download, that's a risk you are going to have to take. Check the scripts, check the source of the program (if you're paranoid). That's about all you can do.
    what about a check (in pacman), to give warning, that something will be done with / ... as i know, there is no line to run with / as parameter for a normal reason during an installation or upgrade
    if you download a non-archlinux.org package (downloaded from somewhere else), the install procedure is now this:
    > pacman -A bad-0.1-1.pkg.tar.gz
    loading package data... done.
    checking for conflicts... done.
    installing ... done.
    >
    the check would look like this:
    > pacman -A bad-0.1-1.pkg.tar.gz
    loading package data... done.
    checking install/upgrade scripts ...
    Warning: Found lines in Install-Script that contain / :
    line 3: do something
    line 4: cd / <---
    line 5: rm -rf *
    line 6: echo "I was a bad script"
    Continue with installation [y|N] y
    checking for conflicts... done.
    installing ... done.
    I was a bad script
    >
    this will at least give the user a chance to look at code that contain "/ " in the install/upgrade/remove-scripts and have some control
    of course this will not check the package-content :-( ... but at least you will have one leak closed particulary

  • Messed Up Post Install Scripts

    When I was completing the Oracle 11g R2 v11.2.0.3.0 install on Oracle Linux v6.2, I was told via the Oracle Universal Installer to run two scripts as root. The one I think I messed up was called root.sh and it prompted me for my 'bin' location and it had /usr/local/bin as a default value and I selected it. Sadly when the OUI finished successfully, I was unable to locate SQL*Plus because it was trying to find the app in the wrong path. Anyone know how I can correct it? Should I simply re-run the 'root.sh' script from Oracle or will that mess things up even more? I verified that SQL*Plus was in /oracle/u01/app/.../bin/
    Just need to know how to fix my error during the OUI installer so I can run the SQL*Plus command line utility.

    OrakleDBA wrote:
    Yes, sb92075 is right. When you set an envrionment variable before it is defined then the value is ambiguous. (sb92075 could have said it a little friendlier)
    I was hoping to "lead" you to the issue with my earlier post. I'm sure if you follow sb92075's recommendation you will be successful. Please let us know.So I followed sb92075's advice and moved my PATH line under ORACLE_HOME as well as move the 'PATH' entry to the end of the 'EXPORT' command:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
         . ~/.bashrc
    fi
    # User specific environment and startup programs
    ORACLE_BASE=/oracle/u01/app/oracle
    ORACLE_SID=zoo
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db1
    PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
    export ORACLE_BASE ORACLE_SID ORACLE_HOME PATHI then logged back in with the 'oracle' user and it appears to be working:
    [oracle@db1 ~]$ which sqlplus
    /oracle/u01/app/oracle/product/11.2.0/db1/bin/sqlplus
    [oracle@db1 ~]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Jun 12 11:13:59 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsJust to be clear of any doubt, is my .bash_profile correct in regards to no missing variables for Oracle Database and also is everything in the correct place? I don't have listings for:
    TNS_ADMIN
    TMP=/tmp
    TMP_DIR=$TMP
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
    Should I add the above to my .bash_profile or is this not needed. There's no mention of them during the installation documentation of Oracle. Just setting ORACLE_SID & ORACLE_BASE. They recommend I don't set ORACLE_HOME as the OUI will do so accordingly during the install or after. Just trying to understand what variables are required / needed to get a functioning Oracle 11g Database in working order.

  • Netinstall  - Add Packages and Post-Install Scripts

    I used SIU to make a netinstall image, add 3 .pkg files to install after the restore completes, and apply some system configuration settings. I have had no issues restoring the image, but none of the post restore packages run, and the ByHost preferences are not being changed to match the client after install. The order of the workflow seems to be correct, so I am at a loss as to why I am getting the error "there was no software found to install" when the restore finishes, and the post process begin. Any help is greatly appreciated.
    I have also included a link to a screen shot of my Workflow.
    http://dl.getdropbox.com/u/12985/Screenshot%202008-09-24%2010h%2052m%2012s.png

    No, the server should be fine. I was trying to make sure that you didn't simply have an old version of the tools installed on some other system.
    You might try deleting the automator action cache files (~/Library/Preferences/com.apple.automator*.plist) on the server. Other than that, I have no simple ideas.

  • SQL post-install scripts when restoring RMAN backup to a higher version

    Hi,
    If I've an RMAN backupset taken from, say an 11.2.0.3.0 DB, and I want to restore this to an 11.2.0.4.5 DB, I know I'll have to open in upgrade mode, and run the SQL components of the OJVM PSU along with the January 2015 PSU after the restore completes.
    Is there anything specific about the order of catbundle, utlrp, utli112 and OJVM postinstall scripts that need running after catproc?
    I'm guessing it needs to be:
      catproc->utli112->OJVM PSU->catbundle->utlrp
    But thought I'd check just in case there's something specific I've missed.
    Thanks,
    Phil

    For RMAN restore on higher version, you can follow below steps.
    SQL> alter database mount;
    Database altered.
    SQL>  recover database until cancel using BACKUP CONTROLFILE ;
    ----some log files will be applied here, at the end, give cancel----------------
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>  alter database open resetlogs upgrade;
    Database altered.
    ---Now perform manual upgrade steps----
    Remember, you need to run utlu112i.sql in source DB and before the upgrade. for catbundle, you can follow the readme instructions.
    Hope it helps!!!.
    Thanks,
    Abhi

  • Oracle 10.2.0.1 client install during SLES10 AutoYast post-install

    Hello all,
    I'm stumped and could use a little help. I'm attempting to use the silent install method for the 10.2.0.1 Oracle client on a SLES10 SP2 via autoyast post install scripts. The script runs just fine if I use it to install after SLES10 has been completely installed. At first I suspected and environment issue, but I've doubled checked against the env during autoyast and post install completion env. Not sure what to check next, I've tried searching for minimum environment requirements for OUI, but found nothing.
    silentInstall2010-05-01_10-00-43AM.log reports:
    ** Error Dialog: OUI-10151:There was an error while loading library: areasQueries ***
    User Selected: S&top installation of this component only.
    java.io.IOException: No such file or directory
    This silent installation was unsuccessful.
    It was "generalQueries" until I added an ldconfig command in the script thinking something was wrong with the gcc env.
    Here is the script I'm using...
    #!/bin/bash
    BASEDIR=/installsvr/repos
    TMPDIR=/tmp/oracle_install
    HASORACLE=`grep $1 /etc/passwd`
    HASOINSTALL=`grep $2 /etc/group`
    if [ -z $HASORACLE ]
    then
    echo "Could not find an $1 account!"
    exit 1
    fi
    if [ -z $HASOINSTALL ]
    then
    echo "Could not find an $2 group!"
    exit 1
    fi
    if [ ! -f $BASEDIR/$3 ]
    then
    echo "Could not find file: $BASEDIR/$3"
    exit 1
    fi
    if [ ! -f $BASEDIR/$4 ]
    then
    echo "Could not find file: $BASEDIR/$4"
    exit 1
    fi
    FILENAME=`basename $3`
    # Setup install directories
    if [ ! -d /u01/app/oracle ]
    then
    mkdir -p /u01/app/oracle
    chown -R $1.$2 /u01
    chmod -R 775 /u01
    fi
    # Copy the install source
    # to a temp dir.
    su - $1 -c "mkdir $TMPDIR;cp $BASEDIR/$3 $TMPDIR/.;cd $TMPDIR;unzip $FILENAME >/dev/null 2>&1;rm -f $FILENAME"
    # Find the location of the "runInstaller"
    # and kickoff the command
    RUNINSTALLER=`find $TMPDIR -name runInstaller | head -1`
    RUNINSTALLERDIR=`dirname $RUNINSTALLER`
    if [ ! -d $RUNINSTALLERDIR ]
    then
    echo "Could not find directory: $RUNINSTALLERDIR"
    exit 1
    fi
    # Setup ldconfig prior to install run
    ldconfig
    su - $1 -c "TERM=xterm;cd $RUNINSTALLERDIR;./runInstaller -ignoreSysPrereqs -silent -responseFile $BASEDIR/$4"
    # Run a loop and wait for the
    # installer process to finish
    PROC=`ps -ef | grep "\-ignoreSysPrereqs \-silent \-responseFile" | awk '{print $2}'`
    while [ ! -z $PROC ]
    do
    echo "...waiting for oracle installer to finish..."
    sleep 5
    PROC=`ps -ef | grep "\-ignoreSysPrereqs \-silent \-responseFile" | awk '{print $2}'`
    done
    # Grace Period
    sleep 5
    # Cleanup
    rm -rf $TMPDIR
    # Finish
    echo "...running orainstRoot.sh"
    /u01/app/oracle/oraInventory/orainstRoot.sh
    echo "...running root.sh"
    echo "" | /u01/app/oracle/product/10.2.0/client/root.sh
    Thanks in advance,
    Chris

    Found the issue...it was in the script. Evidently, the process checker only worked after the OS install had completed and the script was run manually. I changed that section to...
    PROC=`ps -ef | grep ^$1 | tail -1 | awk '{print $2}'`
    while [ ! -z "$PROC" ]
    do
    echo "-- installOracle.sh: waiting for oracle installer to finish --"
    sleep 5
    PROC=`ps -ef | grep ^$1 | tail -1 | awk '{print $2}'`
    done
    ...and all is well.
    - Chris

  • Problem during 11.1.0.7 clusteware upgrade when runnng post upgrade script

    Hello,
    I have encountered a problem whilst upgrading a 3 node RAC cluster to 11.1.0.7 patchset as follows :-
    I ran OUI against the CRS_HOME to upgrade to the 11.1.0.7 patchset. The upgrade completed successfully across all nodes.
    OUI then prompted to run the post install script (_root111.sh)_ as root user on each of the 3 nodes in the cluster, so I did the following (in SERIAL order as recommended):-
    NODE1 - ran crsctl stop crs
    ran root111.sh script
    Both the above actions completed on NODE1 with no problems
    NODE2 ran crsctl stop crs
    ran root111.sh script
    'Text file busy' error received on several files during execution of root111.sh script on NODE2 (This may have been due to the fact that CRS processes had not fully stopped when I invoked the script). The result was that the script did not complete successfully (linking , etc) and CRS did not start up afterwards.
    NODE1 - ran crsctl stop crs
    ran root111.sh script
    Both the above actions completed on NODE3 with no problems
    The result of all the above is that clusterware on NODE2 is in an inconsistent state and CSS and its dependent processes cannot start . What I need to know is how the best way to get out of this situation and complete the upgrade to 11.1.0.7 on all 3 nodes of the cluster. Can I somehow deinstall clusterware on Node2 and reinstall it again independently of Nodes1 and 3 ???
    Any help or advice would be greatly appreciated !
    Thanks,
    Shaun

    Hello ShaunH,
    Take a look on Metalink note 754095.1 This note may helps u.
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • MDT Database Variables post-install

    Is the information in the MDT database available to a post-install script? I need to run a Lenovo utility to set the asset tag on the PC. I would like to pre-populate the MDT database with the serial number (which is what I'll use to match the unique PC).
    I've found scripts online to get the information into the database, but I want to be able to do something like wflash2.exe /tag:%ASSET-TAG-VARIABLE-FROM-MDT-DATABSE%.

    I'm not sure the SID fits on a label that also says "Property of XXXX".  ;-)  Plus, SIDs can change. They are less concerned about theft, though, than people trying to claim PCs were a part of certain budgets. They'll dig up any old thing
    and say they're due a replacement. Not if it doesn't have that sticker, they don't. Anyway...
    *sigh*
    <![LOG[Property AssetTag is now = AssetTag]LOG]!><time="17:34:42.000+000" date="08-12-2014" component="ZTIGather" context="" type="1" thread="" file="ZTIGather"><![LOG[Added new custom property ASSETTAG]LOG]!><time="17:34:45.000+000" date="08-12-2014" component="ZTIGather" context="" type="1" thread="" file="ZTIGather"><![LOG[About to issue SQL statement: SELECT * FROM ComputerIdentity WHERE UUID = '5728E710-D46F-11E3-A8BB-9B8055071B00' OR ASSETTAG = 'AssetTag' OR SERIALNUMBER = 'MJ00SYWY' OR MACADDRESS IN ('44:39:C4:3B:96:48')]LOG]!><time="17:34:45.000+000" date="08-12-2014" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
    It is currently set to AssetTag from experimenting with different formats of the variable to get the expected value to drop.
    <![LOG[Value for ASSETTAG is already set to AssetTag so database value of 333 will be ignored.]LOG]!><time="17:34:49.000+000" date="08-12-2014" component="ZTIGather" context="" type="1" thread="" file="ZTIGather">
    So because there is an AssetTag variable pulled by ZTIGather, it uses that information instead of the information I specified in the database?
    I tried using the CustomAssetTag field instead of AssetTag. BDD.log's last mention of CustomAssetTag is where is it setting it to the correct value...  yet the script seems to ignore it.
    Since it takes forever for this task to run, I'll post the information I have and try again, but putting a set in the script so that I see the variables before it tries doing anything.

  • [SOLVED] Pass Environment variables from PKGBUILD to .INSTALL script

    Hi everyone,
                       I am trying to modify the grub2-efi-bzr (http://aur.archlinux.org/packages.php?ID=38369) package making some changes in the PKGBUILD and the post-install script. I want to pass few environment variables from the PKGBUILD to the install script. How do I do that?
    Some code from the PKGBUILD
    _bzrtrunk="lp:grub/grub2" # GRUB2 BZR Main Trunk
    # _bzrtrunk="lp:~skodabenz/grub/grub2-bzr-exp" # GRUB2 BZR Experimental Branch
    _bzrmod="grub2"
    if [ ${_bzrtrunk} = "lp:~skodabenz/grub/grub2-bzr-exp" ]
    then
    _bzrmod="grub2_exp"
    pkgver="exp_${pkgver}"
    fi
    # grub-extras bzr repo locations
    _bzrtrunk_zfs="lp:~skodabenz/grub/grub2-extras-zfs"
    _bzrtrunk_lua="lp:~skodabenz/grub/grub2-extras-lua"
    if [ "$CARCH" = 'i686' ]
    then
    _EFI_ARCH=i386
    elif [ "$CARCH" = 'x86_64' ]
    then
    _EFI_ARCH=x86_64
    fi
    # _EFI_ARCH=x86_64 # Uncomment if you want to override the if condition for _EFI_ARCH above, incase the EFI ARCH does not match the Linux Kernel ARCH.
    # $CARCH=x86_64 and _EFI_ARCH=i386 requires gcc-multilib with lib32-glibc installed in the system.
    # I do not know about $CARCH=i686 and _EFI_ARCH=x86_64
    if [ ${_EFI_ARCH} = "i386" ]
    then
    pkgver="${pkgver}_x86"
    _trns_name="grub2_efi_x86"
    elif [ ${_EFI_ARCH} = "x86_64" ]
    then
    pkgver="${pkgver}_x64"
    _trns_name="grub2_efi_x64"
    fi
    Now the post-install script needs the values of _EFI_ARCH and _trns_name env variables. I do not want to copy the if statements to that script as these are decided at compile time but needed while setting up grub2-efi. This is due to the fact that EFI-ARCH need not match the Linux Kernel ARCH. How do I do that.
    Code from the post-install script
    ${_trns_name}-install --root-directory=/ --no-floppy --recheck --debug
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/lua.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfs.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfsinfo.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/unifont.pf2 /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/ascii.pf2 /boot/${_trns_name}/
    ${_trns_name}-mkimage --verbose --directory=/usr/lib/${_trns_name}/${_EFI_ARCH}-efi --prefix="" --output=/boot/${_trns_name}/grub2.efi --format=${_EFI_ARCH}-efi ${_EFI_APP_MODULES}
    Thank in advance.
    Last edited by skodabenz (2010-07-27 15:46:40)

    falconindy wrote:
    Don't rely on %foo% existing -- it won't after the first build and this will prevent the PKGBUILD from being reentrant. I would use something like this (untested):
    sed -i "s|^\(_EFI_ARCH\)=.*|\1=${_EFI_ARCH}|; \
    s|^\(_trns_name\)=.*|\1=${_trns_name}|; \
    s|^\(export _EFI_APP_MODULES\)=.*|\1=${_EFI_APP_MODULES}|" \
    ${startdir}/grub2-efi-bzr.install
    Your code works except for 1 problem in the install script I want
    export __EFI_APP_MODULES="${_EFI_APP_MODULES}" (the passed ${_EFI_APP_MODULES} value should again come inside double quotes).
    right now
    export _EFI_APP_MODULES=ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm
    which is equivalent to
    export _EFI_APP_MODULES=ata
    I want
    export _EFI_APP_MODULES="ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm"
    How to do it with sed since sed already uses double quotes?

  • "Arch By Hand" UEFI GPT SSD LUKS Install Script

    Arch UEFI GPT LUKS (and non LUKS version) Automated Install Example Script, SSD friendly
    Please note that if you're going to use this you're going to have to a) customize it to fit your needs and b) know what system config you need to do post install (rc.* etc). It's a jumping off point.
    Want to put in a lot of effort just to get Arch Linux listed in your "bios" startup options? You're in the right post! Well, it's more than just that, of course. If you have an EFI machine, increasingly common, this might be of interest.
    I got this working on my x220 tablet and thought I'd post it here. I imagine that as Archboot and the official installer rev we'll see them support this kind of thing as well, so BBS seemed like a good place to post it, but if there is an appropriate wiki location I could add it there as well.
    This is pretty bare bones (otherwise you'd be using AIF or Archboot, natch) and should be customized for your own install purposes. Nonetheless, I suspect others may have been banging their heads on the low overhang of UEFI/GPT install and hope this helps them get up and running.
    This is pretty much all in the wiki and BBS in various places, particularly the GRUB2 wiki entry. However the GPT partitioning (and learning more of sgdisk) were challenging enough that I felt it would be useful for others to see a working script.
    I used the current-as-of-this-post Archboot iso (archlinux-2011.10-1-archboot.iso).
    Don't just dd the archlinux iso to a usb. Format the USB stick as an MBR FAT drive and dump the entire Archboot ISO contents to it. To be honest, I did this in an Ubuntu vmware image I had on my mac, though I'd like to include command line options for doing this. TODO!
    I also stuck the script (included herein) on the drive, but you could get it on the installation image at install time as well via scp or whatever you prefer.
    On my x220 I then set the UEFI "BIOS" (the UEFI setup) to boot *ONLY* from UEFI. Pretty important. You should probably also stack your USB drive to top of your startup list or manually select it at boot time.
    Boot from the USB stick. For my x220 I selected the second of the four efi grub options, x86_64.
    Once Archboot is up, immediately leave the installer (option 8)
    You may want to mount the usb drive to /src if you stuck this script on it. Archboot in UEFI mode doesn't seem to mount the usb drive properly (and the normal Archboot efi install will fail as well due to this). I think this is getting fixed in the next Archboot release, from what I've read on BBS.
    # mount /dev/sdb1 /src
    Run the script. For me this is
    # /src/myarch.sh
    (WARNING: will nuke everything on /dev/sda unless you've changed it).
    There are probably things that could be done better/cleaner, feel free to point those out. This is really just a jumping off point.
    UPDATE 15 NOV 2011: This now sources most packages locally to avoid kernel mismatch between install medium and install target.
    UPDATE 16 NOV 2011: Script now unified the boot and efi partitions.
    UPDATE 17 NOV 2011: Migrated code to github, including two versions (non-encrypted and LUKS-encrypted)
    UPDATE 18 NOV 2011: Added encrypted swap
    UPDATE 18 NOV 2011: Changed /boot/efi/grub to /boot/grub; removed extraneous /boot/efi directory entirely.
    UPDATE 19 NOV 2011: Added a post-install script to handle user setup, etc. No reboot required.
    UPDATE 20 NOV 2011: Post install section more complete, visudo automation added.
    See code at: https://github.com/altercation/arch-by-hand
    Last edited by altercation (2011-11-20 21:09:33)

    I've come up with this script (although it's not quite right either):
    #!/bin/bash
    # prereqs:
    # mount /dev/sdb1 /src
    set -o nounset
    #set -o errexit
    INSTALL_TARGET="/mnt"
    HR="--------------------------------------------------------------------------------"
    # Initialize
    # Warn
    timer=9
    echo -n "This procedure will completely format /dev/sda. Please cancel with ctrl-c to cancel within $timer seconds..."
    while [[ $timer -gt 0 ]]
    do
    sleep 1
    let timer-=1
    echo -en "$timer seconds..."
    done
    echo "Starting"
    # Configure_Host
    echo -e "\nFormatting disk...\n$HR"
    # disk prep
    sgdisk -Z /dev/sda # zap all on disk
    sgdisk -a 2048 -o /dev/sda # new gpt disk 2048 alignment
    # create partitions
    sgdisk -n 1:0:+250M /dev/sda # partition 1 (UEFI BOOT), default start block, 250MB
    sgdisk -n 2:0:+2G /dev/sda # partition 2 (SWAP), default start block, 2G
    sgdisk -n 3:0:+100M /dev/sda # partition3, (BOOT), boot partition
    sgdisk -n 4:0:+10G /dev/sda # partition 4, (ARCH), default start, remaining space
    sgdisk -n 5:0:0 /dev/sda # partition 5, (HOME)
    # set partition types
    sgdisk -t 1:ef00 /dev/sda
    sgdisk -t 2:8200 /dev/sda
    sgdisk -t 3:8300 /dev/sda
    sgdisk -t 4:8300 /dev/sda
    sgdisk -t 5:8300 /dev/sda
    # label partitions
    sgdisk -c 1:"UEFI BOOT" /dev/sda
    sgdisk -c 2:"SWAP" /dev/sda
    sgdisk -c 3:"BOOT" /dev/sda
    sgdisk -c 4:"ARCH" /dev/sda
    sgdisk -c 5:"HOME" /dev/sda
    # make filesystems
    echo -e "\nCreating Filesystems...\n$HR"
    mkfs.vfat /dev/sda1
    mkswap /dev/sda2
    mkfs.ext2 /dev/sda3
    mkfs.ext4 /dev/sda4
    mkfs.ext4 /dev/sda5
    # Run /arch/setup
    echo -n "Don't select Grub as your bootloader and exit setup before the Install Bootloader step"
    /arch/setup
    # unmount filesytems
    umount /dev/sda1
    swapoff /dev/sda2
    umount /dev/sda3
    umount /dev/sda5
    # Get Network
    echo -n "Waiting for network address.."
    #dhclient eth0
    dhcpcd -p eth0
    echo -n "Network address acquired."
    # Update Pacman
    echo -e "\nUpdating pacman...\n$HR"
    sed -i "s/^#S/S/" /etc/pacman.d/mirrorlist
    pacman --noconfirm -Sy
    pacman --noconfirm --needed -S pacman
    pacman --noconfirm -S gptfdisk btrfs-progs-unstable
    # Prepare to chroot to target
    mv ${INSTALL_TARGET}/etc/resolv.conf ${INSTALL_TARGET}/etc/resolv.conf.orig
    cp /etc/resolv.conf ${INSTALL_TARGET}/etc/resolv.conf
    sed -i "s/^#S/S/" ${INSTALL_TARGET}/etc/pacman.d/mirrorlist
    mount -t proc proc ${INSTALL_TARGET}/proc
    mount -t sysfs sys ${INSTALL_TARGET}/sys
    mount -o bind /dev ${INSTALL_TARGET}/dev
    echo -e "${HR}\nINSTALL BASE COMPLETE\n${HR}"
    # Write Files
    # install_efi (to be run *after* chroot /install)
    touch ${INSTALL_TARGET}/install_efi
    chmod a+x ${INSTALL_TARGET}/install_efi
    cat > ${INSTALL_TARGET}/install_efi <<EFIEOF
    mount /boot
    mount /boot/efi
    modprobe efivars
    modprobe dm-mod
    pacman --noconfirm -Sy
    pacman --noconfirm --needed -S pacman
    pacman --noconfirm -R grub
    pacman --noconfirm -S grub2-efi-i386
    grub_efi_i386-install --root-directory=/boot/efi --boot-directory=/boot/efi/efi --bootloader-id=grub --no-floppy --recheck
    efibootmgr --create --gpt --disk /dev/sda --part 1 --write-signature --label "ARCH LINUX" --loader "\\EFI\\grub\\grub.efi"
    grub-mkconfig -o /boot/efi/efi/grub/grub.cfg
    exit
    EFIEOF
    # Install EFI
    chroot /install /install_efi
    rm /install/install_efi

  • Question on CAPolicy.inf file and post-installation script

    I'm preparing a small PKI implementation with a single Enterprise Root CA on Windows 2008 R2 Enterprise.
    The primary role of this CA is to provide certificates for about 20 laptops that will use the certificates for authentication to a wireless network.
    I have prepared a CAPolicy.inf file and a post installation script (below).
    Renewal period for the root cert should be 10 years, CRL publication every 2 days with Delta publication every 12 hours (details in scripts below).
    I want to make sure the AIA and CRL url commands are correct.
    Does this look correct?
    AIA
    1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt
    This should publish the CA certificate to the local file system "certenroll".
    2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11
    This places the LDAP url in the AIA extension of issued certs.
    I am not planning to use HTTP, hence its absence.
    CRL
    1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl
    This publishes the CRL to the local file system ("certenroll" subfolder).
    10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10
    Indicates CDP in AD DS and includes CDP url in issued certificates.
    Complete scripts
    1. CAPolicy.inf - %windir%
    [Version]
    Signature= "$Windows NT$"
    [certsrv_server]
    renewalkeylength=2048
    RenewalValidityPeriodUnits=10
    RenewalValidityPeriod=years
    CRLPeriod = days
    CRLPeriodUnits = 2
    CRLDeltaPeriod = hours
    CRLDeltaPeriodUnits = 12
    LoadDefaultTemplates=0
    2. Install Role
    Follow steps in GUI here
    3. Run post-install script
    certutil -setreg CA\DSConfigDN CN=Configuration,DC=mydomain,DC=local
    certutil -setreg CA\CRLPeriodUnits 2
    certutil -setreg CA\CRLPeriod "days"
    certutil -setreg CA\CRLDeltaPeriodUnits 12
    certutil -setreg CA\CRLDeltaPeriod "hours"
    certutil -setreg CA\ValidityPeriodUnits 10
    certutil -setreg CA\ValidityPeriod "Years"
    certutil –setreg CA\CACertPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt\n2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11"
    certutil –setreg CA\CRLPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl\n10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10"
    certutil -setreg CA\csp\DiscreteSignatureAlgorithm 1
    certutil -setreg CA\AuditFilter 127
    net stop certsvc & net start certsvc
    certutil -crl
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

    A couple of things (just a quick glance)
    1) CAPolicy.inf
    Everything looks fine in this file. You will have a 2 day base crl and 12 hour delta CRLs. No default templates are loaded, so you must manually designate all published certificates
    2) Post install Script
    a. Best practices are to use HTTP only, not to use LDAP, so your whole design does not follow best practices. Furthermore, if you issue a certificate to a single, non-domain joined machine, they will be unable to evaluate your certificates. If you decide
    to do VPN (or use an internal SSL cert on an externally accessible Web server), revocation checking will fail because you do not publish AD to the external world
    b. Will you be issuing 10 year certificates from the CA. These lines:
    certutil -setreg CA\ValidityPeriodUnits 10
    certutil -setreg CA\ValidityPeriod "Years"
    define the maximum validity period of certs issued *by* the CA. For example, if a certificate template states 4 years, then a four year will be issued (less than 10 years). If a template state 12 years, then the max age will be 10 years. Think of it as a
    governor.
    c.CACertPublicationURLs . This should include an HTTP URL, and if you want to still include LDAP, HTTP should be prior to the LDAP URL.
    d. CRLPublicationURLs. This should include an HTTP URL. If you want to still include LDAP, HTTP should be prior to the LDAP URL. Your checkbox value for the LDAP URL is incorrect as well. For a CA that issues both base and delta CRLs, you must have a value
    of 79 (all check boxes enabled). Your current configuration would fail for revocation checking because you do not publish the base or delta CRL to AD. There is another check box missing (I believe the one to include the URL in the base CRL's freshest CRL extension
    (how to find the delta CRL).
    e. Do not include the DiscreteSignatureAlgorithm line in the script. If you have any Windows XP clients, they will not be able to use the certs (BTW, this should have been AlternateSignatureAlgorithm in my book - where you sourced your scripts). This would
    only be used on a CA where you used something like Elliptical Curve as the assymetric algorithm and SHA384 as the signature algorithm).
    f. The restart line should be net stop certsvc && net start certsvc. The double && ensures that the service comes to a complete stop before the start command is executed.
    HTH,
    Brian

  • My post installation script

    #I hope its the right forum to post that in, if not im very sorry!
    This here is a script i wrote to automate all the stuff i do after installing arch, i have several computers and it has options for a additional one
    Some important points:
    1) this script is very specific, its made for my computer and my needs, this means that its useful right now only to people who know bash
    and will find use in altering it to their own needs, also if someone wants he can make it more general for a wider use
    2) this is one of the first scripts i wrote, it may be that it doesn't implent some of its features in the best way possible
    3) use it at your own risk, if it breaks your system don't blame me please, you should check it before you use it, anyway its meant to be used
    on a FRESH arch install, not on a working system.
    What the correct script actually does:
    The script as stated in the comments does the next things:
    1) First of all it consists of several files, one the "install" file is the actual script, the others are just meant to run the script and split its output to
    show both on the terminal and in a file named: /var/log/MySysInstall.log, here is an example of main.install:
    #!/bin/bash
    ./install Main | tee /var/log/MySysInstall.log
    in the current script Main in the last row can be replaces with Laptop, Game for computer specific arguments or without argumets for a general install
    the two files should be in the same folder, i think it could have been implented with one file but im new to scripting..
    2) The script will ask some general questions to make sure everything is currect, some of the questions and checks in the script are not relevant at all
    to anybody other than myself, they usually make sure that i have a samba shared partition running (it could lose connection on wireless).
    3) Adds the archlinux.fr repo, it will be used for yaourt.
    4) The script installs lots of stuff, at first general stuff used by all computers in my house, then stuff based on the argument given in 1)
    please inspect the packages and change according to your needs
    5) The script nano's to /etc/yaourtrc
    6) Adds users to the system, change to your users.
    7) It creates my /home/samba share dir if its not created (probably irrelevant to you)
    8) Configures sudo in a nasty way that maybe can damage the sudoers file, delete this line if you dodnt know sudo well enough.
    9) Edits samba if needed, this is the first line in the script that relies on additional files i have on my comp or the samba share (main and game are the same
    comp (dual boot of arch32 and 64) and they are the hosts of /home/samba all the other computers will mount it from them, this is why a samba check is not
    present here.).
    10) Adds some commented lines to fstab and nano's it for easier configurations, this is the regular workflow in the script BTW (adding comments to the file
    before editing it)
    11) Helps edit the gpm daemon
    12) Helps to configure alsa
    13) Helps to configure xorg
    14) Does some post install copies of files AND creates a file in my main users home with further instructions, mostly for stuff that needs to be done with xorg runnig
    or stuff i was to lasy to add to the script
    15) chowns and sets my regular permissions for user folders
    16) ends the script
    The script itself, ENJOY:
    #!/bin/bash
    # Copyright 2008 Leon Vayman
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # any later version.
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    # A copy of the GNU General Public License is found in
    # <http://www.gnu.org/licenses/>.
    #Check that the user updated the kernel and restarted before proceeding
    while [ 1 ] ; do
    echo ; clear
    echo -n "Have you already used pacman -Syu and Restarted? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    echo "Then do it now.."
    exit
    esac
    done
    #Check if samba is accesible and warn the user if its not (offering to quit)
    if [ ! -e /home/samba/Config/ ] ; then
    while [ 1 ] ; do
    echo ; clear
    echo -n "Samba is not accesible, do you want to proceed? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    exit
    esac
    done
    fi
    #Make sure the app wasnt ran accidently with wrong arguments
    while [ 1 ] ; do
    echo ; clear
    echo -n "The comp you are on is $1 is that correct? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    exit
    esac
    done
    #Edit /etc/pacman.conf
    echo ; clear
    echo >> /etc/pacman.conf
    echo "[archlinuxfr]" >> /etc/pacman.conf
    if [ "$1" = "Game" ] ; then
    echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf
    else
    echo "Server = http://repo.archlinux.fr/i686" >> /etc/pacman.conf
    fi
    echo -n "Make sure the right archlinux.fr repo was added "
    read n1
    nano /etc/pacman.conf
    echo ; clear
    #Install all packages
    echo "Installing packages"
    pacman -Syu
    pacman -S yaourt
    pacman -S xorg
    pacman -S gstreamer0.10-plugins
    yaourt -S abiword alsa-lib alsa-utils alsa-oss bash-completion cabextract centerim conky exaile hal epdfview feh freetype2 gamin gconf-editor geany gksu gmrun gnome-icon-theme gpicview \
    gtk-engines zip irssi jre links-g libdvdcss tcl lxappearance lxpanel lxde-common lxrandr lxtask mesa moc mousepad mplayer-plugin numlockx openbox obconf obmenu openbox-themes \
    p7zip pcmanfm pidgin pm-utils powertop screen terminal ttf-bitstream-vera ttf-dejavu ttf-freefont ttf-ms-fonts unace unrar unzip xarchiver xchat xmahjongg
    yaourt -S stjerm
    case "$1" in
    "Laptop")
    yaourt -S vlc keytouch keytouch-editor xf86-video-i810 synaptics cpufrequtils flashplugin
    yaourt -S swiftweasel-pentium-3
    yaourt -S wpa_supplicant-beta
    yaourt -S xcompmgr-git
    "Main")
    yaourt -S flashplugin cpufrequtils epiphany catalyst deluge amule xmoto abs samba
    yaourt -S icecat
    yaourt -S xcompmgr-git
    yaourt -S ekiga3
    yaourt -S ov51x-jpeg
    yaourt -S vlc-branch
    yaourt -S brasero-no-gnome
    "Game")
    yaourt -S epiphany catalyst deluge amule xmoto abs samba ##!! add gnash or swfdec
    yaourt -S icecat
    yaourt -S ekiga3
    yaourt -S ov51x-jpeg
    yaourt -S vlc-branch
    yaourt -S brasero-no-gnome
    echo -n "No extra packages installed "
    esac
    echo -n "Press Enter to continue "
    read n1
    echo ; clear
    #Configure yaourt.rc
    echo -n "Replace the editor in yaourtrc "
    read n1
    nano /etc/yaourtrc
    echo ; clear
    #Add users
    echo "Adding User vleon"
    useradd -d /home/vleon -g users -G disk,wheel,games,video,audio,optical,storage,power,dbus,hal,avahi,log -m vleon
    echo "Set vleon's password"
    passwd vleon
    echo ; clear
    echo "Adding User masha"
    useradd -d /home/masha -g users -G disk,wheel,games,video,audio,optical,storage,power,dbus,hal,avahi,log -m masha
    echo "Set masha's password"
    passwd masha
    echo ; clear
    #If for some reason samba dir doesnt exist, create it
    if [ ! -e /home/samba ] ; then
    mkdir /home/samba
    chown vleon:users /home/samba
    chmod 770 /home/samba
    fi
    #Configure visudo
    echo -n "uncomment wheel in visudo and make sure the added lines are correct "
    read n1
    echo "#%power ALL=(ALL) NOPASSWD: /usr/sbin/pm-hibernate" >> /etc/sudoers
    echo "#%power ALL=(ALL) NOPASSWD: /sbin/shutdown" >> /etc/sudoers
    visudo
    echo ; clear
    #Edit samba if needed
    if ( [ "$1" = "Main" ] || [ "$1" = "Game" ] ) ; then
    echo -n "Edit swat "
    read n1
    cp /home/samba/Config/etc/xinetd.d/swat /etc/xinetd.d/swat
    nano /etc/xinetd.d/swat
    echo ; clear
    echo -n "Edit Hosts "
    read n1
    cp /home/samba/Config/etc/hosts.allow /etc/hosts.allow
    nano /etc/hosts.allow
    echo ; clear
    echo -n "Edit smb.conf "
    read n1
    cp /home/samba/Config/etc/samba/smb.conf /etc/samba/smb.conf
    nano /etc/samba/smb.conf
    echo ; clear
    echo "Set vleon's samba password"
    smbpasswd -a vleon
    echo ; clear
    echo -n "Add samba and xinetd daemon to rc.conf "
    read n1
    nano /etc/rc.conf
    echo ; clear
    fi
    #Edit fstab
    echo -n "Edit fstab "
    read n1
    echo >> /etc/fstab
    if [ "$1" != "Laptop" ] ; then
    echo "#UUID=92D8DA69D8DA4ADD /mnt/windows ntfs-3g defaults,noatime 0 0" >> /etc/fstab
    if ( [ "$1" != "Main" ] && [ "$1" != "Game" ] ) ; then
    echo "#UUID=0E15-1D06 /mnt/windows vfat defaults,noatime,umask=0000 0 0" >> /etc/fstab
    echo "#//192.168.1.100/samba /home/samba cifs defaults,noatime,noauto,user=vleon%pass 0 0" >> /etc/fstab
    echo "##change the above password!!" >> /etc/fstab
    fi
    nano /etc/fstab
    echo ; clear
    else
    echo "#UUID=0E15-1D06 /mnt/windows vfat defaults,noatime,umask=0000 0 0" >> /etc/fstab
    echo "#//192.168.1.100/samba /home/samba cifs defaults,noatime,noauto,user=vleon%pass 0 0" >> /etc/fstab
    echo "##change the above password!!" >> /etc/fstab
    nano /etc/fstab
    echo ; clear
    fi
    #Edit gpm
    echo -n "Edit gpm "
    read n1
    echo "#GPM_ARGS=\"-m /dev/input/mice -t imps2\"" >> /etc/conf.d/gpm
    nano /etc/conf.d/gpm
    echo ; clear
    echo -n "Add gpm daemon to rc.conf "
    read n1
    nano /etc/rc.conf
    echo ; clear
    #Configure alsa
    Alsa Config
    test=1
    echo -n "Edit alsamixer "
    read n1
    while [ "$test" = 1 ] ; do
    alsamixer -V all
    echo "Testing Sound"
    aplay /usr/share/sounds/alsa/Noise.wav
    while [ 1 ] ; do
    echo ; clear
    echo -n "Did You Hear Any Sound? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    test=0
    break
    [Nn])
    break
    esac
    done
    done
    alsactl store
    echo -n "Add alsa to daemons "
    read n1
    nano /etc/rc.conf
    echo ; clear
    #Configure Xorg
    if [ -e /home/samba/Config/etc/X11/ ] ; then
    echo -n "Edit xorg.conf "
    read n1
    if ( [ "$1" = "Laptop" ] ) ; then
    cp /home/samba/Config/etc/X11/laptop.xorg.conf /etc/X11/xorg.conf
    else
    cp /home/samba/Config/etc/X11/main.xorg.conf /etc/X11/xorg.conf
    fi
    nano /etc/X11/xorg.conf
    echo ; clear
    echo -n "add \"ru\" to xorg.conf.mom "
    read n1
    cp etc/X11/xorg.conf etc/X11/xorg.conf.mom
    nano /etc/X11/xorg.conf.mom
    echo ; clear
    else
    echo -n "No samba connection found, manually editing xorg.conf "
    read n1
    X -configure
    mv /root/xorg.conf.new /etc/X11/xorg.conf
    echo >> /etc/X11/xorg.conf
    echo "# Option \"XkbLayout\" \"us,il\"" >> /etc/X11/xorg.conf
    echo "# Option \"XkbOptions\" \"grp:alt_shift_toggle,grp_led:scroll\"" >> /etc/X11/xorg.conf
    echo "# DefaultDepth 24" >> /etc/X11/xorg.conf
    echo "# Modes \"1680x1050\" \"1280x1024\" \"1024x768\" \"800x600\"" >> /etc/X11/xorg.conf
    if [ "$1" = "Laptop" ] ; then
    echo >> /etc/X11/xorg.conf
    echo "#Section \"InputDevice\"" >> /etc/X11/xorg.conf
    echo "# Identifier \"Touchpad\"" >> /etc/X11/xorg.conf
    echo "# Driver \"synaptics\"" >> /etc/X11/xorg.conf
    echo "# Option \"Device\" \"/dev/input/mouse0\"" >> /etc/X11/xorg.conf
    echo "# Option \"Protocol\" \"auto-dev\"" >> /etc/X11/xorg.conf
    echo "# Option \"LeftEdge\" \"1700\"" >> /etc/X11/xorg.conf
    echo "# Option \"RightEdge\" \"5300\"" >> /etc/X11/xorg.conf
    echo "# Option \"TopEdge\" \"1700\"" >> /etc/X11/xorg.conf
    echo "# Option \"BottomEdge\" \"4200\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerLow\" \"25\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerHigh\" \"30\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerPress\" \"100\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxTapTime\" \"180\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxTapMove\" \"220\"" >> /etc/X11/xorg.conf
    echo "# Option \"VertScrollDelta\" \"100\"" >> /etc/X11/xorg.conf
    echo "# Option \"MinSpeed\" \"0.06\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxSpeed\" \"0.12\"" >> /etc/X11/xorg.conf
    echo "# Option \"AccelFactor\" \"0.0010\"" >> /etc/X11/xorg.conf
    echo "# Option \"SHMConfig\" \"on\"" >> /etc/X11/xorg.conf
    echo "#EndSection" >> /etc/X11/xorg.conf
    fi
    echo -n "Edit xorg.conf "
    read n1
    nano /etc/X11/xorg.conf
    echo ; clear
    echo -n "add \"ru\" to xorg.conf.mom "
    read n1
    cp etc/X11/xorg.conf etc/X11/xorg.conf.mom
    nano /etc/X11/xorg.conf.mom
    echo ; clear
    fi
    #Start the post install document and copy files to homes if able and need to
    echo "Post Installation Instructions" > /home/vleon/PostInstall.txt
    echo "------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "Usage: Follow the instructions and delete the lines that are not relevant anymore. you can delete" >> /home/vleon/PostInstall.txt
    echo " this file after you finished." >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    if [ ! -e /home/vleon/.config] ; then
    if [ -e /home/samba/Config/ ] ; then
    cp /home/samba/Config/.bash_profile /home/vleon/ ; cp /home/samba/Config/.bash_profile /home/masha/
    cp /home/samba/Config/.bashrc /home/vleon/ ; cp /home/samba/Config/.bashrc /home/masha/
    cp /home/samba/Config/.xinitrc /home/vleon/ ; cp /home/samba/Config/.xinitrc /home/masha/
    cp /home/samba/Config/.xserverrc /home/masha/
    mkdir -p /home/vleon/.config/openbox ; mkdir -p /home/masha/.config/openbox
    cp /home/samba/Config/.config/openbox/rc.xml /home/vleon/.config/openbox/ ; cp /home/samba/Config/.config/openbox/rc.xml /home/masha/.config/openbox/
    if [ "$1" = "Laptop" ] ; then
    cp /home/samba/Config/.conkyrc.laptop /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.laptop /home/masha/.conkyrc
    cp /home/samba/Config/.Xdefaults.laptop /home/vleon/.Xdefaults ; cp /home/samba/Config/.Xdefaults.laptop /home/masha/.Xdefaults
    cp /home/samba/Config/.config/openbox/menu.xml.laptop /home/vleon/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/menu.xml.laptop /home/masha/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/autostart.sh.laptop /home/vleon/.config/openbox/autostart.sh
    cp /home/samba/Config/.config/openbox/autostart.sh.laptop /home/masha/.config/openbox/autostart.sh
    else
    if ( [ "$1" != "Main" ] && [ "$1" != "Game" ] )
    cp /home/samba/Config/.conkyrc.laptop /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.laptop /home/masha/.conkyrc
    else
    cp /home/samba/Config/.conkyrc.main /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.main /home/masha/.conkyrc
    fi
    cp /home/samba/Config/.Xdefaults.main /home/vleon/.Xdefaults ; cp /home/samba/Config/.Xdefaults.main /home/masha/.Xdefaults
    cp /home/samba/Config/.config/openbox/menu.xml.main /home/vleon/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/menu.xml.main /home/masha/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/autostart.sh.main /home/vleon/.config/openbox/autostart.sh
    cp /home/samba/Config/.config/openbox/autostart.sh.main /home/masha/.config/openbox/autostart.sh
    fi
    else
    echo >> /home/vleon/PostInstall.txt
    echo "!!Samba is not availble, you will have to create the following files yourself!!" >> /home/vleon/PostInstall.txt
    fi
    echo >> /home/vleon/PostInstall.txt
    echo "The folowing files where probably created in your home folders:" >> /home/vleon/PostInstall.txt
    echo ".bash_profile" >> /home/vleon/PostInstall.txt
    echo ".bashrc" >> /home/vleon/PostInstall.txt
    echo ".conkyrc" >> /home/vleon/PostInstall.txt
    echo ".Xdefaults" >> /home/vleon/PostInstall.txt
    echo ".xinitrc" >> /home/vleon/PostInstall.txt
    echo ".xserverrc #<< only to /home/masha" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/autostart.sh" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/menu.xml" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/rc.xml" >> /home/vleon/PostInstall.txt
    echo "!!Make sure the above files created and are configured properly!!" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "Configuration Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) make sure width and hight are correct .Xdefaults" >> /home/vleon/PostInstall.txt
    echo "2) make sure to comment the \"xcompmgr\" line in autostart.sh, to fit the Computer and User" >> /home/vleon/PostInstall.txt
    echo "3) use obmenu and obconf later to tune up stuff" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "rc.conf Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) possible modules are: powernow-k8 or acpi-cpufreq, cpufreq_ondemand, ov51x-jpeg, fglrx" >> /home/vleon/PostInstall.txt
    echo "2) possible daemons are: hal, cpufreq, acpid [laptop], netfs, keytouch" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "General Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) copy or compare the files from /home/samba/Config/etc to /etc" >> /home/vleon/PostInstall.txt
    echo "2) on the laptop, dont forget to add the additional scripts needed from the /home/samba/Config/, dont forget to backup replaced files" >> /home/vleon/PostInstall.txt
    echo "3) add resume=/dev/sda3 to /boot/grub/menu.lst if its not there already" >> /home/vleon/PostInstall.txt
    echo "4) dont Forget to configure gksu after launching X" >> /home/vleon/PostInstall.txt
    echo "5) lauch and configure all the apps in the menu and the cmdline apps links -g, mocp, irssi, centerim" >> /home/vleon/PostInstall.txt
    echo "6) test logout, reboot, shutdown and hibernate" >> /home/vleon/PostInstall.txt
    echo "7) configure keytouch on the laptop" >> /home/vleon/PostInstall.txt
    echo "8) if it doesnt exist mkdir ~/.Theme for both users and add a jpg picture named theme.jpg to be the wallpaper" >> /home/vleon/PostInstall.txt
    echo "9) read /var/log/MySysInstall.log and make sure all was succesfull especialy AUR install's like icecat or iceweasel" >> /home/vleon/PostInstall.txt
    echo "10) run lxappearance, configure lxpanel, configure terminal" >> /home/vleon/PostInstall.txt
    echo "11) run powertop after you restart again with all the modules and daemons and other stuff configured" >> /home/vleon/PostInstall.txt
    #Return ownership to the approtiate users
    chown -R vleon:users /home/vleon ; chown -R masha:users /home/masha
    chmod /home/vleon 750 ; chmod /home/masha 750
    chmod /home/vleon/.config 750 ; chmod /home/masha/config 750
    chmod /home/vleon/.config/openbox 750 ; chmod /home/vleon/.config/openbox 750
    #End
    echo "Install Finished, please additional instructions where created in /home/vleon/PostInstall.txt"
    read n1
    exit

    luckystar09 - I'd say you're on your own there. This thread is nearly a year old, and Black Mage hasn't posted here since. Read the script, and modify it yourself as required.
    Forum rule - do not post in threads that have been inactive for six months of more. See here for full details.
    Closed.

  • [No need]Reducing number of post-install packages (fresh Arch + XFCE)

    Hi,
    I am inspired by posts by slithery in post-install package count; his discussion here and my willingness to follow-foot steps. Need suggestions/tips what packages can be removed based on details below.
    1. Defining usage:
    Normal PC having XFCE, thunderbird, firefox, yaourt and wine (for MS-Office with 32bit libs unfortunately needed for work) with 64-bit stock kernel. Other utilities include eog (image viewer), PDF viewer, cups, simple-scan, hplip + hplip plugin, dvd burner and some fonts packages.
    I have attempted to remain native on XFCE while installing utilities/needs  to avoid unnecessary dependencies unless some functionality needed (such as eog).
    2. Current package count
    [archpc ~]$ pacman -Qe | wc -l
    143
    [archpc ~]$ pacman -Q | wc -l
    539
    3. Installed packages details
    3.1 pacman -Qe
    alsa-utils 1.0.29-1
    autoconf 2.69-2
    automake 1.15-1
    b43-fwcutter 019-1
    bash 4.3.033-1
    bash-completion 2.1-5
    binutils 2.25-2
    bison 3.0.4-1
    btrfs-progs 3.19-1
    bzip2 1.0.6-5
    coreutils 8.23-1
    cryptsetup 1.6.6-1
    cups 2.0.2-1
    device-mapper 2.02.116-1
    dhcpcd 6.7.1-1
    dialog 1:1.2_20150225-1
    diffutils 3.3-2
    dropbox 3.2.9-2
    e2fsprogs 1.42.12-2
    eog 3.14.3-1
    epdfview 0.1.8-5
    exo 0.10.4-1
    fakeroot 1.20.2-1
    file 5.22-1
    filesystem 2015.02-1
    findutils 4.4.2-6
    firefox 36.0.3-1
    flashplugin 11.2.202.451-1
    flex 2.5.39-1
    galculator 2.1.3-3
    gamin 0.1.10-8
    garcon 0.4.0-1
    gawk 4.1.1-1
    gcc 4.9.2-4
    gcc-libs 4.9.2-4
    gettext 0.19.4-1
    gksu 2.0.2-5
    glibc 2.21-2
    gnome-colors-icon-theme 5.5.1-2
    gnome-keyring 3.14.0-1
    grep 2.21-2
    groff 1.22.3-2
    grub 1:2.02.beta2-5
    grub2-theme-archxion 1.0-6
    gtk-xfce-engine 2.10.1-1
    gvfs 1.22.3-2
    gvfs-afc 1.22.3-2
    gvfs-smb 1.22.3-2
    gzip 1.6-1
    hplip 3.15.2-3
    hplip-plugin 3.15.2-1
    inetutils 1.9.2-2
    iproute2 3.19.0-1
    iputils 20121221-3
    ipw2100-fw 1.3-7
    ipw2200-fw 3.1-5
    jfsutils 1.1.15-4
    less 471-1
    lib32-libxml2 2.9.2-1
    libtool 2.4.6-1
    licenses 20140629-1
    linux 3.19.2-1
    logrotate 3.8.9-1
    lvm2 2.02.116-1
    m4 1.4.17-1
    make 4.1-1
    man-db 2.7.1-1
    man-pages 3.81-1
    mdadm 3.3.2-1
    mousepad 0.4.0-1
    nano 2.2.6-3
    netctl 1.10-1
    network-manager-applet 1.0.0-1
    networkmanager 1.0.0-2
    ntfs-3g 2014.2.15-1
    ntp 4.2.8.p1-1
    nvidia-340xx 340.76-6
    nvidia-340xx-libgl 340.76-2
    nvidia-340xx-utils 340.76-2
    os-prober 1.64-1
    package-query 1.5-2
    pacman 4.2.1-1
    patch 2.7.5-1
    pavucontrol 2.0-2
    pciutils 3.3.0-1
    pcmciautils 018-7
    perl 5.20.2-1
    pkg-config 0.28-2
    polkit-gnome 0.105-2
    procps-ng 3.3.10-1
    psmisc 22.21-2
    python2-xdg 0.25-2
    reiserfsprogs 3.6.24-1
    rp-pppoe 3.11-7
    s-nail 14.7.11-1
    samba 4.2.0-1
    sddm 0.11.0-1
    sed 4.2.2-3
    shadow 4.2.1-2
    simple-scan 3.14.2-1
    sudo 1.8.12-1
    sysfsutils 2.1.0-9
    systemd-sysvcompat 218-2
    tar 1.28-1
    texinfo 5.2-3
    thunar 1.6.6-1
    thunar-volman 0.8.1-1
    thunderbird 31.5.0-1
    ttf-ms-fonts 2.0-10
    ttf-urdufonts 1.2-3
    tumbler 0.1.31-1
    usbutils 008-1
    util-linux 2.25.2-1
    vi 1:050325-4
    which 2.20-7
    wine 1.7.39-1
    wine-mono 4.5.6-1
    wine_gecko 2.36-1
    xdg-user-dirs 0.15-1
    xdg-utils 1.1.0.git20150302-1
    xf86-input-keyboard 1.8.0-3
    xf86-input-mouse 1.9.1-1
    xf86-input-synaptics 1.8.1-1
    xfburn 0.5.2-2
    xfce4-appfinder 4.12.0-1
    xfce4-mixer 4.11.0-2
    xfce4-panel 4.12.0-1
    xfce4-power-manager 1.4.3-1
    xfce4-session 4.12.1-1
    xfce4-settings 4.12.0-3
    xfce4-terminal 0.6.3-2
    xfce4-whiskermenu-plugin 1.5.0-2
    xfconf 4.12.0-1
    xfdesktop 4.12.0-1
    xfsprogs 3.2.2-1
    xfwm4 4.12.2-1
    xfwm4-themes 4.10.0-2
    xorg-server 1.17.1-4
    xorg-server-utils 7.6-4
    xorg-xinit 1.3.4-2
    xterm 316-1
    yaourt 1.5-1
    zd1211-firmware 1.5-1
    3.2 pacman -Q
    acl 2.2.52-2
    adwaita-icon-theme 3.14.1-1
    alsa-lib 1.0.29-1
    alsa-utils 1.0.29-1
    archlinux-keyring 20150212-1
    at-spi2-atk 2.14.1-1
    at-spi2-core 2.14.1-1
    atk 2.14.0-1
    atkmm 2.22.7-1
    attr 2.4.47-1
    autoconf 2.69-2
    automake 1.15-1
    avahi 0.6.31-14
    b43-fwcutter 019-1
    bash 4.3.033-1
    bash-completion 2.1-5
    bc 1.06.95-1
    binutils 2.25-2
    bison 3.0.4-1
    btrfs-progs 3.19-1
    bzip2 1.0.6-5
    ca-certificates 20140923-9
    ca-certificates-cacert 20140824-2
    ca-certificates-mozilla 3.17.4-1
    ca-certificates-utils 20140923-9
    cairo 1.14.2-1
    cairomm 1.10.0-3
    cantarell-fonts 0.0.16-2
    cdparanoia 10.2-5
    cifs-utils 6.4-1
    colord 1.2.9-1
    compositeproto 0.4.2-3
    coreutils 8.23-1
    cracklib 2.9.1-1
    cryptsetup 1.6.6-1
    cups 2.0.2-1
    cups-filters 1.0.67-1
    curl 7.41.0-1
    damageproto 1.2.1-3
    db 5.3.28-2
    dbus 1.8.16-2
    dbus-glib 0.102-2
    dconf 0.22.0-1
    desktop-file-utils 0.22-1
    device-mapper 2.02.116-1
    dhclient 4.3.1-1
    dhcpcd 6.7.1-1
    dialog 1:1.2_20150225-1
    diffutils 3.3-2
    dropbox 3.2.9-2
    e2fsprogs 1.42.12-2
    elfutils 0.161-3
    eog 3.14.3-1
    epdfview 0.1.8-5
    exempi 2.2.2-1
    exo 0.10.4-1
    expat 2.1.0-4
    fakeroot 1.20.2-1
    file 5.22-1
    filesystem 2015.02-1
    findutils 4.4.2-6
    firefox 36.0.3-1
    fixesproto 5.0-3
    flac 1.3.1-1
    flashplugin 11.2.202.451-1
    flex 2.5.39-1
    fontconfig 2.11.1-1
    fontsproto 2.1.3-1
    foomatic-db-engine 3:20150308-1
    freetype2 2.5.5-1
    fuse 2.9.3-2
    galculator 2.1.3-3
    gamin 0.1.10-8
    garcon 0.4.0-1
    gawk 4.1.1-1
    gc 7.4.2-2
    gcc 4.9.2-4
    gcc-libs 4.9.2-4
    gconf 3.2.6-3
    gcr 3.14.0-1
    gd 2.1.1-1
    gdbm 1.11-1
    gdk-pixbuf2 2.31.3-1
    gettext 0.19.4-1
    ghostscript 9.15-2
    gksu 2.0.2-5
    glib-networking 2.42.1-1
    glib2 2.42.2-1
    glibc 2.21-2
    glibmm 2.42.0-1
    glu 9.0.0-3
    gmp 6.0.0-2
    gnome-colors-icon-theme 5.5.1-2
    gnome-desktop 1:3.14.2-1
    gnome-icon-theme 3.12.0-2
    gnome-icon-theme-symbolic 3.12.0-2
    gnome-keyring 3.14.0-1
    gnome-themes-standard 3.14.2.3-1
    gnupg 2.1.2-1
    gnutls 3.3.13-1
    gobject-introspection 1.42.0-1
    gpgme 1.5.3-1
    gpm 1.20.7-4
    graphite 1:1.2.4-1
    grep 2.21-2
    groff 1.22.3-2
    grub 1:2.02.beta2-5
    grub2-theme-archxion 1.0-6
    gsettings-desktop-schemas 3.14.1-1
    gstreamer0.10 0.10.36-4
    gstreamer0.10-base 0.10.36-3
    gstreamer0.10-base-plugins 0.10.36-3
    gtk-update-icon-cache 2.24.27-1
    gtk-xfce-engine 2.10.1-1
    gtk2 2.24.27-1
    gtk3 3.14.9-1
    gtkmm3 3.14.0-1
    gtksourceview2 2.10.5-3
    guile 2.0.11-2
    gvfs 1.22.3-2
    gvfs-afc 1.22.3-2
    gvfs-smb 1.22.3-2
    gzip 1.6-1
    harfbuzz 0.9.38-1
    hicolor-icon-theme 0.13-1
    hplip 3.15.2-3
    hplip-plugin 3.15.2-1
    hunspell 1.3.3-1
    hwids 20150129-1
    iana-etc 2.30-4
    icu 54.1-1
    inetutils 1.9.2-2
    iniparser 3.1-4
    inputproto 2.3.1-1
    iproute2 3.19.0-1
    iptables 1.4.21-1
    iputils 20121221-3
    ipw2100-fw 1.3-7
    ipw2200-fw 3.1-5
    iso-codes 3.57-1
    jansson 2.7-1
    jasper 1.900.1-13
    jfsutils 1.1.15-4
    js17 17.0.0-1
    json-c 0.12-2
    json-glib 1.0.2-1
    kbd 2.0.2-1
    kbproto 1.0.6-2
    keyutils 1.5.9-1
    kmod 20-1
    krb5 1.13.1-1
    lcms2 2.6-1
    ldb 1.1.20-1
    less 471-1
    lib32-acl 2.2.52-2
    lib32-attr 2.4.47-1
    lib32-bzip2 1.0.6-2
    lib32-curl 7.41.0-1
    lib32-e2fsprogs 1.42.12-1
    lib32-expat 2.1.0-2
    lib32-fontconfig 2.11.1-1
    lib32-freetype2 2.5.5-1
    lib32-gcc-libs 4.9.2-4
    lib32-gettext 0.19.4-1
    lib32-glib2 2.42.2-1
    lib32-glibc 2.21-2
    lib32-glu 9.0.0-2
    lib32-harfbuzz 0.9.38-1
    lib32-icu 54.1-1
    lib32-keyutils 1.5.9-1
    lib32-krb5 1.13.1-1
    lib32-libcap 2.24-1
    lib32-libdbus 1.8.16-1
    lib32-libffi 3.2.1-1
    lib32-libgcrypt 1.6.3-1
    lib32-libgpg-error 1.18-1
    lib32-libice 1.0.9-1
    lib32-libldap 2.4.40-1
    lib32-libnl 3.2.25-1
    lib32-libpcap 1.6.2-1
    lib32-libpng 1.6.16-1
    lib32-libsm 1.2.2-1
    lib32-libssh2 1.4.3-2
    lib32-libusb 1.0.19-1
    lib32-libx11 1.6.3-1
    lib32-libxau 1.0.8-1
    lib32-libxcb 1.11-1
    lib32-libxcursor 1.1.14-1
    lib32-libxdamage 1.1.4-2
    lib32-libxdmcp 1.1.1-2
    lib32-libxext 1.3.3-1
    lib32-libxfixes 5.0.1-1
    lib32-libxi 1.7.4-1
    lib32-libxml2 2.9.2-1
    lib32-libxrandr 1.4.2-1
    lib32-libxrender 0.9.8-1
    lib32-ncurses 5.9-3
    lib32-nvidia-340xx-libgl 340.76-1
    lib32-nvidia-340xx-utils 340.76-1
    lib32-openssl 1.0.2.a-1
    lib32-pcre 8.36-1
    lib32-readline 6.3.006-1
    lib32-systemd 218-1
    lib32-util-linux 2.25.2-1
    lib32-xz 5.2.1-1
    lib32-zlib 1.2.8-1
    libaio 0.3.110-1
    libarchive 3.1.2-8
    libassuan 2.1.3-1
    libasyncns 0.8-5
    libatasmart 0.19-3
    libatomic_ops 7.4.2-1
    libbluray 0.7.0-1
    libbsd 0.7.0-1
    libburn 1.3.8-1
    libcanberra 0.30-5
    libcanberra-pulse 0.30-5
    libcap 2.24-2
    libcap-ng 0.7.4-1
    libcddb 1.3.2-4
    libcdio 0.93-1
    libcdio-paranoia 10.2+0.93+1-1
    libcroco 0.6.8-2
    libcups 2.0.2-1
    libdaemon 0.14-3
    libdatrie 0.2.8-1
    libdbus 1.8.16-2
    libdrm 2.4.59-1
    libedit 20141030_3.1-1
    libepoxy 1.2-2
    libevdev 1.4-1
    libevent 2.0.22-1
    libexif 0.6.21-2
    libffi 3.2.1-1
    libfontenc 1.1.2-1
    libgcrypt 1.6.3-2
    libgksu 2.0.12-6
    libgnome-keyring 3.12.0-2
    libgpg-error 1.18-1
    libgphoto2 2.5.7-1
    libgtop 2.30.0-1
    libgusb 0.2.4-1
    libice 1.0.9-1
    libidn 1.30-1
    libieee1284 0.2.11-5
    libimobiledevice 1.2.0-1
    libisofs 1.3.8-1
    libjpeg-turbo 1.4.0-1
    libkeybinder2 0.3.0-2
    libksba 1.3.2-1
    libldap 2.4.40-2
    libmm-glib 1.4.4-1
    libmpc 1.0.3-1
    libndp 1.4-1
    libnewt 0.52.17-2
    libnl 3.2.25-1
    libnm-glib 1.0.0-2
    libnm-gtk 1.0.0-1
    libnotify 0.7.6-1
    libogg 1.3.2-1
    libomxil-bellagio 0.9.3-1
    libpaper 1.1.24-7
    libpcap 1.6.2-1
    libpciaccess 0.13.3-1
    libpeas 1.12.1-1
    libpipeline 1.4.0-1
    libplist 1.12-1
    libpng 1.6.16-1
    libproxy 0.4.11-5
    libpulse 6.0-1
    librsvg 1:2.40.8-1
    libsamplerate 0.1.8-3
    libsasl 2.1.26-7
    libseccomp 2.1.1-1
    libsecret 0.18-1
    libsigc++ 2.4.1-1
    libsm 1.2.2-2
    libsndfile 1.0.25-3
    libsoup 2.48.1-1
    libssh2 1.4.3-2
    libsystemd 218-2
    libtasn1 4.3-1
    libteam 1.14-1
    libthai 0.1.21-1
    libtheora 1.1.1-3
    libtiff 4.0.3-5
    libtirpc 0.2.5-1
    libtool 2.4.6-1
    libtxc_dxtn 1.0.1-6
    libunique 1.1.6-6
    libunistring 0.9.5-1
    libunwind 1.1-2
    libusb 1.0.19-1
    libusbmuxd 1.0.10-1
    libutempter 1.1.6-2
    libutil-linux 2.25.2-1
    libvisual 0.4.0-5
    libvorbis 1.3.4-1
    libvpx 1.3.0-1
    libwbclient 4.2.0-1
    libwnck 2.31.0-1
    libx11 1.6.3-1
    libxau 1.0.8-2
    libxaw 1.0.12-1
    libxcb 1.11-1
    libxcomposite 0.4.4-2
    libxcursor 1.1.14-2
    libxdamage 1.1.4-2
    libxdmcp 1.1.1-2
    libxext 1.3.3-1
    libxfce4ui 4.12.1-1
    libxfce4util 4.12.1-1
    libxfixes 5.0.1-1
    libxfont 1.5.1-1
    libxft 2.3.2-1
    libxi 1.7.4-1
    libxinerama 1.1.3-2
    libxkbcommon 0.5.0-1
    libxkbcommon-x11 0.5.0-1
    libxkbfile 1.0.8-2
    libxklavier 5.4-1
    libxml2 2.9.2-2
    libxmu 1.1.2-1
    libxpm 3.5.11-1
    libxrandr 1.4.2-2
    libxrender 0.9.8-1
    libxres 1.0.7-1
    libxshmfence 1.2-1
    libxslt 1.1.28-3
    libxt 1.1.4-1
    libxtst 1.2.2-1
    libxv 1.0.10-1
    libxxf86vm 1.1.4-1
    licenses 20140629-1
    linux 3.19.2-1
    linux-api-headers 3.18.5-1
    linux-firmware 20150206.17657c3-1
    llvm-libs 3.6.0-3
    logrotate 3.8.9-1
    lvm2 2.02.116-1
    lz4 127-1
    lzo 2.09-1
    m4 1.4.17-1
    make 4.1-1
    man-db 2.7.1-1
    man-pages 3.81-1
    mcpp 2.7.2-5
    mdadm 3.3.2-1
    mesa 10.5.1-2
    mime-types 9-1
    mkinitcpio 18-2
    mkinitcpio-busybox 1.21.1-2
    mobile-broadband-provider-info 20120614-2
    mousepad 0.4.0-1
    mozilla-common 1.4-4
    mpfr 3.1.2.p11-1
    mtdev 1.1.5-1
    nano 2.2.6-3
    ncurses 5.9-7
    net-snmp 5.7.3-1
    net-tools 1.60.20130531git-1
    netctl 1.10-1
    nettle 2.7.1-1
    network-manager-applet 1.0.0-1
    networkmanager 1.0.0-2
    npth 1.1-1
    nspr 4.10.8-1
    nss 3.17.4-1
    ntfs-3g 2014.2.15-1
    ntp 4.2.8.p1-1
    nvidia-340xx 340.76-6
    nvidia-340xx-libgl 340.76-2
    nvidia-340xx-utils 340.76-2
    openjpeg 1.5.2-1
    openresolv 3.6.1-1
    openssl 1.0.2.a-1
    orc 0.4.23-1
    os-prober 1.64-1
    p11-kit 0.22.1-3
    package-query 1.5-2
    pacman 4.2.1-1
    pacman-mirrorlist 20150315-1
    pam 1.1.8-5
    pambase 20130928-1
    pango 1.36.8-1
    pangomm 2.34.0-1
    patch 2.7.5-1
    pavucontrol 2.0-2
    pciutils 3.3.0-1
    pcmciautils 018-7
    pcre 8.36-2
    perl 5.20.2-1
    perl-clone 0.37-2
    perl-dbi 1.633-1
    perl-xml-libxml 2.0117-1
    perl-xml-namespacesupport 1.11-3
    perl-xml-sax 0.99-4
    perl-xml-sax-base 1.08-3
    pinentry 0.9.0-1
    pixman 0.32.6-1
    pkg-config 0.28-2
    polkit 0.112-2
    polkit-gnome 0.105-2
    poppler 0.31.0-1
    poppler-glib 0.31.0-1
    popt 1.16-7
    ppp 2.4.7-1
    procps-ng 3.3.10-1
    psmisc 22.21-2
    pth 2.0.7-5
    python 3.4.3-1
    python2 2.7.9-1
    python2-xdg 0.25-2
    qpdf 5.1.2-1
    qt5-base 5.4.1-2
    qt5-declarative 5.4.1-2
    qt5-xmlpatterns 5.4.1-2
    qtchooser 48-1
    randrproto 1.4.1-1
    readline 6.3.006-1
    recordproto 1.14.2-2
    reiserfsprogs 3.6.24-1
    renderproto 0.11.1-3
    rest 0.7.92-1
    rp-pppoe 3.11-7
    s-nail 14.7.11-1
    samba 4.2.0-1
    sane 1.0.24-4
    sddm 0.11.0-1
    sed 4.2.2-3
    shadow 4.2.1-2
    shared-mime-info 1.4-1
    simple-scan 3.14.2-1
    slang 2.3.0-1
    smbclient 4.2.0-1
    sound-theme-freedesktop 0.8-2
    sqlite 3.8.8.3-1
    startup-notification 0.12-4
    sudo 1.8.12-1
    sysfsutils 2.1.0-9
    systemd 218-2
    systemd-sysvcompat 218-2
    talloc 2.1.1-1
    tar 1.28-1
    tdb 1.3.4-1
    tevent 0.9.24-1
    texinfo 5.2-3
    thin-provisioning-tools 0.4.1-1
    thunar 1.6.6-1
    thunar-volman 0.8.1-1
    thunderbird 31.5.0-1
    ttf-dejavu 2.34-2
    ttf-ms-fonts 2.0-10
    ttf-urdufonts 1.2-3
    tumbler 0.1.31-1
    tzdata 2015a-1
    udisks2 2.1.5-1
    upower 0.99.2-2
    usbmuxd 1.1.0-2
    usbutils 008-1
    util-linux 2.25.2-1
    v4l-utils 1.6.2-1
    vi 1:050325-4
    videoproto 2.3.2-1
    vte 0.28.2-5
    vte-common 0.38.3-1
    wayland 1.7.0-1
    wget 1.16.3-1
    which 2.20-7
    wine 1.7.39-1
    wine-mono 4.5.6-1
    wine_gecko 2.36-1
    wpa_supplicant 2.3-1
    xbitmaps 1.1.1-3
    xcb-proto 1.11-1
    xcb-util 0.4.0-1
    xcb-util-image 0.4.0-1
    xcb-util-keysyms 0.4.0-1
    xcb-util-wm 0.4.1-1
    xdg-user-dirs 0.15-1
    xdg-utils 1.1.0.git20150302-1
    xextproto 7.3.0-1
    xf86-input-evdev 2.9.1-1
    xf86-input-keyboard 1.8.0-3
    xf86-input-mouse 1.9.1-1
    xf86-input-synaptics 1.8.1-1
    xf86vidmodeproto 2.3.1-3
    xfburn 0.5.2-2
    xfce4-appfinder 4.12.0-1
    xfce4-mixer 4.11.0-2
    xfce4-panel 4.12.0-1
    xfce4-power-manager 1.4.3-1
    xfce4-session 4.12.1-1
    xfce4-settings 4.12.0-3
    xfce4-terminal 0.6.3-2
    xfce4-whiskermenu-plugin 1.5.0-2
    xfconf 4.12.0-1
    xfdesktop 4.12.0-1
    xfsprogs 3.2.2-1
    xfwm4 4.12.2-1
    xfwm4-themes 4.10.0-2
    xineramaproto 1.2.1-3
    xkeyboard-config 2.14-1
    xorg-bdftopcf 1.0.5-1
    xorg-font-util 1.3.1-1
    xorg-font-utils 7.6-4
    xorg-fonts-alias 1.0.3-1
    xorg-fonts-encodings 1.0.4-4
    xorg-fonts-misc 1.0.3-3
    xorg-iceauth 1.0.7-1
    xorg-luit 1.1.1-2
    xorg-mkfontdir 1.0.7-2
    xorg-mkfontscale 1.1.2-1
    xorg-server 1.17.1-4
    xorg-server-common 1.17.1-4
    xorg-server-utils 7.6-4
    xorg-sessreg 1.1.0-1
    xorg-setxkbmap 1.3.0-2
    xorg-xauth 1.0.9-1
    xorg-xbacklight 1.2.1-1
    xorg-xcmsdb 1.0.4-2
    xorg-xgamma 1.0.5-2
    xorg-xhost 1.0.6-1
    xorg-xinit 1.3.4-2
    xorg-xinput 1.6.1-1
    xorg-xkbcomp 1.3.0-1
    xorg-xmodmap 1.0.8-1
    xorg-xrandr 1.4.3-1
    xorg-xrdb 1.1.0-1
    xorg-xrefresh 1.0.5-1
    xorg-xset 1.2.3-1
    xorg-xsetroot 1.1.1-2
    xproto 7.0.27-1
    xterm 316-1
    xz 5.2.1-1
    yajl 2.1.0-1
    yaourt 1.5-1
    zd1211-firmware 1.5-1
    zlib 1.2.8-3
    4. Output from Slithery's script
    clear; echo -n "Number of installed packages: $(pacman -Qq | wc -l)"; echo; echo; echo "# Packages in base group that aren't installed"; comm -23 <((for i in $(pacman -Sqg base); do pactree -us $i; done)|sort -u|cut -d ' ' -f 1) <(pacman -Qq); echo; echo "# Packages installed that aren't in base group"; comm -13 <((for i in $(pacman -Sqg base); do pactree -us $i; done)|sort -u|cut -d ' ' -f 1) <(pacman -Qq); echo; echo "# pstree"; pstree -U; echo; echo "# enabled services"; systemctl list-unit-files | grep enabled | grep service; echo; echo "# ssd df"; df -h -t ext4; echo; echo "# free"; free -m; echo
    Note: Some information produced above will be repeaeted
    [H[2JNumber of installed packages: 539
    # Packages in base group that aren't installed
    # Packages installed that aren't in base group
    adwaita-icon-theme
    alsa-lib
    alsa-utils
    at-spi2-atk
    at-spi2-core
    atk
    atkmm
    autoconf
    automake
    avahi
    b43-fwcutter
    bash-completion
    bc
    binutils
    bison
    btrfs-progs
    cairo
    cairomm
    cantarell-fonts
    cdparanoia
    cifs-utils
    colord
    compositeproto
    cups
    cups-filters
    damageproto
    dbus-glib
    dconf
    desktop-file-utils
    dhclient
    dialog
    dropbox
    elfutils
    eog
    epdfview
    exempi
    exo
    fakeroot
    firefox
    fixesproto
    flac
    flashplugin
    flex
    fontconfig
    fontsproto
    foomatic-db-engine
    freetype2
    fuse
    galculator
    gamin
    garcon
    gc
    gcc
    gconf
    gcr
    gd
    gdk-pixbuf2
    ghostscript
    gksu
    glib-networking
    glibmm
    glu
    gnome-colors-icon-theme
    gnome-desktop
    gnome-icon-theme
    gnome-icon-theme-symbolic
    gnome-keyring
    gnome-themes-standard
    gobject-introspection
    gpm
    graphite
    grub
    grub2-theme-archxion
    gsettings-desktop-schemas
    gstreamer0.10
    gstreamer0.10-base
    gstreamer0.10-base-plugins
    gtk-update-icon-cache
    gtk-xfce-engine
    gtk2
    gtk3
    gtkmm3
    gtksourceview2
    guile
    gvfs
    gvfs-afc
    gvfs-smb
    harfbuzz
    hicolor-icon-theme
    hplip
    hplip-plugin
    hunspell
    icu
    iniparser
    inputproto
    ipw2100-fw
    ipw2200-fw
    iso-codes
    jansson
    jasper
    js17
    json-c
    json-glib
    kbproto
    lcms2
    ldb
    lib32-acl
    lib32-attr
    lib32-bzip2
    lib32-curl
    lib32-e2fsprogs
    lib32-expat
    lib32-fontconfig
    lib32-freetype2
    lib32-gcc-libs
    lib32-gettext
    lib32-glib2
    lib32-glibc
    lib32-glu
    lib32-harfbuzz
    lib32-icu
    lib32-keyutils
    lib32-krb5
    lib32-libcap
    lib32-libdbus
    lib32-libffi
    lib32-libgcrypt
    lib32-libgpg-error
    lib32-libice
    lib32-libldap
    lib32-libnl
    lib32-libpcap
    lib32-libpng
    lib32-libsm
    lib32-libssh2
    lib32-libusb
    lib32-libx11
    lib32-libxau
    lib32-libxcb
    lib32-libxcursor
    lib32-libxdamage
    lib32-libxdmcp
    lib32-libxext
    lib32-libxfixes
    lib32-libxi
    lib32-libxml2
    lib32-libxrandr
    lib32-libxrender
    lib32-ncurses
    lib32-nvidia-340xx-libgl
    lib32-nvidia-340xx-utils
    lib32-openssl
    lib32-pcre
    lib32-readline
    lib32-systemd
    lib32-util-linux
    lib32-xz
    lib32-zlib
    libasyncns
    libatasmart
    libatomic_ops
    libbluray
    libbsd
    libburn
    libcanberra
    libcanberra-pulse
    libcap-ng
    libcddb
    libcdio
    libcdio-paranoia
    libcroco
    libcups
    libdaemon
    libdatrie
    libdrm
    libedit
    libepoxy
    libevdev
    libevent
    libexif
    libfontenc
    libgksu
    libgnome-keyring
    libgphoto2
    libgtop
    libgusb
    libice
    libieee1284
    libimobiledevice
    libisofs
    libjpeg-turbo
    libkeybinder2
    libmm-glib
    libmpc
    libndp
    libnewt
    libnl
    libnm-glib
    libnm-gtk
    libnotify
    libogg
    libomxil-bellagio
    libpaper
    libpcap
    libpciaccess
    libpeas
    libplist
    libpng
    libproxy
    libpulse
    librsvg
    libsamplerate
    libsecret
    libsigc++
    libsm
    libsndfile
    libsoup
    libteam
    libthai
    libtheora
    libtiff
    libtool
    libtxc_dxtn
    libunique
    libunwind
    libusbmuxd
    libutempter
    libvisual
    libvorbis
    libvpx
    libwbclient
    libwnck
    libx11
    libxau
    libxaw
    libxcb
    libxcomposite
    libxcursor
    libxdamage
    libxdmcp
    libxext
    libxfce4ui
    libxfce4util
    libxfixes
    libxfont
    libxft
    libxi
    libxinerama
    libxkbcommon
    libxkbcommon-x11
    libxkbfile
    libxklavier
    libxml2
    libxmu
    libxpm
    libxrandr
    libxrender
    libxres
    libxshmfence
    libxslt
    libxt
    libxtst
    libxv
    libxxf86vm
    llvm-libs
    m4
    make
    mcpp
    mesa
    mime-types
    mobile-broadband-provider-info
    mousepad
    mozilla-common
    mtdev
    net-snmp
    net-tools
    network-manager-applet
    networkmanager
    nspr
    nss
    ntfs-3g
    ntp
    nvidia-340xx
    nvidia-340xx-libgl
    nvidia-340xx-utils
    openjpeg
    orc
    os-prober
    package-query
    pango
    pangomm
    patch
    pavucontrol
    perl-clone
    perl-dbi
    perl-xml-libxml
    perl-xml-namespacesupport
    perl-xml-sax
    perl-xml-sax-base
    pixman
    pkg-config
    polkit
    polkit-gnome
    poppler
    poppler-glib
    ppp
    python
    python2
    python2-xdg
    qpdf
    qt5-base
    qt5-declarative
    qt5-xmlpatterns
    qtchooser
    randrproto
    recordproto
    renderproto
    rest
    rp-pppoe
    samba
    sane
    sddm
    shared-mime-info
    simple-scan
    slang
    smbclient
    sound-theme-freedesktop
    sqlite
    startup-notification
    sudo
    talloc
    tdb
    tevent
    thunar
    thunar-volman
    thunderbird
    ttf-dejavu
    ttf-ms-fonts
    ttf-urdufonts
    tumbler
    udisks2
    upower
    usbmuxd
    v4l-utils
    videoproto
    vte
    vte-common
    wayland
    wget
    wine
    wine-mono
    wine_gecko
    wpa_supplicant
    xbitmaps
    xcb-proto
    xcb-util
    xcb-util-image
    xcb-util-keysyms
    xcb-util-wm
    xdg-user-dirs
    xdg-utils
    xextproto
    xf86-input-evdev
    xf86-input-keyboard
    xf86-input-mouse
    xf86-input-synaptics
    xf86vidmodeproto
    xfburn
    xfce4-appfinder
    xfce4-mixer
    xfce4-panel
    xfce4-power-manager
    xfce4-session
    xfce4-settings
    xfce4-terminal
    xfce4-whiskermenu-plugin
    xfconf
    xfdesktop
    xfwm4
    xfwm4-themes
    xineramaproto
    xkeyboard-config
    xorg-bdftopcf
    xorg-font-util
    xorg-font-utils
    xorg-fonts-alias
    xorg-fonts-encodings
    xorg-fonts-misc
    xorg-iceauth
    xorg-luit
    xorg-mkfontdir
    xorg-mkfontscale
    xorg-server
    xorg-server-common
    xorg-server-utils
    xorg-sessreg
    xorg-setxkbmap
    xorg-xauth
    xorg-xbacklight
    xorg-xcmsdb
    xorg-xgamma
    xorg-xhost
    xorg-xinit
    xorg-xinput
    xorg-xkbcomp
    xorg-xmodmap
    xorg-xrandr
    xorg-xrdb
    xorg-xrefresh
    xorg-xset
    xorg-xsetroot
    xproto
    xterm
    yajl
    yaourt
    zd1211-firmware
    # pstree
    systemd─┬─NetworkManager─┬─dhclient
    │ ├─{NetworkManager}
    │ ├─{gdbus}
    │ └─{gmain}
    ├─Thunar─┬─{gdbus}
    │ └─{gmain}
    ├─at-spi-bus-laun─┬─dbus-daemon
    │ ├─{dconf worker}
    │ ├─{gdbus}
    │ └─{gmain}
    ├─at-spi2-registr───{gdbus}
    ├─avahi-daemon───avahi-daemon
    ├─colord─┬─{gdbus}
    │ └─{gmain}
    ├─cupsd
    ├─3*[dbus-daemon]
    ├─2*[dbus-launch]
    ├─dconf-service─┬─{gdbus}
    │ └─{gmain}
    ├─firefox─┬─6*[{Analysis Helper}]
    │ ├─{Cache I/O}
    │ ├─{Cache2 I/O}
    │ ├─{Cert Verify}
    │ ├─{Compositor}
    │ ├─{DNS Resolver #7}
    │ ├─{DNS Resolver #9}
    │ ├─{DNS Res~ver #10}
    │ ├─3*[{DOM Worker}]
    │ ├─{GMPThread}
    │ ├─{Gecko_IOThread}
    │ ├─{HTML5 Parser}
    │ ├─{Hang Monitor}
    │ ├─{IPDL Background}
    │ ├─{Image Scaler}
    │ ├─{ImageBridgeChil}
    │ ├─{JS Watchdog}
    │ ├─{MediaManager}
    │ ├─{Net Predictor}
    │ ├─{Proxy R~olution}
    │ ├─{Socket Thread}
    │ ├─{Timer}
    │ ├─{URL Classifier}
    │ ├─{dconf worker}
    │ ├─3*[{firefox}]
    │ ├─{gdbus}
    │ ├─{gmain}
    │ ├─{localStorage DB}
    │ ├─{mozStorage #10}
    │ ├─{mozStorage #1}
    │ ├─{mozStorage #2}
    │ ├─{mozStorage #3}
    │ ├─{mozStorage #4}
    │ ├─{mozStorage #5}
    │ ├─{mozStorage #6}
    │ ├─{mozStorage #7}
    │ ├─{mozStorage #8}
    │ └─{mozStorage #9}
    ├─gnome-keyring-d─┬─{dconf worker}
    │ ├─{gdbus}
    │ ├─{gmain}
    │ └─{timer}
    ├─gpg-agent
    ├─gvfs-afc-volume─┬─{gdbus}
    │ └─{gvfs-afc-volume}
    ├─gvfs-udisks2-vo─┬─{gdbus}
    │ └─{gmain}
    ├─gvfsd───{gdbus}
    ├─gvfsd-fuse─┬─{gdbus}
    │ ├─{gvfs-fuse-sub}
    │ └─2*[{gvfsd-fuse}]
    ├─gvfsd-metadata───{gdbus}
    ├─gvfsd-trash─┬─{gdbus}
    │ └─{gmain}
    ├─polkitd─┬─{JS GC Helper}
    │ ├─{JS Sour~ Thread}
    │ ├─{gdbus}
    │ ├─{gmain}
    │ └─{runaway-killer-}
    ├─sddm─┬─Xorg
    │ ├─sddm-helper─┬─sh───xfce4-session─┬─dropbox─┬─{QXcbEventReader}
    │ │ │ │ └─24*[{dropbox}]
    │ │ │ ├─nm-applet─┬─{dconf worker}
    │ │ │ │ ├─{gdbus}
    │ │ │ │ └─{gmain}
    │ │ │ ├─polkit-gnome-au───{gdbus}
    │ │ │ ├─{gdbus}
    │ │ │ └─{gmain}
    │ │ └─{QProcessManager}
    │ └─{QProcessManager}
    ├─2*[systemd───(sd-pam)]
    ├─systemd-journal
    ├─systemd-logind
    ├─systemd-udevd───systemd-udevd
    ├─thunderbird─┬─2*[{Analysis Helper}]
    │ ├─{Cache I/O}
    │ ├─{Cache2 I/O}
    │ ├─{Cert Verify}
    │ ├─{DOM Worker}
    │ ├─{Gecko_IOThread}
    │ ├─{HTML5 Parser}
    │ ├─{Hang Monitor}
    │ ├─{JS GC Helper}
    │ ├─{JS Watchdog}
    │ ├─{Network Seer}
    │ ├─{Proxy R~olution}
    │ ├─{Socket Thread}
    │ ├─{Timer}
    │ ├─{URL Classifier}
    │ ├─{dconf worker}
    │ ├─{gdbus}
    │ ├─{gmain}
    │ ├─{localStorage DB}
    │ ├─{mozStorage #1}
    │ ├─{mozStorage #2}
    │ ├─{mozStorage #3}
    │ ├─{mozStorage #4}
    │ ├─{mozStorage #5}
    │ ├─{mozStorage #6}
    │ └─8*[{thunderbird}]
    ├─tumblerd─┬─{gdbus}
    │ ├─{gmain}
    │ └─2*[{pool}]
    ├─udisksd─┬─{cleanup}
    │ ├─{gdbus}
    │ ├─{gmain}
    │ └─{probing-thread}
    ├─upowerd─┬─{gdbus}
    │ └─{gmain}
    ├─wpa_supplicant
    ├─xfce4-panel─┬─panel-1-whisker─┬─{gdbus}
    │ │ └─{gmain}
    │ ├─panel-12-mixer─┬─{gdbus}
    │ │ ├─{task0}
    │ │ ├─{task1}
    │ │ └─{task2}
    │ ├─panel-2-actions
    │ ├─panel-6-systray
    │ ├─{gdbus}
    │ └─{gmain}
    ├─xfce4-power-man───{gdbus}
    ├─xfce4-terminal─┬─bash───bash───pstree
    │ ├─gnome-pty-helpe
    │ ├─{gdbus}
    │ └─{gmain}
    ├─xfconfd
    ├─xfdesktop─┬─{gdbus}
    │ └─{gmain}
    ├─xfsettingsd─┬─{gdbus}
    │ └─{gmain}
    └─xfwm4
    # enabled services
    dbus-org.freedesktop.NetworkManager.service enabled
    dbus-org.freedesktop.nm-dispatcher.service enabled
    display-manager.service enabled
    [email protected] enabled
    NetworkManager-dispatcher.service enabled
    NetworkManager.service enabled
    org.cups.cupsd.service enabled
    sddm.service enabled
    # ssd df
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 8.8G 4.8G 3.5G 58% /
    /dev/sda4 63G 12G 48G 20% /home
    # free
    total used free shared buff/cache available
    Mem: 2948 985 805 8 1157 1743
    Swap: 2047 0 2047
    5. Packages removable IMO
    More could be possible based on suggestions, but IMHO and is it safe?:
    |Package Name | Reason |
    |---------------------------|--------------------------------------------------------------
    |man-db 2.7.1-1 | For me: Wiki, Google and Forums are > what I need. |
    |man-pages 3.81-1 | For me: Wiki, Google and Forums are > what I need. |
    |xterm | xfce4-terminal is installed so is it needed? |
    |reiserfsprogs | No need for reiser FS support (if it is what package does). |
    |jfsutils | No need for JFS support. |
    |xfsprogs | No need for XFS support. |
    |lvm2 | I think no need for logical VM (but not sure). |
    |mdadm | I think no need for md devices monitoring/managing. ]
    |---------------------------|--------------------------------------------------------------
    |xfwm4-themes               | No big fan of theming unless required for XFCE.               |
    |btrfs-progs                     | No need for btrfs support (if it is what package does).      |
    |ipw2100-fw                     | No need for Intel centrino drivers.                                     |
    |ipw2200-fw                     | No need for Intel PRO/wireless.                                          |
    |zd1211-firmware            | I think no need for in-kernel26 zd1211rw wireless driver.  |
    6. Please guide what further can be removed.
    Thank you for time.
    Update: Del packages are already removed based on learning/thread discussion so far.
    Last edited by jackpot (2015-03-25 14:31:31)

    An update
    I managed to reach:
    pacman -Q | wc -l
    475
    From 536, more may be possible but need to learn a bit more. Packages installed now include:
    acl 2.2.52-2
    adwaita-icon-theme 3.14.1-1
    alsa-lib 1.0.29-1
    alsa-utils 1.0.29-1
    archlinux-keyring 20150212-1
    at-spi2-atk 2.14.1-1
    at-spi2-core 2.14.1-1
    atk 2.14.0-1
    attr 2.4.47-1
    avahi 0.6.31-14
    bash 4.3.033-1
    bc 1.06.95-1
    binutils 2.25-2
    bleachbit 1.6-1
    bzip2 1.0.6-5
    ca-certificates 20140923-9
    ca-certificates-cacert 20140824-2
    ca-certificates-mozilla 3.17.4-1
    ca-certificates-utils 20140923-9
    cairo 1.14.2-1
    cantarell-fonts 0.0.16-2
    cdparanoia 10.2-5
    cifs-utils 6.4-1
    colord 1.2.9-1
    compositeproto 0.4.2-3
    coreutils 8.23-1
    cracklib 2.9.1-1
    cups 2.0.2-3
    cups-filters 1.0.67-1
    curl 7.41.0-1
    damageproto 1.2.1-3
    db 5.3.28-2
    dbus 1.8.16-2
    dbus-glib 0.102-2
    dconf 0.22.0-1
    desktop-file-utils 0.22-1
    device-mapper 2.02.116-1
    dhclient 4.3.1-1
    dhcpcd 6.7.1-1
    diffutils 3.3-2
    dropbox 3.2.9-2
    e2fsprogs 1.42.12-2
    elfutils 0.161-3
    eog 3.14.3-1
    epdfview 0.1.8-5
    exempi 2.2.2-1
    exo 0.10.4-2
    expat 2.1.0-4
    fakeroot 1.20.2-1
    file 5.22-1
    file-roller 3.14.2-2
    filesystem 2015.02-1
    findutils 4.4.2-6
    firefox 36.0.4-1
    fixesproto 5.0-3
    flac 1.3.1-1
    fontconfig 2.11.1-1
    fontsproto 2.1.3-1
    foomatic-db-engine 3:20150308-1
    freetype2 2.5.5-1
    fuse 2.9.3-2
    galculator 2.1.3-3
    gamin 0.1.10-8
    garcon 0.4.0-1
    gawk 4.1.1-1
    gc 7.4.2-2
    gcc 4.9.2-4
    gcc-libs 4.9.2-4
    gd 2.1.1-1
    gdbm 1.11-1
    gdk-pixbuf2 2.31.3-1
    gettext 0.19.4-1
    ghostscript 9.15-2
    glib-networking 2.42.1-1
    glib2 2.42.2-1
    glibc 2.21-2
    glu 9.0.0-3
    gmp 6.0.0-2
    gnome-desktop 1:3.14.2-1
    gnome-icon-theme 3.12.0-2
    gnome-icon-theme-symbolic 3.12.0-2
    gnome-themes-standard 3.14.2.3-1
    gnupg 2.1.2-1
    gnutls 3.3.13-1
    gobject-introspection 1.42.0-1
    gpgme 1.5.3-1
    gpm 1.20.7-4
    graphite 1:1.2.4-1
    grep 2.21-2
    groff 1.22.3-2
    grub 1:2.02.beta2-5
    gsettings-desktop-schemas 3.14.1-1
    gstreamer0.10 0.10.36-4
    gstreamer0.10-base 0.10.36-3
    gstreamer0.10-base-plugins 0.10.36-3
    gtk-update-icon-cache 2.24.27-1
    gtk-xfce-engine 2.10.1-1
    gtk2 2.24.27-1
    gtk3 3.14.9-1
    gtksourceview2 2.10.5-3
    guile 2.0.11-2
    gvfs 1.22.3-2
    gzip 1.6-1
    harfbuzz 0.9.38-1
    hicolor-icon-theme 0.13-1
    hplip 3.15.2-3
    hplip-plugin 3.15.2-1
    hunspell 1.3.3-1
    hwids 20150129-1
    iana-etc 2.30-4
    icu 54.1-1
    inetutils 1.9.2-2
    iniparser 3.1-4
    inputproto 2.3.1-1
    iproute2 3.19.0-1
    iptables 1.4.21-1
    iputils 20121221-3
    iso-codes 3.57-1
    jansson 2.7-1
    jasper 1.900.1-13
    js17 17.0.0-1
    json-glib 1.0.2-1
    kbd 2.0.2-1
    kbproto 1.0.6-2
    keyutils 1.5.9-1
    kmod 20-1
    krb5 1.13.1-1
    lcms2 2.6-1
    ldb 1.1.20-1
    less 471-1
    lib32-acl 2.2.52-2
    lib32-attr 2.4.47-1
    lib32-bzip2 1.0.6-2
    lib32-curl 7.41.0-1
    lib32-e2fsprogs 1.42.12-1
    lib32-expat 2.1.0-2
    lib32-fontconfig 2.11.1-1
    lib32-freetype2 2.5.5-1
    lib32-gcc-libs 4.9.2-4
    lib32-gettext 0.19.4-1
    lib32-glib2 2.42.2-1
    lib32-glibc 2.21-2
    lib32-glu 9.0.0-2
    lib32-harfbuzz 0.9.38-1
    lib32-icu 54.1-1
    lib32-keyutils 1.5.9-1
    lib32-krb5 1.13.1-1
    lib32-libcap 2.24-1
    lib32-libdbus 1.8.16-1
    lib32-libffi 3.2.1-1
    lib32-libgcrypt 1.6.3-1
    lib32-libgpg-error 1.18-1
    lib32-libice 1.0.9-1
    lib32-libldap 2.4.40-1
    lib32-libnl 3.2.25-1
    lib32-libpcap 1.6.2-1
    lib32-libpng 1.6.16-1
    lib32-libsm 1.2.2-1
    lib32-libssh2 1.4.3-2
    lib32-libusb 1.0.19-1
    lib32-libx11 1.6.3-1
    lib32-libxau 1.0.8-1
    lib32-libxcb 1.11-1
    lib32-libxcursor 1.1.14-1
    lib32-libxdamage 1.1.4-2
    lib32-libxdmcp 1.1.1-2
    lib32-libxext 1.3.3-1
    lib32-libxfixes 5.0.1-1
    lib32-libxi 1.7.4-1
    lib32-libxml2 2.9.2-1
    lib32-libxrandr 1.4.2-1
    lib32-libxrender 0.9.8-1
    lib32-ncurses 5.9-3
    lib32-nvidia-340xx-libgl 340.76-1
    lib32-nvidia-340xx-utils 340.76-1
    lib32-openssl 1.0.2.a-1
    lib32-pcre 8.36-1
    lib32-readline 6.3.006-1
    lib32-systemd 218-1
    lib32-util-linux 2.25.2-1
    lib32-xz 5.2.1-1
    lib32-zlib 1.2.8-1
    libaio 0.3.110-1
    libarchive 3.1.2-8
    libassuan 2.1.3-1
    libatasmart 0.19-3
    libatomic_ops 7.4.2-1
    libbluray 0.7.0-1
    libbsd 0.7.0-1
    libcap 2.24-2
    libcap-ng 0.7.4-1
    libcddb 1.3.2-4
    libcdio 0.93-1
    libcdio-paranoia 10.2+0.93+1-1
    libcroco 0.6.8-2
    libcups 2.0.2-3
    libdaemon 0.14-3
    libdatrie 0.2.8-1
    libdbus 1.8.16-2
    libdrm 2.4.60-1
    libedit 20141030_3.1-1
    libepoxy 1.2-2
    libevdev 1.4-1
    libevent 2.0.22-1
    libexif 0.6.21-2
    libffi 3.2.1-1
    libfontenc 1.1.2-1
    libgcrypt 1.6.3-2
    libglade 2.6.4-5
    libgpg-error 1.18-1
    libgphoto2 2.5.7-1
    libgusb 0.2.4-1
    libice 1.0.9-1
    libidn 1.30-1
    libieee1284 0.2.11-5
    libimobiledevice 1.2.0-1
    libjpeg-turbo 1.4.0-1
    libkeybinder2 0.3.0-2
    libksba 1.3.2-1
    libldap 2.4.40-2
    libmm-glib 1.4.4-1
    libmpc 1.0.3-1
    libndp 1.4-1
    libnewt 0.52.17-2
    libnl 3.2.25-1
    libnm-glib 1.0.0-2
    libnm-gtk 1.0.0-1
    libnotify 0.7.6-1
    libogg 1.3.2-1
    libomxil-bellagio 0.9.3-1
    libpaper 1.1.24-7
    libpcap 1.6.2-1
    libpciaccess 0.13.3-1
    libpeas 1.12.1-1
    libpipeline 1.4.0-1
    libplist 1.12-1
    libpng 1.6.16-1
    libproxy 0.4.11-5
    librsvg 1:2.40.8-1
    libsamplerate 0.1.8-3
    libsasl 2.1.26-7
    libseccomp 2.1.1-1
    libsecret 0.18-1
    libsm 1.2.2-2
    libsndfile 1.0.25-3
    libsoup 2.48.1-1
    libssh2 1.4.3-2
    libsystemd 218-2
    libtasn1 4.3-1
    libteam 1.14-1
    libthai 0.1.21-1
    libtheora 1.1.1-3
    libtiff 4.0.3-5
    libtirpc 0.2.5-1
    libtool 2.4.6-1
    libtxc_dxtn 1.0.1-6
    libunique 1.1.6-6
    libunistring 0.9.5-1
    libunwind 1.1-2
    libusb 1.0.19-1
    libusbmuxd 1.0.10-1
    libutil-linux 2.26.1-3
    libvisual 0.4.0-5
    libvorbis 1.3.4-1
    libvpx 1.3.0-1
    libwbclient 4.2.0-1
    libwnck 2.31.0-1
    libx11 1.6.3-1
    libxau 1.0.8-2
    libxcb 1.11-1
    libxcomposite 0.4.4-2
    libxcursor 1.1.14-2
    libxdamage 1.1.4-2
    libxdmcp 1.1.2-1
    libxext 1.3.3-1
    libxfce4ui 4.12.1-1
    libxfce4util 4.12.1-1
    libxfixes 5.0.1-1
    libxfont 1.5.1-1
    libxft 2.3.2-1
    libxi 1.7.4-1
    libxinerama 1.1.3-2
    libxkbcommon 0.5.0-1
    libxkbfile 1.0.8-2
    libxklavier 5.4-1
    libxml2 2.9.2-2
    libxmu 1.1.2-1
    libxpm 3.5.11-1
    libxrandr 1.4.2-2
    libxrender 0.9.8-1
    libxres 1.0.7-1
    libxshmfence 1.2-1
    libxslt 1.1.28-3
    libxt 1.1.4-1
    libxtst 1.2.2-1
    libxv 1.0.10-1
    libxxf86vm 1.1.4-1
    linux 3.19.2-1
    linux-api-headers 3.18.5-1
    linux-firmware 20150206.17657c3-1
    llvm-libs 3.6.0-3
    logrotate 3.8.9-1
    lxdm 0.5.0-4
    lz4 127-1
    lzo 2.09-1
    make 4.1-1
    man-db 2.7.1-1
    man-pages 3.81-1
    mcpp 2.7.2-5
    mesa 10.5.1-2
    mime-types 9-1
    mkinitcpio 18-2
    mkinitcpio-busybox 1.21.1-2
    mobile-broadband-provider-info 20120614-2
    mousepad 0.4.0-1
    mozilla-common 1.4-4
    mpfr 3.1.2.p11-1
    mtdev 1.1.5-1
    nano 2.2.6-3
    ncurses 5.9-7
    net-snmp 5.7.3-1
    netctl 1.10-1
    nettle 2.7.1-1
    network-manager-applet 1.0.0-1
    networkmanager 1.0.0-2
    npth 1.1-1
    nspr 4.10.8-1
    nss 3.17.4-1
    ntfs-3g 2014.2.15-1
    ntp 4.2.8.p1-1
    nvidia-340xx 340.76-6
    nvidia-340xx-libgl 340.76-2
    nvidia-340xx-utils 340.76-2
    openjpeg 1.5.2-1
    openresolv 3.6.1-1
    openssl 1.0.2.a-1
    orc 0.4.23-1
    os-prober 1.64-1
    p11-kit 0.22.1-3
    p7zip 9.38.1-1
    package-query 1.5-2
    pacman 4.2.1-1
    pacman-mirrorlist 20150315-1
    pam 1.1.8-5
    pambase 20130928-1
    pango 1.36.8-1
    pciutils 3.3.0-1
    pcmciautils 018-7
    pcre 8.36-2
    perl 5.20.2-1
    perl-clone 0.37-2
    perl-dbi 1.633-1
    perl-xml-libxml 2.0117-1
    perl-xml-namespacesupport 1.11-3
    perl-xml-sax 0.99-4
    perl-xml-sax-base 1.08-3
    pinentry 0.9.0-1
    pixman 0.32.6-1
    polkit 0.112-2
    polkit-gnome 0.105-2
    poppler 0.31.0-1
    poppler-glib 0.31.0-1
    popt 1.16-7
    procps-ng 3.3.10-1
    psmisc 22.21-2
    pth 2.0.7-5
    pygobject2-devel 2.28.6-11
    pygtk 2.24.0-5
    python 3.4.3-1
    python2 2.7.9-1
    python2-cairo 1.10.0-2
    python2-gobject2 2.28.6-11
    qpdf 5.1.2-1
    randrproto 1.4.1-1
    readline 6.3.006-1
    recordproto 1.14.2-2
    renderproto 0.11.1-3
    rest 0.7.92-1
    samba 4.2.0-1
    sane 1.0.24-4
    sed 4.2.2-3
    shadow 4.2.1-3
    shared-mime-info 1.4-1
    simple-scan 3.14.2-1
    slang 2.3.0-1
    smbclient 4.2.0-1
    sqlite 3.8.8.3-1
    startup-notification 0.12-4
    sudo 1.8.12-1
    sysfsutils 2.1.0-9
    systemd 218-2
    systemd-sysvcompat 218-2
    talloc 2.1.1-1
    tar 1.28-1
    tdb 1.3.4-1
    tevent 0.9.24-1
    texinfo 5.2-3
    thunar 1.6.6-1
    thunar-archive-plugin 0.3.1-5
    thunar-volman 0.8.1-1
    thunderbird 31.5.0-1
    ttf-dejavu 2.34-2
    ttf-ms-fonts 2.0-10
    ttf-urdufonts 1.2-3
    tumbler 0.1.31-1
    tzdata 2015a-1
    udisks2 2.1.5-1
    upower 0.99.2-2
    usbutils 008-1
    util-linux 2.26.1-3
    v4l-utils 1.6.2-1
    vi 1:050325-4
    videoproto 2.3.2-1
    vte 0.28.2-5
    vte-common 0.38.3-1
    wayland 1.7.0-1
    wget 1.16.3-1
    which 2.20-7
    wine 1.7.39-2
    wine-mono 4.5.6-1
    wine_gecko 2.36-1
    wpa_supplicant 2.3-1
    xcb-proto 1.11-1
    xcb-util 0.4.0-1
    xextproto 7.3.0-1
    xf86-input-evdev 2.9.1-1
    xf86-input-keyboard 1.8.0-3
    xf86-input-mouse 1.9.1-1
    xf86vidmodeproto 2.3.1-3
    xfce4-appfinder 4.12.0-1
    xfce4-mixer 4.11.0-2
    xfce4-panel 4.12.0-1
    xfce4-power-manager 1.4.4-1
    xfce4-session 4.12.1-2
    xfce4-settings 4.12.0-3
    xfce4-terminal 0.6.3-2
    xfce4-whiskermenu-plugin 1.5.0-2
    xfconf 4.12.0-1
    xfdesktop 4.12.1-1
    xfwm4 4.12.2-1
    xineramaproto 1.2.1-3
    xkeyboard-config 2.14-1
    xorg-bdftopcf 1.0.5-1
    xorg-font-util 1.3.1-1
    xorg-font-utils 7.6-4
    xorg-fonts-alias 1.0.3-1
    xorg-fonts-encodings 1.0.4-4
    xorg-fonts-misc 1.0.3-3
    xorg-iceauth 1.0.7-1
    xorg-mkfontdir 1.0.7-2
    xorg-mkfontscale 1.1.2-1
    xorg-server 1.17.1-4
    xorg-server-common 1.17.1-4
    xorg-server-utils 7.6-4
    xorg-sessreg 1.1.0-1
    xorg-setxkbmap 1.3.0-2
    xorg-xauth 1.0.9-1
    xorg-xbacklight 1.2.1-1
    xorg-xcmsdb 1.0.4-2
    xorg-xgamma 1.0.5-2
    xorg-xhost 1.0.6-1
    xorg-xinit 1.3.4-2
    xorg-xinput 1.6.1-1
    xorg-xkbcomp 1.3.0-1
    xorg-xmodmap 1.0.8-1
    xorg-xrandr 1.4.3-1
    xorg-xrdb 1.1.0-1
    xorg-xrefresh 1.0.5-1
    xorg-xset 1.2.3-1
    xorg-xsetroot 1.1.1-2
    xproto 7.0.27-1
    xz 5.2.1-1
    yajl 2.1.0-1
    yaourt 1.5-1
    zlib 1.2.8-3
    EDIT:
    More suggestions welcome.
    Last edited by jackpot (2015-03-25 17:27:24)

  • Post-Install New Mac Setup

    After netinstalling our 10.5 macs, we're seeing the startup screen (registration, new admin accounts, etc), even though we've suppressed this in the base image, and added it again to the System Image Utility Workflow (out of desperation to get this to go away).
    Here is what we've executed on the base image (which works fine if we do a local restore, like ASR or block restore):
    touch /var/db/.AppleSetupDone
    touch /Library/Receipts/.SetupRegComplete
    Since we just threw the image into the netinstall workflow, it was obviously overridden, so we added the scripts to the netinstall workflow as post-install items. It still doesn't work, and properly suppress the registration/accounts setup process.
    What could we be missing here?
    Thanks,
    j

    Brian,
    +So (to reiterate), you've installed, configured, and booted into this system (to insure that the system has had an opportunity to do whatever it needs to do). Then you imaged the volume, presumably in TDM, and when you restore this, it wants to create a new user?+
    Yep!
    If we use the image on a mac booted into firewire disk mode (or ASR multicast), and then reboot that mac, it starts up and does not go through the registration routine - which is good.
    +How was the source volume created? (Clean install, upgrade from something?)+
    We used instaDMG - clean and no upgrade.
    +Did you make the image using the Assistant mode (select the volume and build a "NetInstall")? Or use the workflow mode? If workflow... what other actions did you include?+
    We selected the volume and chose to do a netinstall in a workflow mode.
    We have:
    1) Define Image Source
    2) Enable Automated Installation (choose volume)
    3) Create Image
    4) Add Packages and postinstall scripts (script was commands i put in my first post)
    The weird thing is that it works fine when we use a restore technology other than netinstall (ASR multicast, Disk Utility block copy, etc).
    Thanks,
    j

  • Post Install Task

    Hi,
    I've finished installing R12, but I did not perform the Post-install task :(
    Post-Install Task
    1. Stop the middle tier services using script adstpall.sh
    2. Compile APPS schema(s)
    3. Compile flexfield data in AOL tables
    4. Generate message files
    5. Generate form, libraries and menu files
    6. Relink Application programs.
    7. Generate product jar files with option Force=Y
    8. Configure workflow notification mailer.
    I only know #1 but not the rest.
    How do I do 2 - 8?
    Thanks

    For "Configure workflow notification mailer", you can run this step from OAM.
    OAM Link
    http://<hostname>.<domainname>:<port>/servlets/weboam/oam/oamLogin

Maybe you are looking for