This article consists of parts. It was written mainly for myself so that when you use its materials, the reference is optional.
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:
"age0" - the name of the network interface.
|$sudo ifconfig age0 192.168.1.5|
"192.168.1.5" - IP-address.
Connection Internet Connection:
"-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 |
NOTE: comments in this section are purely explanatory. In the working kernel file Cyrillic unacceptable.
|# If the processor architecture amd64 or x86_64 (Athlon64 or Pentium, Xeon, Core, with support for 64-bit operation)
machine amd64 |
ID # kernel
# For connection PPPoE
# The program k3b
# Enable the kernel sound device
# Sound card driver C-Media
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:
Loading kernel modules:
"atapicam.ko" - the kernel module.
|$sudo kldload atapicam.ko|
Search program at the ports:
"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".
|$sudo make search key = ipod | grep-v deps|
You can also connect a USB external hard drive.
|$sudo mkdir /mnt/flash |
$sudo mount_msdosfs /dev/da0s1 /mnt/flash
Checking (O) Equipment:
Checks for the existence of equipment (in this example "da0s1"). If it is, it displays information (model, serial number, memory, etc.)
Debug connection pppoe:
"inet" - the name of your Internet connection
|$ppp inet |
$ppp> set log debug
"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):
"cvs-supfile" - a configuration file CVS.
|$sudo cvsup-g-L 2 cvs-supfile|
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" |
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):
Copies a file from a server in the working directory of the current user on the local computer.
|$scp firstname.lastname@example.org:/home/database.sqlite ~|
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 10.0.0.1/0 10.0.0.2/0
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO \ \ sCARRIER TIMEOUT 5 \
\ "\" 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 192.168.1.1
add default HISADDR
This working file "/etc/rc.conf" with the settings from the article.
This working file "cvs-supfile":
|*default tag=. |
*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