FreeBSD常用软件安装

安装wget

官方网站:http://www.gnu.org/software/wget/
下载地址:http://ftp.gnu.org/gnu/wget/

1、ports安装
#cd /usr/ports/ftp/wget
# make install clean;rehash

2、源文件安装

下载地址: ftp://ftp.cs.cuhk.edu.hk/pub/gnu/gnu/wget
把下载到的tar文件解压,然后cd到wget目录下(如果不切换当前目录,则无法进行编译)
#./configure
#make
#make install 
#make clean
#rehash

若安装时执行./configure报错:configure: error: –with-ssl was given, but GNUTLS is not available.
解决方法:./configure --with-ssl=openssl

常用命令介绍    参数用法详解    Wget For Windows   重新认识Wget

安装perl

下载地址:http://www.cpan.org/src/

#wget http://www.cpan.org/src/5.0/perl-5.16.2.tar.gz
#tar -xzvf perl-5.16.2.tar.gz
#cd perl-5.16.2
#./Configure -des -Dprefix=$HOME/localperl
#make
#make test
#make install

安装squid

下载地址: http://www.squid-cache.org/Versions/

# tar zxvf squid-3.2.3.tar.gz            #解压缩安装包
# cd squid-3.2.3                 #进入解开的目录
# ./configure --prefix=/usr/local/squid   #配制、将squid安装在/usr/local/squid目录
# make all                #编译
# make install              #安装

安装SARG

下载地址:http://sarg.sourceforge.net/sarg.php

#cd /usr/ports/www/sarg             //切换当前目录
#./configure --prefix=/usr/local/sarg --enable-bindir=/usr/local/sarg/bin                      //设定安装目录
#make                                       //编译
#make install clean                     //安裝套件並清除安裝過程中產生不必要檔案
#fetch http://linux.vbird.org/download/linux_server/squid/Taiwan_big5                       //抓取翻譯檔

开启SSH远程登陆

1、安装时选择上SSH,或者源码安装SSH
2、使用root登陆系统
3、使用ee编辑器编辑/etc/inetd.conf,去掉ssh前的#,按ctrl+c,再输入exit保存退出
4、编辑/etc/rc.conf,添加一行sshd_enable="YES"
5、编辑/etc/ssh/sshd_config,将
#PermitRootLogin no改为PermitRootLogin yes  //允许root登陆
#PasswordAuthentication no改为PasswordAuthentication yes//使用系统PAM认证
#PermitEmptyPasswords no改为PermitEmptyPasswords no//不允许空密码
保存退出
6、启动SSHD服务,/etc/rc.d/sshd start
7、查看服务是否启动,netstat -an,如果看到22端口有监听,恭喜!!!
8、准备好你的账号和ssh客户端登录吧!

建议安全的做法:给自己建立一个普通用户账号,然后将其加入到wheel组;这样以后管理服务器先以你的普通账号登陆,然后su成root身份管理服务器!

远程登陆工具Putty

官方网站:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

原文地址:https://www.cnblogs.com/xyd21c/p/2806882.html