MontanaMenagerie - View topic - Howto: Various Tips for Linux
It is currently Tue Sep 07, 2010 7:17 am




Post new topic Reply to topic  [ 2 posts ] 
 Howto: Various Tips for Linux 
Author Message
I Have Powah
I Have Powah
User avatar

Posts: 1655
Joined: Sat Jun 09, 2007 11:13 pm
Location: Meadowbrook, CA
Post Howto: Various Tips for Linux
Set up a Firewall with Firestarter

Introduction
One of the great features included in Linux is the IPtables firewall. Unfortunately, its command-line use is rather complex, and it can be intimidating for even experienced Linux users to configure it. Firestarter is a friendly graphical interface that allows you to configure a software firewall in Linux using the built-in IPtables/IPchains utilities.

http://www.techthrob.com/tech/firestarter.php

:pcpnch:

_________________
Linux. Don't fight it. You will be assimilated.
*******
Gulf War Vet--2nd Squadron, 2nd Armored Cavalry--Fort Polk, LA


Last edited by rockingmtranch on Wed Apr 16, 2008 8:40 am, edited 1 time in total.

Wed Feb 20, 2008 9:17 am
Back to Top
Profile YIM
I Have Powah
I Have Powah
User avatar

Posts: 1655
Joined: Sat Jun 09, 2007 11:13 pm
Location: Meadowbrook, CA
Post Highlight Your Shell Prompt When Working as Root
Highlight Your Shell Prompt When Working as Root

by Mitch Frazier

A useful thing that some distros have started doing is setting the color of your shell prompt differently if you're logged in as root. This gives you an additional visual cue that helps avoid doing things as root when you don't want to. If your distro doesn't do this for you, you can accomplish it by changing your .bashrc files. To set the color of your shell prompt you set the shell variable PS1.

To make the prompt red when you're running as root add this to /root/.bashrc:

PS1="\[\e[31m\]\h:\w#\[\e[m\] "

To make the prompt green when running as a normal user add this to ~/.bashrc:

PS1="\[\e[32m\]\u@\h:\w\$\[\e[m\] "

See the shell man page and search the web for ANSI Escape codes for more info on the meaning of the escape sequences.

In the image below the top shell window is a normal user, the bottom one is a root window.
Image
http://www.linuxjournal.com/content/hig ... ing-root-0

_________________
Linux. Don't fight it. You will be assimilated.
*******
Gulf War Vet--2nd Squadron, 2nd Armored Cavalry--Fort Polk, LA


Wed Apr 16, 2008 8:43 am
Back to Top
Profile YIM
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © phpBB Group.
Site by Zoll Technologies | Template by Vjacheslav Trushkin.