OK, you just finished installing the latest and greatest openSUSE 12.3, but now, all of your favorite bash scripts are not there. Well, do not despair, you can get them all using a single bash script. Of course, we are talking about the 27 or so bash scripts I have written that work with openSUSE 12.3. Just copy the following text inside the code block shown below into your favorite text editor like kwrite or gedit and save it as the file bsl (Bash Script** L**oader) in your local $HOME/bin folder (It is kind of funny that it starts with bs ain’t it!).
Save as the file $HOME/bin/bsl
#!/bin/bash
#: Title : bsl
#: Date Created: Sun Sep 2 15:25:45 CDT 2012
#: Last Edit : Fri Jul 26 19:40:51 CDT 2013
#: Author : James D. McDaniel
#: Version : 1.67
#: Description : Download 27 Bash Scripts
#: Options : None
#
# This is the standard GPL Statement, leave at the top of the script.
# Just use the command show_gpl after this function for it to be shown.
#
function show_gpl {
echo ""
echo "bsl is a bash script file written to be used with openSUSE."
echo "Copyright (C) 2012 by James D. McDaniel, jmcdaniel3@austin.rr.com"
echo ""
echo "This program is free software; you can redistribute it and/or modify"
echo "it under the terms of the GNU General Public License as published by"
echo "the Free Software Foundation; either version 2 of the License, or"
echo "(at your option) any later version."
echo ""
echo "This program is distributed in the hope that it will be useful,"
echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
echo "GNU General Public License for more details."
echo ""
echo "You should have received a copy of the GNU General Public License"
echo "along with this program; if not, write to the Free Software"
echo "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"
echo ""
}
clear
echo "Bash File Script Loader"
echo
echo "This will install 27 bash scripts. Some require root authority to be installed. None"
echo "of the scripts will be executed. You are encouraged read through this script and remark"
echo "out anything you do not want to download. You need internet access for this to work."
echo
read -p "Are you ready to install these bash scripts? (y/n) (n): " CHOICE
if $CHOICE != [yY] ]] ; then
exit 0
fi
# Grub 2 Utility (1)
rm ~/bin/grub2cmd ; wget -nc http://paste.opensuse.org/view/download/58627662 -O ~/bin/grub2cmd ; chmod +x ~/bin/grub2cmd
# systemd Utility (26)
rm ~/bin/sysdcmd ; wget -nc http://paste.opensuse.org/view/download/95655714 -O ~/bin/sysdcmd ; chmod +x ~/bin/sysdcmd
# zypper Utility (27)
sudo rm /usr/local/bin/zc ; sudo wget -nc http://paste.opensuse.org/view/download/75755470 -O /usr/local/bin/zc ; sudo chmod +x /usr/local/bin/zc
# Samba Setup Script (2)
rm ~/bin/sact ; wget -nc http://paste.opensuse.org/view/download/60035 -O ~/bin/sact ; chmod +x ~/bin/sact
# User Utility bash scripts for everyone (2,3,4,5,6,7)
rm ~/bin/safp ; wget -nc http://paste.opensuse.org/view/download/29253557 -O ~/bin/safp ; chmod +x ~/bin/safp
rm ~/bin/isomount ; wget -nc http://paste.opensuse.org/view/download/28322886 -O ~/bin/isomount ; chmod +x ~/bin/isomount
rm ~/bin/sclu ; wget -nc http://paste.opensuse.org/view/download/85914606 -O ~/bin/sclu ; chmod +x ~/bin/sclu
rm ~/bin/fsm ; wget -nc http://paste.opensuse.org/view/download/53978354 -O ~/bin/fsm ; chmod +x ~/bin/fsm
rm ~/bin/slrc ; wget -nc http://paste.opensuse.org/view/download/89529032 -O ~/bin/slrc ; chmod +x ~/bin/slrc
rm ~/bin/suff ; wget -nc http://paste.opensuse.org/view/download/903210 -O ~/bin/suff ; chmod +x ~/bin/suff
# Add "My Computer" icon back to openSUSE 12.3 (8)
rm ~/bin/saksi ; wget -nc http://paste.opensuse.org/view/download/91677878 -O ~/bin/saksi ; chmod +x ~/bin/saksi
# System Utility Checkers (9,10,11,12,13,14)
rm ~/bin/hi ; wget -nc http://paste.opensuse.org/view/download/27608571 -O ~/bin/hi ; chmod +x ~/bin/hi
rm ~/bin/slave ; wget -nc http://paste.opensuse.org/view/download/50521534 -O ~/bin/slave ; chmod +x ~/bin/slave
rm ~/bin/start ; wget -nc http://paste.opensuse.org/view/download/49185505 -O ~/bin/start ; chmod +x ~/bin/start
rm ~/bin/skim ; wget -nc http://paste.opensuse.org/view/download/60388103 -O ~/bin/skim ; chmod +x ~/bin/skim
rm ~/bin/cfu ; wget -nc http://paste.opensuse.org/view/download/92162247 -O ~/bin/cfu ; chmod +x ~/bin/cfu
rm ~/bin/mmcheck ; wget -nc http://paste.opensuse.org/view/download/17784442 -O ~/bin/mmcheck ; chmod +x ~/bin/mmcheck
# Write your own Bash scripts (15)
rm $HOME/bin/nsf ; rm $HOME/Desktop/NSF.desktop
sudo rm /usr/local/bin/nsf ; sudo wget -nc http://paste.opensuse.org/view/download/27761727 -O /usr/local/bin/nsf ; sudo chmod +x /usr/local/bin/nsf
# This is the old 2.xx version: rm ~/bin/nsf ; wget -nc http://paste.opensuse.org/view/download/51163610 -O ~/bin/nsf ; chmod +x ~/bin/nsf
# Root User Substitution (16)
rm ~/bin/asroot ; wget -nc http://paste.opensuse.org/view/download/34473473 -O ~/bin/asroot ; chmod +x ~/bin/asroot
# System File Editing scripts (17,18)
rm $HOME/bin/sysedit ; rm $HOME/Desktop/SYSEdit.desktop
sudo rm /usr/local/bin/sysedit ; sudo wget -nc http://paste.opensuse.org/view/download/88360942 -O /usr/local/bin/sysedit ; sudo chmod +x /usr/local/bin/sysedit
rm ~/bin/fewrup ; wget -nc http://paste.opensuse.org/view/download/23644270 -O ~/bin/fewrup ; chmod +x ~/bin/fewrup
# Getting the After.local bash script to work (19)
wget -nc http://paste.opensuse.org/view/download/33889052 -O ~/bin/make-after-local ; chmod +x ~/bin/make-after-local
# Using DKMS, must install dkms first (20)
wget -nc http://paste.opensuse.org/view/download/71295014 -O ~/bin/make-dkms-installer ; chmod +x ~/bin/make-dkms-installer
# Compile Your Own Kernel (21,22,23)
rm ~/bin/sgtb ; wget -nc http://paste.opensuse.org/view/download/1617846 -O ~/bin/sgtb ; chmod +x ~/bin/sgtb
rm ~/bin/sakc ; wget -nc http://paste.opensuse.org/view/download/55036844 -O ~/bin/sakc ; chmod +x ~/bin/sakc
rm ~/bin/sakr ; wget -nc http://paste.opensuse.org/view/download/607174 -O ~/bin/sakr ; chmod +x ~/bin/sakr
# Load nVIDIA Video Driver (24,25)
sudo rm /usr/local/bin/lnvhw ; sudo wget -nc http://paste.opensuse.org/view/download/40288603 -O /usr/local/bin/lnvhw ; sudo chmod +x /usr/local/bin/lnvhw
sudo rm /usr/local/bin/sandi ; sudo wget -nc http://paste.opensuse.org/view/download/88011425 -O /usr/local/bin/sandi ; sudo chmod +x /usr/local/bin/sandi
show_gpl
exit 0
# End Of Script
In order to use the script, it must be marked executable. Open up a terminal session after you have saved this bash script and run the following terminal command:
chmod +x $HOME/bin/bsl
The bash script contains all of my recent work. Before you save it, look through the categories and remark out any lines you will not need. For instance there are three for compiling a Linux kernel and two for anyone using the nVIDIA driver. If its not needed, just add a remark # indicator at the start of that line and it will not be downloaded when you run the bsl bash script file. None of the script files will be run, but only downloaded for you. You must run them one by one before they can be used. To start the download, open up a terminal session and run this bsl bash script as:
bsl
You must confirm you are ready for the bsl bash script to be run. After running bsl, have a look in your $HOME/bin folder for the names of the files you have downloaded. The very first script I would run is nsf (New Script File) and the second is sysedit (System File Editor), both of which create KDE Icons for you on your desktop after the first time they are run from terminal. To run these scripts, open up a terminal session and type the command(s):
nsf
AND
sysedit
Also, some files, such as Grub2Cmd, will be installed in the /usr/local/bin folder and need root user authority to be installed there. To use these, open up a terminal session and type in the command(s):
grub2cmd
This application will also create KDE & Gnome icons for you to use after the first time run from terminal. Using this bsl bash script is the fastest way I know of to get your Joyous fill of bash scripts, ready to run and enhance your openSUSE 12.2/12.3 experience.
For more information on what these bash scripts do, just read through my 40 different blogs: openSUSE Forums - James’ openSUSE Bash Scripting (and other things) Blog - Your Comments are Welcome! - Blogs
Good Luck…AND…Thank You for using openSUSE,