Fedora Linux Support Community & Resources Center
  #1  
Old 5th May 2014, 02:48 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfirefox
Some Fedora related websites

FedoraStuff
The following websites are used for my education about Fedora. Thanks to arehtykitna (Mike) for great extras and feedback.[/B}
My favourite Remix distribution RFRemix.

A crontab template
Save as crontab.template
Code:
######      FOR ADDITIONAL INFORMATION REFER TO      man 5 crontab  ####
# 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 * *".
# @weekly        Run once a week, "0 0 * * 0".
# @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  28-31      *       *        [ `date -d +'1 day' +\%d` -eq 1 ] && echo "$(date): RUN your month-end jobs today" >> ${HOME}/message
#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 /sbin/hdparm -q -J 30  /dev/sd{a,b,c,d}
For more information about hdparm, try man hdparm, or HDPARM EXAMPLES

Regards

Leslie
Leslie Satenstein is a "he" Leslie.
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840

Last edited by lsatenstein; Today at 07:56 AM. Reason: updates.
Reply With Quote
  #2  
Old 5th May 2014, 03:38 PM
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 24,099
linuxfirefox
Re: Some Fedora related websites

Now that you've got these here, you can link to this post in your signature for quick access. <....>
Reply With Quote
  #3  
Old 5th May 2014, 03:50 PM
nonamedotc Offline
Mithrandir
 
Join Date: Mar 2011
Location: /
Posts: 4,985
linuxfedorafirefox
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 *
__________________
Fedora 24 x86_64 XFCE - Sager | Intel Core i7 - 4810 MQ | NVIDIA GeForce GTX 860M | 16 GB RAM | 480 GB ADATA SSD |
CentOS 7.2.1511 x86_64 Server - Thinkpad T520 | Intel Core i7 - 2630 QM | NVIDIA NVS 4200M | 16 GB RAM | 500 GB 7200 RPM HDD |


The Linux Documentation Project | Fedora Documentation
Reply With Quote
  #4  
Old 22nd August 2015, 05:07 AM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
Post Batch Update of Fedora xx

The following is a script that I use to install Fedora 22-23-24. Chnge Version to your version (currently 23 or 24). A remix is a copy of a released version of Fedora with extra software added to that copy. Typically the extra software is for free Open/closed source and some other programs that RedHat chooses to not provide. Two excellent Fedora Remixes are Chapeaulinux.org and Korora

What I do is install Chapeau Remix or Korora Remix. Chapeau concentrates on installing all codecs, steam for gamers and the like. Korora does not include steam, but in its place of steam it provides some excellent and useful programs.

When I do a vanilla Fedora 24 network installation, I opt to install the minimum. That is, I take the defaults presented for the workspace selection. I select 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:

Code:
#!/bin/bash
cd /tmp
#########################################################################
bn=$(basename $0 .sh).log						#
err=$(basename $0 .sh).err						#
VERSION=24	# Fedora version					#
echo "Logfile = $bn"							#
USE_DNF=1    #set to 0 for yum, 1 for dnf				#
#									#
if [ $UID != 0 ]; then							#
   echo "You got to be root!"						#
   exit									#
fi									#
if [ $USE_DNF == 1 ]; then						#
    DNF="dnf "								#
    dnf group list							#
else									#
    DNF="yum "								#
    echo "List of groups and their stati"				#
    yum group list                                              	#
fi									#
echo "Using  $DNF"							#
#########################################################################
# This bash shell script is to work in conjunction with a new   	#
# Fedora22-24 installationa. The idea is to not select any software 	#
# during the initial installation with anaconda and then select 	#
# the groups  and rpms post boot.  					#
# examine the script, uncomment the lines listing the packages  	#
# of interest. It was my test script for Fedora 22 and it saved 	#
# This script creates two files.					#
# creates a logfile with detailed progress 				#
# creates a *.err file when $DNF returns a non-zero			#
# and it displays an the terminal, the package currently being  	#
# installed, along with the start time for that package			#
#              								#
#########################################################################

  mkdir /var/lib/gdm/.local			>>$bn  2>>$err
  mkdir /var/lib/gdm/.local/share	       >>$bn 2>>$err  #want this to exist   	
  rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-${VERSION}.noarch.rpm
  rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${VERSION}.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
 
#########################################################################
# add your other rpm installations after the packages have been installed 
#########################################################################

 
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
}

##################################################################
# From the list below:						 #
# UNCOMMENT THE PACKAGES YOU WANT TO HAVE INSTALLED		 #
#								 #
#         Available environment groups:				 #
#         Updated for Fedora 24  April 19			 #
##################################################################
 getagroup "Fedora Custom Operating System"		#RFRemix
#getagroup "Minimal Install" 				
 getagroup "RFRemix Workstation"			#RFRemix
#getagroup "RFRemix Server"				#RFRemix
#getagroup "Fedora Server" 				
 getagroup "Fedora Workstation" 			
