觅回首


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

Firefox无法在远程桌面播放音频

发表于 2018-06-26 |

play-audio-remote-desktop-connection
无法在远程桌面播放音频

I can’t play audio on a Remote Desktop Connection
If you are on a Remote Desktop Connection (RDP) on Windows, audio playback will be disabled due to increased security restrictions. This is a known issue since Firefox version 56 that we are working hard to fix.

In the meantime, you can reduce the sandbox security level by following these steps:

In the address bar, type about:config and press Enter.

The about:config “This might void your warranty!” warning page may appear. Click I accept the risk! to continue to the about:config page.
Search for security.sandbox.content.level, double-click on the preference and set its value to 2.
Restart Firefox on the remote device.

xen_explanation.md

发表于 2018-01-18 |

https://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide

  • /etc/rinse/rinse.conf

    1
    xen-create-image --hostname centos6 --dhcp --memory 1024mb --vcpus 2 --pygrub --install-method rinse --dist centos-6
  • /etc/xen-tools/xen-tools.conf

    1
    xen-create-image --hostname debian-stable --dhcp --memory 1024mb --vcpus 2 --pygrub --install-method debootstrap --dist stable
阅读全文 »

kvm_explanation

发表于 2018-01-08 |

https://wiki.debian.org/KVM

http://notes.maxwi.com/2016/11/29/kvm-create-and-manage/

install

  1. apt install -y qemu-kvm libvirt-clients libvirt-daemon-system
  2. apt install -y libvirt-bin virtinst bridge-utils libguestfs-tools
    • kvm: KVM的内核,通常linux系统自带
    • qemu-kvm: KVM的设备模拟器,实际上kvm只是负责加速,qemu才是虚拟机管理器
    • libvirt-bin: libvirt库,虚拟机命令行管理工具,包含很多实用工具,如后面需要大量使用的virsh。(安装之后会生成一个名为virbr0的网桥)
    • virtinst: 虚拟机创建(virt-install)和克隆工具(vrit-clone)等
    • birdge-utils: 用于桥接网卡的工具,如命令brctl)
    • 如果有图形化桌面,推荐安装virt-manager,这个工具可以非常方便地图形化管理虚拟机,就像常见的virtualbox/vmware界面那样,可以通过鼠标来完成虚拟机的管理。
    • virt-v2v:虚机格式迁移工具,该工具与virt-sysprep都包含在包libguestfs-tools中,后面布署中会用到
      阅读全文 »

ngrok server 简单部署

发表于 2017-12-10 |
  • ngrok下载
  • 生成网站证书

    1
    2
    3
    4
    5
    openssl genrsa -out rootCA.key 4096
    openssl req -x509 -new -nodes -key rootCA.key -subj "/CN=ng.kebyn.cc" -days 36500 -out rootCA.pem
    openssl genrsa -out device.key 4096
    openssl req -new -key device.key -subj "/CN=ng.kebyn.cc" -out device.csr
    openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 36500
  • 替换 ngrok 默认证书

    1
    2
    3
    cp rootCA.pem ../assets/client/tls/ngrokroot.crt 
    cp device.crt ../assets/server/tls/snakeoil.crt
    cp device.key ../assets/server/tls/snakeoil.key
  • 非 root 用户

    1
    sudo GOOS=darwin GOARCH=386 make release-all && sudo GOOS=darwin GOARCH=amd64 make release-all &&sudo GOOS=linux GOARCH=386 make release-all && sudo GOOS=linux GOARCH=amd64 make release-all &&sudo GOOS=linux GOARCH=arm make release-all && sudo GOOS=linux GOARCH=arm64 make release-all &&sudo GOOS=windows GOARCH=386 make release-all && sudo GOOS=windows GOARCH=amd64 make release-all
  • root 用户

    1
    GOOS=darwin GOARCH=386 make release-all && GOOS=darwin GOARCH=amd64 make release-all && GOOS=linux GOARCH=386 make release-all && GOOS=linux GOARCH=amd64 make release-all && GOOS=linux GOARCH=arm make release-all && GOOS=linux GOARCH=arm64 make release-all && GOOS=windows GOARCH=386 make release-all && GOOS=windows GOARCH=amd64 make release-all

Linux 宕机急救

发表于 2017-09-29 |
  • 在一般 Linux 當機的狀況下,若要重新啟動系統,可以按住 Alt + SysRq 兩個鍵,然後依序按下以下幾個指令鍵:
    1
    r e i s u b
阅读全文 »

LDAP 设置

发表于 2017-08-13 |

openldap.md

osixia/openldap

Docker Pulls
Docker Stars

Latest release: 1.1.8 - OpenLDAP 2.4.40 - Changelog | Docker Hub

A docker image to run OpenLDAP.

Note:

  • In the release 1.1.6 files *.yaml.startup have been renamed to *.startup.yaml
  • Due to issues #44 and #73 versions before 1.1.6 are not considered as stable and tags will be removed from docker hub.

OpenLDAP website : www.openldap.org

