반응형

Updates  : 2024. 11. 08.

문제 상황:

  • "표준 TCP/IP 포트에 대한 마법사 페이지를 로드할 수 없습니다"라는 오류 메시지가 나타남
  • 프린터 속성에서 포트 정보가 보이지 않음
  • 레지스트리 편집기에서 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors 경로에 Standard TCP/IP Port 항목이 없음

이러한 문제는 레지스트리 값의 손상으로 인해 발생할 수 있습니다. 이를 해결하기 위해 다음 단계를 수행하십시오:

  1. 정상적인 레지스트리 값 백업:
    • 문제가 없는 다른 Windows 7 컴퓨터에서 레지스트리 값을 백업합니다.
    • [윈도우 로고 키 + R]을 눌러 regedit를 입력하고 확인을 클릭하여 레지스트리 편집기를 엽니다.
    • 다음 경로로 이동합니다:
    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
    • Monitors 항목을 마우스 오른쪽 버튼으로 클릭하고 "내보내기"를 선택합니다.
    • 파일 이름을 Port.reg로 지정하고 바탕화면에 저장합니다.
  2. 백업한 레지스트리 값 병합:
    • 문제가 발생하는 PC로 Port.reg 파일을 복사합니다.
    • Port.reg 파일을 더블 클릭하여 레지스트리에 병합합니다.
    • PC를 재시작합니다.

이 과정을 완료한 후 문제가 해결되었는지 확인하십시오.

Reference:

반응형
반응형

# plugin tags

for Plug 'preservim/tagbar' " Tagbar about the code structure

sudo apt install exuberant-ctags   

 

for Plug 'neoclide/coc.nvim' " Autocompletion

in coc.nvim,

npm install

or

yarn install

 

coc-clangd for C/C++/Objective-C, use clangd
coc-clang-format-style-options coc.nvim extension, helps you write .clang-format more easily.
coc-cmake for cmake code completion
coc-copilot for GitHub Copilot completion

 

https://builtin.com/software-engineering-perspectives/neovim-configuration

https://github.com/NeuralNine/config-files/blob/master/init.vim

 

 

https://www.youtube.com/watch?v=stqUbv-5u2s&t=159s

https://github.com/nvim-lua/kickstart.nvim

반응형
반응형

Updates: November 6, 2024
Contents: Steps to install Node.js on Linux (Ubuntu)

 

Install Node.js

To ensure you have the latest stable version of Node.js, follow these steps:

  1. Update package lists:
    sudo apt update
  2. Install npm (Node Package Manager):
    sudo apt install npm
  3. Install 'n', the Node.js version manager:
    sudo npm install -g n
  4. Install the latest stable version of Node.js:
    sudo n lts
  5. Verify the installation:This command should display the version number of Node.js, confirming the installation.
    node -v

References

반응형
반응형

Updates: November 6, 2024
Contents: Steps to install GitHub Copilot in NVim or Vim (Linux, Ubuntu)

Prerequisites

To use GitHub Copilot in Neovim / Vim, you must have:

  • Neovim version 0.6 or above or Vim version 9.0.0185 or above
  • Node.js version 18 or above

For more information, see the Vim/Neovim documentation and the Node.js website.

Download GitHub Copilot Plugin

  • For NVim:
    git clone https://github.com/github/copilot.vim \
    ~/.config/nvim/pack/github/start/copilot.vim
  • For Vim:
    git clone https://github.com/github/copilot.vim \
    ~/.vim/pack/github/start/copilot.vim
 

Install GitHub Copilot

  1. Open NVim or Vim.
  2. Run the command:
    :Copilot setup
    :Copilot enable

    This command will download and install all the plugins listed in your configuration file.

GitHub Authentication

If GitHub authentication is required, follow these steps:

  1. Update package lists and install GitHub CLI:
    sudo apt update
    sudo apt install gh
  2. For Windows users using WSL, install wslu:
    sudo apt install wslu
  3. Authenticate with GitHub:
    BROWSER=/mnt/c/Windows/explorer.exe gh auth login
     This command sets the browser to Windows Explorer and initiates the GitHub authentication process.