#getagroup "Fedora Cloud Server" 			
#getagroup "KDE Plasma Workspaces" 			
#getagroup "Xfce Desktop" 				
#getagroup "LXDE Desktop" 				
#getagroup "Hawaii Desktop" 			F24
#getagroup "LXQt Desktop" 				
#getagroup "Cinnamon Desktop" 				
#getagroup "MATE Desktop"              #see below "MATE Applications" "Mate Compiz"
#getagroup "Sugar Desktop Environment" 			
 getagroup "Development and Creative Workstation" 	
#getagroup "Web Server" 				
#getagroup "Infrastructure Server" 			
#getagroup "Basic Desktop" 				

###################################################################
#         Available groups: 					  #
###################################################################
 getagroup "Chrome browser"				#RFRemix
 getagroup "Opera browser"				#RFRemix
 getagroup "Skype"					#RFRemix
 getagroup "Sublime Text Editor"			#RFRemix
 getagroup "Viper"					#RFRemix
#getagroup "Telegram"					#RFRemix
#getagroup "3D Printing"				#RFRemix 
 getagroup "Administration Tools" 			
#getgroup  "Ansible mode"
#getagroup "Audio Production" 				
 getagroup "Authoring and Publishing" 			
 getagroup "Books and Guides" 				
 getagroup "C Development Tools and Libraries" 		
#getagroup "Cloud Infrastructure" 			
#getagroup "Cloud Management Tools" 			
 getagroup "Container Management" 			
 getagroup "D Development Tools and Libraries" 		
 getagroup "Design Suite" 				
 getagroup "Development Tools" 				
#getagroup "Domain Membership" 				
 getagroup "Fedora Eclipse" 				
#getagroup "Editors" 					
#getagroup "Educational Software" 			
#getagroup "Electronic Lab" 				
 getagroup "Engineering and Scientific" 		
#getagroup "FreeIPA Server" 				
 getagroup "Games and Entertainment" 			
#getagroup "Headless Management" 			
 getagroup "LibreOffice" 				
#getagroup "MATE Applications" 				
#getagroup "MATE Compiz" 				
#getagroup "Medical Applications" 			
#getagroup "Milkymist" 					
#getagroup "Network Servers" 				
 getagroup "Office/Productivity" 			
#getagroup "Robotics" 					
 getagroup "RPM Development Tools" 			
 getagroup "Security Lab" 				
 getagroup "Sound and Video" 				
 getagroup "System Tools" 				
#getagroup "Text-based Internet" 			
#getagroup "3D Printing" 				
#getagroup "Window Managers" 	
#########################################################################
#									#
#			Hidden groups					#
#		dnf group list -v hidden				#
#									#
#########################################################################
 getagroup "anaconda-tools"
 getagroup "Core"
 getagroup "GNOME"
 getagroup "Extra games for the GNOME Desktop"
#getagroup "gnome-desktop"
 getagroup "GNOME-software-development" 
#getagroup "cloud-infrastructure"
 getagroup "gnome-games"
 getagroup "Mail Server"
 getagroup "Graphical Internet"
 getagroup "Virtualization"
 getagroup "Fedora Workstation product core"
 
#########################################################################
#                                                                       #
#              INDIVIDUAL FILES 					#
#									#
#########################################################################

 $DNF install checkpolicy vlc grip chmsee qt-dev* -y >> $bn 2>>$err
 $DNF install gstreamer* ffmpeg* libdvdread libdvdnav lsdvd -y >>$bn 2>>$err
 $DNF install xournal vim calibre steam -y >>$bn 2>>$err

#########################################################################
#									#
echo "install vlc* transmission* k3b* " tee -a $bn			#
yes | dnf install vlc* transmission* k3b* >>$bn 2>>$err			#	
#									#
echo "$0 completed" | tee -a $bn					#
chmod 666 $bn $err							#
echo "LIST OF ERRORS"							#
cat $err								#
#########################################################################
UNCOMMENT THE PACKAGES YOU WANT TO HAVE INSTALLED. Comment out the ones you do not want.,
Then run it As root...

chmod 755 getagroup.sh
./getagroup.sh

from a terminal and then switch to GUI mode and explore or use your system. In my case, the above list runs in about two hours. The benefit to me is that I can use my system all the while package installations are being done.

By the way, for those who optimize scripts, I could have merged pairs of lines together as echo "Message" | tee -a >$bn.
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840

Last edited by lsatenstein; 11th August 2016 at 05:40 PM.
Reply With Quote
  #5  
Old 21st June 2016, 06:45 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
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
File Type: sh dl.sh (935 Bytes, 0 views)
File Type: tar dl.sh.tar (643 Bytes, 0 views)
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840

Last edited by lsatenstein; Yesterday at 03:38 AM. Reason: Update
Reply With Quote
  #6  
Old 10th July 2016, 06:52 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
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
Reply With Quote
  #7  
Old 11th July 2016, 05:27 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
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
Reply With Quote
  #8  
Old 16th December 2016, 11:18 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
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
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840

Last edited by lsatenstein; 16th December 2016 at 11:25 PM.
Reply With Quote
  #9  
Old 16th December 2016, 11:19 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,177
linuxfedorafirefox
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
File Type: sh getgroup.sh (27.8 KB, 0 views)
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840

Last edited by lsatenstein; Yesterday at 03:44 AM.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


Current GMT-time: 07:51 (Sunday, 20-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat