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# [...]
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
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 [...]
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 [...]
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 [...]
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 # [...]
Kategorije
- Ostalo (161)
- Računalništvo (266)
- Centos (34)
- CSS (2)
- FreeBSD (37)
- jQuery (1)
- MySQL (8)
- Na spletu dogaja … (124)
- Netbeans (4)
- PHP (20)
- Symbian (3)
- Ubuntu (32)
- Windows (5)
- Zend Framework (6)
- Zend Studio (1)
Blogroll
Arhiv
- February 2011 (5)
- December 2010 (4)
- November 2010 (2)
- October 2010 (5)
- September 2010 (6)
- August 2010 (5)
- July 2010 (10)
- June 2010 (9)
- May 2010 (10)
- April 2010 (8)
- March 2010 (12)
- February 2010 (19)
- January 2010 (20)
- December 2009 (10)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (9)
- June 2009 (11)
- May 2009 (5)
- April 2009 (6)
- March 2009 (9)
- February 2009 (15)
- January 2009 (10)
- December 2008 (17)
- November 2008 (20)
- October 2008 (16)
- September 2008 (48)
- August 2008 (56)
- July 2008 (35)
- June 2008 (35)
An article by