Showing posts with label ports. Show all posts
Showing posts with label ports. Show all posts

Friday, January 9, 2009

One last mac post then, taking a break on mac stuff

The things you should get when you get your mac for the first time.
Torrents = Transmission
Chat = Adium
Unix Ports = Macports (first install with macports irssi, but make sure you get irssi with perl, ie sudo port irssi +perl)
itunes for music of course(don't worry, it actually works on mac)
It already has perl, python, and ruby, so no worries there.
Oh and good cpan's to get
Mac::Growl
Mac::AppleScript
Very cool stuff. Oh and another very soon post is going to be about apple, however it's about a really fun exploit so it's for those of us who want to break into apples, which is probably everybody....and it's about the cute indie chick who's apple you want to break into, so even you die hard windows fan boys are going to like this one.

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, 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.