Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2002

    Got a freebsd server

    hey guys

    ok im used to linux based servers but i just got a personal freebsd server that i got to play around with.

    ok i got my box logged in to root so the question is now what


    it seems different to like linux ..diff interface etc.....

    What i would like to do is check the following

    ive logged into root and all i see is


    1) check to see if php/mysql is installed?

    2) Create a account to have ftp and that sorta stuff

    3) Setup nameservers

    can anyone point this out to me???

  2. #2
    Join Date
    Jun 2003
    Ukiah, California
    pkg_info will tell you what packages are installed

    adduer will help you to add a user

    find bind in the ports tree (/usr/ports/dns/bind9) and install from there
    Jacob Turner -- Ringnebula Systems
    Managed IT solutions for small business

  3. #3
    Join Date
    Apr 2004
    San Jose
    Read the Handbook.

    That should answer most of your questions.

    Be aware that FreeBSD is installed without software you don't need, and you choose what you want on it.

    If you're not tied to BIND for DNS, check djbdns.

    Here are some of things I typically do for my own style of FreeBSD servers:

    Create /etc/ntp.conf for accurate clock

    restrict default ignore
    restrict mask
    restrict mask nomodify
    server prefer
    driftfile /var/db/ntp.drift

    Restart - /etc/rc.d/ntpd restart

    Get ready for ports and security patches for core OS

    cd /usr/ports/security/portaudit && make install # checks for known security problems with the ports
    portsnap fetch && portsnap extract
    cd /usr/ports/net/cvsup-without-gui && make install # useful for grabbing the sources
    cd /usr/ports/shells/bash && make install # my favorite shell
    cd /usr/ports/security/sudo && make install # so we can be root from remote logins
    adduser # create a user so we can log in remotely, since root can't by default
    vi /usr/local/etc/sudoers # make the user able to sudo
    cp /usr/share/examples/cvsup/standard-supfile /root
    vi /root/standard-supfile # Change "CHANGE_THIS" to cvsup11 or similar
    cd /usr/src
    cvsup /root/standard-supfile
    vi /etc/make.conf # copy what seems right from /usr/share/examples/etc/make.conf

    Recompile kernel and world:

    Update the ports already installed:

    cd /usr/ports/sysutils/portupgrade && make install
    portupgrade -rRa

    Install ports we need for the applications:

    portinstall rsnapshot
    portinstall lighttpd
    portinstall p5-FastCGI
    portinstall p5-Template-Toolkit
    portinstall p5-Cache-Memcached-Managed

    rc.d Boot System

    For FreeBSD, the rc.d system is different from the SysV style you’re probably used to from Linux. The /usr/local/etc/rc.d/ directory has the added application startup scripts. They all read /etc/rc.conf, looking for configuration.
    ports system

    portsnap fetch
    portsnap update
    # To just upgrade subversion with any ports it depends on or depend on it, run:
    portupgrade -rR subversion
    # before running portupgrade, it's a good idea to look at /usr/ports/UPDATING to see if there are any gotchas in doing a normal update
    # Once it is finished, restart the svnserve by running
    /usr/local/etc/rc.d/svnserve restart
    Specializing in MySQL and website tuning for high traffic sites.

  4. #4
    Quote Originally Posted by saj
    i just got a personal freebsd server that i got to play around with.

  5. #5
    Most of your software installation will be done from /usr/ports

    After you have updated the ports tree, do make search name=application to search for any application that you want.

    Then go into that directory and type make install clean.
    Is that understandable?
    Ports has A LOT of application makefiles btw.

    PHP and apache is in there as well and is easy to set up.
    As for FTP I suggest ProFTPD as it sets it up on a default install that you can log in with your shell log in.

  6. #6
    Join Date
    Dec 2002
    hmm ok can anyone or does anyone wanna do it ill pay if needed

    i have absolutely no idea!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts