<---- template headericclude ----->
Some Fedora related websites
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Some Fedora related websites

    FedoraStuff
    The following websites are used for my education about Fedora. Thanks to arehtykitna (Mike) for great extras and feedback.


    My favourite Remix distribution RFRemix.

    A crontab template[/B] Save as crontab.template
    Code:
    ######      FOR ADDITIONAL INFORMATION REFER TO      man 5 crontab  ####
    MAILTO=""
    SHELL=/bin/bash
    PATH=$PATH:/sbin:/bin
    # string         meaning
    # ------         -------
    # @reboot        Run once, at startup.  
    # @yearly        Run once a year, "0 0 1 1 *".
    # @annually      (same as @yearly)
    # @monthly       Run once a month, "0 0 1 * *".  Jan-Dec
    # @weekly        Run once a week, "0 0 * * 0".     Sun-Sat
    # @daily         Run once a day, "0 0 * * *".
    # @Midnight      (same as @daily)
    # @hourly        Run once an hour, "0 * * * *".
    # Inherited Vars: $LOGNAME, $SHELL, $HOME, $MAILTO
    # To install        cat crontab.template | crontab - 
    #                crontab -l (list) crontab -e (edit) crontab -r (delete)
    #mm     hh      DoM    Mon     Dow      COMMAND                
    #+.......................................Minute of the hour (0..59)
    #|      +--------------------------------Hour in the day (0..23)
    #|      |       +........................Day of month, 1..31 
    #|      |       |       +----------------Month (1.12) Jan, Feb.. Dec    
    #|      |       |       |       +........day of the week 0-6  7==0 or (sun,mon,tue,wed,thu,fri,sat)     
    #|      |       |       |       |        |command to be executed
    #V      V       V       V       V        V
    10      9       *       *       mon,thu  /usr/sbin/fstrim  -a #trim all SSDs every mon,thu @ 9:10am
    #
    0-30/5  */2  30-31      *       *        [ `date -d +'1 day' +\%d` -eq 1 ] && echo "$(date): RUN your month-end jobs today" >> ${HOME}/message #every 5 minutes for first half hour at month end
    0-30/5  */2  28-29      Feb  *        [ `date -d +'1 day' +\%d` -eq 1  ] && echo "$(date): RUN your month-end jobs today" >>  ${HOME}/message #every 5 minutes for first half hour at month end
    #
    #0-30/5 --every multiple of 5 minutes in the first half hour of each hour, 0-23/2 (*/2) every other hour( for preceding line) 
    1       *       2       *       *        rm ~/message                            #clean up
    @daily                                   /usr/bin/find $HOME -name core 2>/dev/null | xargs rm -f >/dev/null 2>&1[
    Man crontab for crontab -e , crontab -l and crontab -r
    If you have a crontab template (see above) sudo cat crontab.template | crontab

    Concerning the line used to generate an entry in "message". You should put in the range as for example, 0-59/5 , which is parsed as every other five minutes in the hour. SImilarly 0-23/2 means every other hour in the day. If you only wanted a message every 5 minutes of every other working hour, change */2 to 9-17/2. Note the rm ~/message for the 2nd of the month.

    Burning on ISO to flashdrive (if you already have a Linux (You may also use a liveCD linux version)

    LiveCD only
    If your live CD does not include Gparted, enter terminal mode to command line prompt.
    logon root
    To respond to password prompt, just hit enter. With Most liveCD versions, the root password is not required.
    Use dnf or if you have Fedora version earlier than 22, use yum
    dnf install gparted or yum install gparted and return to GUI interface

    Code:
    sudo su
    gparted  # to determine the /dev/sdX for your flash drive.  
    cd Downloads  # or where you have downloaded the ISO(s).
    dd if=ISO_I_WANT_TO_PUT_TO_FLASH.iso  of=/dev/sdX  bs=1M   && sync  # Use 1meg buffer in place of default 512bytes
    umount /dev/sdX
    exit; exit
    That flash drive is ready for booting.

    If writing to a DVD, I use k3b -- well known to be excellent

    Want to power down installed but rarely used spinning hard disks?
    My system has 4 spinning disks A-D and one SSD. I use the SSD mostly, and one other disk for end of day backup.
    I use the following hdparm command. hdparm - get/set SATA/IDE device parameters

    Code:
     sudo /sbin/hdparm -q -S 6 /dev/sd{a,b,c,d}
    #for /dev/sda, /dev/sdb, /dev/sdc,/dev/sdd
    Optionally for Western Digital desktop drives which have a default setting, (heads park every 8 seconds after being idle, extend this to 30 seconds)

    Code:
     sudo hdparm -q -J 30  /dev/sd{a,b,c,d}
    For more information about hdparm, try man hdparm, or HDPARM EXAMPLES

    Regards

    Leslie (is a "he" Leslie).
    Last edited by lsatenstein; 3rd December 2017 at 05:38 PM. Reason: updates.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  2. #2
    Join Date
    Jun 2006
    Location
    Paris, TX
    Posts
    24,194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Now that you've got these here, you can link to this post in your signature for quick access. <....>

  3. #3
    Join Date
    Mar 2011
    Location
    /
    Posts
    5,242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    And perhaps stick the thread as well (since this is more up to date than the existing ones in the subforum) if no one has objections?

    * I have stuck the thread *

  4. #4
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Post Batch Update of Fedora xx

    The attachment is a script that I use to install Fedora 22-23-24-25-27-28-..33. What that script provides is a shell type of checklist for individual programs that you want to install into a new release of Fedora, and as well, the application groups that you want to also install. This script will install rpmfusion and begin pulling down your selection. It can handle signatures.



    When I do a vanilla Fedora network installation, I opt to install the minimum. That is, I take the defaults presented for the workspace selection. I select next to nothing from the software packages listed.
    After the reboot, I copy this script below to /tmp, As root, I change it's permissions (to 755) and I run the following:

    The script is applicable to all versions of Fedora, including remixes, spins, Enjoy
    Attached Files Attached Files
    Last edited by lsatenstein; 25th December 2020 at 05:45 PM. Reason: script was too large, have added a tar file attachment

  5. #5
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Fedora 26 Download script (attached)

    vi dl.sh

    Code:
    #!/bin/bash
    VERSION=26
    DIR=https://dl.fedoraproject.org/pub/fedora/linux/releases/$VERSION/Workstation/x86_64/iso/
    wget -c $DIR/Fedora-Workstation-$VERSION-1.5-x86_64-CHECKSUM 
    wget -c $DIR/Fedora-Workstation-Live-x86_64-$VERSION-1.5.iso
    wget -c $DIR/Fedora-Workstation-netinst-x86_64-$VERSION-1.5.iso  
    wget -c $DIR/Fedora-Workstation-ostree-x86_64-26-1.5.iso
    wget -c $DIR/Fedora-Workstation-netinst-x86_64-$VERSION-1.5.iso.manifest
    #
    sha256sum -c *-CHECKSUM
    exit 0
    #for reference. 
    # Fedora-Workstation-netinst-x86_64-26-1.5.iso: 505413632 bytes
    # Fedora-Workstation-Live-x86_64-26-1.5.iso: 1563426816 bytes
    # Fedora-Workstation-ostree-x86_64-26-1.5.iso: 1769996288 bytes
    #SHA256 (Fedora-Workstation-netinst-x86_64-26-1.5.iso) = f514040516dc512119aad6316746569b231e157724d4f257af76825c483e1598
    #SHA256 (Fedora-Workstation-Live-x86_64-26-1.5.iso) = 6520f7a4daef76e68b73d41ae7cfbc743fc46b68317a4d207eb7ee39bcd43a7f
    #SHA256 (Fedora-Workstation-ostree-x86_64-26-1.5.iso) = ada01ed9db4c0ad63613c4d14e1463af7e9ba5eb9e455221a38af10cd77c9b16
    Attached Files Attached Files
    Last edited by lsatenstein; 19th August 2017 at 03:38 AM. Reason: Update
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  6. #6
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Thank you KOBUC for using your Saturday fun time for following.

    Code:

    # dnf install apcupsd apcupsd-gui
    .
    .
    # systemctl enable apcupsd
    # systemctl start apcupsd
    .
    .
    # systemctl status apcupsd
    ● apcupsd.service - APC UPS Power Control Daemon for Linux
    Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; disabled; vendor preset:
    Active: active (running) since Sat 2016-07-09 09:37:08 EDT; 3s ago
    Process: 2634 ExecStartPre=/bin/rm -f /etc/apcupsd/powerfail (code=exited, status=
    Main PID: 2640 (apcupsd)
    Tasks: 3 (limit: 512)
    CGroup: /system.slice/apcupsd.service
    └─2640 /sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf

    Jul 09 09:37:08 frodo systemd[1]: Starting APC UPS Power Control Daemon for Linux...
    Jul 09 09:37:08 frodo systemd[1]: Started APC UPS Power Control Daemon for Linux.
    Jul 09 09:37:08 frodo apcupsd[2640]: apcupsd 3.14.13 (02 February 2015) redhat start
    Jul 09 09:37:08 frodo apcupsd[2640]: NIS server startup succeeded

    With the "apcupsd" package fully operational, I checked the status via CLI:

    Code:

    # apcaccess
    APC : 001,036,0858
    DATE : 2016-07-09 09:41:26 -0400
    HOSTNAME : frodo
    VERSION : 3.14.13 (02 February 2015) redhat
    UPSNAME : frodo
    CABLE : USB Cable
    DRIVER : USB UPS Driver
    UPSMODE : Stand Alone
    STARTTIME: 2016-07-09 09:37:08 -0400
    MODEL : Back-UPS RS 1500G
    STATUS : ONLINE
    LINEV : 120.0 Volts
    LOADPCT : 16.0 Percent
    BCHARGE : 100.0 Percent
    TIMELEFT : 41.1 Minutes
    MBATTCHG : 5 Percent
    MINTIMEL : 3 Minutes
    MAXTIME : 0 Seconds
    SENSE : Medium
    LOTRANS : 88.0 Volts
    HITRANS : 147.0 Volts
    ALARMDEL : 30 Seconds
    BATTV : 27.3 Volts
    LASTXFER : Low line voltage
    NUMXFERS : 0
    TONBATT : 0 Seconds
    CUMONBATT: 0 Seconds
    XOFFBATT : N/A
    SELFTEST : NO
    STATFLAG : 0x05000008
    SERIALNO : 3B1230Xxxxxx
    BATTDATE : 2012-07-26
    NOMINV : 120 Volts
    NOMBATTV : 24.0 Volts
    NOMPOWER : 865 Watts
    FIRMWARE : 865.L3 .D USB FW:L3
    END APC : 2016-07-09 09:41:50 -0400



    It appears that the APC UPS is fully operational on my F24 system.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  7. #7
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    DROPBOX

    I have installed new Linux distributions many times. Here is a listing of my experience

    From the command line, if Dropbox is already installed.

    [12:21 leslie ~]$ dropbox status # will tell you about dropbox
    Up to date

    to start dropbox or stop it
    dropbox start # or dropbox stop

    To refresh
    dropbox start -i

    If that is still not solving your problem then the following needs to be done.

    from your logon command line (home directory)
    ls -la
    Therein you will see two files

    drwx------. 5 xxxxxx xxxxxx 4096 Jul 11 12:01 .dropbox
    drwxr-xr-x. 3 xxxxxx xxxxxx 4096 Jul 11 12:00 .dropbox-dist

    Remove them and reinstall dropbox via
    dropbox start -i
    or visit the dropbox website and download Dropbox install software and start over

    if the two .dropbox files are not there, you may have to do a clean dropbox installation.

    None of your data is lost, unless you forgot your dropbox logon and dropbox password.

    If you are getting a Dropbox near full message, check the dropbox cache via

    cd ~/Dropbox
    cd .dropbox.cache
    There wll be some directories which include a date, and a final directory similar to the following...

    drwxrwxr-x. 2 leslie leslie 4096 Jul 11 12:00 prefetch_cache

    Leave that one alone, but you may delete the .dropbox.cache ones having 2016.... as the folder name.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  8. #8
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Quite often I want to to insure a safe installation of Fedora xx. What I do is I install a minimum version of Fedora xx and thereafter I use the following script to indicate the groups of packages that I would like installed. There is a series of lines similar to #getagroup "group name". Run this script by uncommenting the #getagroup line. If you do not want that group, comment the line.

    Please download this code and paste the balance of the code from the next message.

    Code:
    #!/bin/bash
    #########################################################################
    #									#
    #               THIS IS A FEDORA GROUP INSTALL SCRIPT	  		#
    #		USED to install a list of groups and some		#
    #		Individual files					#
    #									#
    # last change Dec 10,2016						#
    #########################################################################
    
    #########################################################################
    function TEST_FOR_ROOT_ACCESS                                           #
    {                                                                       #
    if [ $EUID -ne 0 ]; then                                                #
       echo ""                                                              #
       echo "##################################################"            #
       echo "#       You cannot run as user $LOGNAME           "        	#
       echo "#       You cannot run as user $LOGNAME           "        	#
       echo "#       You cannot run as user $LOGNAME           "        	#
       echo "#       					   " 		#
       echo "#       You must run as root			   " 		#
       echo "#       You must run as root			   " 		#
       echo "##################################################"            #
       echo ""                                                              #
       exit 1								#
    fi                                                                      #      
    }                                                                       #
    #                                                                       #       
    #########################################################################
    
    #########################################################################
    # 		This function will install a dconf executable		#
    #               to show the creation time of the system			#
    #		it uses the /boot/lost+found or /lost+found directory	#
    #               date to create the appropriate information		#	
    #		generally, the lost+found directory is created at 	#
    #		time of system installation				#
    # Thanks VP 								#
    #									#
    function INSTALL_DATE							#
    {									#
    TEST_FOR_ROOT_ACCESS							#
    DIR1=/tmp/	#refer to note below					#					
    DIR2=/tmp/								#
    DCONF="echo"								#
    #  NOTE ============================================================	#
    #  If testing, comment out the following DIR1,DIR2,DCONF lines 		#
    #  and uncomment (if not done) the preceding three lines		#
    #  =================================================================	#
    DIR1=/etc/dconf/profile                 #redefine
    DIR2=/etc/dconf/db/gdm.d                #redefine
    DCONF=dconf                             #redefine
    #
    if [ ! -f $DIR1/gdm ]; then
    #
    echo -e "user-db:user\nsystem-db:gdm\nfile-db:/usr/share/gdm/greeter-dconf-defaults"  > $DIR1/gdm
    fi
    
    mkdir -p $DIR2
    
    # Following are typical contents of /etc/dconf/db/gdm.d/01-banner-message
    
    
    P1="banner-message-text='"
    P2=$(grep PRETTY_NAME /etc/os-release |  cut -d\" -f2)
    if [ -d /boot/lost+found ]; then
            P3=$(stat /boot/lost+found | grep ^Modify | cut -d' ' -f2-| cut -d'.' -f1)
            echo "Using timestamp $P3 from /boot/lost+found"
    else
        if [ -d /lost+found ]; then
            P3=$(stat /lost+found | grep ^Modify | cut -d' ' -f2-| cut -d'.' -f1)
            echo "Using timestamp $P3 from /lost+found"
        else
            P3=$(stat /boot | grep ^Modify | cut -d' ' -f2-| cut -d'.' -f1)
            echo "Using timestamp $P3 from /boot"
        fi
    fi
    
    echo  "installing to $DIR1 and $DIR2 using date $P3"
    echo  "[org/gnome/login-screen]"                         >  ${DIR2}/01-banner-message
    echo  "banner-message-enable=true"                      >>  ${DIR2}/01-banner-message
    echo "$P1$P2 installed on\\r\\n$P3'"                    >>  ${DIR2}/01-banner-message
    echo "#Created by $0 at $(date)"                        >>  ${DIR2}/01-banner-message
    ${DCONF} update
    echo -e "$P2\ninstalled on: $P3"			| tee -a $bn	#			
    }									#
    ######################################################################### 
    
    function getagroup()
    {
       gr=$1
     
       echo ""
       echo "" 								      |tee -a   $bn
       echo "********************************************************************"|tee -a 	$bn
       echo "********************************************************************"|tee -a	$bn
       echo "$DNF  -y group install \"$gr\" @ $(date)" 			      |tee -a	$bn
       echo "********************************************************************"|tee -a 	$bn
       
       $DNF -y  group install "$gr"	    					      >>$bn 2>&1 
       rc=$?
       if [ $rc == 1 ]; then	#treat error 1 as no error
            rc=0
       fi
           
       if [ $rc != 0 ]; then
    	echo "ERROR ERROR with \"$gr\", code $rc" 				| tee -a $bn
            echo "Completed \"$gr\" with code $rc" 	  				| tee -a $err
       else
             echo "Completed \"$gr\" with code $rc"   				| tee -a $bn
       fi
       echo "--------------------------------------------------------------------" 	| tee -a $bn
    }
    
    #########################################################################
    #									#
    # START HERE START HERE START HERE START HERE START HERE START HERE     #	
    # START HERE START HERE START HERE START HERE START HERE START HERE     #	
    # START HERE START HERE START HERE START HERE START HERE START HERE     #	
    #									#
    #########################################################################
    TEST_FOR_ROOT_ACCESS							#
    cd /tmp		#							#	
    VERSION_ID=$(head -5 /etc/os-release | grep "^VERSION_ID") # Fed versio	#
    NAME=$(head -3 /etc/os-release | grep "^NAME=")				#
    echo "Installing to $NAME  $VERSION_ID "				#				
    bn=$(basename $0 .sh).log						#
    err=$(basename $0 .sh).err						#
    echo "Logfile = $bn"							#
    USE_DNF=1    #set to 0 for yum, 1 for dnf				#
    #									#
    if [ $EUID != 0 ]; then							#
       echo "You got to be root!"						#
       echo "You got to be root!"						#
       exit									#
    fi									#
    if [ $USE_DNF == 1 ]; then						#
        DNF="dnf "								#
    else									#
        DNF="yum "								#
        echo "List of groups and their stati"				#
        yum group list                                              	#
    fi									#
        $DNF grouplist hidden						#
        $DNF grouplist -v hidden | grep -v 'not found' >>$bn		#
    echo "Using  $DNF"							#
    #########################################################################
    
    #########################################################################
    # This bash shell script is to work in conjunction with a new   	#
    # Fedoraxx installation. The idea is to not select any software 	#
    # during the initial installation with anaconda. DO a minimal   	#
    # graphics selection. After the reboot review this script.      	#
    # Examine the script, uncomment the lines listing the packages  	#
    # of interest. It was my test script for Fedora 22 and it saved 	#
    # me hours of waiting for the install to complete.  Tested with F24/F25 #
    # This script creates two files.					#
    # creates a logfile with detailed progress 				#
    # creates a *.err file when $DNF returns a non-zero			#
    # and it displays on the terminal, the package currently being  	#
    # installed, along with the start time for that package			#
    #              								#
    # This install script for workspace includes packages for Remix versions#
    # Works with Vanilla and Remix versions. 				#
    #########################################################################
    
    mkdir -p  /var/lib/gdm/.local/share	        >>$bn 2>>$err  #want this to exist   	
    rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-${VERSION_ID}.noarch.rpm
    rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${VERSION_ID}.noarch.rpm
    
    touch $err								
    echo "yes|$DNF -y update"              						| tee -a $bn 
    yes|$DNF  -y update       							>>$bn 2>>$err  
    
    echo "yes|$DNF -y install gnome-tweak-tool gparted gstreamer.* wget most " 	| tee -a $bn 
    yes | $DNF  -y install gnome-tweak-tool gparted gstreamer.* wget most		>>$bn 2>>$err
    
    echo "$DNF -y install hdparm* hddtemp qt-creator alsa-tools* apc* gstreamer*"   | tee -a $bn 2>>$err
    yes | $DNF -y install hdparm* hddtemp qt-creator alsa-tools* apc* gstreamer* 	>>$bn 2>>$err
    echo "$DNF -y install lm_sensors*"				                | tee -a $bn 2>>$err
    yes | $DNF -y install lm_sensors*  						>>$bn 2>>$err
    #########################################################################
    # add your other rpm installations after the packages have been installed 
    #########################################################################
    
     
    
    #########################################################################
    # From the list below:						 	#
    # UNCOMMENT THE PACKAGES YOU WANT TO HAVE INSTALLED		 	#
    #								 	#
    #         Available environment groups:				 	#
    #         Updated for Fedora 25  Dec 10,2016	    	 	 	#
    #########################################################################
    #									#
    #			Some Hidden groups				#
    #		dnf group list -v hidden | grep -v 'not found'		#
    #									#
    #########################################################################
    Continued on next message
    Last edited by lsatenstein; 16th December 2016 at 11:25 PM.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  9. #9
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Code:
    #Last metadata expiration check: 0:18:35 ago on Sat Dec 10 12:08:29 2016. "
    
    #Available environment groups:
    
    #getagroup "Fedora Custom Operating System"
    #getagroup "Minimal Install"
    #getagroup "Fedora Server Edition"
     getagroup "Fedora Workstation"
    #getagroup "RFRemix Server"
     getagroup "RFRemix Workstation"
    #getagroup "Fedora Cloud Server"
    #getagroup "KDE Plasma Workspaces"
    #getagroup "Xfce Desktop"
    #getagroup "LXDE Desktop"
    #getagroup "Hawaii Desktop"
    #getagroup "LXQt Desktop"
    #getagroup "Cinnamon Desktop"
    #getagroup "MATE Desktop"
    #getagroup "Sugar Desktop Environment"
    #getagroup "Development and Creative Workstation"
    #getagroup "Web Server"
    #getagroup "Infrastructure Server"
    #getagroup "Basic Desktop"
    
    #Installed groups:
    
    #getagroup "Administration Tools"
    #getagroup "Books and Guides"
    #getagroup "C Development Tools and Libraries"
    #getagroup "Development Tools"
    #getagroup "Editors"
    #getagroup "LibreOffice"
    #getagroup "Office/Productivity"
    #getagroup "Robotics"
    #getagroup "RPM Development Tools"
    #getagroup "Security Lab"
    #getagroup "Authoring and Publishing"
    #getagroup "Chromium browser"
    #getagroup "Opera browser"
    #getagroup "Skype"
    #getagroup "Telegram"
    #getagroup "System Tools"
    #getagroup "Games and Entertainment"
    
    #Available groups:
    
    #getagroup "3D Printing"
     getagroup "Anaconda tools"
    #getagroup "Ansible node"
    #getagroup "ARM Tools"
    #getagroup "Audio Production"
    #getagroup "Basic Desktop"
    #getagroup "Cloud Infrastructure"
    #getagroup "Cloud Management Tools"
    #getagroup "Cloud Server Tools"
    #getagroup "Container Management"
     getagroup "D Development Tools and Libraries"
    #getagroup "Design Suite"
     getagroup "Development Libraries"
    #getagroup "Dial-up Networking Support"
    #getagroup "Directory Server"
    #getagroup "DNS Name Server"
    #getagroup "Dogtag Certificate System"
    #getagroup "Domain Membership"
     getagroup "Fedora Eclipse"
    #getagroup "Educational Software"
    #getagroup "Electronic Lab"
    #getagroup "Engineering and Scientific"
    #getagroup "Enlightenment"
     getagroup "Fedora Packager"
    #getagroup "Font design and packaging"
    #getagroup "FreeIPA Server"
    #getagroup "FTP Server"
     getagroup "Extra games for the GNOME Desktop"
     getagroup "GNOME Software Development"
     getagroup "Graphics"
    #getagroup "Guest Agents"
    #getagroup "Guest Desktop Agents"
    #getagroup "High Availability"
    #getagroup "HAProxy"
    #getagroup "Haskell"
    #getagroup "Applications for the Hawaii Desktop"
    #getagroup "Hawaii"
    #getagroup "Multimedia support for Hawaii"
    #getagroup "Hawaii Office"
    #getagroup "Headless Management"
     getagroup "Input Methods"
     getagroup "Java"
     getagroup "Java Development"
     getagroup "Java Application Server"
    #getagroup "KDE Applications"
    #getagroup "KDE Educational applications"
    #getagroup "KDE Multimedia support"
    #getagroup "KDE Office"
    #getagroup "KDE Software Development"
    #getagroup "KDE Telepathy"
    #getagroup "KDE Frameworks 5 Software Development"
     getagroup "Legacy Fonts"
    #getagroup "Legacy Network Server"
     getagroup "Legacy Software Development"
     getagroup "Legacy Software Support"
    #getagroup "LibreOffice Development"
     getagroup "LiveCD Tools"
    #getagroup "Load Balancer"
    #getagroup "Applications for the LXDE Desktop"
    #getagroup "Multimedia support for LXDE"
    #getagroup "LXDE Office"
    #getagroup "Applications for the LXQt Desktop"
    #getagroup "LXQt"
    #getagroup "Multimedia support for LXQt"
    #getagroup "LXQt Office"
    #getagroup "Mail Server"
    #getagroup "MATE Applications"
    #getagroup "MATE Compiz"
    #getagroup "Medical Applications"
    #getagroup "Milkymist"
    #getagroup "MinGW cross-compiler"
    #getagroup "MongoDB"
    #getagroup "MariaDB (MySQL) Database"
    #getagroup "Network Servers"
    #getagroup "Common NetworkManager Submodules"
    #getagroup "News Server"
    #getagroup "OCaml"
    #getagroup "Online Help and Documentation"
     getagroup "Perl Development"
     getagroup "Perl for Web"
     getagroup "PHP"
    #getagroup "VMware Platform Support"
     getagroup "Printing Support"
     getagroup "Python"
    #getagroup "Ruby"
    #getagroup "Ruby on Rails"
    #getagroup "Server Configuration Tools"
    #getagroup "Hardware Support for Server Systems"
    #getagroup "Fedora Server product core"
    #getagroup "Windows File Server"
    #getagroup "PostgreSQL Database"
    #getagroup "Additional Sugar Activities"
    #getagroup "Sugar Desktop Environment"
    #getagroup "Text-based Internet"
    #getagroup "Tomcat"
    #getagroup "Vagrant with libvirt support"
    #getagroup "Headless Virtualization"
    #getagroup "Window Managers"
    #getagroup "Fedora Workstation ostree support"
    #getagroup "Fedora Workstation product core"
    #getagroup "X Software Development"
    #getagroup "Applications for the Xfce Desktop"
    #getagroup "Extra plugins for the Xfce panel"
    #getagroup "Multimedia support for Xfce"
    #getagroup "Xfce Office"
    #getagroup "Xfce Software Development"
    #getagroup "XMonad"
    #getagroup "XMonad for MATE"
    #getagroup "Cinnamon"
    #getagroup "MATE"
     getagroup "Virtualization"
    #getagroup "Firefox Web Browser"
    #getagroup "Epiphany Web Browser"
    #getagroup "Oracle Java 1.8"
    #getagroup "Oracle Java 1.7"
    #getagroup "Sublime Text Editor"
    #getagroup "Viber"
    #getagroup "Web Server"
    #getagroup "base-x"
    #getagroup "Applications for the GNOME Desktop"
    #getagroup "Xfce"
    #getagroup "LXDE"
    #getagroup "Standard"
    #getagroup "Buildsystem building group"
    #getagroup "Fonts"
    #getagroup "RFRemix Server product core"
    #getagroup "RFRemix Workstation product core"
    #getagroup "Core"
    #getagroup "GNOME Desktop Environment"
    #getagroup "Graphical Internet"
    #getagroup "Hardware Support"
    #getagroup "KDE"
    #getagroup "Multimedia"
     getagroup "Sound and Video"
    
    #Available language groups:
    #########################################################################
    #                                                                       #
    #              INDIVIDUAL FILES Duplicatess will be skipped		#
    #									#
    #########################################################################
    #									#	
     $DNF install checkpolicy vlc grip chmsee qt-dev* -y >> $bn 2>>$err	#
     $DNF install gstreamer* ffmpeg* libdvdread libdvdnav -y >>$bn 2>>$err	#
     $DNF install xournal vim calibre steam -y >>$bn 2>>$errA		#
     $DNF install vlc* transmission* k3b* grub-customizer -y >>$bn 2>>$err	#	
     $DNF install ufraw lyx -y >>$bn 2>>$err                                #
     $DNF install gnome-commander wireshark lsdvd  	-y 	>>$bn  2>>$err  #		
    									#
    INSTALL_DATE # At login screen, an information about the installation 	#	
    #		date and time						#
    #########################################################################
    #									#
    #									#
    echo "$0 completed" | tee -a $bn					#
    chmod 666 $bn $err							#
    echo "LIST OF ERRORS"							#
    cat $err								#
    #########################################################################
    An installation script after a minimal gnome installation (live iso)

    REFER TO ATTACHED FILE
    Attached Files Attached Files
    Last edited by lsatenstein; 19th August 2017 at 03:44 AM.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  10. #10
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    A script to use if you do not want to use
    Code:
    
    #!/bin/bash
    # This is licensed under gpl3
    # Author Leslie Satenstein
    # Sometime in 2017
    # Revised  in 19 April 2019
    #
    # Take it and do with it what you want
    #
    # What it does
    # ===========
    # run fstrim either once / 4 weeks or every 2 weeks  once/week or once/day
    # use the date function to extract seconds since 1 Jan 1970  UTC time
    # Not modified, 4 * 3600 is the offset to Eastern Std time. (not included in calcs)
    # Divide as appropriate to get day NextTrimDayNo or weekNextTrimDayNo since.
    # Linux starts 1 Jan 1970 which is a Thursday or weekday 4
    # 29 December 1969   (1 Jan 1970 -4 days) to Sunday
    # NOTE: The next trimday number is stored in the logfile
    #       If today's date + number of days between trim is greater than the stored value
    #       do the trim, else wait another day.
    #       Not more than 90 days between trims.
    #
    
    
    function doPutHelp()
    {
       local bn
       bn=$( basename $0 )
       echo -e "\n$bn"
       echo "========"
       echo "$bn -h for this message. $bn without an argument calls  \"fstrim\" every Sunday."
       echo "$bn [-v] nnn does a \"fstrim\" every nnn modulo days, based on the Sunday which immediately precedes 1 Jan 1970 ."
       echo "$bn has a variable SundayOffset=0. If you want the modulo day to be Tuesday, assign SundayOffset=2 ."
       echo "Default variable OPTION=7 The -v option displays the number of days to the next scheduled fstrim."
       echo ""
       exit 1
    }
    
    #======start ====== start ===== start ===== start ===== start =====#
    #======start ====== start ===== start ===== start ===== start =====#
    #======start ====== start ===== start ===== start ===== start =====#
    #
    # verbose==1 then indicate NextTrimDayNo of days to go
    if [ "x$1" = "x-v" ];
    then
        verbose=1
        shift
    else
        verbose=0
    fi
    #--------------- constants ----------------
    UPPERBOUND=31
    SundayOffset=0  #optional change. If =1, week starts Mon, =2.week starts Tue .. =6, Week starts Sat
    SecondsPerDay=86400      #(24*60*60)
    TimeZoneAdj=$(( 4*3600 ))  #Eastern Time Zone Adj
    todaysNo=$(( 4 - $SundayOffset + ( $TimeZoneAdj + $(date +%s) ) / SecondsPerDay ))
    bn=$(basename $0 .sh)
    logdir='/var/log'
    log="$logdir/${bn}.log"
    Fstrim=$(sudo which fstrim)
    set -e
    #------------ end constants ----------------
    if [ "$#" != 0 ]; then
        if [ "$1" = "-h" ]; then doPutHelp ; fi
        OPTION=$(( $1 + 0 ))                #if $1 not a NextTrimDayNo, x will be 0
        if [ $OPTION == 0 ]; then doPutHelp ; fi
        if [ $OPTION -ge $UPPERBOUND ];
        then
                OPTION=$UPPERBOUND
        fi
    else
        #OPTION=1      #do dofstrim daily, Also reset the calc for next day.
        OPTION=7       #do dofstrim every 7 days
        #OPTION=14     #do dofstrim every 14 days
        #OPTION=21     #do dofstrim every 21 days
        #OPTION=28     #do dofstrim every 28 days
        #OPTION=$UPPERBOUND  #do dofstrim every UPPERBOUND days
    fi
    #
    if [ -f "$log" ];
    then
        LogDayNo=$(sudo cat "$log" )
    else
        mkdir -p $logdir
        LogDayNo=$(($todaysNo + 4 - $SundayOffset ))
        sudo touch $log
        sudo chmod 666 $log
        sudo echo "$LogDayNo" > $log
    fi
    #
    # 1 Jan 1970 is a Thursday
    # Thursday is the 4th day of the week (Sunday=0)
    # adjust todaysNo = NoDaysSince to previous Sunday
    # timezone is UTC.
    
    NextTrimDayNo=$(($todaysNo + $OPTION))
    #echo "Before if:   LogDayNo = $LogDayNo todaysNo=$todaysNo"
    if [ $todaysNo  -ge $LogDayNo  ];
    then
         sudo touch $log            #mark when last checked
         #sudo $Fstrim -a
         sudo chmod 666   $log
    
    TimeZoneAdj=$(( 4*3600 ))  #Eastern Time Zone Adj
    todaysNo=$(( 4 - $SundayOffset + ( $TimeZoneAdj + $(date +%s) ) / SecondsPerDay ))
    bn=$(basename $0 .sh)
    logdir='/var/log'
    log="$logdir/${bn}.log"
    Fstrim=$(sudo which fstrim)
    set -e
    #------------ end constants ----------------
    if [ "$#" != 0 ]; then
        if [ "$1" = "-h" ]; then doPutHelp ; fi
        OPTION=$(( $1 + 0 ))                #if $1 not a NextTrimDayNo, x will be 0
        if [ $OPTION == 0 ]; then doPutHelp ; fi
        if [ $OPTION -ge $UPPERBOUND ];
        then
                OPTION=$UPPERBOUND
        fi
    else
        #OPTION=1      #do dofstrim daily, Also reset the calc for next day.
        OPTION=7       #do dofstrim every 7 days
        #OPTION=14     #do dofstrim every 14 days
        #OPTION=21     #do dofstrim every 21 days
        #OPTION=28     #do dofstrim every 28 days
        #OPTION=$UPPERBOUND  #do dofstrim every UPPERBOUND days
    fi
    #
    if [ -f "$log" ];
    then
        LogDayNo=$(sudo cat "$log" )
    else
        mkdir -p $logdir
        LogDayNo=$(($todaysNo + 4 - $SundayOffset ))
        sudo touch $log
        sudo chmod 666 $log
        sudo echo "$LogDayNo" > $log
    fi
    #
    # 1 Jan 1970 is a Thursday
    # Thursday is the 4th day of the week (Sunday=0)
    # adjust todaysNo = NoDaysSince to previous Sunday
    # timezone is UTC.
    
    NextTrimDayNo=$(($todaysNo + $OPTION))
    #echo "Before if:   LogDayNo = $LogDayNo todaysNo=$todaysNo"
    if [ $todaysNo  -ge $LogDayNo  ];
    then
         sudo touch $log            #mark when last checked
         #sudo $Fstrim -a
         sudo chmod 666   $log
    
         OPTION=$(( $OPTION + 0 ))    # is OPTION NUMERIC
         #echo "LOGDAYNO=$LogDayNo, OPTION=$OPTION, NEXTrimDayNo=$NextTrimDayNo Line 103"
         sudo echo "$NextTrimDayNo" > $log
    fi
    #echo "LOGDAYNO=$LogDayNo, OPTION=$OPTION, NEXTrimDayNo=$NextTrimDayNo Line 106"
    if [ $OPTION == 1 ];                   #force reset
    then
        sudo echo "$todaysNo" > $log       #force reset
        echo "forced reset to $todaysNo"
        verboss=1
    fi
    #echo "after adjustment: NextTrimDayNo = $NextTrimDayNo  LogDayNo = $LogDayNo todaysNo=$todaysNo"
    if [ $verbose == "1" ];
    then
        diff=$((  $LogDayNo - $todaysNo ))
        if [ $diff == 0 ];
        then
           echo "Next fstrim will be done at next execution"
        else
            echo "Next trim in $diff days."
        fi
        if [ $diff != 1 ] & [ $OPTION != 1 ];
        then
            echo "To reset frequency: $0 1 "
        fi
    fi
    exit 0
    
         OPTION=$(( $OPTION + 0 ))    # is OPTION NUMERIC
         #echo "LOGDAYNO=$LogDayNo, OPTION=$OPTION, NEXTrimDayNo=$NextTrimDayNo Line 103"
         sudo echo "$NextTrimDayNo" > $log
    fi
    #echo "LOGDAYNO=$LogDayNo, OPTION=$OPTION, NEXTrimDayNo=$NextTrimDayNo Line 106"
    if [ $OPTION == 1 ];                   #force reset
    then
        sudo echo "$todaysNo" > $log       #force reset
        echo "forced reset to $todaysNo"
        verboss=1
    fi
    #echo "after adjustment: NextTrimDayNo = $NextTrimDayNo  LogDayNo = $LogDayNo todaysNo=$todaysNo"
    if [ $verbose == "1" ];
    then
        diff=$((  $LogDayNo - $todaysNo ))
        if [ $diff == 0 ];
        then
           echo "Next fstrim will be done at next execution"
        else
            echo "Next trim in $diff days."
        fi
        if [ $diff != 1 ] & [ $OPTION != 1 ];
        then
            echo "To reset fstrim frequency: $0 1 "
        fi
    fi
    exit 0
    
     
    My crontab entries
    Code:
    @reboot				 	/usr/local/bin/dofstrim.sh  # runs on reboot but only runs Linux fstrim on Sundays
    9	9	*	*	*  	/usr/local/bin/dofstrim.sh  # runs on reboot to check if need to run Linux fstrim 
    
    Last edited by lsatenstein; 19th April 2019 at 10:12 PM.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  11. #11
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Here is a backup script to review
    Code:
    #!/bin/bash
    #
    #  Using today's date, calculated once
    #  run the backup for the items below #  This is a free script, It works for me 
    #  Use it at your own risk as you see fit.
    #  If you see ways to improve it, please 
    #  share improvements.
    #
    
    #  This is the script that does the grunt work.
    
    function do_rsync()
    {
      local From  Dir 
      From=$1
      Dir=$2
      if [ ! -d $Dir ];
      then
         echo "\"$Dir\" not mounted"
         exit 1
      fi
      echo "To=${Dir} and From=${From}"
      echo "rsync -ratq $Excludes   ${From}   ${Dir}"
      sudo  rsync -ratq $Excludes   ${From}   ${Dir}
      sudo chown -R $logon:$logon $Dir       
    }
    
    ###################  START HERE #################
    if [ $EUID != 0 ];
    then
            echo "You must run this $0 as root!"
            exit 1
    fi
    DATE=$(date +%Y%m%d)
    #switch to the run/media/$USER/external drive
    #if you did not cd to a new device 
    #$PWD will point to the current directory.
    #
    ls -1
    logon=$USER
    #
    extDiskDir="${PWD}/$DATE"
    Excludes="--exclude Music "
    mkdir -p $extDiskDir           
    echo "mkdir -p  $extDiskDir"
    ls $extDiskDir
    # format is  source_directory   target_directory 
    do_rsync  /home    $extDiskDir
    do_rsync  /scratch  $extDiskDir
    do_rsync /Development  $extDiskDir
    sudo chown -R $logon:$logon ${extDiskDir}
    sudo chmod 755 ${extDiskDir}
    echo "Done"
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  12. #12
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    A script to install rpmfusion.org and some codecs.
    Code:
    #!/bin/bash
    DNF="dnf -y"
    sudo  $DNF  install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
    https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm 
    
    sudo   $DNF groupupdate core
    
    sudo   $DNF groupupdate multimedia
    
    sudo   $DNF groupupdate sound-and-video
    
    sudo   $DNF install rpmfusion-free-release-tainted
    sudo   $DNF install libdvdcss
    
    sudo  $DNF install rpmfusion-nonfree-release-tainted
    #sudo $DNF install \*-firmware
    
    sudo $DNF  config-manager --set-enabled fedora-cisco-openh264
    sudo $DNF install gstreamer1-plugin-openh264 mozilla-openh264 
    sudo $DNF install https://codecs.fedoraproject.org/openh264/32/x86_64/g/gstreamer1-plugin-openh264-1.16.0-1.fc32.x86_64.rpm
    sudo $DNF install https://codecs.fedoraproject.org/openh264/32/x86_64/g/gstreamer1-plugin-openh264-1.16.2-1.fc32.x86_64.rpm
    echo "visit and download/install:https://codecs.fedoraproject.org/openh264/32/x86_64/g/"
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  13. #13
    Join Date
    Nov 2020
    Location
    iran
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    hi
    thank you for these links

  14. #14
    Join Date
    Jun 2005
    Location
    Montreal, Québec, Canada
    Posts
    9,092
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    Quote Originally Posted by omranziadi
    hi
    thank you for these links
    From one Fedora user to another,
    you are welcome.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840
    We get too soon old, and too late smart!

  15. #15
    Join Date
    Feb 2023
    Location
    high desert
    Posts
    278
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Some Fedora related websites

    As a Fedora (budgie) newbie these 9 year old links are thoughtfully culled and as I read them today, still relevant. I prefer self-educating over ask ask ask but I'm sure I will have to ask some things. So thanks.
    And also for these great CLI install strategies. For me going from 37 to 38 soon will be a hurdle! thanks again

Page 1 of 2 12 LastLast

Similar Threads

  1. fedora 8 showing websites vs windows websites
    By FreeAngel in forum Using Fedora
    Replies: 2
    Last Post: 13th January 2008, 03:04 PM
  2. how to add websites on a fedora server
    By razvan_vlad in forum Servers & Networking
    Replies: 20
    Last Post: 3rd April 2007, 02:29 AM
  3. Unable to browse websites other than Fedora
    By krokos in forum Using Fedora
    Replies: 2
    Last Post: 26th November 2006, 10:02 PM
  4. Fedora only goes to some websites?
    By agentstewie in forum Servers & Networking
    Replies: 19
    Last Post: 31st August 2006, 04:16 AM
  5. Fedora Websites and Representation...
    By Mtnear in forum Fedora Focus
    Replies: 3
    Last Post: 14th March 2006, 03:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]