2019年7月20日 星期六

vmware

vmware:

VMware Workstation and Device/Credential Guard are not compatible. VMware Workstation can be run after disabling Device/Credential Guard.
Disable Windows Defender Credential Guard for a virtual machine

mac change resolution  

在Mac虚拟机里的终端执行下面的命令,执行完之后重启即可 1920*1080分辨率:  
sudo nvram AC20C489-DD86-4E99-992C-B7C742C1DDA9:width=%80%07 
sudo nvram AC20C489-DD86-4E99-992C-B7C742C1DDA9:height=%38%04  

3840*2160分辨率:  
sudo nvram AC20C489-DD86-4E99-992C-B7C742C1DDA9:width=%0F 
sudo nvram AC20C489-DD86-4E99-992C-B7C742C1DDA9:height=%70%08 

解释:  
width=%0F 是宽度的16进制表示,将四个数字倒过来写就是 00 00 0f 00, 相当于十进制的3840 height=%70%08 是高度的16进制表示,将四个数字倒过来写就是 00 00 08 70, 相当于十进制的2160 所以,上面的两条命令执行完之后,分辨率将被设置为 3840*2160, 其他的分辨率依此类推 注意:1.vmware虚拟机对应的vmx文件里面的这部分内容要修改一下,设置一下最大分辨率svga.autodetect = "FALSE"svga.maxWidth = "3840"svga.maxHeight = "2160" 再然后下载VMware15对应的vmtools安装,重启机器然后在看是否生效。
本文来自:Dkukoc,原地址:https://www.dkukoc.com/post/226.html

2019年6月21日 星期五

noip for ubuntu

note for myself

Install noip2 from source

  • cd /usr/local/src/
  • wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
  • tar xf noip-duc-linux.tar.gz
  • cd noip-2.1.9-1/
  • make install
If you get make not found or missing gcc then you do not have the gcc compiler tools on your machine. At https://help.ubuntu.com/community/InstallingCompilers you can find install instructions if you need help.

Configure the Client

As root (or with sudo) issue the below command:
/usr/local/bin/noip2 -C (dash capital C, this will create the default config file)

Create a Systemd service

Create the file /etc/systemd/system/noip2.service and paste the following:
[Unit]
Description=No-IP Dynamic DNS Update Client
Wants=network-online.target
After=network-online.target

[Install]
WantedBy=multi-user.target
Alias=noip.service

[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always

Activating

 $ systemctl daemon-reload
$ systemctl status noip2.service
$ systemctl start noip2.service (start immediately)
$ systemctl enable noip2.service (start on boot)
 

            
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`
#
# systemd supports lots of fancy features, look here (and linked docs) for a full list:
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html
[Unit]
Description=No-ip.com dynamic IP address updater
After=network.target
After=syslog.target
[Install]
WantedBy=multi-user.target
Alias=noip.service
[Service]
# Start main service
ExecStart=/usr/local/bin/noip2
Restart=always
Type=forking