Skip to content

Instantly share code, notes, and snippets.

@goeroeku
Last active October 18, 2020 12:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save goeroeku/ec89334f2412e37138ae84cf02ae85be to your computer and use it in GitHub Desktop.
Save goeroeku/ec89334f2412e37138ae84cf02ae85be to your computer and use it in GitHub Desktop.
All About Arch / Manjaro

setting bashrc or bash_profile

location : ~./.bashrc | ~/.bash_profile
#
# ~/.bashrc
#

[[ $- != *i* ]] && return

colors() {
	local fgc bgc vals seq0

	printf "Color escapes are %s\n" '\e[${value};...;${value}m'
	printf "Values 30..37 are \e[33mforeground colors\e[m\n"
	printf "Values 40..47 are \e[43mbackground colors\e[m\n"
	printf "Value  1 gives a  \e[1mbold-faced look\e[m\n\n"

	# foreground colors
	for fgc in {30..37}; do
		# background colors
		for bgc in {40..47}; do
			fgc=${fgc#37} # white
			bgc=${bgc#40} # black

			vals="${fgc:+$fgc;}${bgc}"
			vals=${vals%%;}

			seq0="${vals:+\e[${vals}m}"
			printf "  %-9s" "${seq0:-(default)}"
			printf " ${seq0}TEXT\e[m"
			printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
		done
		echo; echo
	done
}

[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion

# Change the window title of X terminals
case ${TERM} in
	xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
		PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
		;;
	screen*)
		PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
		;;
esac

use_color=true

# Set colorful PS1 only on colorful terminals.
# dircolors --print-database uses its own built-in database
# instead of using /etc/DIR_COLORS.  Try to use the external file
# first to take advantage of user additions.  Use internal bash
# globbing instead of external grep binary.
safe_term=${TERM//[^[:alnum:]]/?}   # sanitize TERM
match_lhs=""
[[ -f ~/.dir_colors   ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
[[ -z ${match_lhs}    ]] \
	&& type -P dircolors >/dev/null \
	&& match_lhs=$(dircolors --print-database)
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true

if ${use_color} ; then
	# Enable colors for ls, etc.  Prefer ~/.dir_colors #64489
	if type -P dircolors >/dev/null ; then
		if [[ -f ~/.dir_colors ]] ; then
			eval $(dircolors -b ~/.dir_colors)
		elif [[ -f /etc/DIR_COLORS ]] ; then
			eval $(dircolors -b /etc/DIR_COLORS)
		fi
	fi

	if [[ ${EUID} == 0 ]] ; then
		PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
	else
		PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
	fi

	alias ls='ls --color=auto'
	alias grep='grep --colour=auto'
	alias egrep='egrep --colour=auto'
	alias fgrep='fgrep --colour=auto'
else
	if [[ ${EUID} == 0 ]] ; then
		# show root@ when we don't have colors
		PS1='\u@\h \W \$ '
	else
		PS1='\u@\h \w \$ '
	fi
fi

unset use_color safe_term match_lhs sh

alias cp="cp -i"                          # confirm before overwriting something
alias df='df -h'                          # human-readable sizes
alias free='free -m'                      # show sizes in MB
alias np='nano -w PKGBUILD'
alias more=less

xhost +local:root > /dev/null 2>&1

complete -cf sudo

# Bash won't get SIGWINCH if another process is in the foreground.
# Enable checkwinsize so that bash will check the terminal size when
# it regains control.  #65623
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
shopt -s checkwinsize

shopt -s expand_aliases

# export QT_SELECT=4

# Enable history appending instead of overwriting.  #139609
shopt -s histappend

#
# # ex - archive extractor
# # usage: ex <file>
ex ()
{
  if [ -f $1 ] ; then
    case $1 in
      *.tar.bz2)   tar xjf $1   ;;
      *.tar.gz)    tar xzf $1   ;;
      *.bz2)       bunzip2 $1   ;;
      *.rar)       unrar x $1     ;;
      *.gz)        gunzip $1    ;;
      *.tar)       tar xf $1    ;;
      *.tbz2)      tar xjf $1   ;;
      *.tgz)       tar xzf $1   ;;
      *.zip)       unzip $1     ;;
      *.Z)         uncompress $1;;
      *.7z)        7z x $1      ;;
      *)           echo "'$1' cannot be extracted via ex()" ;;
    esac
  else
    echo "'$1' is not a valid file"
  fi
}