References

 

사용자 환경에 GitHub Copilot 확장 설치 - GitHub Docs

선호하는 코딩 환경에서 Copilot을(를) 사용하려면 GitHub Copilot 확장을 설치해야 합니다.

docs.github.com

 

반응형
반응형

Updates: November 6, 2024
Contents: Steps to install vim-plug on Linux including Ubuntu

Set Up Environment for NVim Installation

Before installing plugins, ensure that NVim or Vim is installed on your system.

Install vim-plug

vim-plug is a minimalist Vim plugin manager that supports parallel installation of plugins.

  • For NVim:
    sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
           https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  • For Vim:
    curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
        https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Download Result

 

Configure Plugins

After installing vim-plug, configure your plugins by editing the appropriate configuration file.

  • For NVim:
    nvim ~/.config/nvim/init.vim
  • For Vim:
    vim ~/.vimrc

In the configuration file, add the following lines to initialize vim-plug and specify your desired plugins:

" in init.nvim or .vimrc
call plug#begin('~/.vim/plugged')

" List your plugins here
Plug 'tpope/vim-sensible'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }

call plug#end()
 

Install Plugins

After saving the configuration file, install the specified plugins:

  1. Open NVim or Vim.
  2. Run the command:
    :PlugInstall

    This command will download and install all the plugins listed in your configuration file.

Managing Plugins with vim-plug

After installing vim-plug, you can manage your plugins using the following commands:

  • :PlugInstall to install the plugins
  • :PlugUpdate to install or update the plugins
  • :PlugDiff to review the changes from the last update
  • :PlugClean to remove plugins no longer in the list

In WSL or WSL2 on Windows, the plugged folder is located at ~/.local/share/nvim/plugged

 

References

 

GitHub - junegunn/vim-plug: :hibiscus: Minimalist Vim Plugin Manager

:hibiscus: Minimalist Vim Plugin Manager. Contribute to junegunn/vim-plug development by creating an account on GitHub.

github.com

 

반응형
반응형

Updates: November 5, 2024

Contents: Steps to install the latest version of NVim from source (v0.10.2)

 

Set Up Environment for NVim Installation

Update your package list and install necessary packages:

sudo apt update
sudo apt install curl python-dev python-pip python3-dev python3-pip -y

 

Install NVim:

mkdir -p /opt/nvim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage

 

Optional: Exposing nvim globally

# Optional: exposing nvim globally
mkdir -p /opt/nvim
mv nvim.appimage /opt/nvim/nvim

 

Add the following line to your shell config (~/.bashrc, ~/.zshrc, ...):

# And the following line to your shell config (~/.bashrc, ~/.zshrc, ...):
export PATH="$PATH:/opt/nvim/"

 

If the above method doesn't work (as it didn't in my case), try the following:

./nvim.appimage --appimage-extract
./squashfs-root/AppRun --version

 

Optional: Exposing nvim globally

# Optional: exposing nvim globally.
sudo mv squashfs-root /
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
nvim --version

 

 

References

 

GitHub - nvim-lua/kickstart.nvim: A launch point for your personal nvim configuration

A launch point for your personal nvim configuration - nvim-lua/kickstart.nvim

github.com

 

반응형
반응형

Updates: November 5, 2024
Contents: Steps to install the latest version of Vim from source (version 9.1)

This guide includes additional configurations considering future plugin setups. 

It assumes that Vim is already installed on your system.

 

Remove Existing Vim Installation
Before installing the latest version, remove any existing Vim installations:

sudo apt-get remove --purge vim vim-runtime vim-tiny vim-gtk vim-gtk3 vim-gnome vim-nox vim-common

 

Set Up Environment for Vim Installation

Update your package list and install necessary packages:

sudo apt update
sudo apt install git make clang libtool-bin libxt-dev libpython3-dev valgrind -y

 

Configure Vim Dependencies

Enable source repositories and install build dependencies:

