Ubuntu 14.04 remote desktop with xrdp

install xrdp server sudo apt-get install xrdp sudo apt-get install xlde echo lxsession -s LXDE -e LXDE > ~/.xsession sudo service xrdp restart

2014-10-23 ·  2014-10-23 · 1 分 · 23 文字

Ubuntu14.04 ruby 用 vim 設定

ruby 開発環境 vim install sudo apt-get install vim vim-gtk vim-gui-common install vim-nox vim --version |grep ruby +diff +menu -ruby +writebackup sudo apt-get install vim-nox vim --version |grep ruby +diff +menu +ruby +writebackup settings mkdir -p ~/.vim/bundle cd ~/.vim/bundle/ git clone http://github.com/Shougo/neobundle.vim vim ~/.vimrc set number set nocompatible filetype plugin indent off if has('vim_starting') set runtimepath+=~/.vim/bundle/neobundle.vim call neobundle#rc(expand('~/.vim/bundle')) endif " 以下は必要に応じて追加 " NeoBundle 'Shougo/unite.vim' " NeoBundle 'Shougo/neosnippet.vim' NeoBundle 'git://github.com/Shougo/neobundle.vim.git' NeoBundle 'git://github.com/Shougo/neocomplcache.git' NeoBundle 'git://github....

2014-10-23 ·  2014-10-23 · 1 分 · 164 文字

wripeでバックアップしたtxtファイルの中身からファイル名を変更する

bash script でwripeバックアップファイルの変換処理を書いた 主な内容 bash script Ubuntu 14.04で確認 UTF8,LF変換にnkf のインストールが必要 ファイル変換内容 1行目(wripeタイトル)から、ファイル名決定 ファイル名に使用できる文字列変換 wripeタイトルに日付が入っていた場合の処理をある程度考慮 1行目は削除 UTF8,LF変換 tag 空白4文字変換 起動引数 第一引数:バックアップファイルの保存先 疲れた…. #!/bin/bash DIR_IN=$1 OUT_NAME=out DIR_OUT=$DIR_IN/$OUT_NAME which nkf 1>/dev/null 2>/dev/null RC=$? if [ $RC -ne 0 ]; then echo "nkf not installed!" return fi if [ "" == "$1" ]; then echo "arg1(input directory) is blank!" return fi if [ -d $DIR_IN ]; then # specified directory is exist. if [ -e $DIR_OUT ]; then # out dir is exist....

2014-10-19 ·  2014-10-19 · 2 分 · 421 文字

Google Bloggerで highlight.js をつかう

Edit HTML and add this under title tag in head tag. <!-- jokrlzy add --> <!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript" ></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/monokai_sublime.min.css"> --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <!-- jokrlzy add --> add custom css body, textarea { font-size: 20px; font-family: "meiryo","メイリオ","ヒラギノ角ゴ Pro W3", "MS Pゴシック", sans-serif; } h1 {font-size: 60px;} h2 {font-size: 50px;} h3 {font-size: 40px;} h4 {font-size: 30px;} h5 {font-size: 20px;} pre {margin-left: 30px;}

2014-10-18 ·  2014-10-18 · 1 分 · 68 文字

Ubuntu 14.04 Change LF UTF-8 Under Specified Directory

Install nkf sudo aptitude install nkf usege nkf -wLu --overwrite *.txt # -w: change to UTF8 # -Lu: change to LF # --overwrite: overwrite file! Exclude .git or and so on files, and specified some extension. find . \( -name "i18n" -o -name ".git" -o -name "jquery*.js" -o -name "jquery*.css" \) -prune -o -type f \( -name "*.txt" -o -name "*.js" -o -name "*.css" -o -name "*.html" -o -name "*.php" \) -print -exec nkf -wLu --overwrite {} \;

2014-10-12 ·  2014-10-12 · 1 分 · 78 文字