Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4997676
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

分类:

2006-11-12 16:45:33

FreeBSD 安裝完成之後預設的 shell 是 csh,和 Linux 的 bash shell 不同,用習慣 Linux 的 bash shell 之後,到 FreeBSD 上覺得很不習慣,當然第一個就把它給換掉!
以下的安裝軟體是以 ports 來安裝
cd /usr/ports/shell/bash
make install clean

更換使用者使用的 shell,底下以 root 為例
chsh
系統會以預設的編輯器來開啟設定,預設是 ee
Home directory: /root
Shell: /bin/csh
換成
Home directory: /root
Shell: /usr/local/bin/bash

存檔之後,重新登出登入就可以了!



不過眼尖的人一定會發現 ls 目錄時,沒有像 Linux 時有各種的色彩來區分
這時要加裝 gnuls
cd /usr/ports/misc/gnuls
make install clean

修改 /etc/profile 設定檔
vi /etc/profile
加入下面一行
alias ls="gnuls --color=auto --show-control-chars -F"
存檔後,重新執行 source /etc/profile 或重新登出登入即可生效

建議加裝的軟體
1.wget - 抓檔案用的
cd /usr/ports/ftp/wget
make install clean


2.namp 檢查系統開放的服務
cd /usr/ports/security/nmap
make install clean


3.pkg_tree 了解套件間的相關
cd /usr/ports/sysutils/pkg_tree
 make install clean


4.pstree 系統執行的 Process 以樹狀表示
cd /usr/ports/sysutils/pstree
make install clean

5.ncftp 抓檔案用的
cd /usr/ports/ftp/ncftp3
make install clean
阅读(1363) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~