Linux Mint

De Sam's Projects.
Aller à : Navigation, rechercher

Sommaire

Finger Print Sensor

sudo add-apt-repository -u ppa:3v1n0/libfprint-vfs0090
sudo apt install libpam-fprintd
fprintd-enroll

Conky

Installer la police Bebas Neue :

Mettre dans ~/.Conky :

NVidia Thinkpad P50

sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update ubuntu-drivers devices sudo apt-get install nvidia-settings

Installez le pilote nvidia-390.59

Qt Creator

Télécharger dernière version de qt puis :

chmod +x qt-opensource-linux-x64-5.7.0.run
./qt-opensource-linux-x64-5.7.0.run
sudo apt-get install build-essential
sudo apt-get install libfontconfig1
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y
sudo apt-get install libpulse-dev

redimenssioner image

sudo apt install nemo-image-converter

vim

Créer un fichier protégé :

vim -x file.txt


Faire de VIM un editeur Python :

[1] [2]

.vimrc :

set nocompatible              " required
filetype off                  " required
 
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
 
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
 
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
 
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
 
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'jnurmine/Zenburn'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'yuttie/comfortable-motion.vim'
" ...
 
" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
 
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
let g:SimpylFold_docstring_preview=1
 
au BufNewFile,BufRead *.py
    \ set tabstop=4 |
    \ set softtabstop=4 |
    \ set shiftwidth=4 |
    \ set textwidth=79 |
    \ set expandtab |
    \ set autoindent |
    \ set smartindent |
    \ set fileformat=unix
 
 
 
" au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
 
set encoding=utf-8
 
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g  :YcmCompleter GoToDefinitionElseDeclaration<CR>
 
let python_highlight_all=1
syntax on
 
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
 
set nu
 
" Wrap at 72 chars for comments.
set formatoptions=cq textwidth=72 foldignore= wildignore+=*.py[co]
 
let g:pymode_run_bind='<F5>'
autocmd FileType python nnoremap <F5> <Esc>:w<CR>:!sudo python %<CR>
 
 
map <C-n> :NERDTreeToggle<CR>
 
 
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
 
set splitbelow
set splitright
 
let g:comfortable_motion_scroll_down_key = "j"
let g:comfortable_motion_scroll_up_key = "k"
Outils personnels
Espaces de noms

Variantes
Actions
Farfouillage
Liens divers
Boîte à outils