LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2008, 01:01 PM   #1
NaotaKunBr
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Question How to document a Slackware linux machine?


Hi there!

I'm a newbie in Linux so this could be a simple/stupid question. I apologize for that. There it goes:

I've a functional Slackware Linux machine running about 2 years. I want to generate a documentation about this machine, listing installed packages, configuration and anything important to rebuild the machine or to bring up a new one.

I've talked to the old "machine owner" - now with other tasks within a client of ours. he said this box serves as a workbench to tests, running, MySQL, PHP and firewall with IPTables.

Any idea, steps, script, utility?
(Remembering that i'm a beginner with Linux).

Thanks in advance, sorry about the poor english.
Fabio.
 
Old 08-04-2008, 01:28 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
For installed packages, run:
Code:
ls /var/log/packages > packages.txt
and print it. For configuration files, just look in /etc, and print whatever you want out. Easy.
 
Old 08-05-2008, 12:38 PM   #3
NaotaKunBr
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks! This helped a lot.

Taking the question a little bit further:
about the directories within /var, /usr (like the ones created by Apache), there's some advice or copy them all - besides a careful look at Apache's configuration?

Other thing, about folder and file permissions, how to list them?

Again, thanks for the attention!
Fabio.
 
Old 08-05-2008, 07:28 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
To list permissions and ownerships:
ls -l

Packages may be an exception, but generally you wouldn't want anything under /var, its mainly log files.
You would want config files. Largely under /etc as mentioned, but could be elsewhere depending on app.

you should bookmark + read this: http://rute.2038bug.com/index.html.gz
Great Linux tutorial
 
Old 08-06-2008, 06:47 AM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
... and, if you really want detail, the files in /var/log/packages are text; a brief description followed by the name and installed location of every file in the packages; e.g.,
Code:
more xterm-232-i486-1
PACKAGE NAME:     xterm-232-i486-1
COMPRESSED PACKAGE SIZE:     220 K
UNCOMPRESSED PACKAGE SIZE:     460 K
PACKAGE LOCATION: /var/log/mount/slackware/x/xterm-232-i486-1.tgz
PACKAGE DESCRIPTION:
xterm: xterm (terminal emulator for X)
xterm:
xterm: The xterm program is a terminal emulator for the X Window System.
xterm: It provides DEC VT102/VT220 (VTxxx) and Tektronix 4014 compatible
xterm: terminals for programs that cannot use the window system directly.
xterm:
xterm:
xterm:
xterm:
xterm:
xterm:
FILE LIST:
./
etc/
etc/X11/
etc/X11/app-defaults/
etc/X11/app-defaults/XTerm
etc/X11/app-defaults/XTerm-color
etc/X11/app-defaults/UXTerm
etc/X11/app-defaults/KOI8RXTerm
usr/
usr/bin/
usr/bin/xterm
usr/bin/koi8rxterm
usr/bin/uxterm
usr/bin/resize
usr/doc/
usr/doc/xterm-232/
usr/doc/xterm-232/README.os390
usr/doc/xterm-232/MANIFEST
usr/doc/xterm-232/AAA_README_VMS.txt
usr/doc/xterm-232/README
usr/doc/xterm-232/README.i18n
usr/doc/xterm-232/INSTALL
<plus a lot more>
 
Old 08-07-2008, 09:35 AM   #6
NaotaKunBr
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Folks, thanks for all information.

The "Rute User's Tutorial and Exposition" is bookmarked and being readed.

Now i'll spend a good time with the Slackware box and then validate all my notes in a VM.

I'll return here with conclusions and lessons learned through the path.
Again, thanks for the attention!
Fabio.
 
Old 08-07-2008, 09:39 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
And also to note that if you want a complete history of removed packages, basically detailing of when a package got updated with dates, look in /var/log/removed_packages
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
to open the document(pdf) present in remote server from the local machine.... satishgupta05 Linux - Server 5 06-09-2008 10:09 AM
how do i create a document, then a directory and save the document in it. jtdodge Linux - Newbie 9 06-15-2005 11:03 AM
I can't use the printer of a Windows XP machine, using Slackware Linux Shagrath239 Linux - Networking 8 02-21-2005 04:03 PM
"document contains no data" error when i try to connect to SWAT on local machine squeaky-steve Linux - Networking 2 12-03-2003 08:12 AM
Redhat 8 machine on network how do I FTP to web server document root? maxdown Linux - Networking 3 05-05-2003 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration