Kategoriarkiv: FreeBSD

Rsync synkronization of files trough ssh

peanut# rsync -ave ssh root@unifix.org:/www/base.fujang.dk . root@unifix.org’s password: receiving file list … done base.fujang.dk/ base.fujang.dk/.ssh/ base.fujang.dk/cgi-bin/ Synkronizes “.” with “/www/base.fujang.dk” on unifix.org , read as the user root, you can prevent typing password by using keyfiles for furter instructions see … Læs resten

Udgivet i FreeBSD, Knowledge Base, Linux, Old Base | Skriv en kommentar

.htaccess password protection

The htaccess file: AuthName “– Clasified area –” AuthType Basic AuthUserFile /www/htpasswd require user rip rap rup To initialize the passwd file: , file must be outside wwwroot root@chilibeans:/root# htpasswd -c /www/htpasswd mike New password: Re-type new password: Adding password … Læs resten

Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

portupgrade in FreeBSD

if tou would like to upgrade all installed ports on your machine simply make a “portupgrade -a” if it make some trouble and says something about i don’t like this because i need some dependendies or something then put a … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

mIRC like perform in Xchat (multiple connect commands)

Instead of being limited to one connect command you can make af file with all the commands you need in. In “Connect Command” you can use “/load -e /path/to/file” with all the things needed. Make individual files for each network … Læs resten

Udgivet i FreeBSD, IRC, Knowledge Base, Linux, Old Base | Skriv en kommentar

Dead paths in FreeBSD

If your FreeBSD can’t find the path to a newly installed program from ports, just run “rehash”

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

cvsup FreeBSD to current

Install cvsup: cd /usr/ports/net/cvsup-without-gui && make install For Stable use tag=RELENG_4 Create file /usr/src/current-supfile with this inside: Use this cvsup file: # IMPORTANT: Change the next line to use one of the CVSup mirror sites *default host=cvsup.dk.FreeBSD.org *default base=/usr *default … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Adding an ip alias to a NIC in FreeBSD & Linux

Freebsd : rc.conf: ifconfig_rl0_alias0=”10.1.1.24 netmask 0xffffffff” manually: ifconfig rl0 alias 10.1.1.24 netmask 0xffffffff Linux: ifconfig eth0:0 10.1.1.25 netmask 255.255.255.255

Udgivet i FreeBSD, Knowledge Base, Linux, Old Base | Skriv en kommentar

Packet filtering in FreeBSD

FreeBSD got a packet filter like linux also, very simple to use and the rules are imo way more simple than those in linux. First you gotta recompile your kernel with: options IPFIREWALL in it, when you boot the kernel … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar

Compile freebsd kernel

cd /usr/src/sys/<arch>/conf/ cp GENERIC HOSTNAME vi HOSTNAME # Edit file and add wanted options (remove unwanted) cd /usr/src make buildkernel KERNCONF=HOSTNAME make installkernel KERNCONF=HOSTNAME

Udgivet i FreeBSD, Knowledge Base | Skriv en kommentar

FreeBSD ipv6 client

Asuming your router is working correctly with the ip 3ffe:80ee:5f8::/1 with a /64 range. * Give the interface “wi0” the ip 3ffe:80ee:5f8::2 with cidr prefix 64 ifconfig wi0 inet6 3ffe:80ee:5f8::2 prefixlen 64 * Add default ipv6 gateway route add -inet6 … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar