블로그 이미지
훅크선장

카테고리

분류 전체보기 (362)
사진이야기 (23)
펭귄컴퓨팅 (121)
컴퓨터보안 (84)
절름발이 프로그래머 (59)
하드웨어개조 (23)
멀알려줄까 (35)
홈베이킹&홈쿠킹 (2)
잡다한것들 (15)
Total
Today
Yesterday

달력

« » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

공지사항

태그목록

최근에 올라온 글

Go 언어 연습을 위해서, CentOS 7 Linux 환경에서 Go 언어 환경을 설치해 본 것입니다.

 

0. GoLang 설치하기 

# cd

# wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz

# tar -zxvf go1.14.2.linux-amd64.tar.gz 

# mv go/ /usr/local/

 

GoLang 사용을 위한 환경변수 설정 

# cd

# vi .bashrc

다음을 추가한다.

export PATH=/usr/local/go/bin:$PATH

 

Go 언어 테스트해보기

# vi helloworld.go

예제 파일 내용을 다음과 같이 만든다.

package main

import "fmt"

func main() {
fmt.Println("Hello World")
}

 

# go build helloworld.go

# ./helloworld

Hello World

 

1. 기존 vim 패치키 제거 

# yum remove vim-common vim-enhanced vim-filesystem vim-minimal

 

2. 필요한 라이브러리 등 설치 

# yum install gcc make ncurses ncurses-devel cmake

# yum install ctags git tcl-devel  ruby ruby-devel  lua lua-devel  luajit luajit-devel  python python-devel  perl perl-devel  perl-ExtUtils-ParseXS  perl-ExtUtils-XSpp  perl-ExtUtils-CBuilder  perl-ExtUtils-Embed

 

3. vim 8 다운로드 및 빌드와 설치 

# cd

# git clone https://github.com/vim/vim.git

# cd vim

# ./configure --with-features=huge --enable-multibyte --enable-rubyinterp  --enable-python3interp --enable-perlinterp --enable-luainterp

# make

# make install

 

설치가 완료되면, 버전 확인하기

# vim --version

 

4. Pathogon은 vim 플러그인과 런타임 파일을 쉽게 관리 할 수 있도록 도와주는 vim 환경관리 툴이다. 먼저 pathogon을 설치한다.
~/.vim/autoload 디렉토리 밑에 vim-pathogon을 클론(clone)한다.

# mkdir -p ~/.vim/autoload

# cd ~/.vim/autoload
# git clone https://github.com/tpope/vim-pathogen.git
pathogen.vim을 ~/.vim/autoload 디렉토리에 복사한다.

# cp vim-pathogen/autoload/pathogen.vim ./


아래와 같이 vim-go 스크립트를 다운로드 한다.

# mkdir -p ~/.vim/bundle

# cd ~/.vim/bundle
# git clone https://github.com/fatih/vim-go.git

 

홈 디렉토리에 .vimrc 파일을 생성하고, 다음과 같이 작성한다.

# vi ~/.vimrc 
execute pathogen#infect()
syntax on
filetype plugin indent on

vim을 실행하고 :GoInstallBinaries명령을 실행하면, vim-go 관련된 플러그인들이 자동으로 설치된다.

 

4. YouCompleteMe(이하 YCM)은 VIM을 위한 자동코드완성 엔진이다. YCM은 C, C++, Object-C, Object-C++, CUDA, Python2, Pyton3, C#, Go 등 다양한 언어에 대한 자동완성기능을 제공한다.
YCM을 클론하고 컴파일 한다. Go 자동완성을 지원하고 싶다면 --go-completer 를 컴파일 옵션으로 설정해야 한다.

 

# cd ~/.vim/bundle
# git clone https://github.com/Valloric/YouCompleteMe.git
# cd ~/.vim/bundle/YouCompleteMe
# git submodule update --init --recursive
# ./install.sh --go-completer 

 

5.Tagbar
Tagbar 플러그인을 이용해서 현재 파일의 태그를 탐색해서, 코드의 대략적인 구조를 빠르게 살펴볼수 있다.

#cd ~/.vim/bundle
# git clone https://github.com/majutsushi/tagbar.git

 

6. NerdTree
NERDTree는 Vim용 파일 탐색기다. 이 플러그인은 디렉토리의 구조를 계층적으로 보여줘서, 파일을 쉽게 탐색하고 편집할 수 있도록 도와준다.

# cd ~/.vim/bundle
# git clone https://github.com/scrooloose/nerdtree.git

 

 

참조 사이트 : 

https://golang.org/dl/

 

Downloads - The Go Programming Language

Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releases

golang.org

https://www.joinc.co.kr/w/man/12/golang/Start

 

golang 시작하기 - 개발환경 만들기

 

www.joinc.co.kr

http://www.programmersought.com/article/6244238683/

 

Centos7 install vim8.0 + YouCompleteMe + support python 3.6 - Programmer Sought

Install python3.6:https://blog.csdn.net/wanormi/article/details/82900782 Upgrade vim and gcc Upgrade gcc sudo yum install centos-release-scl -y sudo yum install devtoolset-3-toolchain -y sudo yum install gcc-c++ sudo scl enable devtoolset-3 bash Upgrade vi

www.programmersought.com

https://phoenixnap.com/kb/how-to-install-vim-centos-7

 

How to Install Vim 8.2 on CentOS 7? (Latest Version)

You don't need to wait for the latest version of Vim to appear in official repositories. In tutorial learn how to install Vim 8.2 on CentOS 7. Get Started!

phoenixnap.com

 

Posted by 훅크선장
, |

참조 : https://www.ostechnix.com/bat-a-cat-clone-with-syntax-highlighting-and-git-integration/

 

Bat - A Cat Clone With Syntax Highlighting And Git Integration

Bat command is a clone to the cat command, with some additional cool features such as syntax highlighting, git integration and automatic paging etc.

www.ostechnix.com

리눅스에서의 cat 명령어를 대체하는  rust 기반의 bat 이라는 명령어를 설치하는 과정입니다.

 

1. 먼저 rust 환경을 설치합니다.

# curl https://sh.rustup.rs -sSf |sh

# source $HOME/.cargo/env

 

2. 필요 패키지 설치

# yum install clang

 

3. bat 빌드와 설치 

# cargo install bat

 

-----------------------------------------------------------------------------------------

실제 진행상황

[root@server ~]# curl https://sh.rustup.rs -sSf |sh

info: downloading installer

 

Welcome to Rust!

 

This will download and install the official compiler for the Rust

programming language, and its package manager, Cargo.

 

It will add the cargo, rustc, rustup and other commands to

Cargo's bin directory, located at:

 

  /root/.cargo/bin

 

This can be modified with the CARGO_HOME environment variable.

 

Rustup metadata and toolchains will be installed into the Rustup

home directory, located at:

 

  /root/.rustup

 

This can be modified with the RUSTUP_HOME environment variable.

 

This path will then be added to your PATH environment variable by

modifying the profile files located at:

 

  /root/.profile

/root/.bash_profile

 

You can uninstall at any time with rustup self uninstall and

these changes will be reverted.

 

Current installation options:

 

 

   default host triple: x86_64-unknown-linux-gnu

     default toolchain: stable

               profile: default

  modify PATH variable: yes

 

1) Proceed with installation (default)

2) Customize installation

3) Cancel installation

>1

 

info: profile set to 'default'

info: default host triple is x86_64-unknown-linux-gnu

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

info: latest update on 2020-03-12, rust version 1.42.0 (b8cedc004 2020-03-09)

info: downloading component 'cargo'

info: downloading component 'clippy'

info: downloading component 'rust-docs'

 12.0 MiB /  12.0 MiB (100 %)  11.1 MiB/s in  1s ETA:  0s

info: downloading component 'rust-std'

 17.1 MiB /  17.1 MiB (100 %)  10.9 MiB/s in  1s ETA:  0s

info: downloading component 'rustc'

 58.6 MiB /  58.6 MiB (100 %)  11.1 MiB/s in  5s ETA:  0s

info: downloading component 'rustfmt'

info: installing component 'cargo'

info: installing component 'clippy'

info: installing component 'rust-docs'

 12.0 MiB /  12.0 MiB (100 %)   7.4 MiB/s in  1s ETA:  0s

info: installing component 'rust-std'

 17.1 MiB /  17.1 MiB (100 %)  11.8 MiB/s in  1s ETA:  0s

info: installing component 'rustc'

 58.6 MiB /  58.6 MiB (100 %)  11.5 MiB/s in  5s ETA:  0s

info: installing component 'rustfmt'

info: default toolchain set to 'stable'

 

  stable installed - rustc 1.42.0 (b8cedc004 2020-03-09)

 

 

Rust is installed now. Great!

 

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH

environment variable. Next time you log in this will be done

automatically.

 

To configure your current shell run source $HOME/.cargo/env

[root@server ~]# source $HOME/.cargo/env

[root@server ~]# yum install

clang

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.kakao.com

 * extras: mirror.kakao.com

 * updates: mirror.kakao.com

Resolving Dependencies

--> Running transaction check

---> Package clang.x86_64 0:3.4.2-8.el7 will be installed

--> Processing Dependency: llvm(x86-64) = 3.4.2-8.el7 for package: clang-3.4.2-8.el7.x86_64

--> Processing Dependency: libLLVM-3.4.so()(64bit) for package: clang-3.4.2-8.el7.x86_64

--> Running transaction check

---> Package llvm.x86_64 0:3.4.2-8.el7 will be installed

---> Package llvm-libs.x86_64 0:3.4.2-8.el7 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=================================================================================================================================================

 Package                            Arch                            Version                                Repository                       Size

=================================================================================================================================================

Installing:

 clang                              x86_64                          3.4.2-8.el7                            extras                           19 M

Installing for dependencies:

 llvm                               x86_64                          3.4.2-8.el7                            extras                          1.3 M

 llvm-libs                          x86_64                          3.4.2-8.el7                            extras                          7.6 M

 

Transaction Summary

=================================================================================================================================================

Install  1 Package (+2 Dependent packages)

 

Total download size: 28 M

Installed size: 93 M

Is this ok [y/d/N]: y

Downloading packages:

(1/3): llvm-libs-3.4.2-8.el7.x86_64.rpm                                                                                   | 7.6 MB  00:00:01     

(2/3): llvm-3.4.2-8.el7.x86_64.rpm                                                                                        | 1.3 MB  00:00:01     

(3/3): clang-3.4.2-8.el7.x86_64.rpm                                                                                       |  19 MB  00:00:03     

-------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                            8.6 MB/s |  28 MB  00:00:03     

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : llvm-libs-3.4.2-8.el7.x86_64                                                                                                  1/3 

  Installing : llvm-3.4.2-8.el7.x86_64                                                                                                       2/3 

  Installing : clang-3.4.2-8.el7.x86_64                                                                                                      3/3 

  Verifying  : clang-3.4.2-8.el7.x86_64                                                                                                      1/3 

  Verifying  : llvm-libs-3.4.2-8.el7.x86_64                                                                                                  2/3 

  Verifying  : llvm-3.4.2-8.el7.x86_64                                                                                                       3/3 

 

Installed:

  clang.x86_64 0:3.4.2-8.el7                                                                                                                     

 

Dependency Installed:

  llvm.x86_64 0:3.4.2-8.el7                                            llvm-libs.x86_64 0:3.4.2-8.el7                                           

 

Complete!

