公告版位

$ sudo vim /usr/share/applications/eclipse.desktop
============================================
[Desktop Entry]
Version=Photon
Name=Eclipse
Comment=Eclipse is an IDE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Path=/opt/eclipse/
Terminal=false
Type=Application
Categories=X-Red-Hat-Extra;Utility;Application;Development;
============================================

 

$ sudo vim /usr/share/applications/p4v.desktop
============================================
[Desktop Entry]
Version=Helix P4V/LINUX26X86_64/2018.2/1687764
Name=Perforce P4V
Exec=/opt/perforce/bin/p4v
Icon=/opt/perforce/lib/P4VResources/icons/p4v.svg
Path=/opt/perforce/
Terminal=false
Type=Application
Categories=X-Red-Hat-Extra;Utility;Application;Development;
============================================

dreamtails 發表在 痞客邦 留言(0) 人氣()

Step 1) 開啟Windows 10 的「命令提示字元

Step 2) 使用diskpart工具
輸入> diskpart

Step 3) 列出所有硬碟
輸入> list disk

Step 4) 選擇硬碟編號,此範例為編號1
輸入> select disk 1

Step 5) 清乾淨隨身碟
輸入> clean

Step 6) 建立partition
輸入> create partition primary

Step 7) 開啟「我的電腦」--> 看見隨身碟後按「右鍵」--> 並「格式化...

dreamtails 發表在 痞客邦 留言(0) 人氣()

Step 1. 開啟Google Chrome.
Step 2. 在網址列輸入chrome://flags/
Step 3. 更改「Force color profile」選項
Step4. 重新啟動Google Chrome

dreamtails 發表在 痞客邦 留言(0) 人氣()

# vim /etc/sysctl.conf
-----------------------------
fs.file-max = 65535
-----------------------------

# vim /etc/security/limits.conf
-----------------------------
* soft nofile 65535
* hard nofile 65535
root soft nofile 65535
root hard nofile 65535
jenkins soft nofile 65535
jenkins hard nofile 65535
-----------------------------

dreamtails 發表在 痞客邦 留言(1) 人氣()

Usage: hasSameIPv6Subnet("2001:db8:1::1111/64", "2001:db8:1::ffff")

dreamtails 發表在 痞客邦 留言(0) 人氣()

# mvn clean install -Dmaven.test.skip=true

dreamtails 發表在 痞客邦 留言(0) 人氣()

Google Chrome Install
1. Add Key:
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -


2. Set repository:
# sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# sudo apt-get update


3. Install package: 
# sudo apt-get install -y google-chrome-stable


Reference: https://askubuntu.com/questions/510056/how-to-install-google-chrome

dreamtails 發表在 痞客邦 留言(0) 人氣()

1. Install Packages
$ sudo yum install pptp pptp-setup

 

2. Config VPN Client.
$ sudo vim /etc/ppp/chap-secrets
-----------------------------------------
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
<VPN_USERNAME>    PPTP    <VPN_PASSWORD>        *
-----------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

Question:
$ ssh administrator@192.168.1.1 -p 5100

Unable to negotiate with 192.168.1.1 port 5100: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Answer:
$ vim ~/.ssh/config

---------------------------------------------------------------------------
Host 192.168.1.1                                                                                                         
     KexAlgorithms +diffie-hellman-group1-sha1 

---------------------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

Resolved by Jenkins-plugin "Maven Integration plugin"

dreamtails 發表在 痞客邦 留言(0) 人氣()

$ echo "" > ~/.zsh_history & exec $SHELL -l

dreamtails 發表在 痞客邦 留言(0) 人氣()

# 以下為BIG-5連線
$ ssh bbs@ptt.cc

# 以下為UTF-8連線
$ ssh bbsu@ptt.cc

dreamtails 發表在 痞客邦 留言(0) 人氣()

# vim /etc/ssh/sshd_config
============APPEND==============
UseDNS no
============APPEND==============


# service sshd restart

dreamtails 發表在 痞客邦 留言(0) 人氣()

# sed -i "N;s/\n/ /g" text.txt

dreamtails 發表在 痞客邦 留言(0) 人氣()

# vim /etc/network/interfaces
===================================                             
auto lo
iface lo inet loopback

auto br0 
iface br0 inet static

    address 172.17.11.1
    netmask 255.255.254.0
    gateway 172.17.10.254
    dns-search dreamtails.local
    bridge_ports eth0
    bridge_stp off

    post-up route add default via 172.17.10.254 dev br0 

auto br1 
iface br1 inet dhcp
    bridge_ports eth1
    bridge_stp off 

    post-up route del default dev br1
===================================

dreamtails 發表在 痞客邦 留言(0) 人氣()