# better yaourt colors
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"

# -- add aic
export SUDO_EDITOR="kate"
export VISUAL="kate"

alias se="sudoedit"
#alias wedev="systemctl start nginx php-fpm mysqld"
#alias ai="/usr/google/appinventor/commands-for-Appinventor/aiStarter &"
#alias yb="java -cp /home/aic/cia/ yb"
alias py="python"

#export PATH=$PATH:/home/aic/.local/bin
#export POSTMAN_DISABLE_GPU=true
## android programming
export ANDROID_HOME=/home/aic/AndroidSDK
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator/qemu/linux-x86_64/

##composer
export PATH=$PATH:$HOME/.config/composer/vendor/bin

#alias emu="$ANDROID_HOME/tools/emulator @Nexus_5_API_25"
# --

untuk .bash_profile

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

export ANDROID_HOME=/home/aic/Android-SDK
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator/qemu/linux-x86_64/

alias emu="$ANDROID_HOME/tools/emulator @Nexus_5_API_25"

sudo vim /etc/sysctl.d/50-max_user_watches.conf

fs.inotify.max_user_watches	= 10485760
fs.inotify.max_user_instances	= 10485760
fs.inotify.max_queued_events	= 10485760
vm.overcommit_memory = 1

fs.file-max = 100000

sudo vim /etc/sysctl.d/99-sysctl.conf

#vm.swappiness=10 #system yang pas 10, 1 untuk disable swappiness tp masih bisa hinernate
#vm.dirty_background_ratio=10
#vm.dirty_ratio=80
#vm.vfs_cache_pressure=50
vm.max_map_count=262144
## for data
vm.swappiness = 10
vm.dirty_ratio = 10
vm.dirty_background_ratio = 5
vm.dirty_expire_centisecs = 2000
vm.dirty_writeback_centisecs = 1000
vm.vfs_cache_pressure = 50

Boot NVIDIA bumblebee

  1. Add to /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT = rcutree.rcu_idle_gp_delay=1 acpi_osi=! acpi_osi='Windows 2009' acpi_osi=Linux zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold pci=nomsi modprobe.blacklist=nouveau intel_iommu=on pcie_port_pm=off nmi_watchdog=0 elevator=noop

atau

GRUB_CMDLINE_LINUX_DEFAULT = rcutree.rcu_idle_gp_delay=1 acpi_osi=Linux pci=nomsi modprobe.blacklist=nouveau pcie_port_pm=off nmi_watchdog=0 elevator=noop

jika ada error :

iwlwifi 0000:08:00.0: pci_enable_msi failed

hapus opsi : pci=nomsi, sehingga menjadi :

GRUB_CMDLINE_LINUX_DEFAULT = rcutree.rcu_idle_gp_delay=1 acpi_osi=Linux 'acpi_osi=!Windows\x202015' nogpumanager modprobe.blacklist=nouveau pcie_port_pm=off nmi_watchdog=0 elevator=noop i915.modeset=1 i915.enable_psr=0 nouveau.modeset=0 pci=noaer
  1. Generate image
sudo grub-mkconfig -o /boot/grub/grub.cfg

jika screen flicker / video flicker (sedang screen recorind dll)

gunakan setting video intel dengan mode uxa, /etc/X11/mhwd.d/intel.conf

Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "uxa"
        Option      "DRI"    "true"
        Option      "TearFree" "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

1. Install thermald

sudo pacman -S thermald && sudo systemctl enable thermald && sudo systemctl start thermald

edit default konfigurasi jika menggunakan NVIDIA OPTIMUS

sudo vim /etc/default/tlp # tambahkan RUNTIME_PM_BLACKLIST="01:00.0"

2. Install Visual Studio Code

youart -S visual-studio-code-bin
pulgin untuk VSC :

