Skip to content

Instantly share code, notes, and snippets.

@dj-shin
Last active June 27, 2017 18:04
Show Gist options
  • Save dj-shin/22121ff0a934b7af9fe486e8cb30e25c to your computer and use it in GitHub Desktop.
Save dj-shin/22121ff0a934b7af9fe486e8cb30e25c to your computer and use it in GitHub Desktop.
Installing Manjaro on Lenovo P50

Settings

  • Manjaro 17.0.2 GNOME Edition
  • Lenovo P50

Pre-Installation

  1. Create install USB with Rufus
  • GPT + UEFI
  • DD mode (not ISO)
  1. BIOS
  • Disable secure boot
  • Adjust boot priority

Installing Manjaro

  1. Language, keyboard, etc
  2. Partition as whichever preferred

Setup

Mirrorlist

  • Connect to internet
  • Setup mirrorlist : rankmirrors -i -> choose about 10 with recently synced

Install Yaourt

sudo pacman -S yaourt

Basic environment settings

  • yaourt -S vim git zsh cmake make gcc
  • Remove conflicting gcc-libs-multilib
  • git clone https://github.com/LastOne817/.dotfiles
  • ./install
  • After logout, shell and vim is set

Korean

Keyboard

  • Ibus-hangul
  • yaourt -S ibus ibus-hangul
  • ibus-setup
  • Keycode : "Hangul"
  • in ~/.zshrc
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
  • in ~/.xprofile : ibus-daemon -drx

Fonts

yaourt -S ttf-nanum ttf-nanumgothic_coding

Terminal Transparency

yaourt -S gnome-terminal-transparency

@dj-shin
Copy link
Author

dj-shin commented Jun 27, 2017

Tensorflow

  • yaourt -S bazel python-numpy cuda mlocate cudnn python-pip python-wheel nvidia
  • sudo updatedb
  • Install from source 참조

Graphics Driver

Nouveau로는 제대로 작동하지 않아서 bumblebee로 바꿔준다.

  • yaourt -Rs xf86-video-nouveau
  • yaourt -S bumblebee mesa
  • /etc/modprobe.d/blacklist.conf : blacklist nouveau
  • gpasswd -a [username] bumblebee
  • systemctl enable bumblebeed

Check

nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66                 Driver Version: 375.66                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro M2000M       Off  | 0000:01:00.0     Off |                  N/A |
| N/A   43C    P8    N/A /  N/A |    264MiB /  4042MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1090    G   /usr/lib/xorg-server/Xorg                      102MiB |
|    0      1172    G   /usr/bin/gnome-shell                            69MiB |
|    0      1776    G   ...el-token=51AF05F9502710F6D290A1D786D30D90    90MiB |
+-----------------------------------------------------------------------------+
Python 3.6.1 (default, Mar 27 2017, 00:27:06) 
[GCC 6.3.1 20170306] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, tf')
>>> sess = tf.Session()
2017-06-28 03:03:18.011165: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:893] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2017-06-28 03:03:18.011536: I tensorflow/core/common_runtime/gpu/gpu_device.cc:938] Found device 0 with properties: 
name: Quadro M2000M
major: 5 minor: 0 memoryClockRate (GHz) 1.137
pciBusID 0000:01:00.0
Total memory: 3.95GiB
Free memory: 3.66GiB
2017-06-28 03:03:18.011549: I tensorflow/core/common_runtime/gpu/gpu_device.cc:959] DMA: 0 
2017-06-28 03:03:18.011554: I tensorflow/core/common_runtime/gpu/gpu_device.cc:969] 0:   Y 
2017-06-28 03:03:18.011560: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1028] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Quadro M2000M, pci bus id: 0000:01:00.0)
>>> print(sess.run(hello))
b'Hello, tf'

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