티스토리 뷰


CentOS를 설치하는 이유

짧게 나마 시스템 엔지니어를 했던 경험이 아까워, 리눅스로 개발 공부를 하기로 결정.

우분투의 느낌이 굉장히 좋아서 최대한 우분투와 가까운 방향으로 트윅하며 얻은 정보를 정리.

sudo를 계속 쓰기 귀찮아서 일반 유저로 로그인 한 뒤, 콘솔에서 root로 로그인해서 작업.

삽질 너무 많이 해서 까먹을까봐 정리





최신버전 업데이트 및 EPEL 저장소 추가

최신 버전을 업데이트

yum -y update


Extra Packages for Enterprise Linux 7 저장소 추가

yum -y install epel-release



Arc Theme 적용

Arc Theme.

yum -y install autoconf automake pkgconfig gtk3-devel git gnome-themes-standard gtk-murrine-engine

git clone https://github.com/horst3180/arc-theme --depth 1 && cd arc-theme

./autogen.sh --prefix=/usr && make install

cd


Arc icon Theme. 

 아이콘 테마는 Moka icon Theme을 베이스로 두고 있어 선행 설치가 필요.

wget http://download.opensuse.org/repositories/home:/snwh:/moka/Fedora_24/noarch/moka-icon-theme-5.3.git+1475513102.0566904-8.1.noarch.rpm

yum -y install moka-icon-theme-5.3.git+1475513102.0566904-8.1.noarch.rpm

git clone https://github.com/horst3180/arc-icon-theme --depth 1 && cd arc-icon-theme

./autogen.sh --prefix=/usr && make install

cd

vi /root/arc-icon-theme/Arc/index.theme

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[Icon Theme]

Name=Arc

Inherits=Moka,Adwaita,gnome,hicolor

Comment=Arc Icon theme

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

to

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[Icon Theme]

Name=Arc

Inherits=Faenza,Adwaita,gnome,hicolor

Comment=Arc Icon theme

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




우분투 폰트 및 콘솔 색상 적용

http://font.ubuntu.com/ 에서 링크를 확인하고 받는 것을 권장.

wget http://font.ubuntu.com/download/ubuntu-font-family-0.83.zip

unzip ubuntu-font-family-0.83.zip

cp -rvf ubuntu-font-family-0.83 /usr/share/fonts/

cd /usr/share/fonts/ubuntu-font-family-0.83

fc-cache -fv

vi ~/.bashrc

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

# set a fancy prompt (non-color, unless we know we "want" color)

case "$TERM" in

    xterm-color|*-256color) color_prompt=yes;;

esac


# uncomment for a colored prompt, if the terminal has the capability; turned

# off by default to not distract the user: the focus in a terminal window

# should be on the output of commands, not on the prompt

#force_color_prompt=yes


if [ -n "$force_color_prompt" ]; then

    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then

# We have color support; assume it's compliant with Ecma-48

# (ISO/IEC-6429). (Lack of such support is extremely rare, and such

# a case would tend to support setf rather than setaf.)

color_prompt=yes

    else

color_prompt=

    fi

fi


if [ "$color_prompt" = yes ]; then

    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

else

    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

fi

unset color_prompt force_color_prompt


# If this is an xterm set the title to user@host:dir

case "$TERM" in

xterm*|rxvt*)

    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"

    ;;

*)

    ;;

esac


# enable color support of ls and also add handy aliases

if [ -x /usr/bin/dircolors ]; then

    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"

    alias ls='ls --color=auto'

    #alias dir='dir --color=auto'

    #alias vdir='vdir --color=auto'


    alias grep='grep --color=auto'

    alias fgrep='fgrep --color=auto'

    alias egrep='egrep --color=auto'

fi


# colored GCC warnings and errors

#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'


# some more ls aliases

alias ll='ls -alF'

alias la='ls -A'

alias l='ls -CF'


# Add an "alert" alias for long running commands.  Use like so:

#   sleep 10; alert

alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'


# Alias definitions.

# You may want to put all your additions into a separate file like

# ~/.bash_aliases, instead of adding them here directly.

# See /usr/share/doc/bash-doc/examples in the bash-doc package.


if [ -f ~/.bash_aliases ]; then

    . ~/.bash_aliases

fi


# enable programmable completion features (you don't need to enable

# this, if it's already enabled in /etc/bash.bashrc and /etc/profile

# sources /etc/bash.bashrc).

if ! shopt -oq posix; then

  if [ -f /usr/share/bash-completion/bash_completion ]; then

    . /usr/share/bash-completion/bash_completion

  elif [ -f /etc/bash_completion ]; then

    . /etc/bash_completion

  fi

fi

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

source ~/.bashrc


Tweak tool로 Arc theme, Arc icon theme, 우분투 폰트를 모두 적용

Appearance -> window & GTK+ & icons 를 세팅.


