Browsing articles from "August, 2009"
Aug
26
2009

Upgrade FreeBSD to STABLE with CVSup

host# uname -a host# /usr/ports/net/cvsup make && make install host# cp /usr/share/examples/cvsup/stable-supfile /stable-cvsup host# cd / host# pico stable-cvsup *default host=cvsup.si.FreeBSD.org *default base=/var/db *default prefix=/usr # The following line is for 6-stable. If you want 5-stable, 4-stable, # 3-stable, or 2.2-stable, change to “RELENG_5″, “RELENG_4″, “RELENG_3″, # or “RELENG_2_2″ respectively. *default release=cvs tag=RELENG_6 *default delete use-rel-suffix host# /usr/local/bin/cvsup -g -L 2 /stable-cvsup host# /usr/src host# make -j4 buildworld (a) host# make -j4 buildkernel (a) host# [...]

Aug
26
2009

Screen freebsd

# cd /usr/ports/misc/screen # make # make install ctrl-a c – create a new shell / window ctrl-a ctrl-a – switch to the shell/window previously displayed ctrl-a n – switch to the next shell/window (useful if you have more than 2 windows/shells running) ctrl-a p – switch to the previous shell/window (useful if you have more than 2 windows/shells running) ctrl-a d – exit out of the screen session

Aug
20
2009

HowTo: Using DenyHosts to help thwart SSH attacks on FreeBSD

DenyHosts is a script intended to be run by UNIX-like system administrators to help thwart SSH server attacks (also known as dictionary based attacks and brute force attacks). I’ve used it before on Gentoo Linux and liked it, so today I’ll lay out the steps required to install and configure it on FreeBSD: % su # cd /usr/ports/security/denyhosts # make install clean # echo ‘denyhosts_enable=”YES”‘ >> /etc/rc.conf # echo ‘syslogd_flags=”-s -c”‘ >> /etc/rc.conf # echo [...]

Aug
19
2009

LS with colors in FreeBSD

alias ls=’ls –G’

Aug
17
2009

FreeBSD Install BASH Shell

I’d like to bash under FreeBSD for bash programming. How do I install bash shell under FreeBSD UNIX operating system? A. Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. csh / tcsh (C shell with file name completion and command line editing) is the default shell under FreeBSD. However, you can easily install and use bash as shell. Install bash under FreeBSD Login as [...]

Aug
13
2009

Freebsd usefull commands

Disk, filesystem Disk usage {linux}$ du -sh {freebsd}$ du -sh Count subdirectories in current directory: {linux}$ du –max-depth=1 {freebsd}$ du -d1 Typical approach to find biggest directories/files on disk: {linux}$ du –max-depth=1 -kx|sort -n {freebsd}$ du -d1 -kx|sort -n Find some kinds of files (regex is a mask for full path, no need for begin/end marks) {linux}$ find . -regextype posix-extended -type f -regex “.*\.(java|class)” {freebsd}$ find -E . -type f -regex “.*\.(java|class)” Show open [...]

Aug
13
2009

How to check how big is some map

du -d 0 -h /home/username/

Aug
11
2009

Display FreeBSD System information

FreeBSD comes with different utilities, which can be use to gathered the information as per your needs. uname command is use to print system information. dmesg command is use to print kernel ring buffer information. sysctl command is use to configure kernel parameters at runtime as well as to read hardware information. Following list summaries, all the command you need to gather FreeBSD hardware information. 1) Determining the Hardware Type/platform: # uname -m or # [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes