Blog Comments

  1. jdmcdaniel3's Avatar
    The following bash script will download most of the online bash scripts I have posted here. Copy the text and save it as the text file I called bsl into your ~/bin folder (/home/yourname/bin/bsl):

    [CODE]#!/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

    [/CODE]

    To make it executable, run the following terminal command:

    [CODE]chmod +x ~/bin/bsl[/CODE]

    Finally, to use the bash script, open up a terminal session and run the command:

    [CODE]bsl[/CODE]

    This will install the following bash scripts into your ~/bin folder: sclu, asroot, cfu, fsm, hi, mmcheck, nsf, sakc, sgtb, skim, slave, slrc, start, suff, fewrup, sysedit and fastboot, & pbs are located in the /usr/local/bin folder. The next to the last script not installed by default is for only openSUSE 12.1 and so remove the comment if you want to load the after.local patch. The last script is not installed by default called lnvhw to allow the install of the nVIDIA driver the hard way. Remove the # at the first of the line to get this script before you run sgbs and good luck.

    Thank You,
    Updated 10-Nov-2013 at 15:18 by jdmcdaniel3
  2. jdmcdaniel3's Avatar
    [QUOTE]I had to post this link somewhere (so I know where to find it back

    [URL="http://tldp.org/LDP/abs/html/abs-guide.html"]Advanced Bash-Scripting Guide[/URL]

    But it would be probably more useful if it would appear as a link and people could just click on it.[/QUOTE]

    The best I could do was to post it inside of a message from me.

    Thank You,
  3. please_try_again's Avatar
    I had to post this link somewhere (so I know where to find it back

    [URL="http://tldp.org/LDP/abs/html/abs-guide.html"]Advanced Bash-Scripting Guide[/URL]

    But it would be probably more useful if it would appear as a link and people could just click on it.
    Updated 17-Dec-2011 at 18:52 by jdmcdaniel3
  4. jdmcdaniel3's Avatar
    [QUOTE=kresh;bt287]Thank you so much. This removed the final barrier that was keeping me from upgrading from 11.4 to 12.1

    This was well written with clear instructions. Outstanding![/QUOTE]

    Gland you like the writeup kresh and thanks for the kind words. Please, if you make any new discoveries on this subject, don't forget to share them with us here.

    Thank You,
  5. kresh's Avatar
    Thank you so much. This removed the final barrier that was keeping me from upgrading from 11.4 to 12.1

    This was well written with clear instructions. Outstanding!
  6. please_try_again's Avatar
    My wife filled the bug report on the nmb issue - that I could clearly identify and reproduce.
    About /lib/systemd/system/rc-local.service not working as I would expect, I can not say that it's a bug (I don't know what the developpers had in mind). If you take a look at the services, you will notice that most of the ones starting daemons installed from packages still use sysvinit scripts (that get shadowed and started by systemctl, I don't know exactly how). On the 12.1 systems I'm (just) starting to install, the exceptions are apache2 and hddtemp (the one I actually ported myself from Fedora - it's in my repo). I'm sure the systemd team is aware of the portmapper starting too late (or the after.local running too early). The problem doesn't exist in Fedora 15 though.
  7. jdmcdaniel3's Avatar
    [QUOTE=please_try_again;bt284]Unfortunatley, it doesn't behave like systemV after.local, meaning it doesn't run after all services have been started. If you put a command which needs a service that hasn't been started, it won't work.

    I tried to replace

    [CODE]WantedBy=multi-user.target[/CODE]

    with

    [CODE]WantedBy=getty.target[/CODE]

    hoping that it would start at a later point. But it didn't help.

    I tried to add LSB headers to after.local, so that it would start the service I need first (rpcbind in my case) and it hanged systemd for 5 minutes or even for ever, but I have been pressing the reset button or used SysReq a lot last night. My netcards don't get an IP in systemd when nmb is enable ([url]http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/469461-bug-nmb-systemd-more-than-1-ethernet-card.html[/url]), I can not mount nfs from script at startup because it won't wait for the portmapper. Everything in modern Linuxes has to be done asynchronously with the consequence that nothing works properly. I'm out of ideas for now, would like a real after.local functionality though. I noticed that under Fedora (15) /lib/systemd/system/rc-local.service executes /etc/rc.local - which makes sense because rc.local is the script which gets executes after the init process. Only openSUSE calls it "after.local" and executes /etc/init.d/boot.local in systemd - that is executed at the end of the boot process and before entering the runlevels in Sytem V. Anyway trying to replace boot.local with after.local in systemd rc-local.service under openSUSE didn't work either.

    I'm back in system V for now.



    (more info here: [url=http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities]freedesktop.org - Software/systemd/Incompatibilities[/url])


    * I put my code in CODE and im my quote in QUOTE. If the blog interface doesn'tlike it, I wash my hands of the issue.[/QUOTE]

    So have you filed a bug report on this issue yet please_try_again?

    Thank You,
  8. please_try_again's Avatar
    Unfortunatley, it doesn't behave like systemV after.local, meaning it doesn't run after all services have been started. If you put a command which needs a service that hasn't been started, it won't work.

    I tried to replace

    [CODE]WantedBy=multi-user.target[/CODE]

    with

    [CODE]WantedBy=getty.target[/CODE]

    hoping that it would start at a later point. But it didn't help.

    I tried to add LSB headers to after.local, so that it would start the service I need first (rpcbind in my case) and it hanged systemd for 5 minutes or even for ever, but I have been pressing the reset button or used SysReq a lot last night. My netcards don't get an IP in systemd when nmb is enable (http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/469461-bug-nmb-systemd-more-than-1-ethernet-card.html), I can not mount nfs from script at startup because it won't wait for the portmapper. Everything in modern Linuxes has to be done asynchronously with the consequence that nothing works properly. I'm out of ideas for now, would like a real after.local functionality though. I noticed that under Fedora (15) /lib/systemd/system/rc-local.service executes /etc/rc.local - which makes sense because rc.local is the script which gets executes after the init process. Only openSUSE calls it "after.local" and executes /etc/init.d/boot.local in systemd - that is executed at the end of the boot process and before entering the runlevels in Sytem V. Anyway trying to replace boot.local with after.local in systemd rc-local.service under openSUSE didn't work either.

    I'm back in system V for now.

    [QUOTE]Note that there are some areas where systemd currently provides a certain amount of compatibility where we expect this compatibility to be removed eventually. For example, systemd currently provides compatibility with the special non-standardized "boot" and "S" runlevels covering early boot which are used on Suse and Debian systems. We expect to remove this eventually, to keep compatibility kludges out of early boot. Support for SysV init scripts in the normal runlevels (2-5) is expected to stay for a long time however. [/QUOTE]

    (more info here: http://www.freedesktop.org/wiki/Software/systemd/Incompatibilities)


    * I put my code in CODE and im my quote in QUOTE. If the blog interface doesn'tlike it, I wash my hands of the issue.
  9. please_try_again's Avatar
    I use pf on openBSD routers like others use iptables on Linux. pf is well documented on openBSD's site: http://nomz.net/faq/pf. I should say that I have been spending way too much time fighting with Linux distros in the couple past years at the expense of my BSD projects (but I got to know you guys, so it wasn't that bad after all ). I haven't updated my firewalls for so long ... I won't tell.

    Basically, you write pf rules - like iptables nat but more efficient - load/unload/modify them on the fly. For example, if you want to let somebody in (allow him to use a specific service on a specific port), you would just add his IP to a table. You can also perform efficient quiewing by reserving a percentage of the bandwith for services like VOIP ... although it might get very tricky. If the Linux kernel has now pf support, you would need a utility to communicate with the packet filter device. I don't know if such program now exists on Linux or how pf is implemented otherwise and what makes use of it. Under openBSD, the command pfctl takes care of that: http://resin.csoft.net/cgi-bin/man.cgi?section=8&topic=pfctl
  10. jdmcdaniel3's Avatar
    [QUOTE=please_try_again;bt271]Humm ... I use pf (packet filter) for years on my openBSD firewalls. I guess that's what is meant here (after taking a quick look at the articles linked ... somewhere). It's simply excellent. I don't say my firewall are excellent, but pf is something I wouldn't trade for iptables for all the tea in China.

    * just found this article, James, while looking for another one.[/QUOTE]

    So, this was added with kernel 3.0 and so if you are using pf, you should be able to take advantage of this feature when enabled. I assume it continues into kernel 3.1 as well included with openSUSE 12.1. You should give us an example of how you are using the pf and if you have tried this example. It would be of great help to this article.

    Thank You,
  11. please_try_again's Avatar
    Humm ... I use pf (packet filter) for years on my openBSD firewalls. I guess that's what is meant here (after taking a quick look at the articles linked ... somewhere). It's simply excellent. I don't say my firewall are excellent, but pf is something I wouldn't trade for iptables for all the tea in China.

    * just found this article, James, while looking for another one.
  12. buckmaster60's Avatar
    I agree. They have really messed up CIFS in this release 12.1. Please see http://forums.opensuse.org/english/get-technical-help-here/network-internet/468521-problem-samba-opensuse-12-1-re-systemd.html.

    Thanks for your help.
  13. jdmcdaniel3's Avatar
    So, buckmaster, I have used this procedure with GNOME 3.2 and then used the after.local script to map vbox drives when all used in VirtualBox as a Guest. So, after.local does work, but there may be some other issue getting cifs to work there. Perhaps it is too early or before your network is up, but not sure.

    That You,
  14. buckmaster60's Avatar
    Does not seem to work with gnome is OS 12.1, trying to mount cifs and nothing occurs.
  15. jdmcdaniel3's Avatar
    I just found nVIDIA driver 290.10 on the nVIDIA Web Site. I have added in the latest versions to this blog.

    Thank You,
  16. jdmcdaniel3's Avatar
    So after further testing, while this procedure can be done in openSUSE 12.1, my tests are showing they don't hold true after a reboot. So, my suggestion for openSUSE 12.1 users is to look at my cfu bash script which really does work with openSUSE 12.1:

    [url=http://forums.opensuse.org/blogs/jdmcdaniel3/c-f-u-cpu-frequency-utilitiy-version-1-10-use-cpufrequtils-package-40/]C.F.U. - CPU Frequency Utilitiy - Version 1.10 - For use with the cpufrequtils package - Blogs - openSUSE Forums[/url]

    Thank You,
  17. jdmcdaniel3's Avatar
    [QUOTE=jnsatterfield;bt231]Thank you for this post. I'm a newly converted Ubuntu user -- forced to look into alternative distributions by the horror that is the Unity interface, lured into openSuSE by its superior support for programming -- and finding a way to configure my laptop to use less power has been plaguing me ever since I installed openSuSE. I read your post last night and woke up to a computer that was cool to the touch but still running. Thanks again![/QUOTE]

    Wow, that is such a good story jnsatterfield and I just love to hear that something I wrote was useful to someone else. Now if you really like openSUSE and if you think you could help others, please come back, read through the help requests in the forum and see what you can do. It is users such as yourself that help make openSUSE so good. And if you have any bash scripting requests, just let me know.

    Thank You,
  18. jnsatterfield's Avatar
    Thank you for this post. I'm a newly converted Ubuntu user -- forced to look into alternative distributions by the horror that is the Unity interface, lured into openSuSE by its superior support for programming -- and finding a way to configure my laptop to use less power has been plaguing me ever since I installed openSuSE. I read your post last night and woke up to a computer that was cool to the touch but still running. Thanks again!
  19. jdmcdaniel3's Avatar
    [QUOTE]No, I use xmms2. [/QUOTE]

    It is just a joke riderplus. Quoting myself "3 out of 5 or 60%: Have you considered running Amarok or Banshee today? These are really nice media players." Of course, some may say that based on what I think is funny, I should not quit my day job.

    Thank You,
  20. riderplus's Avatar
    No, I use xmms2.
Page 8 of 10 FirstFirst ... 678910 LastLast