[root@server ~]# cargo install bat

    Updating crates.io index

  Installing bat v0.13.0

   Compiling libc v0.2.69

   Compiling memchr v2.3.3

   Compiling proc-macro2 v1.0.10

   Compiling unicode-xid v0.2.0

   Compiling cfg-if v0.1.10

   Compiling syn v1.0.17

   Compiling proc-macro2 v0.4.30

   Compiling lazy_static v1.4.0

   Compiling unicode-xid v0.1.0

   Compiling autocfg v1.0.0

   Compiling serde v1.0.106

   Compiling regex-syntax v0.6.17

   Compiling byteorder v1.3.4

   Compiling bitflags v1.2.1

   Compiling pkg-config v0.3.17

   Compiling log v0.4.8

   Compiling unicode-width v0.1.7

   Compiling version_check v0.1.5

   Compiling glob v0.3.0

   Compiling ucd-trie v0.1.3

   Compiling matches v0.1.8

   Compiling rustc-demangle v0.1.16

   Compiling vec_map v0.8.1

   Compiling ansi_term v0.11.0

   Compiling quick-error v1.2.3

   Compiling strsim v0.8.0

   Compiling smallvec v1.3.0

   Compiling maplit v1.0.2

   Compiling either v1.5.3

   Compiling bindgen v0.50.1

   Compiling syn v0.15.44

   Compiling liquid-error v0.19.0

   Compiling termcolor v1.1.0

   Compiling shlex v0.1.1

   Compiling proc-macro-hack v0.5.15

   Compiling encoding_index_tests v0.1.4

   Compiling peeking_take_while v0.1.2

   Compiling anymap v0.12.1

   Compiling doc-comment v0.3.3

   Compiling crc32fast v1.2.0

   Compiling percent-encoding v1.0.1

   Compiling ryu v1.0.3

   Compiling version_check v0.9.1

   Compiling adler32 v1.0.4

   Compiling deunicode v1.1.0

   Compiling unicode-segmentation v1.6.0

   Compiling safemem v0.3.3

   Compiling itoa v0.4.5

   Compiling percent-encoding v2.1.0

   Compiling xml-rs v0.8.2

   Compiling same-file v1.0.6

   Compiling linked-hash-map v0.5.2

   Compiling fnv v1.0.6

   Compiling lazycell v1.2.1

   Compiling ansi_term v0.12.1

   Compiling shell-words v0.1.0

   Compiling wild v2.0.2

   Compiling unicode-bidi v0.3.4

   Compiling encoding-index-singlebyte v1.20141219.5

   Compiling encoding-index-japanese v1.20141219.5

   Compiling encoding-index-simpchinese v1.20141219.5

   Compiling encoding-index-tradchinese v1.20141219.5

   Compiling encoding-index-korean v1.20141219.5

   Compiling thread_local v1.0.1

   Compiling humantime v1.3.0

   Compiling line-wrap v0.1.1

   Compiling miniz_oxide v0.3.6

   Compiling pest v2.1.3

   Compiling walkdir v2.3.1

   Compiling itertools v0.8.2

   Compiling unicode-normalization v0.1.12

   Compiling yaml-rust v0.4.3

   Compiling encoding v0.2.33

   Compiling aho-corasick v0.7.10

   Compiling bstr v0.2.12

   Compiling content_inspector v0.2.4

   Compiling num-traits v0.2.11

   Compiling num-integer v0.1.42

   Compiling quote v0.6.13

   Compiling nom v4.2.3

   Compiling error-chain v0.12.2

   Compiling quote v1.0.3

   Compiling idna v0.1.5

   Compiling idna v0.2.0

   Compiling clang-sys v0.28.1

   Compiling fxhash v0.2.1

   Compiling base64 v0.10.1

   Compiling pest_meta v2.1.3

   Compiling jobserver v0.1.21

   Compiling atty v0.2.14

   Compiling term_size v0.3.1

   Compiling time v0.1.42

   Compiling flate2 v1.0.14

   Compiling termios v0.3.2

   Compiling clicolors-control v1.0.1

   Compiling dirs-sys v0.3.4

   Compiling textwrap v0.11.0

   Compiling cc v1.0.50

   Compiling url v1.7.2

   Compiling dirs v2.0.2

   Compiling url v2.1.1

   Compiling clap v2.33.0

   Compiling cexpr v0.3.6

   Compiling regex v1.3.6

   Compiling chrono v0.4.11

   Compiling proc-quote-impl v0.2.2

   Compiling pest_generator v2.1.3

   Compiling env_logger v0.6.2

   Compiling console v0.10.0

   Compiling globset v0.4.5

   Compiling proc-quote v0.2.2

   Compiling backtrace-sys v0.1.35

   Compiling libloading v0.5.2

   Compiling libz-sys v1.0.25

   Compiling libgit2-sys v0.12.3+1.0.0

   Compiling ansi_colours v1.0.1

   Compiling serde_derive v1.0.106

   Compiling backtrace v0.3.46

   Compiling pest_derive v2.1.0

   Compiling failure v0.1.7

   Compiling which v2.0.1

   Compiling git2 v0.13.2

   Compiling onig_sys v69.2.0

   Compiling onig v5.0.0

   Compiling liquid-value v0.19.1

   Compiling serde_json v1.0.51

   Compiling plist v0.4.2

   Compiling bincode v1.2.1

   Compiling liquid-interpreter v0.19.0

   Compiling liquid-compiler v0.19.0

   Compiling syntect v3.3.0

   Compiling liquid-derive v0.19.0

   Compiling liquid v0.19.0

   Compiling bat v0.13.0

    Finished release [optimized] target(s) in 1m 43s

  Installing /root/.cargo/bin/bat

   Installed package `bat v0.13.0` (executable `bat`)

[root@server ~]#

 

Posted by 훅크선장
, |

https://www.2daygeek.com/exa-a-modern-replacement-for-ls-command-linux/

 

Exa – A modern and colorful replacement for list(ls) command written in Rust

ls(list) is one of the very basic & essential Linux command for administrator that can be used in most of the actions (in other hands, Linux administrator can’t live without ls command). …

www.2daygeek.com

 

Rust로 쓰여진 ls 명령어의 대체, 새롭고 색상이 다채로운 exa 설치하기 (CentOS 7에서 성공)

 

1. 먼저 사전 필요한 프로그램 환경 설치

# curl https://sh.rustup.rs -sSf |sh

# source $HOME/.cargo/env

 

2. 필요 패키지 설치

# yum install libgit2 cmake git http-parser

 

3. exa 소스코드 다운로드 및 빌드 

# git clone https://github.com/ogham/exa.git && cd exa

# make install

 

-----------------------------------------------------------------------------------------

실제 진행상황

[root@server ~]# curl https://sh.rustup.rs -sSf |sh

info: downloading installer

 

Welcome to Rust!

 

This will download and install the official compiler for the Rust

programming language, and its package manager, Cargo.

 

It will add the cargo, rustc, rustup and other commands to

Cargo's bin directory, located at:

 

  /root/.cargo/bin

 

This can be modified with the CARGO_HOME environment variable.

 

Rustup metadata and toolchains will be installed into the Rustup

home directory, located at:

 

  /root/.rustup

 

