注册新的如何注册苹果id账号后 下载东西要检验

文章数:18
访问量:75899
注册日期:
阅读量:5863
阅读量:12276
阅读量:411196
阅读量:1099365
51CTO推荐博文
一、软件简介
FreeNAS是一款基于FreeBSD的免费NAS软件,其特点是程序短小(根据版本不同,ISO文件40MDD70M)、提供的功能很多(CIFS/SMB、FTP、SSHD、NFS、AFP、RSYNC、Unison、iSCSI Target、UpnP、Dynamic DNS、SNMP、……)、软件更新速度较快。
二、硬件需求
一台PC,内存最好512M以上,256M CF卡或电子盘(用于安装FreeNAS),硬盘若干块,笔者安装时使用同方PC一台,主板845G、集成M、C1.7、256M CF卡、HD 80G。
三、本次任务
在VMware Workstation中安装FreeNAS,创建一个RAID 5阵列,由于FreeNAS版本众多,所以笔者选定以稳定著称的0.686.4版本。
1、VMware Workstation中配置,见下图
650) this.width=650;" border="0" alt="" src="/attachment/510187.jpg" />
2、安装过程
启动虚拟机,下图选择默认1
650) this.width=650;" border="0" alt="" src="/attachment/547524.jpg" />
下图中选择9,安装FreeNAS
650) this.width=650;" border="0" alt="" src="/attachment/631647.jpg" />
650) this.width=650;" border="0" alt="" src="/attachment/710781.jpg" />
选择OK 3次
再选择ad0(注意这是根据你添加的硬盘数决定的)
650) this.width=650;" border="0" alt="" src="/attachment/822517.jpg" />
下图,安装完毕,提示按回车键
650) this.width=650;" border="0" alt="" src="/attachment/926770.jpg" />
650) this.width=650;" border="0" alt="" src="/attachment/012838.jpg" />
选择8,关闭系统,关闭系统后去掉光驱
重新启动系统后,选择2,设置Lan IP,下图选择No,不需要DHCP
650) this.width=650;" border="0" alt="" src="/attachment/151155.jpg" />
下图中设置IP地址,假定为192.168.1.200
650) this.width=650;" border="0" alt="" src="/attachment/243859.jpg" />
设置掩码,一般选择24位,再设置网关IP地址和DNS再根据情况选择是否设置IPV6
设置完毕如下图
650) this.width=650;" border="0" alt="" src="/attachment/435778.jpg" />
下面将在浏览器中继续设置。
五、FreeNAS软件设置
1、基本设置
启动IE浏览器,这地址栏中输入http://IP,本例中为,用户名:admin、密码:freenas。
650) this.width=650;" border="0" alt="" src="/attachment/516150.jpg" />
首先在System: General Setup中做系统进一步设置,可以设置:主机名、域名、DNS、用户名(换个用户名让别人猜去吧)、WebGUI protocol、语言(包含中文,但用IE6浏览器浏览会有问题,现象是某些页面死白一片,什么也看不到,即使启用UTF-8也无济于事,IE7、IE8没有做过测试,如果想用中文,可以安装火狐浏览器)、时区等等。
在System: General: Password中,可以更改用户密码。
2、创建一个RAID 5阵列
进入Disks: Management界面
650) this.width=650;" border="0" alt="" src="/attachment/546280.jpg" />
在Disk处选择da0,Preformatted file system处必须选择软RAID
650) this.width=650;" border="0" alt="" src="/attachment/618293.jpg" />
点击add按钮,按照此方法把da1、da2都加进来
650) this.width=650;" border="0" alt="" src="/attachment/649534.jpg" />
点击Apply changes按钮。
进入Disks: Format界面,Disk处选择da0,File system处选择软RAID,点击Format disk按钮,格式化磁盘。同样对da1、da2进行格式化。650) this.width=650;" border="0" alt="" src="/attachment/725335.jpg" />
进入Disks: Software RAID: RAID5: Manage RAID界面,点击右侧加号按钮,在Raid name中输入名称,在Members of this volume处勾选三块磁盘。
650) this.width=650;" border="0" alt="" src="/attachment/824997.jpg" />
点击add按钮,至此,一个RAID5阵列创建完毕,见下图650) this.width=650;" border="0" alt="" src="/attachment/137569.jpg" />
进入Disks: Format界面,Disk处选择刚刚建成的r5阵列,File system选择为UFS,点击Format disk按钮。650) this.width=650;" border="0" alt="" src="/attachment/213622.jpg" />
进入Disks: Mount Point: Management界面,点击右侧加号按钮,disk处选择r5,Name处输入磁盘名称,点击add按钮。650) this.width=650;" border="0" alt="" src="/attachment/234959.jpg" />
点击Apply changes按钮650) this.width=650;" border="0" alt="" src="/attachment/302522.jpg" />
完成后见下图650) this.width=650;" border="0" alt="" src="/attachment/338459.jpg" />
至此FreeNAS安装任务已全部结束
了这篇文章
类别:┆阅读(0)┆评论(0)FreeBSD10.1安装过程图解
第3页_Linux教程_Linux公社-Linux系统门户网站
你好,游客
FreeBSD10.1安装过程图解
来源:Linux社区&
作者:Linux
root@lsgxbsd:~ # & vi ~/.tmux.conf
-------------------------------------------------------------
# author & : lsgx &&
# modified :
#-- base settings --#
set -g default-terminal "screen-256color" &# 设置终端缺省的支持颜色为256色
set -g display-time 3000 & & # 提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
set -g escape-time 0 & &# 等待时间的持续时间;设置越小越好
set -g history-limit 65535 & &# 历史记录条数的最大限制值
#set -g base-index 1 & &# 窗口的初始序号;默认为0,这里设置为1
#set -g pane-base-index 1 & &# 面板的初始序号;默认为0,这里设置为1
#set -sg repeat-time 600 & &# 控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
#set -s quiet on
#setw -g xterm-keys on
#-- bindkeys --#
# prefix key (Ctrl+a) & &# 将激活控制台的快捷键由Ctrl+b修改为Ctrl+a
set -g prefix ^a
bind a send-prefix
# split window & &# 窗口分割
unbind '"'
bind - splitw -v # vertical split (prefix -) & &# 上下分割窗口
bind | splitw -h # horizontal split (prefix |) & &# 左右分割窗口
# select pane & &# 选择面板
bind k selectp -U # above (prefix k) & &# 选择上面板
bind j selectp -D # below (prefix j) & &# 选择下面板
bind h selectp -L # left (prefix h) & &# 选择左面板
bind l selectp -R # right (prefix l) & &# 选择右面板
# resize pane
bind -r ^k resizep -U 2 # upward (prefix Ctrl+k) & &# 当前面板上移2
bind -r ^j resizep -D 2 # downward (prefix Ctrl+j) & &# 当前面板下移2
bind -r ^h resizep -L 2 # to the left (prefix Ctrl+h) & &# 当前面板左移2
bind -r ^l resizep -R 2 # to the right (prefix Ctrl+l) & &# 当前面板右移2
# swap pane
bind ^u swapp -U # swap with the previous pane (prefix Ctrl+u) & &# 与上面板交换
bind ^d swapp -D # swap with the next pane (prefix Ctrl+d) & &# 与下面板交换
# create new session
bind C-c new-session & &# 创建一个新的会话
# control sessions
bind z kill-session & &# 结束当前会话
# find session
bind C-f command-prompt -p find-session 'switch-client -t %%' & &# 查找会话
# clear both screen and history
#bind -n C-l send-keys C-l \; run 'tmux clear-history' & &# 清空屏幕内容和历史记录
# reload config (prefix r)
bind r source ~/.tmux.conf \; display "Configuration reloaded!" & &# 重新加载配置文件
bind e lastp &# select the last pane (prefix e) & &# 选择最后一个面板
bind ^e last &# select the last window (prefix Ctrl+e) & &# 选择最后一个窗口
bind q killp &# kill pane (prefix q) & &# 关闭当前面板
bind ^q killw # kill window (prefix Ctrl+q) & &# 关闭当前窗口
bind ! splitw htop & & & & & & & & & & & & & & & & & & # htop (prefix !)
bind m command-prompt "splitw 'exec man %%'" & & & & & # man (prefix m)
bind @ command-prompt "splitw 'exec perldoc -t -f %%'" # perl func (prefix @)
bind * command-prompt "splitw 'exec perldoc -t -v %%'" # perl var (prefix *)
bind % command-prompt "splitw 'exec perldoc -t %%'" & &# perl doc (prefix %)
bind / command-prompt "splitw 'exec ri %%'" & & & & & &# ruby doc (prefix /)
#-- statusbar --#
set -g status-utf8 on & &# 开启状态栏的UTF-8支持
set -g status-interval 1 & &# 状态栏的分辨时间间隔
set -g status-keys vi & &# 操作状态栏时的默认键盘布局;可以设置为vi或emacs
set -g visual-activity on & &# 开启窗口操作的可视
set -g set-clipboard on & &# 开启剪切板
set -g display-panes-time 800 # slightly longer pane indicators display time & &# 稍长的窗格中显示的时间指标
set -g display-time 1000 & & &# slightly longer status messages display time & &# 稍长的状态消息的显示时间
set -g renumber-windows on & &# renumber windows when a window is closed & &# 关闭窗口后重新编号
setw -g automatic-rename on & &# rename window to reflect current program & &# 重命名窗口,以反映当前的程序
setw -g utf8 on & &# 开启窗口的UTF-8支持
setw -g monitor-activity on & &# 开启窗口活动监视
setw -g mode-keys vi & &# 复制模式中的默认键盘布局;可以设置为vi或emacs
setw -g clock-mode-style 24 # 24 hour clock & &# 24小时显示方式
#setw -g mode-mouse on & &# 开启鼠标模式
# copy mode
bind Enter copy-mode # enter copy mode & &# 按Enter进入复制模式
bind b list-buffers &# list paster buffers & &# 复制缓冲区列表
bind p paste-buffer &# paste from the top pate buffer & &# 粘贴最后复制的缓冲区内容
bind P choose-buffer # choose which buffer to paste from & &# 选择粘贴缓冲区
# the following vi-copy bindings match my vim settings
# see /gpakosz/.vim.git
bind -t vi-copy v begin-selection & &# 复制模式下开始选取
bind -t vi-copy C-v rectangle-toggle & &# 复制模式下矩形选取
bind -t vi-copy y copy-selection & &# 复制模式下复制选取的内容
bind -t vi-copy Escape cancel & &# 复制模式下退出复制模式
bind -t vi-copy H start-of-line & &# 复制模式下开始行选取
bind -t vi-copy L end-of-line & &# 复制模式下结束行选取
# mouse resize selcet
#setw -g mouse-resize-pane on & &# 鼠标调整面板大小
#setw -g mouse-select-pane on & &# 鼠标选择面板
#setw -g mouse-select-window on & &# 鼠标选择窗口
# move x clipboard into tmux paste buffer
bind C-p run "tmux set-buffer \"$(xclip -o -sel clipbaord)\"; tmux paste-buffer"&
# move tmux copy buffer into x clipboard
bind C-y run "tmux show-buffer | xclip -i -sel clipbaord"
#-- colorscheme --#
# see also: /daethorian/conf-tmux/blob/master/colors/zenburn.conf
setw -g clock-mode-colour colour223
setw -g mode-attr bold
setw -g mode-fg colour223
setw -g mode-bg colour235
set -g pane-border-bg colour234
set -g pane-border-fg colour234
set -g pane-active-border-bg colour232
set -g pane-active-border-fg colour232
# statusbar
set -g status-justify centre
set -g status-bg colour235
set -g status-fg colour248
set -g status-attr dim
set -g status-left "#[fg=green,bright]Session: #S #[fg=yellow,bright]Window: #I #[fg=cyan,bright]Pane: #P"
set -g status-left-attr bright
set -g status-left-length 30
set -g status-right "#[fg=yellow,bright][ #[fg=cyan,bright]#W #[fg=yellow,bright]]#[default] #[fg=yellow,bright]- %Y.%m.%d #[fg=green,bright]%H:%M #[default]"
set -g status-right-attr bright
set-option -g status-right-length 30
setw -g window-status-current-fg colour223
setw -g window-status-current-bg colour237
setw -g window-status-current-attr bold
#setw -g window-status-current-format "#I:#W#F"
#setw -g window-status-alert-attr bold
#setw -g window-status-alert-fg colour255
#setw -g window-status-alert-bg colour160
# messages
set -g message-attr bold
set -g message-fg colour223
set -g message-bg colour235
--------------------------------------------------------------------
root@lsgxbsd:~ # chmod u+ws /usr/local/bin/xterm&
root@lsgxbsd:~ # ls -alh /usr/local/bin/xterm
-rwsr-xr-x &1 root &wheel & 525K &4 &9 00:55 /usr/local/bin/xterm
root@lsgxbsd:~ # vi ~/.Xresources&
root@lsgxbsd:~ # cat ~/.Xresources&
----------------------------------------------------------
!------------------------------------------&
!------------------------------------------&
XTerm*termName: & & & & & & & & xterm-color&
XTerm*visualBell: & & & & & & & false&
XTerm*marginBell: & & & & & & & false&
XTerm*alwaysHighlight: & & & & &false&
XTerm*cursorBlink: & & & & & & &true&
XTerm*cursorOffTime: & & & & & &450&
XTerm*cursorOnTime: & & & & & & 900&
XTerm*highlightSelection: & & & true&
XTerm*saveLines: & & & & & & & &8192&
XTerm*foreground: & & & & & & & rgb:a8/a8/a8&
XTerm*background: & & & & & & & rgb:00/00/00&
XTerm*color0: & & & & & & & & & rgb:00/00/00&
XTerm*color1: & & & & & & & & & rgb:a8/00/00&
XTerm*color2: & & & & & & & & & rgb:00/a8/00&
XTerm*color3: & & & & & & & & & rgb:a8/54/00&
XTerm*color4: & & & & & & & & & rgb:00/00/a8&
XTerm*color5: & & & & & & & & & rgb:a8/00/a8&
XTerm*color6: & & & & & & & & & rgb:00/a8/a8&
XTerm*color7: & & & & & & & & & rgb:a8/a8/a8&
XTerm*color8: & & & & & & & & & rgb:54/54/54&
XTerm*color9: & & & & & & & & & rgb:fc/54/54&
XTerm*color10: & & & & & & & & &rgb:54/fc/54&
XTerm*color11: & & & & & & & & &rgb:fc/fc/54&
XTerm*color12: & & & & & & & & &rgb:54/54/fc&
XTerm*color13: & & & & & & & & &rgb:fc/54/fc&
XTerm*color14: & & & & & & & & &rgb:54/fc/fc&
XTerm*color15: & & & & & & & & &rgb:fc/fc/fc&
XTerm*scrollBar: & & & & & & & &true&
XTerm*rightScrollBar: & & & & & true&
XTerm*scrollKey: & & & & & & & &false&
XTerm*scrollTtyOutput: & & & & &false&
XTerm*loginShell: & & & & & & & false&
XTerm*locale: & & & & & & & & & true&
XTerm*eightBitInput: & & & & & &false&
XTerm*eightBitOutput: & & & & & true&
XTerm*metaSendEscape: & & & & & true&
XTerm*faceName: & & & & & & & & Bitstream Vera Sans Mono&
XTerm*faceSize: & & & & & & & & 14&
XTerm*faceNameDoublesize: & & & WenQuanYi Bitmap Song&
XTerm*mkWidth: & & & & & & & & &false&
XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
----------------------------------------------------------------------------
root@lsgxbsd:~ # xrdb ~/.Xresources&
lsgx@lsgxbsd:~$& ssh-keygen -t rsa -C ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/lsgx/.ssh/id_rsa):& .ssh/id_rsa_oschina
Enter passphrase (empty for no passphrase):&
Enter same passphrase again:&
Your identification has been saved in .ssh/id_rsa_oschina.
Your public key has been saved in .ssh/id_rsa_oschina.pub.
The key fingerprint is:
e5:a9:f3:34:75:f0:13:7a:8b:85:93:6d:64:25:e5:d1
The key's randomart image is:
+--[ RSA 2048]----+
| & & & & & & &.o+|
| & & & & & & & +E|
| & & & & &. . + .|
| & & & & o . X . |
| & & & &S o * O &|
| & & & & . . B o |
| & & & &o o . . &|
| & & & & + . & & |
| & & & & &. & & &|
+-----------------+
lsgx@lsgxbsd:~$&cat ~/.ssh/id_rsa_oschina.pub&
-------------------------------------------------------------------------------------
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDomBJmpUJzWs3MD2AuEfimP/Hc40Lxk9B+7IZEteUjOe4v/1q/W1uK7FqOvKWRVBfZmHdPZ0FilHvKUY4W+DCQ+O9B5l/y0Qy4om05S8SjQp147b4XSSFiNtei98MW/UX0EHRaT410/aV/NPSt9u2k5g3N0Bn/Rf4N1WeSie9VB9FQEnD5YHNAMK5H5QhxC/F+NE/x6kMEdKhVJ6YDNzEO5sqMPk4ybwttU2W1VjWun/tU8qqRsGqhqaaZeUTNboXlFOmzbPg4AoF/yAe65FAoDkQXVkxLLDM0hMeYYTH9bwB7cGasEq08pt/i2VFdtSNtp0jO+50WtXaUb2pLr55X
--------------------------------------------------------------------------------------
lsgx@lsgxbsd:~$& ssh -T git@git.oschina.net
-----------------------------------------------------------------------------------------
Welcome to Git@OSC, lsgx!
--------------------------------------------------------------------------------------------
lsgx@lsgxbsd:~$& ssh-keygen -t rsa -C ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/lsgx/.ssh/id_rsa): &.ssh/id_rsa_github
Enter passphrase (empty for no passphrase):&
Enter same passphrase again:&
Your identification has been saved in .ssh/id_rsa_github.
Your public key has been saved in .ssh/id_rsa_github.pub.
The key fingerprint is:
bc:4d:26:b0:7b:e5:28:f5:23:98:ec:1d:8e:e6:4b:62
The key's randomart image is:
+--[ RSA 2048]----+
| & & & & & & & & |
| & & & & & & & & |
| & & &. & & & & &|
| & & & + & & & & |
| & & &. S + & & &|
| & & . = @ & & & |
| & &E B * = & & &|
| & . +.* o . & & |
| & & o=.o & & & &|
+-----------------+
lsgx@lsgxbsd:~$&cat ~/.ssh/id_rsa_github.pub&
-------------------------------------------------------------------------------------
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClYiH9urgZS/0it8hZWTwTXT8yf5e3fI6AzXsKOchAgueoEOndle8NHfeRP/smfHXmMeq3V6nH2zSTKsltlGInqJS1qBPaEdr0AsBBXVU5HWuHKJ0I/cISt0ZH1qxIqDq4u+mBQm0OQ3EWvYoA71lyFX6AhES9U1OfCp3BZ1aU6Ya9QdEzYYW2LQIL1k5ZgPbG6oKY+40PG9B8gTeRAMkltQmSZAbjzBE6vs/zoEW/pUEOwr8SsXzrX4FNuK/Y+8Gfy1bOxpwESVNDa8bYlKYKY+s4RyHUoCQsO1/O4V9Dr2Zlrul3CCwarQnsVB1YVOmavrXOZzVnGTWo+q4RtUov
--------------------------------------------------------------------------------------
lsgx@lsgxbsd:~$& ssh -T
-----------------------------------------------------------------------------------------
Hi lsgxeva! You've successfully authenticated, but GitHub does not provide shell access.
--------------------------------------------------------------------------------------------
root@lsgxbsd:~ # &vi&~/.ssh/config&
root@lsgxbsd:~ # &cat ~/.ssh/config&
-------------------------------------------------
# add git ssh setting
# github git setting
Host github
& User lsgxeva
& IdentityFile ~/.ssh/id_rsa_github
# oschina git setting
Host oschina
& HostName git.oschina.net
& User lsgx
& IdentityFile ~/.ssh/id_rsa_oschina
------------------------------------------------------
lsgx@lsgxbsd:~$ &ssh-agent csh
lsgx@lsgxbsd:~$& ssh-add ~/.ssh/id_rsa_github
Identity added: /home/lsgx/.ssh/id_rsa_github (/home/lsgx/.ssh/id_rsa_github)
lsgx@lsgxbsd:~$& ssh-add ~/.ssh/id_rsa_oschina
Identity added: /home/lsgx/.ssh/id_rsa_oschina (/home/lsgx/.ssh/id_rsa_oschina)
lsgx@lsgxbsd:~$& ssh -T git@oschina
-----------------------------------------------------------------------------------------
Welcome to Git@OSC, lsgx!
--------------------------------------------------------------------------------------------
lsgx@lsgxbsd:~$& ssh -T git@github
-----------------------------------------------------------------------------------------
Hi lsgxeva! You've successfully authenticated, but GitHub does not provide shell access.
--------------------------------------------------------------------------------------------
root@lsgxbsd:~ #& vi /etc/rc.conf
------------------------------------------------------
# git daemon
git_daemon_enable="YES"
------------------------------------------------------
lsgx@lsgxbsd:~$& cat ~/.gitconfig&
------------------------------------------------------------------------------------
name = lsgx
editor = vim
status = auto
branch = auto
diff = auto
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
co = checkout
ci = commit
br = branch
st = status
unstage = reset HEAD
last = log -1 HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&%an&%Creset' --abbrev-commit
--------------------------------------------------------------------------------------------------------------
lsgx@lsgxbsd:~/work/code/demo$& cat .gitignore&
---------------------------------------------------------
# Project files
# Object files
# Libraries
# Shared objects (inc. Windows DLLs)
# Executables
# Log files
# Core dump files
# swap files
---------------------------------------------
root@lsgxbsd:~ #& pkg install htop
root@lsgxbsd:~ #& htop
root@lsgxbsd:~ #& pkg install iftop
root@lsgxbsd:~ #& iftop -i em0 -pP
root@lsgxbsd:~ #& pkg install bsdinfo
root@lsgxbsd:~ #& vi ~/.cshrc
root@lsgxbsd:~ #& cat ~/.cshrc
------------------------------------------
# $FreeBSD: releng/10.2/etc/root/dot.cshrc 2-12-05 13:56:39Z eadler $
# .cshrc - csh resource script, read at beginning of execution by each shell
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
alias h history 25
alias j jobs -l
alias la ls -aF
alias lf ls -FA
alias ll ls -lAF
alias vi vim
# A righteous umask
#set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "%N@%m:%~ %# "
set promptchars = "%#"
set history = 1000
set savehist = (1000 merge)
set autolist = ambiguous
# Use history to aid expansion
set autoexpand
set autorehash
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
# Beginning of the block added by the lsgx - DO NOT EDIT
#setenv PACKAGEROOT "ftp://ftp.freebsdchina.org"
setenv PACKAGEROOT "ftp://ftp.tw.freebsd.org"
#setenv PACKAGEROOT ".freebsd.org"
#setenv PACKAGESITE "/freebsd/releases/amd64/10.2-RELEASE/packages/Latest/"
# openjdk env setting by csh
setenv JAVA_HOME /usr/local/openjdk6
setenv JRE_HOME /usr/local/openjdk6/jre
setenv CLASSPATH .:$JAVA_HOME/lib:$JRE_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib/rt.jar
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin $JAVA_HOME/bin $JRE_HOME/bin)
# End of the block added by the lsgx
------------------------------------------
设置屏保和分辨率
root@lsgxbsd:~ #& vi /boot/loader.conf
root@lsgxbsd:~ #& cat /boot/loader.conf
--------------------------------------------------------------------
kern.geom.label.gptid.enable="0"
zfs_load="YES"
# Beginning of the block added by the lsgx - DO NOT EDIT
splash_bmp_load="YES"
splash_pcx_load="NO"
vesa_load="YES"
#daemon_saver_load="YES"
bitmap_load="YES"
bitmap_name="/boot/daemon.bmp"
bitmap_type="splash_image_data"
# End of the block added by the lsgx
------------------------------------------------------
root@lsgxbsd:~ # vidcontrol -i mode | grep G
root@lsgxbsd:~ # vi&/etc/rc.conf
root@lsgxbsd:~ # cat /etc/rc.conf
----------------------------------------------------------------------
# Beginning of the block added by the lsgx - DO NOT EDIT
hald_enable="YES"
dbus_enable="YES"
avahi_daemon_enable="YES"
avahi_dnsconfd_enable="YES"
slim_enable="YES"
saver="YES"
allscreens_flags="MODE_332"
blanktime="10"
# kldunload linux&
# options COMPAT_LINUX&
linux_enable="YES"
# smartmontools configure
smartd_enable="YES"
# End of the block added by the lsgx
-------------------------------------------------------------
root@lsgxbsd:~ #& sh /etc/rc&
关闭虚拟机,更改配置文件
-----------------------------------------
mks.enable3d = "TRUE"
svga.autodetect = "FALSE"
svga.maxWidth = "1366"
svga.maxHeight = "768"
svga.vramSize = ""
----------------------------------------
root@lsgxbsd:~ # locale
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
root@lsgxbsd:~ # vi ~/.cshrc
root@lsgxbsd:~ # cat ~/.cshrc
---------------------------------------------------------
# Beginning of the block added by the lsgx - DO NOT EDIT
#setenv PACKAGEROOT "ftp://ftp.freebsdchina.org"
setenv PACKAGEROOT "ftp://ftp.tw.freebsd.org"
#setenv PACKAGEROOT ".freebsd.org"
#setenv PACKAGESITE "/freebsd/releases/amd64/10.2-RELEASE/packages/Latest/"
setenv LANG & & & & zh_CN.UTF-8
setenv LC_CTYPE & & zh_CN.UTF-8
setenv LC_ALL & & & zh_CN.UTF-8
# openjdk env setting by csh
setenv JAVA_HOME /usr/local/openjdk6
setenv JRE_HOME /usr/local/openjdk6/jre
setenv CLASSPATH .:$JAVA_HOME/lib:$JRE_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.
jar:$JRE_HOME/lib/rt.jar
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/b
in $JAVA_HOME/bin $JRE_HOME/bin)
# End of the block added by the lsgx
---------------------------------------------
全局ls高亮设置
root@lsgxbsd:~ # &cat /etc/csh.cshrc
-------------------------------------------------------------------------------------
# Beginning of the block added by the lsgx - DO NOT EDIT
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
setenv GREP_OPTIONS --color=auto
# End of the block added by the lsgx
-------------------------------------------------------------------------------------------
root@lsgxbsd:~ # &source /etc/csh.cshrc
安装fcitx输入法
# pkg install zh-fcitx-googlepinyin
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: linux-c6 has a missing dependency: linux-c6-flashplugin
The following 9 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
zh-fcitx-googlepinyin: 0.1.6
zh-libgooglepinyin: 0.1.2
zh-fcitx: 4.2.8.6_1
qt4-inputmethods: 4.8.6
qt4-gui: 4.8.6_5
xdg-utils: 1.0.2.
qt4-corelib: 4.8.6_5
qt4-dbus: 4.8.6_1
qt4-xml: 4.8.6_1
The process will require 59 MiB more space.
13 MiB to be downloaded.
Message for qt4-corelib-4.8.6_5:
======================================================================
Qt 4 can be built with optional support for:
&- Common UNIX Printing System (CUPS) (enabled by default)
&- Network Audio System (NAS)
&- Qt style that renders using GTK (QGTKSTYLE)
In order to enable them, you have to add
QT4_OPTIONS=CUPS NAS QGTKSTYLE
to your /etc/make.conf and compile devel/qt4-corelib and
x11-toolkits/qt4-gui ports.
Attention! Whenever you change the QT4_OPTIONS both
devel/qt4-corelib and x11-toolkits/qt4-gui ports must be rebuilt!
======================================================================
Message for qt4-gui-4.8.6_5:
======================================================================
Qt paint engine makes common use of shared memory. To avoid MIT-SHM
errors (i.e., blank windows), you probably need to raise shared memory
limits in loader.conf(5). The following should be safe values for the
KDE Plasma Desktop:
kern.ipc.shmall=32768
kern.ipc.shmmni=1024
kern.ipc.shmseg=1024
======================================================================
Message for zh-fcitx-4.2.8.6_1:
************************************************************************
Remember to set the environment variable XMODIFIERS:
csh/tcsh:setenv XMODIFIERS @im=fcitx
sh/bash:export XMODIFIERS='@im=fcitx'
For GTK+ programs, you may want to set:
csh/tcsh:setenv GTK_IM_MODULE fcitx
setenv GTK3_IM_MODULE xim
sh/bash:export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=xim
For Qt4 programs, we recommend you to use
qtconfig-qt4: /usr/ports/misc/qt4-qtconfig
instead of to manually set QT4_IM_MODULE.
To start fcitx with your desktop, just
cp /usr/local/share/applications/fcitx.desktop \
& &~/.config/autostart/
************************************************************************
# vi ~/.cshrc
-----------------------------------------------------------------
# fcitx environment variable XMODIFIERS
setenv XMODIFIERS @im=fcitx
setenv GTK_IM_MODULE fcitx
setenv GTK3_IM_MODULE xim
-----------------------------------------------------------------
# vi ~/.xinitrc
-----------------------------------------------------------------
exec fcitx &
-----------------------------------------------------------------
安装vmtools
需要先安装 perl和 compat6x
root@lsgxbsd:~ #& cd /usr/ports/misc/compat6x/
root@lsgxbsd:/usr/ports/misc/compat6x #& make install clean
root@lsgxbsd:~ #& df -h
lsgx@lsebsd:~ % df -h
Filesystem & & & & & &Size & &Used & Avail Capacity &Mounted on
zroot/ROOT/default & &151G & &3.1G & &147G & & 2% & &/
devfs & & & & & & & & 1.0K & &1.0K & & &0B & 100% & &/dev
procfs & & & & & & & &4.0K & &4.0K & & &0B & 100% & &/proc
linprocfs & & & & & & 4.0K & &4.0K & & &0B & 100% & &/compat/linux/proc
fdescfs & & & & & & & 1.0K & &1.0K & & &0B & 100% & &/dev/fd
procfs & & & & & & & &4.0K & &4.0K & & &0B & 100% & &/proc
zroot/tmp & & & & & & 147G & &172K & &147G & & 0% & &/tmp
zroot/usr/home & & & &147G & &160K & &147G & & 0% & &/usr/home
zroot/usr/ports & & & 148G & &1.0G & &147G & & 1% & &/usr/ports
zroot/usr/src & & & & 148G & &545M & &147G & & 0% & &/usr/src
zroot/var/audit & & & 147G & & 96K & &147G & & 0% & &/var/audit
zroot/var/crash & & & 147G & & 96K & &147G & & 0% & &/var/crash
zroot/var/log & & & & 147G & &284K & &147G & & 0% & &/var/log
zroot/var/mail & & & &147G & &128K & &147G & & 0% & &/var/mail
zroot/var/tmp & & & & 147G & & 96K & &147G & & 0% & &/var/tmp
zroot & & & & & & & & 147G & & 96K & &147G & & 0% & &/zroot
root@lsgxbsd:~ # &ls -alh /dev/ | grep cd
crw-r----- & 1 root &operator & 0x5a &4 16 10:33 cd0
root@lsgxbsd:~/work/vmtools # &mkdir -p ~/work/vmtools
root@lsgxbsd:~ #& mount_cd9660 &/dev/cd0 /mnt/
root@lsgxbsd:~ #& cp /mnt/vmware-freebsd-tools.tar.gz&~/work/vmtools/
root@lsgxbsd:~ #& umount /mnt/
root@lsgxbsd:~/work/vmtools # &tar -zxvf vmware-freebsd-tools.tar.gz&
root@lsgxbsd:~/work/vmtools #& cd vmware-tools-distrib/
root@lsgxbsd:~/work/vmtools/vmware-tools-distrib # &./vmware-install.pl&
------------------------------------------------------------------------------
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?&
[/usr/local/bin]&
In which directory do you want to install the startup script?&
[/usr/local/etc/rc.d]&
In which directory do you want to install the daemon files?&
[/usr/local/sbin]&
In which directory do you want to install the library files?&
[/usr/local/lib/vmware-tools]&
The path "/usr/local/lib/vmware-tools" does not exist currently. This program&
is going to create it, including needed parent directories. Is this what you&
want? [yes]&
In which directory do you want to install the documentation files?&
[/usr/local/share/doc/vmware-tools]&
The path "/usr/local/share/doc/vmware-tools" does not exist currently. This&
program is going to create it, including needed parent directories. Is this&
what you want? [yes]&
The installation of VMware Tools 9.6.2 build-1688356 for FreeBSD completed&
successfully. You can decide to remove this software from your system at any&
time by invoking the following command:&
"/usr/local/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by&
invoking the following command: "/usr/local/bin/vmware-config-tools.pl". Do you
want this program to invoke the command for you now? [yes]&
Initializing...
Making sure services for VMware Tools are stopped.
Stopping VMware Tools services in the virtual machine:
& &Guest operating system daemon: & & & & & & & & & & & & & & & & & & &done
The vmblock enables dragging or copying files between host and guest in a&
Fusion or Workstation virtual environment. &Do you wish to enable this feature?
vmblock is not supported for FreeBSD 9.1 and above.
Detected X server version 1.14.7
Distribution provided drivers for Xorg X server are used.
Skipping X configuration because X drivers are not included.
Starting VMware Tools services in the virtual machine:
& &Switching to guest configuration: & & & & & & & & & & & & & & & & & done
& &Guest memory manager: & & & & & & & & & & & & & & & & & & & & & & &failed
& &Guest operating system daemon: & & & & & & & & & & & & & & & & & & &done
Unable to start services for VMware Tools
Execution aborted.
-----------------------------------------------------------------------
root@lsgxbsd:~/work/vmtools/vmware-tools-distrib #& reboot
root@lsgxbsd:~ #& kldstat&
Id Refs Address & & & & & &Size & & Name
&1 & 21 0xffffffff5658 &kernel
&2 & &1 0xffffffffb00 & & splash_bmp.ko
&3 & &1 0xffffffff0 & & vesa.ko
&5 & &1 0xffffffff81a & & linprocfs.ko
&6 & &1 0xffffffff81a1b000 43bce & &linux.ko
&7 & &1 0xffffffff81a5f000 2b58 & & uhid.ko
Run pkg_add open-vm-tools
Run cp /etc/pkg/share/examples/rc.d/vmtools /etc/rc.d
And add following lines to /etc/rc.conf
vmtools="YES"
vmware_guest_vmblock_enable="YES"
#vmware_guest_vmhgfs_enable="YES"
vmware_guest_vmmemctl_enable="YES"
vmware_guest_vmxnet_enable="YES"
vmware_guestd_enable="YES"
/redguardtoo/emacs.d
/redguardtoo/emacs.d/archive/2.0.zip
FreeBSD基本目录结构简要说明
/ 文件系统的根目录。
/bin/ 在单个用户和多用户环境下的基本工具目录。
/boot/ 在操作系统在启动加载期间所用的程序和配置。
/boot/defaults/ 默认每步引导启动的配置内容,请查阅loader.conf(5)。
/dev/ 设备节点,请查阅 intro(4)。
/etc/ 系统启动的配置和脚本。
/etc/defaults/ 系统默认的启动配置和脚本,请参考 rc(8) 。
/etc/mail/ 关系到邮件系统运作的配置, 请参考 sendmail(8)。
/etc/namedb/ named 配置文件,请参考 named(8)。
/etc/periodic/ 每天、每星期和每月周期性地运行的脚本, 请通过 cron(8)查阅periodic(8)。
/etc/ppp/ ppp配置文件,请查阅ppp(8)。
/mnt/ 由管理员习惯使用挂接点的临时空目录。
/proc/ 运行中的文件系统,请参阅 procfs(5) 和 mount_procfs(8)。
/rescue/ 用于紧急恢复的一组静态联编的程序; 参见 rescue(8)。
/root/ root用户的Home(主)目录。
/sbin/ 在单个用户和多用户环境下的存放系统程序和管理所需的基本实用目录。
/tmp/ 临时文件。 /tmp 目录中的内容, 一般不会在系统重新启动之后保留。 通常会将基于内存的文件系统挂在 /tmp 上。 这一工作可以用一系列 tmpmfs 相关的 rc.conf(5) 变量来自动完成。 (或者, 也可以在 /etc/fstab 增加对应项; 参见 mdmfs(8))。
/usr/ 存放大多数用户的应用软件。
/usr/bin/ 存放实用命令,程序设计工具,和应用软件。
/usr/include/ 存放标准 C include 文件.
/usr/lib/ 存放库文件。
/usr/libdata/ 存放各种实用工具的数据文件。
/usr/libexec/ 存放系统实用或后台程序 (从另外的程序启动执行)。
/usr/local/ 存放本地执行文件, 库文件等等, 同时也是 FreeBSD ports 安装的默认安装目录。 /usr/local 在 /usr 中的目录布局大体相同, 请查阅 hier(7)。 但 man 目录例外, 它们是直接放在/usr/local 而不是 /usr/local/share 下的, 而 ports 说明文档在share/doc/port。
/usr/obj/ 通过联编 /usr/src 得到的目标文件。
/usr/ports/ 存放 FreeBSD 的 Ports Collection (可选)。
/usr/sbin/ 存放系统后台程序 和 系统工具 (由用户执行)。
/usr/share/ 存放架构独立的文件。
/usr/src/ 存放 BSD 或者本地源码文件。
/usr/X11R6/ 存放 X11R6 可执行文件、 库文件、 配置文件等的目录(可选)。
/var/ 多用途日志、 临时或短期存放的, 以及打印假脱机系统文件。 有时会将基于内存的文件系统挂在 /var 上。 这一工作可以通过在rc.conf(5) 中设置一系列 varmfs 变量 (或在 /etc/fstab 中加入一行配置; 参见 mdmfs(8)) 来完成。
/var/log/ 存放各种的系统记录文件。
/var/mail/ 存放用户mailbox(一种邮件存放格式)文件。
/var/spool/ 各种打印机和邮件系统spooling(回环)的目录。
/var/tmp/ 临时文件。 这些文件在系统重新启动时通常会保留, 除非 /var是一个内存中的文件系统。
/var/yp/ NIS 映射。
FreeBSD /etc/rc.conf文件语法错误导致系统变为readonly
???入以下命令
mount -u /
mount -a -t ufs
就可以编辑了
界面效果预览图
相关资讯 & & &
& (05/29/:06)
& (02/22/:43)
& (02/05/:46)

我要回帖

更多关于 苹果id注册 的文章

 

随机推荐