cara install tekan ctrl+p

  1. Live Server
ext install LiveServer
  1. Sublime Text Keymap
ext install ms-vscode.sublime-keybindings
  1. WakaTimime
ext install wakatime
  1. Material Theme
https://github.com/equinusocio/vsc-material-theme
ext install Equinusocio.vsc-material-theme
  1. Path Intellisense
ext install christian-kohler.path-intellisense
  1. CSS Peek
ext install pranaygp.vscode-css-peek
  1. Guides
ext install spywhere.guides
  1. Instant Markdown
ext install dbankier.vscode-instant-markdown
  1. Settings Sync
ext install Shan.code-settings-sync
  1. Color Highlight
ext install naumovs.color-highlight
Settings (File > Preference > Setting)
"window.restoreWindows": "none"

3. Install Tree

untuk menampilkan struktur directory

youart -S tree

4. Install Pac manager

yaourt -Ss pacmanager
pacth Pac Manager

download pacth

cd /opt
patch -b -p1 < TerminalColors_v2.patch

ref : https://sourceforge.net/p/pacmanager/bugs/239/

5. Install flowblade

Software for editing video

yaourt -S flowblade

check jika cpu support virtualisasi

pastikan keluar nomor misalnya 8, menunjukan jumlah cpu

egrep -c '(vmx|svm)' /proc/cpuinfo

install untuk perfoma virtualisasi

sudo pacman -S libvirt bridge-utils

reff: error limitasi jvm

https://tausiq.wordpress.com/2015/02/24/android-speed-up-gradle-build-process-in-android-studio/

APP Inventor pada Manjaro

Installasi

Belum ada paket khusus untuk manjaro, yang tersedia hanya source dan paket untuk debian. Kita gunakan paket untuk debian yang lebih mudah.

  1. Download
# wget --user-agent=Mozilla --content-disposition -E -c http://appinv.us/aisetup_linux_deb
  1. Install convert deb to pacman (converter dari installer debian ke aur)
# yaourt -S debtap
  1. Untuk pertamakan disarankan mengupdate repo versi debtap
# sudo debtap -u
  1. Proses konversi
# debtap appinventor2-setup_2.3_all.deb
  1. Akan muncul pertanyaan mengenai nama package dan lisensi, biarkan saja kosong. Sehingga cukup tekan enter 2x
  2. Setelah seslai dikonversi akan muncul file baru dengan nama mirip file sumber dengan extension appinventor2-setup-2.3-1-any.pkg.tar.xz
  3. Lakukan installasi dengan pacman
sudo pacman -U appinventor2-setup-2.3-1-any.pkg.tar.xz
  1. Jika berhasil akan muncul direktori baru /usr/google/appinventor/commands-for-Appinventor
  2. Jalakn aiStarter
/usr/google/appinventor/commands-for-Appinventor/aiStarter &

atau dibuat alias

  1. buat/edit file ~/.bashrc
# vim ~/.bashrc
  1. tambahkan alias, ex: ai
alias ai="/usr/google/appinventor/commands-for-Appinventor/aiStarter &"
  1. jika ingin perubahan tanpa restart/logout, ketikan
source ~/.bashrc

Troubleshoot

  • Ukuran layar terlalu kecil ganti ukuran scale, ex:
# sudo vim /usr/google/appinventor/commands-for-Appinventor/run-emulator
-scale 1.2
  • aiStarter error ketika dijalankan
# ps -aux | grep App
# kill -9 <sesuai pid hasil ps>

jalakan aiStarter kembali

REF:

Optimasi booting

https://www.linux.com/learn/cleaning-your-linux-startup-process

Remove packet yang g kepake

sudo pacman -Rs $(pacman -Qqdt)

agar file docx, xlsx bisa dibuka default oleh wps (bukan dikenali sebagai zip file):

Oh, that one broke my shortcuts in Plasma, so I removed the 3 xml files
wps-office-et.xml
wps-office-wpp.xml
wps-office-wps.xml
from /usr/share/mime/packages/
then sudo update-mime-database /usr/share/mime
then I assigned the .xlsx format to et, the .docx format to wps and it is OK now!