(from https://mebadong.tistory.com/92)

sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep vim

 

Clone Vim Source Code

Download the Vim source code from the official repository:

git clone https://github.com/vim/vim.git
cd vim/src

 

Clean Previous Build Configurations

If you've previously built Vim, clean the build environment:

sudo make distclean

 

Configure Vim Build Options

Set up the build configuration with Python3 support:

./configure --with-features=huge \
            --enable-multibyte \
            --enable-python3interp=yes \
            --with-python3-config-dir=$(python3-config --configdir) \
            --prefix=/usr/local

 

Compile and Install Vim

Build and install Vim:

sudo make
sudo make install

 

Create Symbolic Link for 'vi' Command

To allow the 'vi' command to invoke Vim:

sudo ln -s /usr/local/bin/vim /usr/local/bin/vi

 

References

반응형
반응형

Updates: 2024. 11. 05

Contents: 최신 버전 Vim 설치 방법 && source에서 설치 (version 9.1)

 

본 글에서는 추후 설정할 Plugin 등을 고려한 몇 가지를 추가한 설정을 포함하고 있습니다.

또한, 일전에 vim이 설치되었을 것을 가정하고 작성하였습니다.

 

기존의 vim 설치 제거

sudo apt-get remove --purge vim vim-runtime vim-tiny vim-gtk vim-gtk3 vim-gnome vim-nox vim-common

 

vim 설치 환경 세팅

sudo apt update
sudo apt install git make clang libtool-bin libxt-dev libpython3-dev valgrind -y

 

vim 의존성 환경 설정 (from https://mebadong.tistory.com/92)

sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep vim

 

vim source 복사

git clone https://github.com/vim/vim.git
cd vim/src


vim 이전 설치 대비 설치 환경 초기화

sudo make distclean

 

vim 설치 config 설정 (python 환경 포함)

./configure --with-features=huge \
            --enable-multibyte \
            --enable-python3interp=yes \
            --with-python3-config-dir=$(python3-config --configdir) \
            --prefix=/usr/local


vim 설치

sudo make
sudo make install

 

필요한 경우, (vim 과 vi 모두 동작하게, 두 개의 명령어 연동)

sudo ln -s /usr/local/bin/vim /usr/local/bin/vi

 

References

반응형
반응형

Updates: 2024.09.29 

Content : "remote: Support for password authentication was removed on" Solution

 

발생 상황 유추 : Github 로그인 (Password 대신 필요한 경우)

1. GitHub에서 개인 액세스 토큰(Personal Access Token, PAT) 생성:
2. GitHub 계정 설정으로 이동
3. "Developer settings" 클릭
4. "Personal access tokens" 선택 후 "Generate new token" 클릭
5. 토큰에 적절한 권한 부여 (최소한 'repo' 권한 필요)

6. Token generate를 여러 번하지 않기 위해서는 안전한 곳에 저장 필요

7. CLI에 Token 복사 붙여넣기

 

with https://www.perplexity.ai/

 

Perplexity

Perplexity is a free AI-powered answer engine that provides accurate, trusted, and real-time answers to any question.

www.perplexity.ai

 

외부 공유하실 경우, 출처 반드시 밝혀주시기 바랍니다!

도움이 되셨다면 공감 꾸욱 부탁드립니다👍

반응형
반응형

Content: solution of riscv64-unknown-elf-gdb path error
Updates: 2024.09.09
 

문제 상황 Problem Case

❯ /usr/local/bin/riscv64-unknown-elf-gdb kernel/kernel
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=riscv64-unknown-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kernel/kernel...
warning: File "/{xv6-riscv PATH}/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /{xv6-riscv PATH}/.gdbinit
line to your configuration file "/{HOME_PATH}/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/{HOME_PATH}/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
--Type <RET> for more, q to quit, c to continue without paging--
        info "(gdb)Auto-loading safe path"

 

Solution

  1. $ make qemu-gdb $ /usr/local/bin/riscv64-unknown-elf-gdb kernel/kernel 모두 종료
  2. $ vi /{HOME_PATH}/.gdbinit
  3. add-auto-load-safe-path /{xv6-riscv PATH}/.gdbinit > add in .gdbinit file

위 게시물은 Markdown으로 작성하였습니다
도움이 되셨다면 공감 꾸욱 눌러주세요👍

반응형

+ Recent posts