Dons Deals

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 11 August 2013

Etckeeper - Installation in the GUI and How to version control "etc" directory in Linux

Posted on 18:42 by Unknown


The Above, are a few Screen Shots of the way I installed "etckeeper" in the GUI...

So, I found this great Quick and Simple Tutorial, on How to version control /etc directory in Linux. With the "etckeeper" App. It tells you how to Install and Setup etckeeper in the Command Line. But, the first thing I did, was do a search for etckeeper, in my GUI App Manager, in my Fedora 14 System. And it came right up. After reading the How To Article. I knew to look for, "etckeeper-bzr". And both etckeeper and etckeeper-bzr came up in my Search Results. So, installed them both. Then I went back to the Tutorial (below) and ran the setup and status checking commands. Looks like mine is setup and monitoring my "etc" directory now. So, that's it for me. Until I feel the need to go back to a Previous Configuration or have some kind of Conflicting Application Problem, with a new App Install.
Check out the How To and the etckeeper Site info below... Thanks to Dan Nanni for Sharing his knowledge!:)

Don

Etckeeper - Installation in the GUI and How to version control "etc" directory in Linux


How to version control /etc directory in Linux - Linux FAQ
etckeeper

joey/ code/ etckeeper

etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into apt (and other package managers including yum and pacman-g2) to automatically commit changes made to /etc during package upgrades. It tracks file metadata that revison control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It's quite modular and configurable, while also being simple to use if you understand the basics of working with revision control.

etckeeper is available in git at git://git.kitenet.net/etckeeper, or in gitweb. It's packaged in Debian, Ubuntu, Fedora, etc.

News

Read More...
http://joeyh.name/code/etckeeper/

Linux FAQ

How to version control /etc directory in Linux

Authored by Dan Nanni on August 9, 2013 Leave a Comment

In Linux, /etc directory contains important system-related or application-specific configuration files. Especially in a server environment, it is wise to back up various server configurations in /etc directory regularly, to save trouble from any accidental changes in the directory, or to help with re-installation of necessary packages. Better yet, it is a good idea to “version control” everything in /etc directory, so that you can track configuration changes, or recover from a previous configuration state if need be.

In Linux, etckeeper is a collection of tools for versioning content, specifically in /etc directory. etckeeper uses existing revision control systems (e.g., git, bzr, mercurial, or darcs) to store version history in a corresponding backend repository. The advantage of etckeeper is that it integrates with package managers (e.g., apt, yum) to automatically commit any changes made to /etc directory during package installation, upgrade or removal.

In this tutorial, I will describe how to version control /etc directory in Linux with etckeeper. Here, I will configure etckeeper to use bzr as a backend version control repository.

Install Etckeeper on Linux

To install etckeeper and bzr on Ubuntu, Debian or Mint:

$ sudo apt-get install etckeeper bzr

To install etckeeper and bzr on CentOS or RHEL, first set up EPEL repository, and then run:

$ sudo yum install etckeeper etckeeper-bzr

To install etckeeper and bzr on Fedora, simply run:

$ sudo yum install etckeeper etckeeper-bzr

Set up and Initialize Etckeeper

The first thing to do after installing etckeeper is to edit its configuration file. You can leave other options as default.

$ sudo vi /etc/etckeeper/etckeeper.conf
# The VCS to use.  VCS="bzr"    # Avoid etckeeper committing existing changes to /etc automatically once per day.  AVOID_DAILY_AUTOCOMMITS=1  

Now go ahead and initialize etckeeper as follows.

$ sudo etckeeper init

At this point, everything in /etc directory has been added to the backend bzr repository. However, note that the added content has not been committed yet. You need to either commit the action manually, or install/upgrade any package with a standard package manager such as apt or yum, which will trigger the first commit automatically. Here, I will do the first commit manually as follows.

$ sudo etckeeper commit “initial commit”

Etckeeper Examples

To check the status of /etc directory, run the following command. This will show any (uncommitted) change made to /etc directory since the latest version.

$ sudo etckeeper vcs status

To show differences between the latest version and the current state of /etc:

$ sudo etckeeper vcs diff /etc

To commit the current (changed) state of /etc directory:

$ sudo etckeeper commit “any comment”

To check the commit history of the entire /etc dirctory or specific files/subdirectories:

