$ sudo vim /etc/systemd/resolved.conf
===============================
[Resolve]
DNS=8.8.8.8
Domains=dreamtails.local
===============================
公告版位
- Sep 21 Fri 2018 12:52
Setting nameserver and search domain by resolvconf for Ubuntu 18.04
- Sep 12 Wed 2018 11:37
[GNOME3] How do I create a .desktop file to launch Eclipse and Perforce P4V?
$ 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;
============================================
- Jul 26 Thu 2018 21:57
USB隨身碟容量變小或無法格式化,解決辦法?
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) 開啟「我的電腦」--> 看見隨身碟後按「右鍵」--> 並「格式化...」
- Jul 26 Thu 2018 01:21
Google Chrome更新後,如何解決畫面整個變黃色?
Step 1. 開啟Google Chrome.
Step 2. 在網址列輸入chrome://flags/
Step 3. 更改「Force color profile」選項
Step4. 重新啟動Google Chrome
- Apr 10 Tue 2018 17:35
How to resolve "Too many open files" ERROR? Increased the max file count.
# 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
-----------------------------
- Feb 12 Mon 2018 18:31
Check IPv6 IP and Gateway in the same Subnet.
Usage: hasSameIPv6Subnet("2001:db8:1::1111/64", "2001:db8:1::ffff")
- Aug 30 Wed 2017 12:23
Maven command build modules for skipping test case.
# mvn clean install -Dmaven.test.skip=true
- Aug 23 Wed 2017 15:03
Install Chrome and Fcitx for Ubuntu 14.04
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
- Jul 03 Mon 2017 18:26
[CentOS 7] How to configure VPN Client?
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> *
-----------------------------------------
- Jun 29 Thu 2017 19:48
[Ubuntu] Cannot Connect Host via Console Switch?
Question 1:
$ 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
Question 2:
$ ssh administrator@192.168.1.1 -p 5100
Unable to negotiate with 192.168.1.1 port 5100: no matching cipher found. Their offer: 3des-cbc
Answer:
$ vim ~/.ssh/config
---------------------------------------------------------------------------
Host 192.168.1.1
Ciphers 3des-cbc
KexAlgorithms +diffie-hellman-group1-sha1
---------------------------------------------------------------------------
- May 18 Thu 2017 15:17
It is Error, when Jenkins CLI import Job/Project.
Resolved by Jenkins-plugin "Maven Integration plugin"
- Mar 30 Thu 2017 15:15
Clear ZSH command history
$ echo "" > ~/.zsh_history & exec $SHELL -l
- Dec 05 Mon 2016 23:53
使用SSH連線登入ptt.cc
# 以下為BIG-5連線
$ ssh bbs@ptt.cc
# 以下為UTF-8連線
$ ssh bbsu@ptt.cc
- Oct 18 Tue 2016 18:49
How to resolve long time issue for SSH login?
# vim /etc/ssh/sshd_config
============APPEND==============
UseDNS no
============APPEND==============
# service sshd restart
- Oct 06 Thu 2016 12:10
Using Linux sed to replace "\n" (text wrap) to "space"
# sed -i "N;s/\n/ /g" text.txt