2023年5月15日 星期一

Ubuntu 20.04 Filemanager actions for right click open VSCode

 

https://askubuntu.com/questions/1049111/add-open-with-vscode-to-context-menu-in-ubuntu

sudo apt install filemanager-actions

2023年5月13日 星期六

CPP Dev on Windows on 2023

https://github.com/HO-COOH/CPPDevOnWindows
https://gitlab.com/etoricky/windows-10-clang-with-catch2

Operate on 2023-05-13

1. Install Clang

https://www.msys2.org/
MSYS2 MSYS
pacman -Syu  # Sync download update
pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-clang-tools-extra
pacman -S mingw-w64-x86_64-make
pacman -S mingw-w64-x86_64-gdb
pacman -S mingw-w64-x86_64-ninja
System Environment > Path > C:\msys64\mingw64\bin
pacman -S mingw-w64-x86_64-libc++

C:\Users\user>clang++ --version
clang version 16.0.2
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/mingw64/bin

C:\Users\user>gcc --version
gcc (Rev5, Built by MSYS2 project) 13.1.0
Copyright (C) 2023 Free Software Foundation, Inc.

C:\Users\user>ninja --version
1.11.1

2. Install CMake

cmake-3.26.3-windows-x86_64.msi
choose Add CMake to the system PATH for all users

C:\Users\user>cmake --version
cmake version 3.26.3

3. CLion

CLion-2023.1.2.exe
File > Settings > Build, Execution, Deployment > Toolchains
NameL MinGW
Toolset: C:\msys64\mingw64
CMakeL Bundled v3.25.2
Build Tool: C:\msys64\mingw64\bin\ninja.exe
C Compiler: C:\msys64\mingw64\bin\clang.exe
C++ Compiler: C:\msys64\mingw64\bin\clang++.exe
Debugger: MinGW-w64 GDB

4. VS Code

VSCodeUserSetup-x64-1.78.2.exe

Extension:
Microsoft C/C++ as Microsoft Language Server
dont install clangd
CMake, for cmake scirpts syntax highlight
CMake Tools, for actually running CMake
Settings > Cmake:Generator to MinGW Makefiles
Settings > Palette > CMake: Quick Start > Clang > apple > Executable
now can debug, syntax highlighting, auto complete

C/C++ Extension Pack v1.3.0

C:\Users\user>code --version
1.78.2

5. Git

Git-2.40.1-64-bit.exe

C:\Users\user>git --version
git version 2.40.1.windows.1


Done, can build

but  missing ctest, google test, clang-format, clang-tidy, llvm code coverage






End

2023年5月2日 星期二

Keep a process running after exiting SSH session

 

https://www.halfbit.de/howtos/keep-ssh-process/


ctrl+z
bg
disown
exit
ssh
ps- -ef



Keep a process running after exiting SSH session

  1. In SSH, launch the process you wish to keep in background, for example
cp -Rv /mnt/red/*.* /mnt/black
  1. Suspend the process by pressing Ctrl-Z.
  2. Resume suspended process in background by typing bg.
  3. Detach the process from SSH session by typing disown.
  4. Exit the SSH by typing exit.

The process will continue running in background.

🍭 Typing fg at step (3) will bring the process back to foreground.

2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...