Understanding file permissions and modifying them using chmod

PLease do not publeish this until come changes are made

replace Linux by gnu/linux
make sure that different points are in different lines not in paragraphs

Linux is basically a multi-user system. But nowadays there has been an
increase in the usage of Linux as an OS for single user home computers
as well. But since it was originally meant to be a multi-user OS, a lot
of things that would be necessary in a multi-user system are built into
the Linux core. One such thing is file / directory permissions.
Read more

lsb_release — Show Linux Standard Base and Distribution info.

Mr Shakthi (ILUGC-Member) rewritten the Linux Device Driver example
programs, from Rubini’s Book, in a very simple manner. So that a
beginner can understand the code very easily.
URL: http://www.shakthimaan.com -> Downloads

One Day One Command
===================

lsb_release — Show Linux Standard Base and Distribution info.

Summary:

If the installation is LSB compliant, the “/etc/lsb-release” file
should contain the LSB_VERSION field and other optional fields like
DISTRIB_ID, DISTRIB_RELEASE, DISTRIB_CODENAME, DISTRIB_DESCRIPTION.

lsb_release will read the above config file and show the details in
different format. It is useful command to find your distribution
informations.
Read more

logger — Makes entries in the system log file.

Mr Vijay Kumar (Ex GLUG-Trichy Co-Ordinator) has written a tutorial
about GtkTextView Widget and CVSCheat Sheet.
URL: http://www.bravegnu.org/

One Day One Command
===================

logger — Makes entries in the system log file.

Summary:

Logger is a shell command interface to the syslog system log module.
It can be used to makes entries in the system log from the shell
scripts. By default, messages will be logged in /var/log/messages.

Read more

How to write protect important files

Protect some files from users with sudo access to modify it
How to write protect important file (even root can NOT modify/delete it)

If you have some internal application developed to manage the
users and other stuff. However some admin still some time make changes
/etc/passwd or /etc/master.passwd via sudo. Then the idea of file write
protection comes. I suggested to use them chflags.

Read more

Installing packages from source in Gnu/Linux

Packages come
in two formats in Gnu/Linux

1.) rpm
packages.

2.) Source
packages.

In this
document we will be installing source packages.

Source
packages generally come in 2 compressed formats

xmms-1.2.10.tar.bz2
–compressed with bunzip(bzip)

xmms-1.2.10.tar.gz
–compressed with gunzip(gzip)

and others
also

1.)first of all
we need to extract these packages .

so copy the
packages in your Gnu/Linux partition. for example in /plugins directory.

go to that
directory and extract them as follows

[root@gaurav
root]# cd /plugins/

[root@gaurav
plugins]# tar xjf xmms-1.2.10.tar.bz2

[root@gaurav
plugins]#

OR

[root@gaurav
root]# cd /plugins/

[root@gaurav
plugins]# tar xvzf xmms-1.2.10.tar.gz

[root@gaurav
plugins]#

here we pass
the arguments

xjf –for
uncompressing packages of the type (.tar.bz2)

xvzf –for
uncompressing packages of the type (.tar.gz)

more on these
attributes can be found by

[root@gaurav
root]# man tar

if the
packages are in some another format then u can extract them also by

a.)copy the
package in your Gnu/Linux partition

b.)Right click
on the package

c.)choose
extract here

this method
surely takes some time more that the command line version but if you are having
any problems in extracting
with the command line then u may proceed in this manner

2.)after packages
have been extracted then u need to compile them and then install these.

you can go
through a file Readme or INSTALL

in all the
install readme files you will find the procedure for installing source packages

I am briefing
the procedure down here

a.) go to the
directory containing the extracted packages

[root@gaurav
root]# cd /plugins/xmms-1.2.10

[root@gaurav
xmms-1.2.10]#

b.) ‘./configure’
will check if the files necessary for installation are available or not

[root@gaurav xmms-1.2.10]#
./configure

c.)’ make’ will
compile the package

[root@gaurav
xmms-1.2.10]# make

d.)’make install’
will install the executable in ‘/usr/local/bin’ (generally)

after these
you can run your new packages by their name only or by giving the full path

[root@gaurav
xmms-1.2.10]# xmms

OR

[root@gaurav
xmms-1.2.10]# /usr/local/bin/xmms

Read more

eject — Eject the removable media

Linux is included in 11th std Computer Science syllabus in Tamil Nadu.
Linux Users Groups should help the Teachers and Students to understand
the Linux and FOSS concepts.

One Day One Command
===================

eject — Eject the removable media

Summary:

Eject allows removable media (like CD-ROM, Floppy, Tape, JAZ, ZIP) to

be ejected under software control. The command can also control some

multi-disc CD-ROM changers, the auto-eject feature supported by some

devices, and close the disc tray of some CD-ROM drives.

Read more