This can be modified with the RUSTUP_HOME environment variable.

 

This path will then be added to your PATH environment variable by

modifying the profile files located at:

 

  /root/.profile

/root/.bash_profile

 

You can uninstall at any time with rustup self uninstall and

these changes will be reverted.

 

Current installation options:

 

 

   default host triple: x86_64-unknown-linux-gnu

     default toolchain: stable

               profile: default

  modify PATH variable: yes

 

1) Proceed with installation (default)

2) Customize installation

3) Cancel installation

>1

 

info: profile set to 'default'

info: default host triple is x86_64-unknown-linux-gnu

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

info: latest update on 2020-03-12, rust version 1.42.0 (b8cedc004 2020-03-09)

info: downloading component 'cargo'

info: downloading component 'clippy'

info: downloading component 'rust-docs'

 12.0 MiB /  12.0 MiB (100 %)  11.1 MiB/s in  1s ETA:  0s

info: downloading component 'rust-std'

 17.1 MiB /  17.1 MiB (100 %)  10.9 MiB/s in  1s ETA:  0s

info: downloading component 'rustc'

 58.6 MiB /  58.6 MiB (100 %)  11.1 MiB/s in  5s ETA:  0s

info: downloading component 'rustfmt'

info: installing component 'cargo'

info: installing component 'clippy'

info: installing component 'rust-docs'

 12.0 MiB /  12.0 MiB (100 %)   7.4 MiB/s in  1s ETA:  0s

info: installing component 'rust-std'

 17.1 MiB /  17.1 MiB (100 %)  11.8 MiB/s in  1s ETA:  0s

info: installing component 'rustc'

 58.6 MiB /  58.6 MiB (100 %)  11.5 MiB/s in  5s ETA:  0s

info: installing component 'rustfmt'

info: default toolchain set to 'stable'

 

  stable installed - rustc 1.42.0 (b8cedc004 2020-03-09)

 

 

Rust is installed now. Great!

 

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH

environment variable. Next time you log in this will be done

automatically.

 

To configure your current shell run source $HOME/.cargo/env

[root@server ~]# source $HOME/.cargo/env

[root@server ~]# yum install libgit2 cmake git http-parser

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.kakao.com

 * extras: mirror.kakao.com

 * updates: mirror.kakao.com

Package git-1.8.3.1-21.el7_7.x86_64 already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package cmake.x86_64 0:2.8.12.2-2.el7 will be installed

--> Processing Dependency: libarchive.so.13()(64bit) for package: cmake-2.8.12.2-2.el7.x86_64

---> Package http-parser.x86_64 0:2.7.1-8.el7_7.2 will be installed

---> Package libgit2.x86_64 0:0.26.6-1.el7 will be installed

--> Running transaction check

---> Package libarchive.x86_64 0:3.1.2-14.el7_7 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=================================================================================================================================================================================

 Package                                    Arch                                  Version                                           Repository                              Size

=================================================================================================================================================================================

Installing:

 cmake                                      x86_64                                2.8.12.2-2.el7                                    base                                   7.1 M

 http-parser                                x86_64                                2.7.1-8.el7_7.2                                   updates                                 29 k

 libgit2                                    x86_64                                0.26.6-1.el7                                      extras                                 429 k

Installing for dependencies:

 libarchive                                 x86_64                                3.1.2-14.el7_7                                    updates                                319 k

 

Transaction Summary

=================================================================================================================================================================================

Install  3 Packages (+1 Dependent package)

 

Total download size: 7.8 M

Installed size: 29 M

Is this ok [y/d/N]: y

Downloading packages:

(1/4): http-parser-2.7.1-8.el7_7.2.x86_64.rpm                                                                                                             |  29 kB  00:00:00     

(2/4): libgit2-0.26.6-1.el7.x86_64.rpm                                                                                                                    | 429 kB  00:00:00     

(3/4): libarchive-3.1.2-14.el7_7.x86_64.rpm                                                                                                               | 319 kB  00:00:00     

(4/4): cmake-2.8.12.2-2.el7.x86_64.rpm                                                                                                                    | 7.1 MB  00:00:00     

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                            8.0 MB/s | 7.8 MB  00:00:00     

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : libarchive-3.1.2-14.el7_7.x86_64                                                                                                                              1/4 

  Installing : http-parser-2.7.1-8.el7_7.2.x86_64                                                                                                                            2/4 

  Installing : libgit2-0.26.6-1.el7.x86_64                                                                                                                                   3/4 

  Installing : cmake-2.8.12.2-2.el7.x86_64                                                                                                                                   4/4 

  Verifying  : http-parser-2.7.1-8.el7_7.2.x86_64                                                                                                                            1/4 

  Verifying  : libgit2-0.26.6-1.el7.x86_64                                                                                                                                   2/4 

  Verifying  : cmake-2.8.12.2-2.el7.x86_64                                                                                                                                   3/4 

  Verifying  : libarchive-3.1.2-14.el7_7.x86_64                                                                                                                              4/4 

 

Installed:

  cmake.x86_64 0:2.8.12.2-2.el7                           http-parser.x86_64 0:2.7.1-8.el7_7.2                           libgit2.x86_64 0:0.26.6-1.el7                          

 

Dependency Installed:

  libarchive.x86_64 0:3.1.2-14.el7_7                                                                                                                                             

 

Complete!

[root@server ~]# git clone https://github.com/ogham/exa.git && cd exa

Cloning into 'exa'...

remote: Enumerating objects: 6, done.

remote: Counting objects: 100% (6/6), done.

remote: Compressing objects: 100% (6/6), done.

remote: Total 6903 (delta 0), reused 1 (delta 0), pack-reused 6897

Receiving objects: 100% (6903/6903), 3.24 MiB | 1.53 MiB/s, done.

Resolving deltas: 100% (4914/4914), done.

[root@server exa]# make install

