查看当前shell 用命令 echo $SHELL
先安装bash
cd /usr/ports/shells/bash
make install clean(此过程可能需要联网)修改shell为bash
#whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
#chsh -s /usr/local/bin/bash {user-name}
chsh: user information updated
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1.gz /usr/ports/shells/bash
#chsh -s /usr/local/bin/bash {user-name}
chsh: user information updated
安装完退出重新进入即可
更改为其他shell 方法一样 。有的shell自带,不需要在另行安装 直接
chsh -s /所以更改shell的路径
即可
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
××:如果系统没有安装ports的话,请先安装ports
1、sysinstall--->configure----->distributions----->ports----->选择Ftp或其它的网络连接即可。
2、直接从官方站点下载ports.tar.gz再解压,这样很快。位置:
3、如果是FreeBSD6.0以后的版本,那么运行:
#portsnap fetch
#portsnap extract
#portsnap update
2、直接从官方站点下载ports.tar.gz再解压,这样很快。位置:
3、如果是FreeBSD6.0以后的版本,那么运行:
#portsnap fetch
#portsnap extract
#portsnap update
另外:更新ports后,如果运行make search name=xxx不成功,请在/usr/ports下运行make fetchindex。