阅读全文 »

串口调试

发表于 2017-08-09 |

Linux下调试串口服务器的命令

1
2
3
4
5
6
7
8
9
10
11
+ sudo minicom -D /dev/ttyUSB0 -H -w -o

- -D 指定串口设备

- -H 使用16进制输出

- -w 滚屏输出

- -o 不对设备进行初始化

- -c on/off 输出开启颜色

Windows 下调试串口服务器的软件

  • common

ocs_ng 安装

发表于 2017-07-20 |
  1. Unpack it.
    tar –xvzf Ocsinventory-Agent-2.0.x.tar.gz
    
    cd Ocsinventory-Agent-2.0.x
  2. Check perl configuration with the script Makefile.PL. Its looks at the configuration of Perl, machine, libraries … and it generates the Makefile. During this step, we will create a temporary environment variable to install agent non-interactively.
    env PERL_AUTOINSTALL=1 perl Makefile.PL
    
    Exemple :
    Please install Crypt::SSLeay if you want to use SSL.
    Please install nmap or ipdiscover if you want to use the network discover feature.
    Please install Proc::Daemon and Proc::PID::File if you want to use the daemon monde.
    
  3. Compilation
    make
    make install
    

引用

openssl生成cert

发表于 2017-07-13 |
1
2
3
4
openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key
openssl req -sha256 -new -key server.key -out server.csr -subj '/CN=localhost'
openssl x509 -req -sha256 -days 36500 -in server.csr -signkey server.key -out server.crt

https://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$ cat cert.pem
-----BEGIN CERTIFICATE-----
MIIDJDCCAgwCCQDIHbBXyn2dyDANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJD
TjERMA8GA1UEBwwIc2hhbmdoYWkxEDAOBgNVBAoMB3F6c3RlY2gxHzAdBgNVBAMM
FmdpdGxhYi5pbmMucXpzdGVjaC5uZXQwIBcNMTcwODAxMDk1OTA0WhgPMjExNzA3
MDgwOTU5MDRaMFMxCzAJBgNVBAYTAkNOMREwDwYDVQQHDAhzaGFuZ2hhaTEQMA4G
A1UECgwHcXpzdGVjaDEfMB0GA1UEAwwWZ2l0bGFiLmluYy5xenN0ZWNoLm5ldDCC
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKaAZnlgevlhWR3djmFxZgcX
Pwy2PiWpgr4kXQGAbCMTS2ouiTYvSW6rr9ofRv39G7yxSc7Rah6N1f9y6y9/itR7
C2vMSM/GHMX8zvLt49PFNjhIYv1Nd38VBoXSxz72yp+iagCKooYC9Zn+mEQlmAbJ
/zv9T8UiYTeV9FMHYO3HoTlet/tYeBmWr5ukEncBt5fxfM3yGuipR721qUCD0Hub
mXx3r/YJ5LerSjS6SBug2i8lusSkF6mRJUNyF58ouNAqnj4RFGgmwdwuRZn0TVF7
SWL9kDIB9dxi/pu1AFPBpxq/T7fgxuR6EdCO5Gu/QTZdGDpWoKqN5UgfWQwvzcEC
AwEAATANBgkqhkiG9w0BAQsFAAOCAQEAKivEQXuW3KfxeucuCE2ovCuHgzd5RP6k
RRUTDpufPmD8JH3b1vn0r4lq+u2WppwkFhlx99O89zygzuT19UtefUQ5Fgll0dbQ
vfgICiRvQFoYw427QWUS29Z4wNZM384TkCkWPoh7zzsIz8EBzAbv8a/OcTIcsYYu
QCrozqhqMnetHqhz7D9ShWAxP7rKGgf3lTC0ehpax8b6P24Q1Yuk3BsB6ErrAMCD
FXoIW/a9jy9lgm1oIeBvGSWZCaoVE+4x3JYhtozpx1WlapdRxEYvNxzpcF7o35MS
Ff9AHyLdYUqN4Q4IdwYOmpQnfN/dZhx5aAGjvcs/iQms/Ed92CKs4g==
-----END CERTIFICATE-----
1
2
$ git config --local http.sslCAInfo /path/cert.pem
$ git config --local --unset http.sslCAInfo
1
2
$ git config --local http.sslVerify false #NO NEED TO USE THIS
$ git config --local --unset http.sslverify
  • Copy CA cert to /usr/local/share/ca-certificates.
    1
    2
    sudo update-ca-certificates
    sudo service docker restart

git 添加 key

发表于 2017-07-13 |
1
2
$ ssh-add ~/.ssh/id_rsa.pub
Could not open a connection to your authentication agent.

You might need to start ssh-agent before you run the ssh-add command:

1
2
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa

1
2
ssh -T git@github.com
ssh -Tv git@github.com

github-testing-your-ssh-connection

12…5

By Kebyn

46 日志
90 标签
RSS
GitHub E-Mail Twitter
© 2013 — 2018 By Kebyn
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4