cargo build --release --no-default-features --features "default"

    Updating crates.io index

  Downloaded glob v0.3.0

  Downloaded ansi_term v0.12.0

  Downloaded term_grid v0.1.7

  Downloaded locale v0.2.2

  Downloaded env_logger v0.6.2

  Downloaded users v0.9.1

  Downloaded natord v1.0.9

  Downloaded unicode-width v0.1.5

  Downloaded term_size v0.3.1

  Downloaded scoped_threadpool v0.1.9

  Downloaded number_prefix v0.3.0

  Downloaded zoneinfo_compiled v0.4.8

  Downloaded git2 v0.9.1

  Downloaded datetime v0.4.7

  Downloaded libc v0.2.60

  Downloaded num-traits v0.1.43

  Downloaded num_cpus v1.10.1

  Downloaded lazy_static v1.3.0

  Downloaded byteorder v1.3.2

  Downloaded log v0.4.7

  Downloaded termcolor v1.0.5

  Downloaded pad v0.1.5

  Downloaded iso8601 v0.1.1

  Downloaded url v1.7.2

  Downloaded libgit2-sys v0.8.1

  Downloaded humantime v1.2.0

  Downloaded atty v0.2.13

  Downloaded matches v0.1.8

  Downloaded percent-encoding v1.0.1

  Downloaded bitflags v1.1.0

  Downloaded pkg-config v0.3.14

  Downloaded regex v1.1.9

  Downloaded num-traits v0.2.8

  Downloaded idna v0.1.5

  Downloaded cfg-if v0.1.9

  Downloaded libz-sys v1.0.25

  Downloaded nom v1.2.4

  Downloaded cc v1.0.37

  Downloaded quick-error v1.2.2

  Downloaded autocfg v0.1.5

  Downloaded thread_local v0.3.6

  Downloaded unicode-bidi v0.3.4

  Downloaded unicode-normalization v0.1.8

  Downloaded memchr v2.2.1

  Downloaded utf8-ranges v1.0.3

  Downloaded aho-corasick v0.7.4

  Downloaded regex-syntax v0.6.8

  Downloaded ucd-util v0.1.3

  Downloaded smallvec v0.6.10

   Compiling libc v0.2.60

   Compiling autocfg v0.1.5

   Compiling pkg-config v0.3.14

   Compiling cc v1.0.37

   Compiling memchr v2.2.1

   Compiling smallvec v0.6.10

   Compiling unicode-width v0.1.5

   Compiling nom v1.2.4

   Compiling matches v0.1.8

   Compiling log v0.4.7

   Compiling regex v1.1.9

   Compiling cfg-if v0.1.9

   Compiling bitflags v1.1.0

   Compiling byteorder v1.3.2

   Compiling ucd-util v0.1.3

   Compiling lazy_static v1.3.0

   Compiling utf8-ranges v1.0.3

   Compiling percent-encoding v1.0.1

   Compiling quick-error v1.2.2

   Compiling termcolor v1.0.5

   Compiling glob v0.3.0

   Compiling number_prefix v0.3.0

   Compiling ansi_term v0.12.0

   Compiling natord v1.0.9

   Compiling scoped_threadpool v0.1.9

   Compiling unicode-bidi v0.3.4

   Compiling thread_local v0.3.6

   Compiling pad v0.1.5

   Compiling term_grid v0.1.7

   Compiling humantime v1.2.0

   Compiling regex-syntax v0.6.8

   Compiling unicode-normalization v0.1.8

   Compiling iso8601 v0.1.1

   Compiling num-traits v0.2.8

   Compiling aho-corasick v0.7.4

   Compiling locale v0.2.2

   Compiling atty v0.2.13

   Compiling term_size v0.3.1

   Compiling users v0.9.1

   Compiling num_cpus v1.10.1

   Compiling idna v0.1.5

   Compiling num-traits v0.1.43

   Compiling datetime v0.4.7

   Compiling url v1.7.2

   Compiling zoneinfo_compiled v0.4.8

   Compiling exa v0.9.0 (/root/exa)

   Compiling libz-sys v1.0.25

   Compiling libgit2-sys v0.8.1

   Compiling env_logger v0.6.2

   Compiling git2 v0.9.1

    Finished release [optimized] target(s) in 1m 14s

install -m755 -- target/release/exa "/usr/local/bin/"

install -dm755 -- "/usr/local/bin/" "/usr/local/share/man/man1/"

install -m644  -- contrib/man/exa.1 "/usr/local/share/man/man1/"

[root@server exa]# 

Posted by 훅크선장
, |

RHEL7 VNC Server 설정법을 설명합니다.
VNC user로 root, foobar 계정으로 세팅하는 법을 예로 들겠습니다.
과정 중에 프롬프트 표시가 "#", "$"의 차이가 있음에 유의하여 진행합니다.


1, 패키지 설치 & 시스템 방화벽 설정

# yum -y install tigervnc-server tigervnc

# firewall-cmd --permanent --zone=public --add-port 5901/tcp
# firewall-cmd --permanent --zone=public --add-port 5902/tcp
※ firewalld가 disabled 된 경우 skip

서버<->클라이언트 간 TCP 5901(root용), 5902(foobar용) 포트가 오픈되어야 합니다.
root 이외의 계정 n개를 vnc server 설정한다면 TCP 5901~(5901+n) 범위의 포트를 시스템 또는 네트워크 방화벽 open하여야 합니다.


2. VNC 액세스를 할 시스템 계정을 위한 VNC user 계정 생성 및 패스워드 설정

# useradd foobar
# passwd foobar


3. vncpassword 설정

3.1. root의 vncpassword 설정

# vncpasswd <-- root의 패스워드와는 달라도 상관 없습니다.

3.2. foobar 시스템 계정의 vncpassword 설정

# su - foobar
$ vncpasswd <-- 시스템 계정(foobar)의 패스워드와는 달라도 상관 없습니다.


4. foobar의 xtartup 파일 설정 및 퍼미션 변경
$ vim .vnc/xstartup
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /etc/X11/xinit/xinitrc

$ chmod 755 .vnc/xstartup


5.  VNC user를 위해 original VNC config 파일을 copy & edit
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service <-- root용
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service <-- foobar용


# vim /etc/systemd/system/vncserver@:1.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i  > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i  > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target

# vim /etc/systemd/system/vncserver@:2.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l foobar -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/foobar/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target



6. 설정을 reload
# systemctl daemon-reload


7. vnc service를 enable & start
# systemctl enable vncserver@:1.service
# systemctl enable vncserver@:2.service
# systemctl start vncserver@:1.service
# systemctl start vncserver@:2.service


