FreeBSD 8 on desktop(home computer) - Some questions 
Electronic stores
Text guide


    This article consists of parts. It was written mainly for myself so that when you use its materials, the reference is optional.
    FreeBSD Handbook;
    Copy files over ssh (scp);
    The other links were lost :(

    In this article I would like to share with all my little experience in setting up FreeBSD OS 8 on a desktop and/or home computer. It addresses fundamental issues that need to be configured. All that is given here, tested on FreeBSD version 8 but this does not mean that other versions will not work or change will be drastically. If you have FreeBSD 5 or higher, you can easily read the text of this article.

    Activation (inclusion) ethernet-interface:

    $sudo ifconfig age0
    "age0" - the name of the network interface.
    "" - IP-address.

    Connection Internet Connection:

    $sudo ppp-auto inet
    "-auto" - this mode is automatic. Some use the "-ddial", it means that you are using a mode in which, even when an error occurs the connection is not broken.
    "inet" - the name of your Internet connection is configured in the file "/etc/ppp/ppp.conf".

    Sometimes that install FreeBSD, are sections with important information on the sections of the file system ext3. Then it is necessary to file "/etc/fstab" will add a line to the new partition. A file system, specify "ext2fs", since it "knows" how to work with ext2, and with the ext3 filesystem.

    If you do not run "X's" (X-server), you will need to make a configuration X:

    $sudo/usr/local/bin/X -configure
    $sudo cp-vr/root/

    NOTE: comments in this section are purely explanatory. In the working kernel file Cyrillic unacceptable.

    Configure kernel:

    # If the processor architecture amd64 or x86_64 (Athlon64 or Pentium, Xeon, Core, with support for 64-bit operation) machine amd64
    ID # kernel
    ident Free64
    # For connection PPPoE
    options NETGRAPH
    options NETGRAPH_PPPOE
    options NETGRAPH_ETHER
    # The program k3b
    options VFS_AIO
    options VFS_ATAPICAM
    # Enable the kernel sound device
    device sound
    # Sound card driver C-Media
    device snd_cmi

    Configure k3b. If you run k3b from a simple user name and saw a message that the program did not find a recording (rewritable) devices, you will need to enter the console the following commands:

    This command is required to be able to run a simple user programs cdrdao (establishes the right of access SUID)

    $sudo chmod -s /usr/local/bin/cdrdao

    This command allows the user to use a simple device xpt0, pass0, cd0. It is worth noting that devices pass0 and xpt0, only appear when loaded into memory and kernel modules aio.ko atapicam.ko

    $sudo chmod 666 /dev/xpt0 /dev/pass0 /dev/cd0

    Check loaded core modules:

    $sudo kldstat

    Loading kernel modules:

    $sudo kldload atapicam.ko
    "atapicam.ko" - the kernel module.

    Search program at the ports:

    $sudo make search key = ipod | grep-v deps
    "ipod" - the program name or keyword. In the example, the keyword "ipod" - it means they are looking for a program to work with the player "IPOD".

    Connection stick:

    $sudo mkdir /mnt/flash
    $sudo mount_msdosfs /dev/da0s1 /mnt/flash
    You can also connect a USB external hard drive.

    Checking (O) Equipment:

    $dmesg | grep da0s1
    Checks for the existence of equipment (in this example "da0s1"). If it is, it displays information (model, serial number, memory, etc.)

    Debug connection pppoe:

    $ppp inet
    $ppp> set log debug
    $ppp> dial
    "inet" - the name of your Internet connection
    "set log debug" - to include in the log error messages
    "dial" - a connection

    After this combination of commands will appear if an error occurred. Having studied it - you can try to fix it.

    CVSup - a program to support port-to-date (update ports tree). Installing CVSup (no GUI):

    $make install

    Running CVSup:

    $sudo cvsup-g-L 2 cvs-supfile
    "cvs-supfile" - a configuration file CVS.

    Configuring qt4:
    When an error occurs build your programs, you may need to make the following lines (without the quotes) in the file: "/home/user/.profile".
    "user" - the name of your user.

    "PATH=usr/local/bin/qmake-qt4; export PATH"
    "export QMAKESPEC=freebsd-g++"

    Customize Qemu:
    Qemu program would work without any settings but if you want to use the accelerator KQemu, you will need to install it (the accelerator KQemu) separately and put the following line (without the quotes) in the file "/etc/rc.conf":


    Administrative matter, which is unlikely to be useful for home users. Copy files over ssh (scp):

    $scp root@ ~
    Copies a file from a server in the working directory of the current user on the local computer.

    The following is a working file "/etc/ppp/ppp.conf", with the settings of your Internet connection (inet) for the connection type PPPoE.

    set log Phase LCP tun command
    set ifaddr

    set device /dev/cuau1

    set speed 115200
    \ "\" AT OK-AT-OK ATE1Q0 OK \ \ dATDT \ \ T TIMEOUT 40 CONNECT "
    set timeout 180 # 3 minute idle timer (the default)
    enable dns # request DNS info (for resolv.conf)

    set device PPPoE: age0
    set authname "LOGIN"
    set authkey "PASSWORD"
    set timeout 300
    set mru 1492
    set dns
    set dial
    set login
    add default HISADDR

    This working file "/etc/rc.conf" with the settings from the article.


    This working file "cvs-supfile":

    *default tag=.
    *default base=/var/db
    *default prefix=/usr
    *default release=cvs
    *default delete use-rel-suffix


    If you want to change the encoding (in this example UTF-8) only in your account, enter the following lines to the file "$HOME/login_conf", where "$HOME" - the name of your home directory.



Lab Free Technologies © 2009 - 2016