パスワードを追加、パスワード未設定状態にする

追加(root権限で) $ passwd username 未設定状態にする(root権限で) $ passwd -d username

xfce4, lightdm で自動ログイン

/etc/lightdm/lightdm.conf [Seat:*] pam-service=lightdm pam-autologin-service=lightdm-autologin autologin-user=username autologin-user-timeout=0 session-wrapper=/etc/X11/Xsession 端末 $ groupadd -r autologin $ gpasswd -a username autologin

windows 10 にアップデートしたら linux側から起動時にmount 出来なくなった

winsows 10 側で高速スタートアップを有効にする(推奨)のチェックを外す。 /etc/fstab は windows 7 の頃のままの状態でいじらずにいけたけど、一応載せとこう (別HDDだからかな? ぐぐってみるとこういう情報も -> ubuntu13.10とWindows8(8.1)のデュアルブー…

git bash や msys2 の .inputrc

C-s と C-r で履歴を検索する $if Bash "\C-p": history-search-backward "\C-n": history-search-forward "\e[A":history-search-backward "\e[B":history-search-forward $endif Beep 音 を消す set bell-style none mintty を綺麗に表示する https://gith…

chromiumでPDFを閲覧するときにfontが崩れる

pacman -S ttf-liberation で解決。Chromium - ArchWiki

差分を見ながら/etc/sudoersを更新する (sudoers.pacnew)

# editorをvimに設定 $ sudo EDITOR=/usr/bin/vim visudo # 差分をとる準備 :diffthis # 新しい.Windowで .pacnewファイルを開く :vnew /etc/sudoers.pacnew # 差分を見ながら必要なものを取り込む :diffthis (vim) diff関連の使い方

anthy 顔文字

登録されている顔文字を表示するanthy-dic-tool --dump --utf8顔文字リストを作成するanthy-dic-tool --dump --utf8 > kaomozi-list顔文字を追加するcat kaomozi-list | anthy-dic-tool --load --utf8

Ubuntu 15.04 インストール後にすること(自分用メモ)

アップデート sudo apt-get update && sudo apt-get upgrade ブラウザ chrome (Flash OK!) wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stabl…

p11-kit: invalid config filename

p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-modulegit clone した時などに上記のようなメッセージが現れる。 sudo mv /etc/pkcs11/modules/gnome-keyring-module /etc/pkcs11/modules/gnome-keyr…

ターミナルとvimのカラー設定(base16-tomorrow)

$ cd ~/.config $ git clone https://github.com/chriskempson/base16-shell $ vim ~/.bashrc # 追加 BASE16_SHELL="$HOME/.config/base16-shell/base16-tomorrow.dark.sh" [[ -s $BASE16_SHELL ]] && source $BASE16_SHELL $ vim ~/.vimrc NeoBundle 'chris…

Windows 64bitでビルド環境を整える[mingw64]

Mingw64 セットアップ MinGW-w64 - for 32 and 64 bit Windows | SourceForge.net -> Browse All Files -> Toolchains targetting Win64 -> Personal Builds -> mingw-builds -> 4.9.2 (gccのバージョン) -> threads-posix -> seh 上の順で。最後に -> x86_6…

xfce4-panelのfontを変更する

# ~/.gtkrc-2.0 style "panel-font" { font_name = "MigMix 1M Regular 12" } widget_class "*Panel*" style "panel-font" # フォント名を調べる。 # $ fc-list # 変更を反映させる # $ xfce4-panel -r

gcc-4.9 インストール(debian wheezy)

# /etc/apt/sources.list # testing jessie deb http://ftp.jp.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.jp.debian.org/debian/ jessie main contrib non-free# /etc/apt/preferences Package: * Pin: release n=wheezy Pin-Pri…

Debian (Wheezy) インストール後にすること(自分用メモ)

Debian Wheezy * 基本システムユーティル のみをチャックしてインストールした。(デスクトップ環境やXや(余計な)libreofficeがインストールされていないインストール) デスクトップ環境導入まで $ apt-get update $ apt-get install xorg xfce4 xfce4-termin…

Rictyを生成する

$ apt-get install ttf-inconsolata fonts-migmix fontforge $ git clone https://github.com/yascentur/Ricty $ cd Ricty # Ricty生成 $ ./ricty_generator.sh auto $ cp -f Ricty*.ttf ~/.fonts/ $ fc-cache -vf

Gmailのデスクトップ通知

gmail-notifyもcheckgmailもアカウントにログインできないので色々調べているとxfce4-mailwatch-pluginというものでデスクトップ通知できるみたい。 $ apt-get install xfce4-mailwatch-pluginプロパティ->クリックで実行 xdg-open https://gmail.com プロパ…

音が出ない

/etc/modprobe.d/alsa-base.conf options snd_hda_intel index=0 options snd_usb_audio index=1上記だとまだ音がでないので model=generic を加える。 options snd_hda_intel index=0 model=generic options snd_usb_audio index=1音出た!

CMOSクリアからのBIOSアップデート

ファンの掃除をし終わったらPCがwindowsのロゴの所で止まって、進まなくなった(起動しない)。システムの復元をしますか?とか聞かれて、はい。と答えたら再起動->。。。?うんともすんともいわなくなった(Biosのstart表示さえもでなくなった)CMOSクリア(BIO…

Gitの使い方

コミットメッセージの修正 直前のコミットメッセージ以外 直前のコミットメッセージ 一番最初のコミットメッセージ(first commit) その他 IDやPASSWORDの入力を省略する passwordの取り扱いの変更について コミットメッセージの修正 直前のコミットメッセー…

sudo 時のパスワードの入力を省く

wheelグループにsudoをパスワード入力なしで可能にする。 $ visudo (コメントを外して有効にする) %wheel ALL=(ALL) NOPASSWD: ALL又は、/etc/sudoers.d/内にファイルを作る。 (mynameにsudoをパスワード入力なしで可能にする。) # /etc/sudoers.d/myname my…

端末上のvimで全角記号の表示がおかしい

Arch Linux、xfce4-terminal上のvimで全角記号○◇などの表示がおかしい場合の修正方法 # ~/.vimrc set ambiwidth=double # ~/.bash_profile export VTE_CJK_WIDTH=1 一度、loginしなおすと正しく表示されるようになりました。

Anthyの辞書登録

登録したい文字列を書き込んだファイルを用意する # ~/.anthy ディレクトリ内にある private-dic.src に登録する文字列を書く。 # 書き方などは↓ $ anthy-dic-tool --dump --utf8 # 書き方のパターンなどは↓ $ vi /usr/share/anthy/typetab # (例) ~/.anthy/…

arch linux インストールメモ

使用ISOバージョン archlinux-2014.03.01-dual.iso スタート Boot Arch Linux (i686)# loadkeys jp106 ハードディスクのデバイス名を確認 # fdisk -l (fdisk -l /dev/sda) # df -h 作成 作成する予定図 HDD 250GB /dev/sda1 *(bootflag) ext4 400M ブートパ…

Ubuntu 13.10でemacs 24.3.1をビルドした

$ sudo apt-get build-dep emacs24 $ wget http://mirror.jre655.com/GNU/emacs/emacs-23.4.tar.gz $ tar zxf emacs-24.3.tar.gz $ cd emacs-24.3 $ ./configure $ make bootstrap $ sudo make install $ emacs --version GNU Emacs 24.3.1 Copyright (C) 20…

cygwin64においてのwstringとwcout(文字化けなど)

g++ なら文字化けせずに日本語が出力される。 #include <iostream> using namespace std; int main() { // 成功 setlocale(LC_ALL, ""); // or setlocale(LC_ALL, "ja_JP.UTF-8"); wchar_t const *s = L"あいうえお"; wcout << wcslen(s) << " : " << s << endl; // $ </iostream>…

cygwin64でwindowsネイティブアプリ

ソースコード cygwin64でMessageBoxの文字化け回避 - プログラミングのメモ $ PATH=$PATH:/usr/x86_64-w64-mingw32/sys-root/mingw/bin $ x86_64-w64-mingw32-g++ -DUNICODE -std=c++11 -mwindows -Wall test.cpp -o sample.exe $ ldd sample.exe ntdll.dll …

cygwin64でMessageBoxの文字化け回避

#include <windows.h> // fileencoding=utf-8 // fileformat=utf-8 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // 成功 //LPCWSTR s = L"あいうえお"; // 成功 //WCHAR s[] = L"あいうえお"; //WCHAR const </windows.h>…

cygwin64 にてpythonのライブラリをインストール

cygwin64ではsetup-x86_64からインストールする lxml mako 手動でダウンロードしてインストールする httplib2 https://github.com/jcgregorio/httplib2 python-oauth2 https://pypi.python.org/pypi/python-oauth2/ ダウンロードしたファイルのディレクトリ…

cygwin64 setup

$HOMEと~をWindowsの%HOME%と同じにする vi $HOME/test.c →/cygdrive/c/Users/non/test.c が開かれるvi ~/test.c →home/non/test.c が開かれるこの違いを解消するには /etc/passwd の中から/home/non:/bin/bash を書き換えればいい。 old /home/non:/bin/bas…

Emacs 24.3でDDSKKを使う

ddskkをダウンロード URL → http://openlab.ring.gr.jp/skk/ddskk-ja.html makeit.bat内を編集 set EMACS=C:\emacs-24.3\bin\emacs.exe$ makeit.bat installC:\emacs-24.3\site-lisp\skkにインストールされる SKK-JISYO.Lをダウンロード URL → http://openla…