방화벽 포트 오픈 반드시 필요
[root@localhost firewalld]# firewall-cmd --permanent --zone=public --add-port 5902/tcp
success
[root@localhost firewalld]# firewall-cmd --permanent --zone=public --add-port 5901/tcp
success
[root@localhost zones]# systemctl restart firewalld


8. vnc service에 의한 포트 listen 여부 확인(tcp 5901, 5902, 6001, 6002)
[root@localhost ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN      2736/Xvnc
tcp        0      0 0.0.0.0:5902            0.0.0.0:*               LISTEN      2924/Xvnc
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      2736/Xvnc
tcp        0      0 0.0.0.0:6002            0.0.0.0:*               LISTEN      2924/Xvnc
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      792/sshd
tcp6       0      0 :::6001                 :::*                    LISTEN      2736/Xvnc
tcp6       0      0 :::6002                 :::*                    LISTEN      2924/Xvnc
tcp6       0      0 :::22                   :::*                    LISTEN      792/sshd
[root@localhost ~]#


8. vnc 클라이언트로 접속

root -> IP ADDRESS:5901
foobar  -> IP ADDRESS:5902

Posted by 훅크선장
, |

VNC 프로세스가 구동하는 X 화면이 :1 :2 번이 아니라, :3 :4 번 또는 :5 :6 번으로 뜨는 문제

서버가 비정상 종료되는 경우에, TigerVNC와 X11의 임시파일들이 정상적으로 삭제되지 못하면서 생기는 문제로 판명

1. 기존 프로세스의 확인 작업

lsof -i
vncserver -list


2. 잘못된 VNC server 프로세스 종료

절대로 kill -9 [process number]를 사용하면 안된다. 새로운 프로세스가 바로 생성된다.

vncserver -kill :3
vncserver -kill :4
vncserver -kill :5
vncserver -kill :6

3. 임시파일들이 남아 있으면 삭제

ls -la /root/.vnc/
ls -la /home/bigdata/.vnc/

cd /root/.vnc/
cd /home/bigdata/.vnc

rm -f *.pid
rm -f *.log


ls -la /tmp/.X11-unix/
cd /tmp/.X11-unix/
rm -f X1
rm -f X2

4. VNC 재시작

systemctl start vncserver@:1
systemctl start vncserver@:2




rpm -qa
rpm -ql [package name]

yum list installed

Posted by 훅크선장
, |

칼리 리눅스와 더불어, 모의침투에 자주 애용되는 Backbox 리눅스의 버전 5.2 DVD의 한글화에 성공하였습니다. 

이 한글화 버전은 Backbox 리눅스가 ISO 파일에서 Live 상태로 부팅될 때, 한글이 적용된 상태인 DVD를 만든 것입니다.


배포방식은 FTP 서버로 합니다. FTP 패스워드만 퀴즈로 풀면 됩니다.


64비트 파일명은 

backbox-5.2-ko-amd64.iso 입니다.

SHA-160     : 07025a14de33d102e2a4286fa69cb201a999cf1b

MD5         :  df958d5961a10d673e1eddcc7fd875cf


32비트 파일명은 

backbox-5.2-ko-i386.iso 입니다.

SHA-160     : cb2feec3c86fc7dde51d4e9fb09c7fce8bcd0fe3

MD5         :  51c786382a24664bb2566f1e40b15208


다른 버전들도 있으니, 한꺼번에 받지 마시고, 필요한 것만 받아가시기 바랍니다.


FTP 서버: hook7346.ignorelist.com

FTP 포트: 21번

FTP 계정: kali2ko

FTP 패스워드는 퀴즈입니다. => 영문자판상태에서 한글로 치시면 됩니다.

1) 패스워드는 한글 4글자와 특수문자 1개로 구성되어 있습니다.

2) 패스워드의 첫 두 글자는 우리나라 문자 이름입니다. 이미 1) 문장에서 나온 단어입니다.

3) 패스워드의 세번째와 네번째 두 글자는 3.1절에 외치던 문장에 있는 두 글자입니다.

“대한 독립 OO”에서 OO에 들어가는 단어입니다.

4) 마지막에 들어가는 특수문자는 3)의 단어뒤에 자주 붙는 특수문자입니다. 느낌이 오시나요? (이거 자주 헷갈리시는데, 쩜은 아닙니다. 느낌입니다.)


다시한번 말씀드리지만, 영문자판상태에서 한글로 치시면 됩니다.

한글 4글자와 특수문자 1개로 구성되어 있습니다.(영문자로는 총 12글자입니다.)


퀴즈가 안풀리시는 분은  아래 그림 화면에서 터미널창에 입력된 명령어를 주목하시면 됩니다.

--------------------------------------------------------------------------------------------------------------

현재, 한영 입력 변환은 fcitx 입력기의 기본 키맵인 Ctrl+Space 로 되어있습니다.

Posted by 훅크선장
, |

https://linoxide.com/debian/configure-vnc-server-debian-9-stretch/

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04

를 참조하였음.


1. 패키지 설치


# apt-get update

# apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver sudo


gdm과 lightdm 에서 디폴트 gdm 을 그냥 선택.


2.  vnc 사용자 계정 추가


# adduser vnc

# gpasswd -a vnc sudo



3. VNC 서버 실행


여기서부터는 반드시 일반 vnc 계정으로,


# su - vnc

$ vncserver


You will require a password to access your desktops.


Password:  [접속 패스워드 입력]

Verify:    [접속 패스워드 한번 더 입력]

Would you like to enter a view-only password (y/n)? y    [view 만 하는 패스워드를 만들거냐고 물어보는데, Y/N 알아서 선택]

Password: [View 전용 패스워드 입력]

Verify:  [View 전용 패스워드 한번 더 입력]

xauth:  file /home/vnc/.Xauthority does not exist


New 'X' desktop is 578e1bb09561:1


4. xstartup 환경 재설정


먼저 vnc 서비스를 중지하고,


$ vncserver -kill :1

X 데스크탑 번호가 1번일때는 :1 을 인자로 준다.


$ cd

$ cd .vnc

$ mv xstartup xstartup.bak

기존의 xstartup 스크립트를 백업


$ nano xstartup

#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &


새로운 xstartup 생성


스크립트의 실행권한 추가 

$ chmod 755 xstartup


서비스 재실행

$ vncserver



