I made this video really quickly, to show how to install FreeBSD. I tried to cut my rambling out, but may have made the video less coherent in doing so. Anyways, enjoy the goodness. I installed it on vmware fusion for the mac but the install is identical on a machine and pretty close on any vmware product. Don't use virtual box yet, it has freebsd bugs.
Sunday, January 11, 2009
How to install FreeBSD youtube video by BSDPunk
Friday, November 14, 2008
Quagga Routing software
Quagga is a really interesting routing software suite that emulates a cisco interface for routing on a *nix box. Now, I am not going to start throwing out my ciscos or anything, but this software seems fairly mature, and considering the cost of a cisco over a cheap computer, with FreeBSD and Quagga on it, I could see a real reason to use it. Quagga is opensource(GPL). So why is this interesting. So why would you care? Well with Quagga being on *nix platforms, you know and love you can do things like run tcpdump, or other tools you are already familiar with. Maybe you need QOS or maybe your room mates torrents are driving you crazy from stealing all the bandwidth. Perhaps you just want to become more familiar with routing, or you want to use a real firewall*.
pf.conf can do routing and nat, all on it's own as well.
Monday, November 10, 2008
Poor man's firewall ( debian )
This will work on must linux based systems I imagine. It is blocking an IP, by routing all responses through 127.0.0.1. So instead of sending the response packets it just eats them. This is done by adding a static route which directs the traffic no where.
route add -host 1.1.1.1 netmask 0.0.0.0 lo
Ok so in this example, replace 1.1.1.1 with the offending IP. You can do the same thing with FreeBSD but it's a little different and IMHO makes more sense. I will post that solution later.
This is a quick and dirty solution...never use this as a permanent firewall.
Thursday, October 30, 2008
irc.9unkz0r.com back online, again, and an IRC Shell review
Ok so our server got taken down, by Binary Shells, because we were accused of "botnet activity". Binary Shells was not prompt in helping us, and they offered no evidence. I strongly recommend against using them. Anyways we are up now so:
/server irc.9unkz0r.com
or
/server irc.mechanicalpinata.com
I would prefer you use the mechanicalpinata.com address(however they both resolve to the same IP).
Once again I want to emphasize http://www.binaryshell.com, is not a site that I recommend. I do recommend however, beef jerky, both slim jims and jack links.
Tuesday, July 15, 2008
JSON not working in PHP5?
If you are using PHP5 and JSON isn't working, and you compiled it or used a package manager the following switch may have been on --disable-all. To check do a phpinfo(); on your page and check. If it is on you need to recompile, without that switch. In FreeBSD you do that by editing the make file and taking out that line.
Monday, June 30, 2008
FreeBSD sproutcore error
If you get a sprout core error that is something like this but much longer:
`load_missing_constant': uninitialized constant
JSON::Iconv (NameError)
It means you need to install ruby-iconv, and you can do that straight from ports.
cd /usr/ports/converters/ruby-iconv
make install clean
When trying to figure this out, basically I found a lot of cygwin stuff on google groups. And basically it was the same issue. You just needed to install ruby-iconv.
Monday, May 12, 2008
Icecast2 and FreeBSD
So when I was installing Icecast on FreeBSD I had some issues. One was that, at first instead of installing icecast2, I inadvertently installed icecast. Then after I realized I had fucked up, witch took forever by the way, I installed icecast2 from ports, which worked, but finally I had to give up with my own train of thought and use this guru's instructions. It's not often that I phail so badly and have to confess to the intarwebs, so you guys eat it up.
Monday, May 5, 2008
Why is FreeBSD awesome?
A lot of people ask me why to choose FreeBSD over other distros of open source os's. And usually I am never prepared. So here we go, what are the pro's of FreeBSD.
ports- ports rock, they install like a breeze and get all there dependencies and they are pretty fucking fast too(not to install but to run)
1 Disc installation - I think FreeBSD 7 is three disks, but if you just install the base and then do the rest through ports 1 cd, for a fully functional awesome server OS that can go walls to balls with any other server OS out there
Fast- At one point we had a pentium 4 machine running 150 websites with lot's of dynamic content(huge amounts of flash, huge amounts of php)and it was plenty enough machine. At one point it was taking a long time to pull up sites and we thought it was about time to invest in a beefier machine but when we checked top, apache was still less than 20% proc and ram, the problem ended up being a bandwidth issue, sheesh
rc.conf - the best startup shit eva, rc.conf besides the unique put almost everyting in /usr is probably the thing that seperates FreeBSD, from the linux OSes
The FreeBSD Handbook - ZOMG!!1 Awesome Documentation on an Open source project, No way.
Ok so this one is a little weak, but:
Awesome Automatic partitioning. The FreeBSD partitioner, recommends a pretty awesome partition table if you want to do things the right way but don't want to spend all the time figuring out what that is.
The most awesome mascot ever - You got to love beastie.
Thursday, February 21, 2008
Library of congress
I saw an article on boingboing.net today about how the library of congress was donated a value of 3 million dollars in products and services from Microsoft and in exchange they will have vista kiosks. Link
I was wondering, why isn't there a venue in which non-profits, and government agencies, etc..can ask for help from open source/*nix. I am thinking of opening a forum specifically so that people with the skills who want to donate their time and people who need functioning computers, websites, etc can help each other out. If you guys have an opinion or a better idea for a venue for this I will be opening a forum topic at 9unkz0r.com/forums under the Lounge/ Off topic section.
Thursday, February 14, 2008
Router forum post
There was a forum post about how someone was having problems having to share an internet connection with 5 people. 3 On wireless. If someone was downloading something the speed was unbearable, here was my response:
As far as easy, well that's my style, but networking is. My favorite solution to this is to make a router out of an older box no one is using and at it's very basic throw tcpdump or wireshark on it and just see who is doing this, but you can get so much more sophisticated with it and use the router you built to throttle bandwidth equally(or not so equally if you choose). Smile
Other solutions are:
http://cacti.net/
http://www.openxtra.co.uk/network-manage...en-source/
You could also ARP poison the network. And see who is doing it using cain and abel and wireshark. Here is my tutorial on wireshark:
http://bsdpunk.blogspot.com/2008/01/snif...words.html
Ok so instead of finding this information out you could also work on making the problem less severe, such as reducing the number of people who are on wireless, this will help tremendously as if you are using wifi g for example, every computer connected to the network wirelessly is sharing a portion of 54mb(in your case 3 computers means 18mbs a peice), and when you compound that with possible dropped packets, just cause a cordless phone is on or a microwave or the computers are to close together, that gives you a pretty shitty connection. Also implementing a policy in your living space is going to work a lot better than having a device that shows who is doing what because people can learn how to get around those things. Saying hey we have to live together, let's only do torrents between 1am and 4am and only one person a night gets to do that or something.
So that was the response, I think I may follow up with a tutorial, on exactly how to accomplish a FreeBSD router with throttling. But right now this post is looking about a month away with my current schedule.
Monday, February 11, 2008
FreeBSD, forgot to install ports, DOH!
Ok let's say you did a basic FreeBSD install and you are ready to go. You, of course go to install nmap as your firstapp:
cd /usr/ports
DOH! You forgot to install ports from the cd. That's ok I got you covered.
#mkdir /usr/ports
#portsnap fetch
This downloads a snapshot of the ports
#portsnap extract
exctracts the ports to /usr/ports
Alright, it's that simple.
FreeBSD beggining server set up
Everything you need is in the FreeBSD hand book but not everything in the hand book is something you need, so assuming you have a basic FreeBSD with ports installed. Let's go through the first things you need done after the install. First your going to want to make sure you have connectivity. Ping google.com and see if you have that, if you do you may not need to set up anything for connectivity, but if you don't it is time to crack open the rc.conf.
You can use vi to edit the rc.conf and you need to be root.
vi /etc/rc.conf
add this line for dhcp
ifconfig_fxp0="DHCP"
Replace fxp0 with the name of your network card which can be obtained through a standard ifconfig.
Let's say you want a static IP for your server:
ifconfig_fxp0="inet 192.168.0.2 netmask 255.255.255.0"
Is similar to what you would put in your rc.conf replacing fxp0 again and the ip# and netmask# to match yours.
Next you need to make sure you have a route to the internet:
Add this to your rc.conf:
defaultrouter="10.20.30.1"
You can do this by a command:
# route add default 10.20.30.1
Next you need to make sure that you have name resolution
Make a file /etc/resolv.conf which contains:
nameserver ipofyournameserver
nameserver ipofbackupnameserver
Make sure those are both IP's and not DNS names
****WAIT WAIT***
A little shiznit on rc.conf, rc.conf will only load these settings on restart because rc.conf only exists to set up the settings when the computer is turned on, you can do all of these by command but they won't "stick"
Ok your first port install:
cd /usr/ports/security/nmap
make
And when that is done:
make install
Then you have nmap which is often overyplayed as a hacking tool but it is really a good troubleshooting tool as well, anyway happy hacking.
Wednesday, February 6, 2008
FreeBSD on eeePC
I should get my eeePC today. In preparation I have looked to see if anyone has gotten FreeBSD to run on it yet. Typically I choose FreeBSD as a server, not a desktop but I might give it a whirl even though right now I am still thinking eeeXubuntu.
Blog mentioning FreeBSD and FitPC
the unknown giant Bsd goodnes
eeeBSD