setting dark-theme wps office

sudo vim /usr/bin/et
sudo vim /usr/bin/wps
sudo vim /usr/bin/wpp

add " -style GTK+ " after " ${gInstallPath}/office6/${gApp} "
atau " -style motif "

vim /etc/default/grub

# Written by com.deepin.daemon.Grub2
GRUB_BACKGROUND="/boot/grub/themes/deepin/background.jpg"
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=72bc3cad-d08c-4508-b2e6-a5d867287543 pci=noaer intel_iommu=on iommu=pt i915.enable_psr=0 i915.enable_ips=0 elevator=noop"
GRUB_COLOR_HIGHLIGHT="green/black"
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_DEFAULT=saved
GRUB_DISABLE_RECOVERY=true
GRUB_DISTRIBUTOR='Manjaro'
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_SAVEDEFAULT=true
GRUB_TERMINAL_INPUT=console
GRUB_TERMINAL_OUTPUT=console
GRUB_THEME="/boot/grub/themes/deepin/theme.txt"
GRUB_TIMEOUT=5

tools networking

  1. etherape

# sudo pacman -Ss etherape
# sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/etherape ##grant access device

ref :

  1. linssid

Untuk melihat channel

# sudo pacman -Ss linssid

max bandwidth

file : /etc/sysctl.d/99-max-bandwidth.conf

####################
# Added by Anthony #
####################

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1

# Disables IP source routing
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Increase maximum amount of memory allocated to shm
# Only uncomment if needed!
# kernel.shmmax = 67108864
# Disable ICMP Redirect Acceptance
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.accept_redirects = 0

# Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.all.log_martians = 1

# Decrease the time default value for tcp_fin_timeout connection
net.ipv4.tcp_fin_timeout = 25

# Decrease the time default value for tcp_keepalive_time connection
net.ipv4.tcp_keepalive_time = 1200

# Turn on the tcp_window_scaling
net.ipv4.tcp_window_scaling = 1

# Turn on the tcp_sack
net.ipv4.tcp_sack = 1

# tcp_fack should be on because of sack
net.ipv4.tcp_fack = 1

# Turn on the tcp_timestamps
net.ipv4.tcp_timestamps = 1

# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1

# Enable ignoring broadcasts request
net.ipv4.icmp_echo_ignore_broadcasts = 1

# Enable bad error message Protection
net.ipv4.icmp_ignore_bogus_error_responses = 1

# Make more local ports available
# net.ipv4.ip_local_port_range = 1024 65000
# Set TCP Re-Ordering value in kernel to '5'

net.ipv4.tcp_reordering = 5

# Lower syn retry rates
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 3

# Set Max SYN Backlog to '2048'
net.ipv4.tcp_max_syn_backlog = 2048

# Various Settings
net.core.netdev_max_backlog = 1024

# Increase the maximum number of skb-heads to be cached
#net.core.hot_list_length = 256

# Increase the tcp-time-wait buckets pool size
net.ipv4.tcp_max_tw_buckets = 360000

# This will increase the amount of memory available for socket input/output queues
net.core.rmem_default = 65535
net.core.rmem_max = 8388608
net.ipv4.tcp_rmem = 4096 87380 8388608
net.core.wmem_default = 65535
net.core.wmem_max = 8388608
net.ipv4.tcp_wmem = 4096 65535 8388608
net.ipv4.tcp_mem = 8388608 8388608 8388608
net.core.optmem_max = 40960

DSN

https://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten/128223

ntfs partition can chmod and chown

edit file /etc/fstab

## Auto NTSF AiC
/dev/sdb1 /mnt/Data ntfs-3g rw,nosuid,nodev,relatime,permissions 0 0

Tips optimasi

pembacaan file yang banyak, /etc/sysctl.d/50-max_user_watches.conf

fs.inotify.max_user_watches = 524288

driver vga hybrid - Optimis NVIDIA & Intel

UPDATE 07 April 2020

Gunakan tipe driver prime : video-hybrid-intel-nvidia-440xx-prime