5. VNC client 로 접속


VNC 클라이언트에서,   


vnc://192.168.OO.O:5901


VNC 서버의 IP 주소와 함께, :5901 또는 :5902  포트번호를 지정하여 접속

3.번 과정에서 서버가 설치되었을때, 실행되는 X 데스크탑의 번호를 기준으로 포트번호 지정

앞에서 마지막 메시지가 :1 로 끝났으므로, 이 경우에는 데스크탑 번호가 1번 이므로, 포트번호는 5901 번.

만약 :2 로 나왔다면, 포트번호는 5902번 


패스워드 물어보면, 앞에 입력한 접속 패스워드 를 넣음.



Posted by 훅크선장
, |

2018년 8월 21일에 릴리즈된, 칼리 리눅스의 롤링 버전 2018.3 의 한글화에 성공하였습니다.


지금까지의 사용빈도를 고려해서, X윈도우 매니저를 세가지 종류(XFCE, GNOME, LXDE)로만 차례로 빌드하고 있습니다. 단, i386 플랫폼용은 GNOME 버전만 빌드할 예정입니다.


※ 세벌식 자판을 쓰시는 분들은 메뉴바에서 나비 아이콘을 클릭하고, 자판을 변경하시면 됩니다.

그놈 버전은 화면 왼쪽 하단의 얇은 검정색 조그만 막대에 마우스를 가져가면, 꺽쇠 아이콘이 나타납니다. 그 아이콘을 클릭하시면, 나비 아이콘이 나옵니다.


배포방식은 이전과 동일하게, FTP 하나 입니다. FTP 패스워드만 퀴즈로 풀면 됩니다.


64비트 파일명(UTF-8, GNOME)은 

kali-linux-rolling-2018.3-jungdowha-amd64-ko-utf8-gnome.iso 입니다.

SHA-160     : 68c42022d46e6871b7fd10e95ea9364c28e51bc8

MD5         :  fe66602c394369a6a15422e8940a7fb3


32비트 파일명(UTF-8, GNOME)은 

kali-linux-rolling-2018.3-jungdowha-i386-ko-utf8-gnome.iso 입니다.

SHA-160     : 9035a84414ba189bf992a22a443eb2b3a0ca21f1

MD5         :  62cff62cd0e90e7d606565464ffef65d


64비트 파일명(UTF-8, XFCE)은 

kali-linux-rolling-2018.3-jungdowha-amd64-ko-utf8-xfce.iso 입니다.

SHA-160     : bc4513a2c91302924665f88ffe254759ef20a442

MD5         :  6a1161870086a7a9fcd4a4cbaa904363


64비트 파일명(UTF-8, LXDE)은 

kali-linux-rolling-2018.3-jungdowha-amd64-ko-utf8-lxde.iso 입니다.

SHA-160     : 81f773fd0539cc65c8771d2e5c3a66c7fdf39aa6

MD5         :  72de8dbba1ef2322ce18dd0898835c13



다른 버전들도 있으니, 한꺼번에 받지 마시고, 필요한 것만 받아가시기 바랍니다.


FTP 서버: hook7346.ignorelist.com

FTP 포트: 21번

(※ Passive mode를 사용하세요.)

FTP 계정: kali2ko

FTP 패스워드는 퀴즈입니다. => 영문자판상태에서 한글로 치시면 됩니다.

1) 패스워드는 한글 4글자와 특수문자 1개로 구성되어 있습니다.

2) 패스워드의 첫 두 글자는 우리나라 문자 이름입니다. 이미 1) 문장에서 나온 단어입니다.

3) 패스워드의 세번째와 네번째 두 글자는 3.1절에 외치던 문장에 있는 두 글자입니다.

“대한 독립 OO”에서 OO에 들어가는 단어입니다.

4) 마지막에 들어가는 특수문자는 3)의 단어뒤에 자주 붙는 특수문자입니다. 느낌이 오시나요? (이거 자주 헷갈리시는데, 쩜은 아닙니다. 느낌입니다.)


다시한번 말씀드리지만, 영문자판상태에서 한글로 치시면 됩니다.

한글 4글자와 특수문자 1개로 구성되어 있습니다.(영문자로는 총 12글자입니다.)


퀴즈가 안풀리시는 분은  아래 그림 화면에서 터미널창에 입력된 명령어를 주목하시면 됩니다.

--------------------------------------------------------------------------------------------------------------


# GNOME 데스크탑 화면


# XFCE 데스크탑 화면


# LXDE 데스크탑 화면


Posted by 훅크선장
, |

Kali Linux가 매번 새로운 버전이 나올때마다, 한글 입출력은 되지 않습니다. 매번 한글화된 VMware 이미지를 만들어 내는 것도 귀찮고 할 때가 있습니다.

그래서, 영문판 Kali Linux를 ISO 파일로부터 Live Booting 한 상태에서 임시 한글화하는 방법을 알려드릴까 합니다. 이것은  ISO 파일로 부팅된 Live Boot 상태에서 한글 보기 및 한글 입력기가 동작하도록 하는 방법입니다.


먼저, ISO 파일로 Live 부팅을 하고나서, Firefox 웹 브라우저를 실행해보면, 다음과 같은 상황일 것입니다.

한글 사이트인데, 한글이 보이지 않는 난감한 상황입니다.(보이고 있는 한글은 모두 이미지 파일이라서 보이는 것입니다.)



자, 한글을 보이게 해봅시다. Terminal 창을 다음과 같이 열고, 명령어들을 입력하면 됩니다.




root@kali:~# apt update


root@kali:~# apt install fonts-nanum


자기가 좋아하는 폰트가 혹시 있다면, 그 폰트 패키지 이름을 fonts-nanum 대신 써주면 됩니다. 제 경우에는 은폰트를 선호해서, fonts-unfonts-core 를 사용하기도 합니다.


설치가 완료되면, 다시 firefox 웹 브라우저를 실행시킵니다. 다음과 같이 한글이 이제 보이게 될 것입니다.



한글이 보이기는 하는데, 한글 입력은 안됩니다. 검색을 하려면, 한글을 입력할 수 있어야겠죠~! 

다시, 터미널로 돌아가서 다음과 같은 명령을 입력하고 실행합니다.


root@kali:~# apt install nabi libhangul-data libhangul1 im-config


