Mac OS X版本: 10.14.6
1. 點選「系統偏好設定」(System Preferences)。
2. 點選「共享」(Sharing)。
3. 打勾「遠端管理」(Remote Management)後,會跳出一些權限設定,由於我在內部網路,所以我是全勾。
4. 勾起了「遠端管理」(Remote Management)後,在視窗右邊點選「電腦設定」(Computer Settings...)。
5. 再勾選「VNC檢示程式可以使用密碼來控制螢幕」(VNC viewers may control screen with password:),接下來在右方填入要使用VNC登入的「密碼」(Password),然後再點選「好」(OK)。
6. 點選「選項」(Options...)去確認權限,若都OK,那就表示設定完成。
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment:
## Disk devices information.
[root@CentOS ~]# fdisk -l | grep "Disk /dev/sd"
----------------------------------------------------------
Disk /dev/sdb: 3999.7 GB, 3999688294400 bytes
Disk /dev/sdc: 3000.0 GB, 3000034656256 bytes
Disk /dev/sda: 1999.8 GB, 1999844147200 bytes
----------------------------------------------------------
## Only the /dev/sdb is PV.
[root@CentOS ~]# pvscan
----------------------------------------------------------
PV /dev/sdb VG vg001 lvm2 [3.64 TiB / 693.88 GiB free]
Total: 1 [3.64 TiB] / in use: 1 [3.64 TiB] / in no VG: 0 [0 ]
----------------------------------------------------------
## OS has a VG (vg001) currently.
[root@CentOS ~]# vgscan
----------------------------------------------------------
Reading all physical volumes. This may take a while...
Found volume group "vg001" using metadata type lvm2
----------------------------------------------------------
dreamtails 發表在 痞客邦 留言(0) 人氣()
1. Download and install Cygwin x86_64 (https://www.cygwin.com/).
Cygwin packages include:
- gcc-core (Devel category)
- make (Devel category)
- openssl-devel
2. Download and extract IPMItool source tarabll (http://sourceforge.net/projects/ipmitool/).
3. Execute "Cygwin64 Terminal", go into IPMItool source directory (ex: ipmitool-x.y.zz).
4. Compile IPMItool
# ./configure --enable-intf-lanplus
# make
dreamtails 發表在 痞客邦 留言(1) 人氣()
1. 找出/tmp/dir目錄下的無效鏈結
# find /tmp/dir -type l ! -exec test -r {} \; -print
2. 找出目錄下的無效鏈結並刪除它
# find /tmp/dir -type l ! -exec test -r {} \; -print | xargs -n 1 unlink
dreamtails 發表在 痞客邦 留言(0) 人氣()
dreamtails 發表在 痞客邦 留言(0) 人氣()
Install Virtual Machine Manager and KVM for ubuntu 14.04.02 below,
$ sudo apt-get install qemu-system qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
$ sudo apt-get install virt-manager
$ sudo reboot
dreamtails 發表在 痞客邦 留言(0) 人氣()
index表示法:
表示法一 my_list[=:<]
表示法二 my_list = [ 0, 1, 2, 3, 4, 5, 6 ]
表示法三 my_list = [ -6, -5, -4, -3, -2, -1 ]
dreamtails 發表在 痞客邦 留言(0) 人氣()
架設OpenVPN可參考: http://dreamtails.pixnet.net/blog/post/30797812
如下,我們將開啟OpenVPN對內interface的Proxy ARP功能。
方法一: 可即時生效。
# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
eth0為OpenVPN內部網路的interface.
方法二: OpenVPN電腦重開機後還會生效。
# vim /etc/sysctl.conf
-------------------------------
......
net.ipv4.conf.eth0.proxy_arp = 1
......
-------------------------------
dreamtails 發表在 痞客邦 留言(0) 人氣()
Step 1) 移除/root/dir目錄裡鏈結到其他地方的檔案。
# find / -lname /root/dir/\* 2>/dev/null -exec unlink {} \;
Step 2) 移除/root/dir目錄下所有鏈結(Symbol link).
# find /root/dir -lname \* -exec unlink {} \;
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment:
# cd /home/admin
Create a test file.
# touch Source
Create three symbol links(test001, test002, and test003) below,
# ln -s /home/admin/Source /tmp/test001
# ln -s /home/admin/Source /tmp/test002
# ln -s /home/admin/Source /tmp/test003
dreamtails 發表在 痞客邦 留言(0) 人氣()
Step 1) Go to http://xquartz.macosforge.org/landing/ , download XQuartz-x.x.x.dmg and install it.
Step 2) Go to 「LaunchPad」 --> Open 「X11」
Step 3) Click the "right button" on X11 icon of Dock. --> go to 「Application(應用程式)」 --> Click 「Terminal(終端機)」, then xterm is open.
Step 4) type a command "ssh -X <username>@<hostname or IP>" to connect a host in xterm.
Step 5) type a command "virt-manager".
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 我想設定第48 port為Trunk port(帶VLAN ID為1011 and 1012的Tags)
Solution: 在Switch加上以下這幾行
# enable
# configure
# vlan 1011,1012
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface vlan 1012
# ip address 10.12.0.253 255.255.0.0
# exit
# interface gigabitethernet 1/0/48
# switchport mode trunk
# switchport trunk allowed vlan 1011,1012
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 我想設定第1 port為Access port(帶VLAN ID為1011的Tags)
Solution: 在Switch加上以下這幾行
# enable
# configure
# vlan 1011
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface gigabitethernet 1/0/1
# switchport access vlan 1011
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N3048
Secnario: 我想設定VLAN 1011與1012這兩個網段可以拿到VLAN 192網段192.168.1.1這台DHCP server發的IP
Solution: 在Switch加上以下這幾行,主要是設定要DHCP relay的VLAN與DHCP server的IP
# enable
# configure
# ip helper-address 192.168.1.1 dhcp
# dhcp l2relay vlan 1011,1012
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 所有接在N2048與N3048的機器都能互通,唯獨與Switch不同網段的機器連不到Switch(例如: 10.10.10.10要連到switch ip: 192.168.0.252)
Solution: 在Switch上加上以下這一行
# ip default-gateway 192.168.0.254
dreamtails 發表在 痞客邦 留言(0) 人氣()