- https://forum.endeavouros.com/t/guide-install-nvidia-hybride-graphics-with-optimus-and-vulkan-support/1661

- https://linustechtips.com/main/topic/1149518-guide-how-to-set-up-nvidia-prime-for-laptops-running-manjaro-linux/

- https://forum.manjaro.org/t/how-to-install-enable-nvidia-driver-properly/112166/2

- https://wiki.manjaro.org/index.php?title=Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup

- https://wiki.manjaro.org/index.php/Configure_Graphics_Cards

- https://medium.com/@vfbsilva/howto-set-up-prime-with-nvidia-proprietary-driver-c647e3597447

- https://forum.manjaro.org/t/guide-install-and-configure-optimus-manager-for-hybrid-gpu-setups-intel-nvidia/92196

- https://github.com/mkottman/acpi_call <== ganti dengan extras linux-header-acpi-xxx

Case NVIDIA GTX960M & Intel

  1. Install library
# sudo pacman -S virtualgl lib32-virtualgl lib32-primus primus acpid
  1. install driver non free nvidia
# sudo mhwd -f -i pci video-hybrid-intel-nvidia-bumblebee
  1. enable and start service bumblebeed & acpid
# sudo systemctl enable bumblebeed && sudo systemctl start bumblebeed
# sudo systemctl enable acpid && sudo systemctl start acpid

troubleshooting

check configuration

/etc/bumblebee

a. /etc/bumblebee/bumblebee.conf

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
# Xorg binary to run
XorgBinary=Xorg

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

b. /etc/bumblebee/xorg.conf.nvidia

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:01:00:0"
##    Option "NoLogo" "true"
    Option "UseEDID" "true"
    Option "ConnectedMonitor" "DFP"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Screen"
    Identifier "Screen1"
    Device "DiscreteNvidia"
EndSection
/etc/X11/mhwd.d

a. /etc/X11/mhwd.d/intel.conf

##
## Generated by mhwd - Manjaro Hardware Detection
##

Section "Screen"
    Identifier  "Screen0"
    Device  "DeviceIntel"
EndSection
 
Section "Device"
    Identifier  "DeviceIntel"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna" ## for connect lcd
    Option      "AccelMethod" "uxa"	## for flicker
    Option      "TearFree"	"true" ## for flicker too
    Option      "DRI"    "3"
EndSection
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard     "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
/etc/X11/xorg.conf.d

a. buat shortcut configuration touchpad pastikan sudah terinstall xf86-input-synaptics

sudo pacman -S xf86-input-synaptics

jika sudah maka akan terbentuk file default config untuk touchpad pada lokasi /usr/share/X11/xorg.conf.d/70-synaptics.conf

# ln -s /usr/share/X11/xorg.conf.d/70-synaptics.conf /etc/X11/xorg.conf.d/

Install xrandr

aplikasi untuk mengecek jumlah display yang terhubung

sudo pacman -S xorg-xrandr

##ref:

https://askubuntu.com/questions/752743/ubuntu-16-04-skylake-6th-generation-screen-flickering

Printer

https://wiki.manjaro.org/index.php/Printing_Enablement

EPSON L360

  • point penting install driver
  • tambahkan user ke group sys
yaourt -S epson-inkjet-printer-201401w
systemctl start org.cups.cupsd.service
sudo pacman -Sy system-config-printer
sudo pacman -Sy manjaro-printer
sudo gpasswd -a $USER sys

tools react native programmer

jika ada error debuger

https://github.com/facebook/react-devtools/tree/master/packages/react-devtools
https://stackoverflow.com/questions/40898934/unable-to-connect-with-remote-debugger/50258218#50258218
https://stackoverflow.com/questions/47247443/electron-js-install-error-error-eacces-permission-denied

sharing internet from wifi

  1. install hostapd
  2. install create_ap
  3. create_ap wlan0 internet0 MyAccessPoint MyPassPhrase
# create_ap wlp0s20f0u3 wlo1 MyAiC namasaya

** wlan0 => device for create hotspot internet0 => device with internet connection

https://wiki.archlinux.org/index.php/Software_access_point
@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

@goeroeku
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment