常用名詞解釋
DNS
使用 TCP、UDP PORT 53,UDP Port 53是開放查詢的,TCP Port 53是提供DNS slave server作zone transfer。cmh1017 發表在 痞客邦 留言(0) 人氣(129)
Switch>en Switch#conf t Switch(config)#vlan [Vlan_ID] Switch(config-vlan)#name [Vlan_Name] Switch(config-vlan)#exit Switch(config)#do sh vlna Switch(config)#interface range fastEthernet 0/1-24 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 3 Switch(config-if-range)#exit Switch(config)#do sh vlna Switch(config)#interface range gigabitEthernet 1/1-2 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 3 Switch(config)#do sh vlna Switch#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] |
///設定Vlan ID(數字1-1005) //設定Vlna Name(英文,可搭配數字) //回上一層 //查看所有interface 所屬哪個Vlan //將所有要移動的interface 利用range 來動作 //切換switch interface 工作模式(access、Multi、Trunk) //設定工作模式屬於哪個vlan //回上一層 //查看是否所以要設定的interface 都有設定好 //設定好要記得存,不然設備重開機,設定的東西會全部不見 Destination filename [startup-config]? Building configuration... [OK] |
cmh1017 發表在 痞客邦 留言(0) 人氣(1,943)
Configure a system to automount a Samba share with /etc/fstab
by Vivek Gite on April 25, 2006 · 31 comments
As explained earlier you can use the mount command to mount a remote windows partition or a windows share under Linux.
/etc/fstab file contains static information about the filesystems. The file fstab contains descriptive information about the various file systems. fstab is only read by programs, and not written; it is the duty of the system administrator to properly create and maintain this file.
To mount a Samba share to be mounted when a Linux system comes up after reboot edit the /etc/fstab file and put entry as follows for your Windows/Samba share:
//ntserver/share /mnt/samba smbfs username=username,password=password 0 0
For example, if you want to mount a share called //ntserver/docs then you need to write following entry in /etc/fstab file://ntserver/docs /mnt/samba smbfs username=docsadm,password=D1Y4x9sw 0 0Where,
* //ntserver/docs: Windows 2003/NT/Samba share name要掛載的位置
* /mnt/samba: Local mount point (you may need to create this directory first)要掛載的目錄
* smbfs: File system type (samba file system) 掛載格式
* username=docsadm,password=D1Y4x9sw: Share username and password帳號密碼
Open file /etc/fstab using vi text editor:# vi /etc/fstabAppend line //ntserver/docs /mnt/samba smbfs username=docsadm,password=D1Y4x9sw 0 0, at the end your file should read as follows:
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
//ntserver/docs /mnt/samba smbfs username=docsadm,password=D1Y4x9sw 0 0
cmh1017 發表在 痞客邦 留言(0) 人氣(216)
httpd.conf 利用
<Directory 目錄路徑>
......
<Directory />
cmh1017 發表在 痞客邦 留言(0) 人氣(183)
到此資料夾%appdata%\Microsoft\Virtual PC\
找一個名稱為Options.xml的檔案
修改內容
cmh1017 發表在 痞客邦 留言(0) 人氣(69)
[root@server10 ~]# vi /etc/ssh/sshd_config
#LoginGraceTime 2m
#PermitRootLogin yes (留下本來預設的設定 以後要還原才知道本來的值)
PermitRootLogin no (禁止使用root登入ssh)
cmh1017 發表在 痞客邦 留言(0) 人氣(183)
Client端以SSH連線到主機時,會要求產生認證資訊,儲存在client端的~/.ssh/known_ssh檔中。
如果有連線到多台不同主機,known_hosts裡面就會記錄許多記錄。
但是,假如server被重灌了,這樣子新的server就和known_hosts裡的狀態不同,
再連線時,就會出現底下錯誤:
[root@desktop10 ~]# ssh -X 192.168.0.110
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
0a:3e:d1:fb:de:3a:4f:eb:20:b7:44:50:76:61:36:46.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:4
RSA host key for 192.168.0.110 has changed and you have requested strict checking.
Host key verification failed.
這時,最簡單的方式,就是將known_hosts這個檔刪除,往後再連線主機時,就再重新產生認證資訊就好了。
cmh1017 發表在 痞客邦 留言(0) 人氣(309)
因為本身沒有使用無線網路(3G、wifi)
加上員購機的A50並沒有贈送記憶卡
所以除了找到有wifi的地方可以下載apk並安裝
其它方式都筆者無法使用. . .
cmh1017 發表在 痞客邦 留言(0) 人氣(4,072)

由於在常使用A50的時候常常忘記會設定到哪些設定
所以如果覺得系統怪怪的
就可以依以下步驟將系統還原
cmh1017 發表在 痞客邦 留言(0) 人氣(974)

因為A50定位功能的預設值,是使用網路定位
而有部分購買此手機的使用者,並未使用網路
所以將以下設定值設定好,之後即可開機衛星定位功能
cmh1017 發表在 痞客邦 留言(0) 人氣(348)