openSUSE 12.3 Bash Script Download Bonanza! with Bash Script Loader

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,

hi
After reading your Bash script on 12.2 I’m interested in Loading NVIDIA Video Driver.

I still like to learn more on scripting. I have two PC’s upgraded to opensuse 11.4 from a DVD ver 11.0 and I have been playing with it. My video is not clean. One is a SAMSUNG Syncmaster the other is A DELL 24" and the two have different problems. I searched google and tried all sorts of stuff to fix the video. For now I work around the problems. I don’t know if they are bugs or just the nvidia driver not set up correctly. Then I tried suse 12.1 from a DVD and the screen were the same symptoms so I went backwards to ver 11.4 and that is where I am today.

Is it applicable to opensuse 11.4 or should I just try it and if it breaks reload ver 11.4?

I’m still having fun with linux and I will try to chg your shell script to perl.

thanking you in advance :slight_smile:
-cookie_munster

[QUOTE=cook_ie;bt623]hi
After reading your Bash script on 12.2 I’m interested in Loading NVIDIA Video Driver.

I still like to learn more on scripting. I have two PC’s upgraded to opensuse 11.4 from a DVD ver 11.0 and I have been playing with it. My video is not clean. One is a SAMSUNG Syncmaster the other is A DELL 24" and the two have different problems. I searched google and tried all sorts of stuff to fix the video. For now I work around the problems. I don’t know if they are bugs or just the nvidia driver not set up correctly. Then I tried suse 12.1 from a DVD and the screen were the same symptoms so I went backwards to ver 11.4 and that is where I am today.

Is it applicable to opensuse 11.4 or should I just try it and if it breaks reload ver 11.4?

I’m still having fun with linux and I will try to chg your shell script to perl.

thanking you in advance :slight_smile:
-cookie_munster[/QUOTE]

I suggest you read through my blogs on the subjects and then come back if you have more questions.

Installing the nVIDIA Video Driver the Hard Way: https://forums.opensuse.org/blogs/jdmcdaniel3/installing-nvidia-video-driver-hard-way-29/

AND

LNVHW - Load NVIDIA (driver the) Hard Way from runlevel 3 - Version 1.46: https://forums.opensuse.org/blogs/jdmcdaniel3/lnvhw-load-nvidia-driver-hard-way-runlevel-3-version-1-10-32/

Thank You,

I read thru some of the blogs and I came to realize the video driver is OK I think I have other problems.

Mouse trails all over the desktop on my Dell monitor do not go away till I open a terminal or editor that covers that area and at boot it takes over 2 minutes and the mouse trails do not go away till splash screen and task bar come on and my suse splash screen is broken "google had a couple of solutions but I did not fix it yet.
With my SAMSUNG monitor the mouse pointer uses the bottom of the pointer to activate the area instead of the top of the pointer.

I have to concentrate on one problem at a time. For the mouse trails I have tried cli cmds ‘free, top -n2 and ps aux’,googled and went into the bugzilla bugs looking for it and nothing stands out as a solution.

my question is what can I read or research to find the mouse trailing problem ?

[QUOTE=cook_ie;bt627]I read thru some of the blogs and I came to realize the video driver is OK I think I have other problems.

Mouse trails all over the desktop on my Dell monitor do not go away till I open a terminal or editor that covers that area and at boot it takes over 2 minutes and the mouse trails do not go away till splash screen and task bar come on and my suse splash screen is broken "google had a couple of solutions but I did not fix it yet.
With my SAMSUNG monitor the mouse pointer uses the bottom of the pointer to activate the area instead of the top of the pointer.

I have to concentrate on one problem at a time. For the mouse trails I have tried cli cmds ‘free, top -n2 and ps aux’,googled and went into the bugzilla bugs looking for it and nothing stands out as a solution.

my question is what can I read or research to find the mouse trailing problem ?[/QUOTE]

For mouse tracking issues, I think there is even a desktop effect that does this and you might want to make sure you have not turned on such an effect. In KDE its menu / Configure Desktop and then Desktop Effects. I also look at your mouse cursor setup as well.

Thank You,

Places I looked to find information on the mouse .
1a.Computer-> YaST-> password ->YAST2 Control center -> under hardware -> ‘Mouse on Text Consule’
This has a selection for Mouse configuration. note: it takes 20 sec for pop up screen to come up.
I stayed with the default mouse and canceled this screen.

1b. YAST2 Control center -> Hardware Information -> Architecture:i386 -> click on Mouse : Device USB-PS/2 Optical mouse

  1. Computer -> Control center -> Hardware -> click on mouse -> pop up screen Mouse Preferences
    went thru two tabs: General and Accessibility : nothing about mouse trails

  2. from root I found 303 files related to mouse.
    example: ./usr/lib/python2.7/site-packages/orca/mouse_review.py

  3. under help:-> search -> mouse trail -> GNOME Configuration Editor -usbdevice [tablet|mouse]’.

summary: I could not find any info on controlling the mouse trails.

this is helping me to find all info on the mouse
and do some abc’s on linux and it is appreciated.
-eac

I also noticed the mouse trails stop in safe mode. I am also trying in normal mode with other video settings.

I noticed when I log out it takes up to two minutes ‘with mouse trails’ to get from a black screen to the prompt asking for log in.

cheers and thanks
-eac

[QUOTE=cook_ie;bt632]I also noticed the mouse trails stop in safe mode. I am also trying in normal mode with other video settings.

I noticed when I log out it takes up to two minutes ‘with mouse trails’ to get from a black screen to the prompt asking for log in.

cheers and thanks
-eac[/QUOTE]

I think you should consider posting a problem help request on your mouse in the main forum perhaps here: https://forums.opensuse.org/english/get-technical-help-here/hardware/

Thank You,

Thank you for you help and patience with me. I will take your advice

cheers :slight_smile:
-eac

now post your project free on hire freelancer freelancers site
no fee no commission totally free for all and always will
if you need Freelance Webfreelance work Designers,
Programmers, Writers. Custom Web Design. Freelance Projects & Jobs
you can post your project totally free on Freelance Web Designers
great free resource for all php freelancePhp Programmers
Custom Web Design