Welcome Anonymousregister
Categories
· Home
· Authors and Articles
· Downloads
· Feedback
· Forums
· Journal
· Private Messages
· Recommend Us
· Stories Archive
· Submit News
· Surveys
· Top 10
· Topics
· Web Links
· Your Account

Survey
What Topics Of FreeBSD Servers & Workstations Do You Want More Information About?

FreeBSD Installation
Webserver Setup
E-Mail Server Setup
IRC Server Setup
Mailing Lists
Autoresponders
Scripting
Software Coding
Server Security
Installing Ports
Domain Servers
Website Design



Results
Polls

Votes: 23
Comments: 0


Current Active Topics


Click to list all articles in this topic

  

DNS

DNS · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


emacs

emacs · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


email

email · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


firewall

firewall · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


fonts

fonts · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


FreeBSD News

FreeBSD News · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gaim

gaim · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gentoo

gentoo · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gftp

gftp · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gimp

gimp · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gimp

gimp · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


gnome

gnome · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


hackers

hackers · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


kmail

kmail · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


konqueror

konqueror · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


ksirc

ksirc · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


kvirc

kvirc · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


Linux

Linux · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


News

News · Total News:· Total Reads: 302

Articles:

Read this articlePrinter ready versionE-mail to a friend  News: Learn To View Your Security Log Files From Right On Your Desktop (Michael)

Most recent article:

Learn To View Your Security Log Files From Right On Your Desktop
by: Michael
2007-12-03 20:12:54

Another Fantastic Tool For Monitoring Your Log Files Right On Your Desktop

One of the best tools around for keeping an eye on your log files for security purposes is root-tail. I have been using this tool for years now and it's pretty phenomenal. Using the KDE desktop it's very straight forward to use and you can color code which tail file is being displayed on your desktop. If you've never seen root-tail in action, you will really get a kick out of how this log is displayed right on your desktop.

Here is an actual 
ksnapshot of root-tail in action on my KDE desktop.

For the full story check out our forum post about this fantastic tool.

Forum Post About root-tail

read more...


RavenNuke(tm)

RavenNuke(tm) · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


Scripting

Scripting · Total News:· Total Reads: 607

Articles:

Read this articlePrinter ready versionE-mail to a friend  Scripting: How To Batch Remove ^M From PC Files (Michael)
Read this articlePrinter ready versionE-mail to a friend  Scripting: Using Date Function To Automate Saving Of Mysql Database Files (Michael)

Most recent article:

How To Batch Remove ^M From PC Files
by: Michael
2007-12-02 18:38:07

Removing ^M From Files Saved Within Windows Is Easy Using This Utility.

This is probably one of the most annoying issues you have to deal with when you open a lot of files which have either been on a windows system or were created on a windows machine, and that is removing those pesky ^M symbols when viewed on a Unix box.  Generally these carriage return symbols (^M) don't do any harm when they are within Unix files but they are annoying and make the file your viewing that much harder to read. 

If you are anything like I am when it comes to these, you want an easy way to remove them from a batch of files all at once and not waste a whole lot of time on them.  The utility I use to remove them is called dos2unix and it can be found in the ports tree at
/usr/ports/converters/unix2dos Now you're probably asking, 'Wait, I thought you said it was dos2unix', yes you're right I did, but included in the unix2dos application is the dos2unix command which we will be using.

<------Begin Type Within a Shell------->
#cd /usr/ports/converters/unix2dos
#make clean
===>  Cleaning for unix2dos-1.3
#make install distclean
######Code Compiles#######
#rehash
<-------End Type Within a Shell-------->


Once you have compiled unix2dos you will issue the following command from the shell:

<-------Begin Type Within a Shell------->
#
find /path/to/folder/of/files/to/process/ -name "*.php" -print -type f -exec dos2unix {} \;
<-------End Type Within a Shell--------->

This will spit out a list of the files that it found within this folder and execute the dos2unix command on the files with the extension of .php.

Now there are probably a million different ways to accomplish the task of removing these carriage return within your files, but I found that using this method to do a batch search and execute is the simplest most effective way of doing this chore.

You can use other tools to remove these ^M symbols from your files and if you're are just dealing with one file then this may be a little overboard.  You could use perl to do this for example by doing the following:


<-------Begin Type Within a Shell------>
#perl -pi -e 's/
\015//g' filename
<-------End Type Within a Shell-------->

I hope you find this as useful as I do when dealing with files that you move from a windows  box to your FreeBSD machine.  These are the kinds of hacks that make using FreeBSD so much fun.

read more...


Security

Security · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


Sendmail

Sendmail · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


shell

shell · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


VMware

VMware · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


wine

wine · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


xchat

xchat · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


xine

xine · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...


xmms

xmms · Total News:· Total Reads: 0

Articles:

...There aren't any news yet for this topic...

Topics ©
1: Credit Repair Combat
128 times
2: My Internet Business
123 times
1.947 Seconds