만자로팁(수정)

by 꼬꼬댁 posted Sep 28, 2018
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

제가 만자로를 쓰면서 모았던 팁이에요.

필요로 하는분들에게 도움을 줬으면 합니다.

##############################################

만자로 한글 설정
fcitx fcitx-hangul fcitx-configtool fcitx-gtk2 fcitx-gtk3 fcitx-qt5 항목을 잘보고 설치한다.

/etc/environment 파일에 아랫항목 추가

GTK_IM_MODULE=fcitx

QT_IM_MODULE=fcitx

XMODIFIERS=@im=fcitx

출처: http://optic.tistory.com/249 []

만자로에서 keyring 업데이트
sudo pacman -Sy archlinux-keyring manjaro-keyring
sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys

만자로 에서 keyid 받아오는법
gpg --recv-key keyid

만자로 현재버전
cat /etc/lsb-release

만자로에서 빠른업데이트 서버 가져오기
sudo pacman-mirrors --fasttrack 5
일본 중국 대만,기타 한국에서 가까운서에서 가져오기........아치리눅스는 있을지언정 만자로는 한국은 없다 절대 입력하지말것 주의할것.
sudo pacman-mirrors --country Japan Taiwan China Hong_Kong Indonesia Philippines
초기화
sudo pacman-mirrors --country all

이 글을 쓸때당시까지만해도 한국 미러가 없는줄 알았는데 있네요.  그래서 한국을 추가하게 되면

sudo pacman-mirrors --country Japan Taiwan China Hong_Kong Indonesia Philippines South_Korea

하고나서

sudo pacman -Syyu  하면됩니다.


만자로 invalid or corrupted package 에러메시지
sudo pacman-mirrors -f 3
or
sudo pacman-mirrors -g
then
sudo pacman -Syyu


만자로
청소  bleachbit에서 시스템캐시 부분은 삭제하지 않는다.
캐시제거 pacman -Scc
불필요한 패키지 제거 pacman -Rs $(pacman -Qqdt)
유틸 삭제 후 깨진 의존성 패키지 제거 방법 : sudo pacman -R $(pacman -Qdtq)

파이어폭스 firefox 다은로드열었을때 파일탐색기가 안나오는 현상..주로 아치나 만자로에서  (Thunar가 기본 탐색기일때)
터미널에 다음의 명령
xdg-mime default Thunar-folder-handler.desktop inode/directory

#디스크캐싱과 보안 or 네트워크, 최적화트윅 가상메모리 설정도 있음
웹브라우져에서 램디스크 사용시 아프리카티비의 채팅글이 안보이는 에러가 발생하였다.  하여 램디스크는 사용중지하고 디스크캐싱을 사용하기로 했다.
/etc/sysctl.conf를 관리자 권한으로 열어 다음항목을 추가한다.
만자로에서는  /etc/sysctl.conf,를 /etc/sysctl.d/99-sysctl.conf로 바꿔 설정한다.

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
### IMPROVE SYSTEM MEMORY MANAGEMENT ###

# Increase size of file handles and inode cache
fs.file-max = 2097152

# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2

# cache inodes (50 = don't shrink inode cache)
vm.vfs_cache_pressure = 50

# % memory available for all processes -- some suggest 50
vm.overcommit_ratio = 100


net.ipv4.conf.default.accept_source_route=0
net.ipv4.conf.all.accept_source_route=0

net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.default.send_redirects = 0

virtualbox에서 usb사용하기
sudo mousepad /etc/group 파일을 열고 virtualbox항목에 사용자를 추가한다
만자로에서는
uname -r 하고 나온 커널버전 확인후
aur에서 같은커널의 virtualbox-host-modules을 설치한다
aur저장소에서 virtualbox extentionpack을 검색하여 설치한다.
그다음
sudo pacman -Syyu
sudo /sbin/rcvboxdrv setup
sudo mousepad /etc/group 그룹에 사용자명을 추가한다
재부팅한다

만자로에서 Kernel driver not installed (rc=-1908) 오류날때
재부팅하면된다

# 비프음 제거
아래 내용이 있으면 주석을 해제하고 없으면 추가하면 된다. 다다음 종료부터 적용된다.
/etc/modprobe.d/blacklist.conf
blacklist pcspkr
만자로 비프음제거
xset -b

Then open your .xprofile file

    sudo mousepad ~/.xprofile

add this line to your .xprofile

    xset -b
   
    크롬 시작시 키모음 팝업 제거
터미널에 mv ~/.local/share/keyrings ~/.local/share/keyrings.old
한 후에 로그아울
만자로에서는
sudo mv /usr/bin/gnome-keyring-daemon /usr/bin/gnome-keyring-daemon-old
sudo killall gnome-keyring-daemon

만자로 sudo 가져오기
 /etc/sudoers 파일 열고
유저명(예:michael) ALL=(ALL) ALL


만자로xfce를 쓰다가 lxde를 써보니 한결 가볍습니다.  lxde데스크탑 설치는

sudo pacman -S lxde network-manager-applet


#####################################

이상만 알고 계시면 만자로 쓰실때 불편함이 없을겁니다.


Articles

1 2 3 4 5 6 7 8 9 10