Results tagged “freebsd” from 清茶 Blog

mount_smbfs 挂载共享

|

现在主要用 FreeBSD 7.0 做桌面,共享文件服务器上的文件(CIFS 方式),方法

%mount_smbfs -h
usage: mount_smbfs [-E cs1:cs2] [-I host] [-L locale] [-M crights:srights]
                   [-N] [-O cowner:cgroup/sowner:sgroup] [-R retrycount]
                   [-T timeout] [-W workgroup] [-c case] [-d mode] [-f mode]
                   [-g gid] [-n opt] [-u uid] //user@server/share node

我的文件服务器也是自建的,BSD 6.2两个硬盘做的 RAID/ 支持/ CIFS /NFS 下面以CIFS方式连接

mount_smbfs -I share '//tea@share/software' /media/share_software

服务器是samba user级别,-I 是指定主机 IP 用户可以要求密码的,也可以不要.用户名就是 tea /如果指定参数 -N 就是不要密码,最后面的是挂载点

终于安装好Gnome2

|

经过三天艰苦卓绝的build,现在终于使用上了

最小化,尔后 pkg_add -r xorg / pkg_add -r gnome2 问题多多,pkg_delete -a

之后进入ports 直接make install 三天过去了最终安装成功。

现在要解决的问题也不少,如Nvidia的驱动,我哪 9600GT现在还没有发挥最好的效果,还有我的声卡,还有很多很多.........

继续build kde4 / xfce4 都用用,看看哪个用起来爽点,不过从redhat 6.2开始就使用Gnome了,已经有点习惯这个,看来要改还是比较难的

 

使用FreeBSD 做桌面

|

新机到现在也没有什么时间用,一直在用小本本

这机安装过MacOS for PC / 安装过 Ubuntu ,怎么用都感觉不是很爽,再加上现在所管理的服务器大多以BSD为主,想来想去,还是安装BSD来做桌面

过程很慢长...... 刚开始build,路漫漫

portinstall ports.conf portupgrade

|

安装 /usr/ports/ports-mgmt/portconf/

会在/usr/local/etc/下创建 ports.conf 文件

在文件内写上make 参数,如 mysql

cat /usr/local/etc/ports.conf
databases/mysql*-server: BUILD_OPTIMIZED=yes|WITH_XCHARSET=all|BUILD_STATIC=yes

安装 portinstall databases/mysql50-server

ports的安装方法

cd /usr/ports/databases/mysql50-server/

make install clean && rehash

具体编译参数在ports.conf 里定义好就可以了,之后使用portupgrade更新起来,也不会出错了

 

查看系统相关信息

|

# top             # display and update the top cpu processes
# mpstat 1         # display processors related statistics
# vmstat 2         # display virtual memory statistics
# iostat 2         # display I/O statistics (2 s intervals)
# systat -vmstat 1     # BSD summary of system statistics (1 s intervals)

# systat -tcp 1         # BSD tcp connections (try also -ip)
# systat -netstat 1     # BSD active network connections
# systat -ifstat 1     # BSD network traffic through active interfaces
# systat -iostat 1     # BSD CPU and and disk throughput
# tail -n 500 /var/log/messages # Last 500 kernel/syslog messages
# tail /var/log/warn     # System warnings messages see syslog.conf