-
Mozc日文输入法 在设置中增加一个键位,如在Direct Input下,按Shift+Space切换到平假
-
Dash to Dock 和Ubunutu Dock的冲突 直接用apt卸载Ubuntu Dock sudo apt purge gnome-shell-extension-ubuntu-dock
-
sudo 不能运行GUI程序 Wayland的通病 xhost +local: 可以设置alias: guisudo='xhost +local: && sudo'
-
opencv安装中,CMAKE报错称Qt找不到 手动 sudo apt install qt5-default
-
python 环境的一些小问题 sudo apt install python3-pip sudo pip3 install opencv-python
-
链接到Widnows 的NTFS 文件夹 sudo ln -s 这里说明一下,需要在disk 设置中将Windows的盘设为开机自动挂载,载入位置自选 这些文件是只读的,似乎和Windows有关,待解决
-
Windows 和 Linux 时间同步 timedatectl set-local-rtc 1 --adjust-system-clock
-
expressvpn dns Activation Code: ETKWPR5THUDZP3UWQCJRRDK
New Code: ED13E9DXJH5PEAZGDXULUUU
sudo vim /etc/NetworkManager/NetworkManager.conf 并加入两行语句: [main] dns=dnsmasq 重启网络管理服务 sudo systemctl restart NetworkManager expressvpn 的最新CLI貌似解决了这个issue,做出上述改动反造成解析问题
once again.
4.2.2.2 4.2.2.1 去掉dnsmasq
[最佳组合拳]
sudo systemd-resolve --flush-caches sudo rm -f /etc/resolv.conf sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf sudo systemctl restart systemd-resolved.service
|| UPDATE __ Sep 1, 2018 ||
You are on the right track. the resolv.conf was changed for VPN use and was not changed back for normal use as a result of the crash. Deleting the old resolv.conf may help. You can make a backup copy of the file and delete the original with this single command:
sudo mv /etc/resolv.conf /etc/backup.resolv.conf
A new resolv.conf will be generated as and when needed. See the answer to the following question:
Can not access Internet (DNS names do not resolve) after update today
Also see:
http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/
Hope this helps.
down vote
@user68186's answer didn't quite work for me, though that might have been due to other issues. What did seem to work is doing what was suggested (removing /etc/resolv.conf by creating a backup)
sudo mv /etc/resolv.conf /etc/backup.resolv.conf
and then (following resolveconf's good man page) creating a new sym link to
/run/resolvconf/resolv.conf
(which I found mentioned also in this Ubuntu 14.04 resolvconf bug report)cd /etc
sudo ln -s /run/resolvconf/resolv.conf .
After doing this and restarting the network-manager
sudo /etc/init.d/network-manager restart
things seem to be working again.
即:
sudo mv /etc/resolv.conf /etc/backup.resolv.conf sudo /etc/init.d/network-manager restart
[如果实在不行就疯狂组合拳]
-
vyprvpn service 需要 sudo apt --fix-broken install 要在其他代理在工作的情况下激活服务 并: Command to open the file: sudo vim /etc/systemd/system/vyprvpn.service
Change the line with the following: ExecStop=killall vyprvpn_service
TO ExecStop=/usr/bin/killall vyprvpn_service
Then stop the service with: systemctl stop vyprvpn.service and then start the service with: systemctl start vyprvpn.service
-
突然出现的网络连接消失 未知原因,重配置VPN之后出现(Express, 不建议) sudo service NetworkManager stop sudo rm /var/lib/NetworkManager/NetworkManager.state #or backup sudo service NetworkManager start
-
LaTeX minted 出现 ^^I (On XeLaTeX compiler):
add "-8bit -shell-escape" to xelatex compiler toolchain. 8-bit options makes all characters printable.
-
vs code win64 config file is commited to your git catalog. Caution: path var ${OPENCV_HEADERS} = "H:\opencv\build\include".
-
matlab with jupyter: pip install matlab_kernel
-
matlab engine for python: (https://www.mathworks.com/help/matlab/matlab-engine-for-python.html?s_tid=gn_loc_drop) On Windows systems cd "matlabroot\extern\engines\python" python setup.py install
On Mac or Linux systems — cd "matlabroot/extern/engines/python" python setup.py install
- 请设定 OPENCV_INLCUDE_DIRS ,值为 opencv 头文件路径
- cmake 注意 x64 :
cd <DLIB_ROOT_DIR>
mkdir build && cd build
cmake .. -G "Visual Studio 15 2017 Win64" -T host=x64
cmake --build . --config Release --target install
- 如果 install 遇到无法写入,用管理员权限运行Native CLI.
Cmake 命令行编译:
git clone --recursive https://github.com/dmlc/xgboost
cd <CLONED_XGBOOST_DIR>
# ON WINDOWS:
git submodule init
git submodule update
###
mkdir build && cd build
cmake .. -G"Visual Studio 15 2017 Win64" -T host=x64
cmake --build . --target xgboost --config Release
对于 Python:
cd <CLONED_XGBOOST_DIR>
cd python-package; sudo python setup.py install