ngxtop 报错

[root@**** ~]# ngxtop
Traceback (most recent call last):
  File "/usr/local/bin/ngxtop", line 7, in 
    from ngxtop.ngxtop import main
  File "/usr/local/lib/python3.6/site-packages/ngxtop/ngxtop.py", line 77, in 
    from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
ModuleNotFoundError: No module named 'config_parser'

解决方法:
卸载后,重新从github 下载 然后手动安装

[root@**** ~]# pip3 uninstall ngxtop 
[root@**** ~]# git clone https://github.com/lebinh/ngxtop.git

进入目录进行手动安装安装

[root@**** ~]# cd ngxtop/
[root@**** ngxtop]# pip3 install .

用AD组策略部署Bginfo,桌面显示用户信息

工具:Bginfo,Windows AD 组策略

 

  1. 先配置好Bginfo

 

对于IP 需要自定义,否则会出现不在使用的网卡的地址为空,显示为<none>。

为了过滤不适用的IPv6,可以使用下面的VBS脚本进行自定义过滤。

strComputer = “.”

On Error Resume Next

Set objWMIService = GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set IPSettings = objWMIService.ExecQuery (“SELECT * FROM Win32_NetworkAdapterConfiguration where IPEnabled = ‘True'”)

 

For Each objIPv4 in IPSettings

For i=LBound(objIPv4.IPAddress) to UBound(objIPv4.IPAddress)

If InStr(objIPv4.IPAddress(i),”:”) = 0 Then Echo objIPv4.IPAddress(i)

NEXT

NEXT

  1. 通过组策略设置开机脚本:

 

  1. 脚本内容设置:

    @echo off

    %logonserver%\netlogon\info\Bginfo64.exe %logonserver%\netlogon\info\jxinfo.bgi /timer:0 /nolicprompt

     

Windows10系统下的WSL+Ubuntu图形桌面配置

1. Windows下安装VcXsrv

 

2. WSL Ubuntu下安装xfce desktop
sudo apt-get install xfce4-terminal
sudo apt-get install xfce4

3. ~./bashrc末尾添加Display信息

export DISPLAY=:0.0
export LIBGL_ALWAYS_INDIRECT=1

执行下面命令,使修改生效配置
source ~/.bashrc

4. Windows上打开XLaunch
选择“Multiple Window”,Display number填写0。其他设置为默认

 

5. 在WSL Ubuntu中输入startxfce4可以启动Ubuntu桌面。