Syed Jahanzaib Personnel Blog to Share Knowledge !

June 5, 2011

Linux Few Tips n Tricks ! Unmanaged Post, Will edit later . . .

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 2:58 PM

Fedora 10 update GDM config to allow root login on GUI Mode
===========================================================

Open /etc/pam.d/gdm using gedit or vi text editor, enter:
gedit /etc/pam.d/gdm

Find line that read as follows:

auth required pam_succeed_if.so user != root quiet

Remove or comment out line by prefixing #.

# auth required pam_succeed_if.so user != root quiet

==============================================
CONFIGURING LAN IP ADDRESS:

You can determine your IP by running:

/sbin/ifconfig -a

Look at the entry for eth0

To change your IP edit the file /etc/systconfig/network-scripts/ifcfg-eth0

then run

service network restart

==============================================
CONFIGURING WEBMIN via YUM:

Using the Webmin YUM repository

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

You should also fetch and install my GPG key with which the packages are signed, with the command :

rpm –import http://www.webmin.com/jcameron-key.asc

You will now be able to install with the command :

yum install webmin

All dependencies should be resolved automatically

============================================

mysqladmin command to change root password

If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:
$ mysqladmin -u root password NEWPASSWORD

============================================
CLEAR IPTABLES RULES

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
============================================

About these ads

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 2,270 other followers

%d bloggers like this: