Показаны сообщения с ярлыком config. Показать все сообщения
Показаны сообщения с ярлыком config. Показать все сообщения

03.12.2009

Oracle

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH
sqlplus sys as sysdba

16.09.2009

Simple bind conf

named.conf
options {
allow-query { any; };
view "some.domain" {
match-destinations { x.x.x.x; };
zone "zone.name" {
type master;
file "/etc/named.d/master/file.name";
};
some.domain
$TTL 604800
@ IN SOA some.domain. abc.some.domain. (
200909071 ; Serial
60 ; Refresh
60 ; Retry
60 ; Expire
300 ) ; Negative Cache TTL

@ IN NS ns.some.domain.
ns.some.domain. A x.x.x.x
some.domain. MX 10 mail.some.domain.
www.some.domain. CNAME some.domain.

16.07.2009

Xen domain

kernel = "/boot/vmlinuz-2.6.26-2-xen-686" #kernel to boot
ramdisk = "/boot/initrd.img-2.6.26-2-xen-686" #ramdisk to boot
cpu = "0" #how many cpu to use
memory = 256 #how many memory to use in MB
root = "/dev/hda1 ro" #root disk device
disk = [ 'phy:/path/to/file,hda1,w' ] #path to file or device in real machine, name for virtual machine
name = "name" #name for domain
vif = [ '', 'bridge=tmpbridge' ] #bridge

dhcpd.conf

host name {
hardware ethernet
*:*:*:*:*:*; #mac-address
fixed-address *.*.*.*; #ip address
option domain-name-servers
*.*.*.*, *.*.*.*;
option domain-name "name";
option routers
*.*.*.*; # ip router

}

Apt

apt.conf
APT::Default-Release "stable";
preferences
Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release a=testing
Pin-Priority: 60

Package: *
Pin: release a=unstable
Pin-Priority: 50

Squid

squid.conf
acl loc src *.*.*.*/*.*.*.*
acl all src all
http_access allow loc
http_access deny all
http_port 3128 transparent #without configuration client browser, need rule for redirection in firewall
cache_mem 128 MB
cache_dir ufs /srv/squid 10000 16 256 #filesystem path size which_directorys which_subdirectorys
maximum_object_size 100480 KB
cache_swap_low 90 #size in %
cache_swap_high 97
delay_pools 1 #one general pool
delay_class 1 3 #3 class, aggregate, network, individual
delay_access 1 allow loc #access rule for pool
delay_access 1 deny all
delay_parameters 1 -1/-1 -1/-1 16000/16000 #parameters for pool, aggregate unlim, network unlim, individual 16 KByte/s
redirect_program /usr/bin/squidGuard
squidguard.conf
dest bad_boy {
domainlist bad_boy/domains #bad domains
urllist bad_boy/urls #bad urls
}
acl {
default {
pass !bad_boy all #deny bad_boy, pass all
redirect http://localhost #
arbeiten!
}
}