Difference between revisions of "Admin reference"

From ProgClub
Jump to: navigation, search
Line 1: Line 1:
See [[Machines]] for information about hosts on the ProgClub network. See [[Projects]] for current projects.
+
See [[machines]] for information about hosts on the ProgClub network. See [[projects]] for current projects.
  
 
If you're administering ProgClub assets, please document your actions on the wiki. See the relevant pages:
 
If you're administering ProgClub assets, please document your actions on the wiki. See the relevant pages:
Line 7: Line 7:
 
* [[Honesty admin]]
 
* [[Honesty admin]]
  
See [[Future machine names]] for the kind of stuff we're on about.
+
See [[future machine names]] for the kind of stuff we're on about.
  
See, or update, [[Network administration]] for work that needs to be done.
+
See, or update, [[network administration]] for work that needs to be done.
  
 
= Etckeeper =
 
= Etckeeper =

Revision as of 13:20, 30 July 2011

See machines for information about hosts on the ProgClub network. See projects for current projects.

If you're administering ProgClub assets, please document your actions on the wiki. See the relevant pages:

See future machine names for the kind of stuff we're on about.

See, or update, network administration for work that needs to be done.

Etckeeper

Etckeeper is now installed on Charity, which means the correct procedure after making edits to files in /etc is to issue:

$ sudo etckeeper commit "my reasoning here"

after you're done with your changes. There's an auto commit every day, and an autocommit whenever you apt-get install something. You can manually commit your changes as above. To see the commit log for a particular file:

$ sudo bzr log /etc/passwd

To revert an unwanted or bad change, work out which revision you want to revert to (see log above) and run:

$ sudo bzr revert --revision <commit number> <file>

For example, to restore the /etc/passwd file to the state it was in in revision 3,

$ sudo bzr revert --revision 3 /etc/passwd

To check for uncommited changes, run (From inside /etc):

$ sudo bzr status

For example:

$ sudo bzr status
modified:
  crontab

If you see no output, there are no uncommited changes.