$ sudo etckeeper vcs log
$ sudo etckeeper vcs log /etc/sysconfig/*

To check the difference between two specific revisions (revision number 1 and 3):

$ sudo etckeeper vcs diff -r1..3

To view the change made by a specific revision (e.g., revision number 3):

$ sudo etckeeper vcs diff -c3

To revert the content of /etc directory to a specific revision (e.g., revision number 2):

$ sudo etckeeper vcs revert --revision 2 /etc

Automatic Commits by Etckeeper

As mentioned eariler, etckeeper automatically commits changes made to /etc as part of package installation or upgrade. In this example, I try installing Apache HTTP Server as a test.

$ sudo yum install httpd

To view the commit history auto-generated by package installation:

$ sudo etckeeper vcs log
------------------------------------------------------------  revno: 5  committer: dan   branch nick: fedora /etc repository  timestamp: Mon 2013-08-05 06:39:33 -0400  message:    committing changes in /etc after yum run        Package changes:    +0:apr-1.4.6-3.fc18.x86_64    +0:apr-util-1.4.1-6.fc18.x86_64    +0:httpd-2.4.4-3.fc18.x86_64    +0:httpd-tools-2.4.4-3.fc18.x86_64  ------------------------------------------------------------  

To view the changes made in /etc directory by package installation:

$ sudo etckeeper vcs diff -c5

Related FAQs:

How to install Maven on CentOS
What is the difference between useradd and adduser commands?
How to enable local file caching for NFS share on Linux
How to build a network attached storage (NAS) server with Openfiler







More Linux FAQs:

  • How to checkout a specific version of git repository
  • How to check Linux version
  • How to mount a remote directory over ssh on Linux
  • How to install an old version of Firefox on Linux
  • How to check Open vSwitch version
Filed under: Development, Filesystem, System Tagged with: bzr, version

Subscribe to receive daily Linux tips by email


Recent FAQs on Development

  • How to checkout a specific version of git repository
  • How to count lines of source code in Linux
  • How to enable logging in OpenStack via devstack
  • How to fix Android SDK Content Loader stuck at 0% in Eclipse
  • How to generate documentation from source code in Linux

Recent FAQs on Filesystem

  • How to access or remove files with leading dash in filenames on Linux
  • How to back up hard drives for disaster recovery with Clonezilla
  • How to backup a hard disk on Linux
  • How to build a network attached storage (NAS) server with Openfiler
  • How to create a Linux LVM partition

Recent FAQs on System

  • How to automatically start a program on boot in Debian
  • How to benchmark virtual machines
  • How to check Linux version
  • How to check what services are enabled on boot in Linux
  • How to checkpoint and restore a Linux process

All content on Xmodulo.com is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.


Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • ZigBee - a specification for a suite of high level communication protocols used to create personal area networks built from small low-power digital radios
    ZigBee From Wikipedia, the free encyclopedia Jump to: navigation , search ZigBee ...
  • Open Sorce Hardware - The Wandboard is a low cost board based on the i.MX6 multicore ARM Cortex-A9 family of processors. In consists of a core module based on the EDM standard and a simple to extend baseboard
    Here's an Open Source Wandboard - Freescale i.MX6 ARM Cortex-A9 Opensource Community Development Board. The Wandboard is a low ...
  • 1967 Chevy Camaro Complete Rebuild - Videos, HowStuffWorks Videos "NAPA Videos"
    Video Playlist - West Coast Customs Shop, Completely Tears Down a 1967 Chevy Camaro and then does a Complete Rebuild...
  • Installing and Updating GRUB 2 in Fedora Linux
    This Page has allot of info on Installing, Updating and Trouble Shooting Grub 2 in Fedora Linux. There are some good How To's for...
  • Dynaco Stereo 400 Power Amplifier - Dead Channel Fix - Dynaco Repairs For PC-28 Amplifier Boards
    My Dynaco Stereo 400 Amp... The Page Below these e-mails with Kevin Boales. Looks like the one that I found. Back in ...
  • Open source PLC's - PLC (programmable logic controller)
    Here's some Great Looking Open source PLC Projects. The OSPLC Small & Large Bricks are open-source PLC (programmable logic ...
  • NetProMax PC with Motherboard P5PE-VM ASUSTeK
    Here are some links to info on the NetProMax PC with Motherboard P5PE-VM ASUSTeK ... Don ASUSTe...
  • Running a PXE Boot Server in Parted Magic
    Here's some good info on Running PXE Boot Server in Parted Magic... Don PXE – Parted Magic PXE PXE: the "classic" way ...
  • Americas Health Care - Obama Care - Key Features of the Affordable Care Act - Health Care and Education Reconciliation Act
    Finally! Some real info, as in... This is the date that the Affordable Care Act, goes into effect. Open enrollment in the Heal...
  • Building a Brushless Motor Controller using an ATmega Chip - by Davide Gironi
    Here's a very in depth Article on Building a Brushless Motor Controller using an ATmega Chip - by Davide Gironi... Do...

Blog Archive

  • ▼  2013 (354)
    • ►  December (12)
    • ►  November (33)
    • ►  October (23)
    • ►  September (46)
    • ▼  August (52)
      • Privacy = Security and Security = Privacy...
      • In Search of The Best Power Supply for the Raspber...
      • Setting up Firefox Sync - Before Reformatting and ...
      • EEVblog #501 - Sinclair C5 Electric Car Teardown &...
      • New York Times website inaccessible in 2nd disrupt...
      • Android Apps that could be quite useful
      • Speeding Ticket Near Kingsville, Texas...
      • EEVblog #510 - Mailbag - YouTube
      • Firewalls iptables for Linux and Windows OS's - Ho...
      • EEVblog #75 - Digital Multimeter Buying Guide for ...
      • EEVblog #102 - DIY Constant Current Dummy Load for...
      • Hacking cheap LED Voltmeters and use them as Displ...
      • Video Editing How To with Free and Open Source Sof...
      • Drones - Aerial Video Hands-on DJI Phantom Quadcop...
      • Camera rig controlled by Blender 3D - working blen...
      • 3D Scanners for 3D Printing Objects - Video and Links
      • Fluke 8050A Hi Res Display Conversion Projects - K...
      • The U.S. Army's Top Secret Arctic City Under the I...
      • Sink Holes - Videos
      • MiniTube Desktop YouTube Video Watching Searching ...
      • How to Create a Database in MySQL Workbench - from...
      • IDE Energia for for the TI MSP-430 Dev Board - Ru...
      • Cheapest PCB Makers - Low Volume for Custom Protot...
      • Flexible Aluminum Electroluminescent Display - No ...
      • Linux users be Aware of this Trojan - Hand of Thie...
      • Open Source Electronics Design Software and IDE's
      • EAGLE V6.4 is now compatible with LT Spice - Eleme...
      • Evacuate Earth - National Geographic Documentary 2...
      • Top Gear USA - Best Luxury SUV 2013 and Check Rela...
      • Gnome 3 - Add or Remove an Indicator Applet Comple...
      • ShopNotes Magazine - Woodworking Plans, Tips and V...
      • Nikola Tesla - Wireless Electricity - Theory Behin...
      • Ingenuity In Action (1959) NHRA Hot Rod Film - You...
      • AquaTop Display, an impressive Game Display System...
      • Videos for Doomsday Castle - National Geographic C...
      • Food and Drug Administration - Recalls, Safety Ale...
      • Safety Alerts for Human Medical Products - Fluoroq...
      • Electronics Basics and Circuits - Videos - Underst...
      • Flyleaf longtime lead singer Lacey Sturm, left the...
      • Web Sites with Christian Music - Listening Online
      • Chip Yates - World Record Junkie and Electric Moto...
      • Motorcycles - All Wheel Drive Motorcycles by Lawso...
      • Etckeeper - Installation in the GUI and How to ver...
      • Watch the Great Perseid Meteor Shower - Live on Yo...
      • First solar-powered Linux laptop | ZDNet
      • The One Laptop per Child (OLPC) Project
      • NASA - CubeSats in Orbit After Historic Space Stat...
      • $5 ARM Development Board - About the MC HCK - mchc...
      • HDR photography with Raspberry Pi and gPhoto2 | Is...
      • Camera Pi How To – DSLR Camera with Embedded Computer
      • Michelle Jana Chan and Mike Reeves Ran the 2013 Pe...
      • Acetaminophen in Tylenol and many Over The Counter...
    • ►  July (36)
    • ►  June (45)
    • ►  May (17)
    • ►  April (38)
    • ►  March (19)
    • ►  February (22)
    • ►  January (11)
  • ►  2012 (145)
    • ►  December (27)
    • ►  November (31)
    • ►  October (14)
    • ►  September (15)
    • ►  August (48)
    • ►  July (10)
Powered by Blogger.

About Me

Unknown
View my complete profile