Author: ephuizi

  • 创建intellij idea启动图标

    centos上创建intellij idea启动图标

    Pycharm

    # cat /usr/share/applications/pycharm.desktop 
    [Desktop Entry]
    Name=Pycharm
    GenericName=Pycharm
    Comment=Pycharm2019:The Python IDE
    Exec=sh /wjhdata/pycharm-community-2019.1.3/bin/pycharm.sh 
    Icon=/wjhdata/pycharm-community-2019.1.3/bin/pycharm.png
    Terminal=false
    Type=Application
    Categories=Utility;Application
    

    IntelliJ IDEA

    # cat /usr/share/applications/intellij.desktop
    [Desktop Entry]
    Name=IntelliJ IDEA
    Comment=IntelliJ IDEA
    Exec=sh /wjhdata/idea-IC-191.7479.19/bin/idea.sh
    Icon=/wjhdata/idea-IC-191.7479.19/bin/idea.png
    Terminal=false
    Type=Application
    Categories=Utility;Application
    
  • running vncserver on centos7

    install

    yum install tigervnc-server xorg-x11-fonts-Type1
    

    init

    使vncserver运行在5905端口.
    /etc/systemd/system/vncserver@:5.service

    [Unit]
    Description=Remote desktop service (VNC)
    After=syslog.target network.target
    
    [Service]
    Type=forking
    
    #相应用户user的uid.
    XDG_RUNTIME_DIR="/run/user/1002"
    # Clean any existing files in /tmp/.X11-unix environment
    ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
    ExecStart=/usr/sbin/runuser -l <user> -c "/usr/bin/vncserver %i"
    PIDFile=/home/<user>/.vnc/%H%i.pid
    ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
    
    [Install]
    WantedBy=multi-user.target
    

    sudo systemctl enable vncserver@:5.service
    sudo systemctl start vncserver@:5.service

    配置vncserver

    #vim .vnc/config
    
    # securitytypes=vncauth,tlsvnc
    # desktop=sandbox
    # geometry=2000x1200
    # localhost
    # alwaysshared
    #
    geometry=1920x1080
    
  • How to Reboot WSL

    # RUN CMD AS Administrator
    net stop LxssManager
    
    net start LxssManager
    

    How to Reboot WSL (Windows subsystem Linux) in Windows 10

  • empty-rgw

    remove osd

     ceph-deploy disk list node1 node2 node3 
      # ssh host
     systemctl stop ceph-osd@0
    
     ceph osd purge 0  --yes-i-really-mean-it
     ceph osd purge 1  --yes-i-really-mean-it
     ceph osd purge 2  --yes-i-really-mean-it
    
     ceph osd out  0
     ceph osd out  1
     ceph osd out  2
    
    

    (more…)

  • windows自带MD5

    打开命令提示符CMD

    Microsoft Windows [版本 10.0.17763.348]
    (c) 2018 Microsoft Corporation。保留所有权利。
    
    C:\Users\mulang>CertUtil -hashfile D:\\linux-read-workflow.png MD5
    MD5 的 D:\\linux-read-workflow.png 哈希:
    6abbfa0d8a623e39548693390d00e036
    CertUtil: -hashfile 命令成功完成。
    
    C:\Users\mulang>CertUtil -hashfile D:\\linux-read-workflow1.png MD5
    MD5 的 D:\\linux-read-workflow1.png 哈希:
    6abbfa0d8a623e39548693390d00e036
    CertUtil: -hashfile 命令成功完成。