分类 Ubuntu 下的文章

“Ubuntu是以桌面应用为主的Linux发行版,基于Debian。Ubuntu有三个正式版本,包括桌面版、服务器版及用于物联网设备和机器人的Core版。从17.10版本开始,Ubuntu以GNOME为默认桌面环境。 Ubuntu是著名的Linux发行版之一,也是目前最多用户的Linux版本。 ”

基于安全或者其他方面的原因,在linux不想让ps显示指定的进程名称,实现方法如下。

  1. 从github下载源码

    git clone https://github.com/gianlucaborello/libprocesshider.git

  2. 编译并生成目标动态库

    cd libprocesshider/ && make all

  3. 将编译生成的动态库复制到库目录

    cp libprocesshider.so /usr/local/lib/

  4. 配置并生效

    echo /usr/local/lib/libprocesshider.so >> /etc/ld.so.preload

export LD_PRELOAD=/usr/local/lib/libprocesshider.so

让PS隐藏进程的原理就是利用 LD_PRELOAD 来实现系统函数的劫持。
由于ps依赖readdir系统调用,实现中就采用重写readdir实现的方法来达到隐藏linux进程的目的。

  1. 进入保存wifi密码的文件目录

    cd /etc/NetworkManager/system-connections

  2. 查看所有连接过的wifi

    ls -lh

  3. 查看指定wifi-name的连接密码信息

    sudo cat [wifi-name].mconnection

[wifi-security]字段的psk即为密码

psk是Phase-shift keying的缩写,预共享密钥。

安装irrlicht-1.8.4.zip 的时候,提示下面的这个错误。

Irrlicht/CIrrDeviceLinux.h:33:10: fatal error: X11/extensions/xf86vmode.h: 没有那个文件或目录
   33 | #include <X11/extensions/xf86vmode.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

解决办法:

apt-file search xf86vmode.h

libxxf86vm-dev: /usr/include/X11/extensions/xf86vmode.h

安装缺少的包:

sudo apt install libxxf86vm-dev

从github下载vcpkg源码包

git clone https://github.com/Microsoft/vcpkg.git

进入源码目录

cd vcpkg

执行./bootstrap-vcpkg.sh

./bootstrap-vcpkg.sh

编译好后,进行安装

./vcpkg integrate install

vcpkg创建软链接

sudo ln -s /home/const/vcpkg/vcpkg /usr/bin

vcpkg用法

vcpkg list

输出:

ade:x64-linux                                      0.1.1f#1         ADE Framework is a graph construction, manipulat...
angle:x64-linux                                    2020-05-15#2     A conformant OpenGL ES implementation for Window...
assimp:x64-linux                                   5.0.1#4          The Open Asset import library
brotli:x64-linux                                   1.0.9#1          a generic-purpose lossless compression algorithm...
bzip2:x64-linux                                    1.0.8#1          bzip2 is a freely available, patent free, high-q...
curl:x64-linux                                     7.74.0#7         A library for transferring data with URLs
curl[non-http]:x64-linux                                            Enables protocols beyond HTTP/HTTPS/HTTP2
curl[openssl]:x64-linux                                             SSL support (OpenSSL)
curl[ssl]:x64-linux                                                 Default SSL backend

vcpkg search 用法

vcpkg search opencv4

输出:

vcpkg search opencv4
opencv4                  4.5.2            computer vision library
opencv4[ade]                              graph api
opencv4[contrib]                          opencv_contrib module
opencv4[cuda]                             CUDA support for opencv
opencv4[dnn]                              Enable dnn module
opencv4[eigen]                            Eigen support for opencv
opencv4[ffmpeg]                           ffmpeg support for opencv
opencv4[gdcm]                             GDCM support for opencv
opencv4[halide]                           Halide support for opencv
opencv4[ipp]                              Enable Intel Integrated Performance Primitives
opencv4[jasper]                           JPEG 2000 support for opencv
opencv4[jpeg]                             JPEG support for opencv
opencv4[lapack]                           LAPACK support for opencv
opencv4[nonfree]                          allow nonfree and unredistributable libraries
opencv4[openexr]                          OpenEXR support for opencv
opencv4[opengl]                           opengl support for opencv
opencv4[openmp]                           Enable openmp support for opencv
opencv4[ovis]                             opencv_ovis module
opencv4[png]                              PNG support for opencv
opencv4[qt]                               Qt GUI support for opencv
opencv4[quirc]                            Enable QR code module
opencv4[sfm]                              opencv_sfm module
opencv4[tbb]                              Enable Intel Threading Building Blocks
opencv4[tiff]                             TIFF support for opencv
opencv4[vtk]                              vtk support for opencv
opencv4[webp]                             WebP support for opencv
opencv4[world]                            Compile to a single package support for opencv