폰트는 그림과 같은 상태가 제일 맘에 듦.




Window-list 제거

상단 패널이 테마와 어울리지 않게 계속 회색이어서 찾느라 정말 긴 시간 삽질.

원인은 gnome-shell-extension 에서 windows-list 때문. 생각보다 여러 곳에 영향을 주고 있음.


삭제 및 OS 재시작

yum -y remove gnome-shell-extension-window-list && init 6


해당 확장 프로그램을 지우면 나머지가 그림과 같이 OFF가 되버림. 일단 꺼놓고도 쓸만한데 좀 더 지켜보기 위해 모두 ON 시킴.


Titlebar Buttons에 최대화 최소화 버튼이 OFF 되버려서 킴.





Plank 설치

Plank는 하단 Dock 프로그램. 이게 없으면 실행중인 프로그램 보기 힘들어서 설치.

http://li.nux.ro/download/nux/dextop/el7/x86_64/ 저장소에 들어가 nux-dextop-release 검색 후 가장 최신으로 다운.


Nux-dextop-release 저장소 설치 및 Plank 설치

wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

yum -y install nux-dextop-release-0-5.el7.nux.noarch.rpm

yum -y install plank


OS 시작할 때 마다 실행시키기 위해

vi ~/.bash_profile

nohup plank > /dev/null &



Google Chrome 설치

이 단계보다 이전에 설치하면 이상하게 간헐적으로 크롬이 설치가 되지만 실행 안되는 기이한 현상 발견.

vi /etc/yum.repos.d/google-chrome.repo

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[google-chrome]

name=google-chrome

baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64

enabled=1

gpgcheck=1

gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

yum -y install google-chrome-stable

여기까지만 설치해도 사용하는데 문제는 없지만 삽질 한김에 Gnome 확장 프로그램까지 설치.


가독성이 떨어져 나눔고딕폰트 적용

mkdir /usr/share/fonts/nanumfont

cd /usr/share/fonts/nanumfont 

wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip

unzip NanumFont_TTF_ALL.zip

mkfontscale

mkfontdir

fc-cache -fv

Settings에서 font 검색 후 적용.

확인 결과 한글 폰트를 쓰면 더 깨끗치 못하게 나오는 것으로 판단. Ubuntu 폰트 사용.




Gnome Shell Extension을 사용하기 위한 크롬 플러그인 설치

크롬 스토어에서 gnome shell integraion 검색해서 설치


Cmake 컴파일

위의 플러그인을 설치하고 https://extensions.gnome.org/에 접속하면 native connector 관련 오류가 뜸. 페이지를 하나 안내해주는데 그곳에 가면 cmake installation 항목이 있으며, 참고하여 컴파일 진행하면 됨.

git clone git://git.gnome.org/chrome-gnome-shell && cd chrome-gnome-shell

mkdir -p build && cd build

yum -y install pygobject* cmake coreutils

cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_EXTENSION=OFF ../

make install


Gnome 확장 프로그램 설치

이제 https://extensions.gnome.org/에 들어가서 필요한 프로그램을 다운로드.

현재 알림이 뜨는 위치를 조절해주는 Panel OSD와 상단바를 투명화 시키는 Transparent Gnome Panel만 사용중.




로그인 화면 바꾸기


로그인 화면이 회색인 것이 계속 신경쓰여 방법을 찾아봄.

cd /usr/share/gnome-shell/theme/

mv noise-texture.png noise-texture_old.png

cp /path/of/My_Image.png ./noise-texture.png 

init 3        # CLI 모드

vi /usr/share/gnome-shell/theme/gnome-shell.css

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#lockDialogGroup {

    background: #2e3436 url(noise-texture.png);

    background-repeat: repeat;

}

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

to

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#lockDialogGroup {

    background: #2e3436 url(noise-texture.png);

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center center;

}

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




Splash Screen 변경

http://gnome-look.org에서 원하는 plymouth theme를 받아 설치.

initramfs 명령어를 사용해야 하는 테마는 방법을 몰라 설치하지 않고, plymouth-set-default-theme 명령 사용

yum -y install plymouth-plugin-script

cp -r /path/of/my_theme /usr/share/plymouth/themes/

plymouth-set-default-theme -R my_theme




grub 커널 부팅 화면 보지 않기


어차피 커널 별로 실행할 일이 없어서 위 화면을 보지 않고 넘길 예정.

gedit /boot/grub2/grub.cfg

set timeout=5       # set timeout=0으로 고침




콘솔창 설정




해외 노트북에서 한글 입력

yum -y install ibus-hangul

Settings -> Keyboard -> Input Source -> Korean(Hangul) 추가 -> Shortcuts -> Typing -> Compose Key [Right Alt] -> Switch to next input source 오른쪽 Alt 입력 [Multikey]

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
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
글 보관함