http://paste.opensuse.org/view/download/18586147](http://www.imagebam.com/image/0ea82f162592259)
S.G.T.B. - SuSE Git Kernel Tarball Creator - Version 1.85 (works with openSUSE 12.2) creates a kernel tarball as one can download from kernel.org but for ANY past or recent kernel version ever released. SGTB now supports multiple GIT URL’s, which you select at startup.
This sgtb script will do the following:
- Install git if it is not installed
- Check for your Download folder and offer to create it if not there.
- Download the entire kernel source tree from github.com or kernel.org, as you select at startup.
- If, the source tree is present, update the tree today.
- Enter the kernel version you want to create as a tarball.
- Create the kernel source file tarball as you could download from kernel.org when it was up and running.
- Copy the tarball to your ~/Downloads folder for use by any kernel compile script, such as sakc.
- You can now get a list of included kernel versions to select from.
- You can now elect to change your Git URL without leaving the program.
- SGTB now creates a KDE Icon in your Desktop and in the KDE Applications menu.
The following values can/could/should/perhaps be edited by the user before using the script:
#******************************************************************************
# Where do you want your Kernel Tarballs copied to? Do not add a / at the End!
# *****************************************************************************
downloads=$HOME/Downloads
#******************************************************************************
# Where do you want your Git Source Folder Located? Do not add a / at the End!
# Git_Base_Folder=$HOME/Kernels" is the default
# *****************************************************************************
Git_Base_Folder="$HOME/Kernels"
# *****************************************************************************
# From where are you downloading your kernel source files?
# see http://git.kernel.org/ for more git sources
# *****************************************************************************
urls=5
nam[1]="Torvalds Linix.git @ Kernel.org "
url[1]="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
nam[2]="Torvalds Linix.git @ GitHub.com "
url[2]="https://github.com/torvalds/linux.git"
nam[3]="Linux-Stable.git @ Kernel.org "
url[3]="git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
nam[4]="Torvalds Linix-2.6.git @ Kernel.org"
url[4]="git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git"
nam[5]="Target-Pending git/nab @ Kernel.org"
url[5]="git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git"
# *****************************************************************************
# sgtb can create a kde icon if you want. sgtb_icon_check=true creates an icon
# if not there for the KDE desktop. sgtb_icon_check=false does not create a
# desktop icon. The KDE icon is located/named $HOME/Desktop/S.G.T.B..desktop.
# *****************************************************************************
sgtb_icon_check=true
# *****************************************************************************
# sgtb can create a kde menu icon if you want. sgtb_appl_check=true creates a
# appl menu if not there. sgtb_appl_check=false does not create a appl menu
# icon. The sgtb_icon_check=true above must be set before an Application menu
# is create located/named as /usr/share/applications/S.G.T.B..desktop.
# *****************************************************************************
sgtb_appl_check=true
# ****************************************************************************
# KDE Desktop icon name
# ****************************************************************************
kde_icon_name="S.G.T.B..desktop"
# ****************************************************************************
# KDE Desktop icon Location/Name - Look for it in your desktop folder
# ****************************************************************************
sgtbkdeicon="$HOME/Desktop/$kde_icon_name"
# ****************************************************************************
# KDE Menu icon Location/Name - Look for it in your kde Applications menu
# ****************************************************************************
sgtbkdeappicon="/usr/share/applications/$kde_icon_name"
# *****************************************************************************
# Do you want to see S.G.T.B. in color?
# The default is true, but can be set to false
# New Escape Sequences work without a Desktop loaded
# *****************************************************************************
use_color=true
Copy and Paste the text of this script into a text editor and save it as the file sgtb in your home area bin folder (~/bin/sgtb). The script has become too large to be posted in a message here and is now included in SUSE Paste.
S.G.T.B. - SuSE Git Kernel Tarball Creator - Version 1.86
Open the above Link in a new Tab. Select the Download option in the top right and then select Open With Kwrite or other text editor and then save the bash script text file as ~/bin/sgtb. It is possible to directly download sgtb using the following terminal command (You must delete or rename the old version of sgtb first):
rm ~/bin/sgtb
wget -nc http://paste.opensuse.org/view/download/1617846 -O ~/bin/sgtb
The script file sgtb must be marked executable in order to use it. Open up a terminal session and run the following command:
chmod +x ~/bin/sgtb
It is even possible to string all three of these commands together as one. This is a Highly Recommended Way to get SGTB! Copy the following command, open up a terminal session, paste it in and press enter:
rm ~/bin/sgtb ; wget -nc http://paste.opensuse.org/view/download/1617846 -O ~/bin/sgtb ; chmod +x ~/bin/sgtb
To use the script, open up a terminal session and run the following command:
sgtb
Just as before, I would love to hear any comments on the use of this script that you might have.
Thank You,
Blogs: asroot : Bash : Packet Filter : C.F.U. : GPU’s : fewrup : F.S.M. : H.I. : nVIDIA : LNVHW : N.S.F. : S.A.K.C. : MMCHECK
S.A.S.I. : S.C.L.U. : S.G.T.B. : S.K.I.M. : S.L.A.V.E. : S.L.R.C. : S.T.A.R.T. : S.U.F.F. : SYSEdit : systemd : YaST Power