001.
002.
003.
004.
005.
006.
007.
008.
009.
010.
011.
012.
@
001. key mapping
You can see each key code by xev
@
sudo apt-get install uim uim-byeoru
change to uim
- go to uim setting
default to byeoru
byeoru key setting1: hangul, hangul, hangul-hanja
@
- Move to directory where you install font
cd /usr/share/fonts/
- Download font
wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
- Unzip zip file
unzip NanumFont_TTF_ALL.zip -d NanumFont
- Remove zip file
rm -f NanumFont_TTF_ALL.zip
@
mouse key
double click: center
keyboard iteration
mute: ctrl win
v down: ctrl context
v up: ctrl ctrlR
launcher icon size: 26
sudo vi /etc/apt/sources.list
:
%s/kr.archive.ubuntu.com/ftp.daumkakao.com
:wq
sudo apt-get update
@
sudo apt-get install dconf-editor
dconf-editor
com canonical unity launcher
@
https://www.omgubuntu.co.uk/2016/11/file-search-app-fsearch-now-ppa
sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-daily
sudo apt-get update && sudo apt install fsearch-trunk
@
http://www.nvidia.co.kr/download/driverResults.aspx/130065/kr
file: NVIDIA-Linux-x86_64-340.106.run
ctrl alt f1
Remove installed graphic drivers
sudo apt-get remove nvidia* && sudo apt-get autoremove
Stop nuoveau
sudo vi /etc/modprobe.d/blacklist-nouveau.conf
Add following codes into blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
echo options nouveau modeset=0|sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
sudo reboot
Stop display manager
sudo service lightdm stop
sudo ./NVIDIA-Linux-x86_64-340.106.run
Automatical install graphic driver(this makes infinite login loop)
sudo apt-get install nvidia-361 libcuda1-361 nvidia-libopencl1-361 nvidia-opencl-icd-361 nvidia-prime nvidia-settings
sudo nvidia-xconfig
sudo reboot
sudo nvidia-settings
- Articles for infinite login loop
https://askubuntu.com/questions/762831/ubuntu-16-stuck-in-login-loop-after-installing-nvidia-364-drivers
sudo ubuntu-drivers list
then use:
sudo ubuntu-drivers autoinstall
For me, this updated the driver for my nvidia quadroFx 3800 in a way that using sudo apt-get install nvidia-current would not.
After autoinstall, invoke another tty (ex. ctrl+alt+f1) and
sudo service lightdm restart
sudo apt-get remove nvidia-*
sudo apt-get autoremove
Uninstall the drivers from the .run file:
sudo nvidia-uninstall
apt-get install nvidia-340
@
sudo apt-get install redshift
Make configuration file in following folder and name
~/.config/redshift.conf
home/young/.config/redshift.conf
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=2400
temp-night=2400
; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=0
; Solar elevation thresholds.
; By default, Redshift will use the current elevation of the sun to determine
; whether it is daytime, night or in transition (dawn/dusk). When the sun is
; above the degrees specified with elevation-high it is considered daytime and
; below elevation-low it is considered night.
;elevation-high=3
;elevation-low=-6
; Custom dawn/dusk intervals.
; Instead of using the solar elevation, the time intervals of dawn and dusk
; can be specified manually. The times must be specified as HH:MM in 24-hour
; format.
;dawn-time=6:00-7:45
;dusk-time=18:35-20:15
; Set the screen brightness. Default is 1.0.
brightness=0.8
; It is also possible to use different settings for day and night
; since version 1.8.
;brightness-day=0.7
;brightness-night=0.4
; Set the screen gamma (for all colors, or each color channel
; individually)
gamma=0.8
;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since
; version 1.10.
;gamma-day=0.8:0.7:0.8
;gamma-night=0.6
; Set the location-provider: 'geoclue2', 'manual'
; type 'redshift -l list' to see possible values.
; The location provider settings are in a different section.
location-provider=manual
; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values.
; 'randr' is the preferred method, 'vidmode' is an older API.
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.
adjustment-method=vidmode
; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings.
; ex: 'redshift -l manual:help'
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers.
[manual]
lat=48.1
lon=11.6
; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings.
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust only screen 0.
; Note that the numbering starts from 0, so this is actually the first screen.
; If this option is not specified, Redshift will try to adjust _all_ screens.
[randr]
screen=0
install redshift in ubuntu software
@
https://www.virtualbox.org/wiki/Linux_Downloads
Ubuntu 16.04 ("Xenial") AMD64 virtualbox-5.2_5.2.8-121009~Ubuntu~yakkety_amd64.deb
(sudo apt-get install build-essential
sudo apt-get install dkms
sudo apt-get install linux-headers-generic
cd /home/young/다운로드
sudo dpkg -i virtualbox-5.2_5.2.8-121009~Ubuntu~yakkety_amd64.deb)
install in ubuntu software
sudo apt-get update
sudo apt-get install virtualbox-5.2
cpu max
ram 2gb
disk 100gb
3d, 2d accelator
sudo adduser username vboxsf or sudo gpasswd -a username vboxsf
@
format, partition
1. unmount
1. sudo fdisk -l
1. delete partition: d
1. create partition: n
1. select primary
1. save and quit: w
1. format partition: sudo mkfs.ext4 /dev/sdb1
1. mount partition: mount /dev/sdb1 /media
1. get uuid: sudo blkid
1. sudo vi /etc/fstab
<식별번호> <마운트포인트> <파일시스템> <옵션>
/dev/sdb1: UUID="c0a832a2-3ca5-49bc-8fd8-3933b8f5972a" TYPE="ext4" PARTUUID="0fb10fb0-01"
UUID=f5e581fb-7942-495f-ade4-a44b21e1b171 /dev/sdb1 ext4 defaults 0 0
sudo fdisk -l
sudo fdisk /dev/sdb1
sudo mkfs.ext3 /dev/sdb1
/etc/fstab
UUID=f5e581fb-7942-495f-ade4-a44b21e1b171 /dev/sdb1 ext3 defaults,errors=remount-rw 0 1
refresh
sudo mount -a
sudo fdisk -l
sudo blkid
After adding disk, way ordinal account gets writing authority
/media: location where you mount
chown -R young /media
chmod +w /media/sda/
ls -all /media/
@
Reinstall Alsa and Pulse Audio
sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio
sudo alsa force-reload
Install Ubuntu Audio Development Team Driver
sudo add-apt-repository ppa:ubuntu-audio-dev
sudo apt-get update
sudo apt-get dist-upgrade
@
chrome browser configuration file
/home/young/.config/Default
@
Programming
@
sqlite3
* How to install SQLite 3.17.0 on Ubuntu 16.04
sudo add-apt-repository ppa:jonathonf/backports
sudo apt-get update && sudo apt-get install sqlite3
* How to uninstall SQLite from Ubuntu
sudo apt-get remove sqlite3
* How to Install SQLite Browser 3.9.1 on Ubuntu 16.10, Ubuntu 16.04, Ubuntu 16.04
sudo add-apt-repository ppa:linuxgndu/sqlitebrowser-testing
sudo apt-get update && sudo apt-get install sqlitebrowser
* How to remove SQLite Browser from Ubuntu
sudo apt-get remove sqlitebrowser
@
vscode
ctrl shift p 언어 "locale":"ko" "locale":"en-US"
{
"editor.fontSize": 18,
"window.newWindowDimensions": "inherit",
"workbench.colorCustomizations": {
"editor.background": "#000000",
"editorCursor.foreground": "#e00d0d",
"editor.selectionBackground": "#5e270e",
"editor.selectionHighlightBackground": "#893994",
"editor.findMatchBackground": "#500f64",
"editor.lineHighlightBackground": "#000000",
"editor.findMatchBorder": "#b18637",
"editor.hoverHighlightBackground": "#273d3d",
},
"python.pythonPath": "/home/young/anaconda3/bin/python",
"window.zoomLevel": 0,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"editor.parameterHints": false,
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.view.pdf.zoom": "2.0",
"python.linting.pylintEnabled": false,
}
@
- atom
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
@
sublimetext3
@
anaconda3
chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
$./Anaconda3-5.1.0-Linux-x86_64.sh
or
$sh Anaconda3-5.1.0-Linux-x86_64.sh
@
- install tensorflow
conda create -n tensorflow (x)
source activate tensorflow (x)
- install in base
conda info --envs
source activate (base)
pip3 install tensorflow
source deactivate
- how to remove conda space
conda remove --name tensorflow --all
@
You install konlpy
sudo apt-get install g++ openjdk-9-jdk
pip3 install JPype1
pip3 install konlpy
sudo apt-get install curl
bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)
@
You install mecab
*
You install automake
*
You ckeck version
automake --version
apt list automake
*
You install automake
sudo apt install automake
or
sudo apt install automake1.11
*
You install mecab-ko
tar zxfv mecab-XX-ko-XX.tar.gz
cd mecab-XX-ko-XX
./configure
make
make check
sudo make install
*
You install mecab-ko-dic
tar zxfv mecab-ko-dic-XX.tar.gz
cd mecab-ko-dic-XX
./autogen.sh
./configure
make
sudo make install
*
You can test
mecab -d /usr/local/lib/mecab/dic/mecab-ko-dic
Here, input your text
*
You can remove mecab
sudo apt-get remove mecab
*
You can remove mecab-ko-dic
sudo rm -rf /usr/local/lib/mecab/dic/mecab-ko-dic
*
/usr/local/etc/mecabrc
@
conda install -c conda-forge jupyterlab
or
pip install jupyterlab
@
sudo apt update && sudo apt install texlive-full
@
docker
- install
curl -fsSL https://get.docker.com/ | sudo sh
- give permission
sudo usermod -aG docker $USER # give permission to user who is currently connected
sudo usermod -aG docker your-user # give permission to user-name
sudo reboot
@
- openjdk-9 install bug
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1550950
https://askubuntu.com/questions/769467/can-not-install-openjdk-9-jdk-because-it-tries-to-overwrite-file-aready-includ/772485#772485
sudo apt-get -o Dpkg::Options::="--force-overwrite" install openjdk-9-jdk