Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 5th May 2014, 02:48 PM
lsatenstein Offline
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 3,821
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 three favourite Remix distributions ChapeauLinux Kororaproject and 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[
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; 11th March 2017 at 04:33 PM. Reason: updates.
Reply With Quote
 

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: 11:06 (Wednesday, 29-03-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