설치가 완료되면, 다음 명령어를 입력하고 실행합니다.


root@kali:~# im-config -n hangul


그리고는 반드시 X-Windows 를 재시작 해주어야 합니다. 즉, 현재 데스크탑 화면에서 Log Out 하고 다시 로그인 해야 합니다.

시스템을 Shutdown 하거나, Restart 하는 것이 절대로 아닙니다. 현재 X-Win 데스크탑에서 로그아웃만 해주면 됩니다.


아래 화면과 같이, 화면의 오른쪽 상단에 전원버튼과 아래쪽 세모가 있습니다. 거기를 클릭하고, root 항목을 선택하면, Log Out 과 Account Settings 항목이 나타납니다. Log Out 을 선택합니다.



일정시간이 지나고, 다시 데스크탑 화면이 나타납니다. 왼쪽 상단에 한글 Nabi 입력기 메뉴가 보입니다.



Firefox 를 띄우고, 검색어 입력창에 한글을 입력합니다. 한영 전환키는 Shift + Space 키 조합입니다.





혹시, 한글 입출력 뿐만 아니라, 한글화된 메뉴가 보이는 데스크탑 화면을 원하신다면, X-Windows 를 재시작하기 전에 다음과 같은 작업을 추가로 해주면 됩니다. 


아래의 터미널 화면에서와 같이,

먼저 /etc/locale.gen 파일에서 ko_KR.UTF-8 라인의 주석표시 # 를 제거해줍니다.

다음과 같이 vi 명령어로 파일을 편집하면 됩니다.


root@kali:~# vi /etc/locale.gen


파일을 수정한 다음, 로케일 생성을 다음 명령어로 해줍니다.


root@kali:~# locale-gen


ko_KR.UTF-8 로케일이 생성되고 나면, 로케일의 전역 설정을 다음 명령어로 해줍니다.


root@kali:~# update-locale LANG=ko_KR.UTF-8



그리고는 X-Windows 를 재시작 해주면 됩니다. 앞에서 설명한 것과 같이,

시스템을 Shutdown 하거나, Restart 하는 것이 절대로 아닙니다. 현재 X-Win 데스크탑에서 로그아웃만 해주면 됩니다.


일정시간이 지나고, 다시 데스크탑 화면이 나타납니다. 아래와 같이, 모든 메뉴가 한글로 보이는 마법이 완성됩니다.





칼리 리눅스 한글화하기 참 쉽죠~~!!!














Posted by 훅크선장
, |

https://diyprojects.io/armbian-update-kernel-test-versions-nightly/#.WkkIbVTvCL4

를 참조해서, 정리한 것입니다.


Orange Pi+ 2e 커널 4.x  업그레이드 성공방법


아래과정은 반드시 순차적으로 다른 작업 없이, 이루어져야 합니다. 중간에 다른 작업 또는 명령어가 어떤 먹통 상황을 만들지 모릅니다.


1. 기존 패키지들 삭제

# aptitude remove ~nlinux-dtb ~nlinux-u-boot ~nlinux-image ~nlinux-headers

# aptitude remove ~nlinux-firmware ~narmbian-firmware ~nlinux-$(lsb_release -cs)-root


위 두 명령어를 실행하면, 


실제로는  linux-image-sun8i linux-u-boot-orangepiplus2e-default 두 개 패키지와

               armbian-firmware linux-jessie-root-orangepiplus2e     두 개 패키지만이 제거된다.


2. 새로운 커널 패키지들을 설치

# apt-get install linux-image-dev-sun8i linux-dtb-dev-sun8i linux-headers-dev-sun8i 

# apt-get install linux-u-boot-orangepiplus2e-dev linux-$(lsb_release -cs)-root-dev-orangepiplus2e 

# apt-get install armbian-firmware sunxi-tools swconfig a10disp


실제로는 linux-jessie-root-dev-orangepiplus2e linux-u-boot-orangepiplus2e-dev  두 개 패키지만이 새로이 설치된다.


※ linux-firmware-image-dev-sun8i 패키지 설치가 권장하고 있는데, 설치는 되지 않으며, 실제로 설치하지 않아도 큰 문제가 없는 것으로 보인다.


3. 새로 설치된 커널로 재부팅

# reboot


리부팅 후에, #uname -a 명령어로 커널이 4.x 대가 된 것을 확인한다.


4. 데비안 패키지 jessie  버전(8.x 대)을 stretch  버전(9.x 대)으로 변경


apt 패키지의 레포지트리 소스 설정을 한다.

/etc/apt/sources.list 와 /etc/apt/sources.list.d/armbian.list  두 파일을 수정한다. 


# vi /etc/apt/sources.list 

하고서, 내용 중에 jessie 문자열을 모두 stretch 문자열로 바꾼다.


# vi /etc/apt/sources.list.d/armbian.list 

하고서, 역시 내용 중에 jessie 문자열을 모두 stretch 문자열로 바꾼다.


armbian 용 패키지 업데이트를 위해서, gpg 키 임포트한다.

# wget -qO - http://apt.armbian.com/armbian.key | sudo apt-key add -



5.  패키지 업데이트 와 업그레이드

# apt update

# apt upgrade


6. 새로운 운영체제?로 재부팅

# reboot



7. 추가적인 패키지 설치

X-windows 환경과 한글 환경 추가


# apt-get -y install xorg lightdm xfce4 tango-icon-theme gnome-icon-theme


이후, hdmi 의 그래픽으로 로그인


xterm 말고 좋은 터미널 프로그램을 설치 사용

# apt install xfce4-terminal


8. 한글 환경 설정 

한글 폰트 설치

# apt install fonts-nanum


한글 사용을 위한 로케일 생성

# vi /etc/locales.gen

한 다음, ko-kr utf8 라인의  주석표시 # 제거


한글 로케일 생성

# locale-gen


한글 입력기 설치 및 설정

# apt install nabi libhangul1 libhangul-data im-config

# im-config -n hangul


9. 재부팅해서, 완전한 환경 맛보기

# reboot



※ 한글 환경이 완성되고 나서도, 파이어폭스 웹 브라우저가 필요함.

# apt install firefox-esr


아마도 시스템 한계때문인지 설치 시간 엄청 걸림.

Posted by 훅크선장
, |