0% found this document useful (0 votes)
257 views

Curso Freebsd

The document discusses FreeBSD including: 1. An overview of why FreeBSD is used including its organizational structure, compatibility with other systems, and large number of available applications through ports. 2. Descriptions of common FreeBSD directories and configuration files like rc.conf used to configure networking, daemons, and other settings. 3. Examples of shell configuration through cshrc and vimrc files to customize the command line environment.

Uploaded by

ramc
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
257 views

Curso Freebsd

The document discusses FreeBSD including: 1. An overview of why FreeBSD is used including its organizational structure, compatibility with other systems, and large number of available applications through ports. 2. Descriptions of common FreeBSD directories and configuration files like rc.conf used to configure networking, daemons, and other settings. 3. Examples of shell configuration through cshrc and vimrc files to customize the command line environment.

Uploaded by

ramc
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
You are on page 1/ 19

Treinamento UDESC

FreeBSD
Instalação...

* Virtual PC
* FreeBSD ISO
Por que FreeBSD?
* Organização da estrutura do sistema

* Compatibilidade (binários nativos, Linux, etc)

* Ports (+ de 1800 aplicativos)

* Licença BSD
Diretórios

/, bin, boot,
cdrom, compat,
dev, dist, etc,
home, lib, libexec,
media, mnt, proc,
rescue, root, sbin, sys,
tmp, usr, var
Rc.conf
# Rede
gateway_enable="YES"
defaultrouter="200.19.xx.x"
hostname="daemon.cav.udesc.br"
ifconfig_bge0="inet 200.19.xx.xnetmask 255.255.255.0"
ifconfig_bge0_alias0="inet 200.19.xx.xnetmask 255.255.255.255"
#
ifconfig_bge1="inet 192.168.1.1 netmask 255.255.255.0"
ifconfig_bge1_alias0="inet 192.168.2.1 netmask 255.255.255.0"
pf_enable="yes"

# Daemons
apache2_enable="yes"
squid_enable="yes"
mysql_enable="yes"
sshd_enable="YES"
pureftpd_enable="YES"
ftpproxy_enable="yes"
ftpproxy_flags="-D 0"
named_enable="yes"
mrtg_daemon_enable="no"

# Misc
keymap="us.iso"
keyrate="fast"
Shell
# .cshrc - csh resource script, read at beginning of execution by each shell

alias tm tail -f /var/log/messages


alias tmm tail -f /var/log/maillog
alias ls ls -aFG
alias "ls -l" ls -laFG
alias cp cp -v
alias mv mv -v
alias tw tail -f /var/log/httpd-access.log
alias tp tail -f /var/log/squid/access.log
alias reconf "cd /usr/local/squid/block && sort porn > porn.new && mv porn.new porn
&& /usr/local/squid/sbin/squid -k reconfigure && cd -"
alias viporn "vi /usr/local/squid/block/porn && reconf"
alias cds "cd /usr/local/etc/rc.d && ls"
alias cdw "cd /usr/local/www && ls"
alias rm "rm -i"
alias vi vim

setenv LSCOLORS GxFxAxdxcxGbDbAbagAcAd


if ($?prompt) then
# An interactive shell -- set some stuff up
#set prompt = "`hostname -s`# "
# set prompt = "[%m %C]# "
set prompt = "%B[%m %/]#%b "
set autolist
set filec

endif
Vim
" An example for a vimrc file.

set background=dark
set showcmd " display incomplete commands

" Auto indent, para identar o texto automaticamente.


set ai
set incsearch " do incremental searching

" Exibir os números das linhas


" set number

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
"set hlsearch
endif
Ports
Kernel

Compilar? Por
quê?
* Mina de Ouro: FreeBSD
Handbook
http://www.userfriendly.org
Daniel Hartmeier – Criador do PF
http://www.benzedrine.cx/dhartmei.htm
l
http://www.fug.com.br/

You might also like