-
Couldn't load subscription status.
- Fork 0
Linux
| Commands | Detail |
|---|---|
| pwd | Print Working Directory |
| finger | Show user info |
| locate | Search (database based) |
| find | Search |
| awk | 空白区切りデータ処理を得意とするスクリプト言語 |
| tr | 文字の一括変換 |
| who | ログインユーザーの確認 |
| whoami | 自ユーザーの確認 |
| groups | グループの確認 |
| gpasswd | /etc/group の管理。ユーザ追加削除など |
| chown | ファイル・フォルダの所有者変更 |
| chgrp | ファイル・フォルダの所有グループ変更 |
| id | ユーザー名・グループ名、ユーザーID、グループIDの確認 |
| dig | DNS の確認 (domain information groper) |
| ifconfig | ネットワークインタフェースの確認 |
| Files | Detail |
|---|---|
| /etc/passwd | Password, Home directory, Login shell |
">" 実行ごとにファイルを新しく作成(同名は上書き)
">>" 既存ファイルに追記
"<<" 複数行入力可能。"<<" に続く文字列を終了文字列とする
Dash -> コンピューターとオンラインリソースを検索 -> update
> env LANGUAGE=C LC_MESSAGES=C xdg-user-dirs-gtk-update
> sudo dpkg-reconfigure keyboard-configuration
$ wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -
$ wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -
$ sudo wget https://www.ubuntulinux.jp/sources.list.d/trusty.list -O /etc/apt/sources.list.d/ubuntu-ja.list
$ sudo apt-get update
$ sudo apt-get install ubuntu-defaults-ja
> gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
システム設定 -> 外観 -> 挙動 -> ワークスペースを有効にする
sudo add-apt-repository ppa:xxxx
sudo apt-get update
システム設定 -> ソフトウェアとアップデート -> 他のソフトウェア
$ sudo apt-get install git
https://github.com/robbyrussell/oh-my-zsh
# cd した先のディレクトリをディレクトリスタックに追加する
DIRSTACKSIZE=100
setopt auto_pushd
# pushd したとき、ディレクトリがすでにスタックに含まれていればスタックに追加しない
setopt pushd_ignore_dups
about:config -> browser.backspace_action = 0
キモいので設定でOFFする
コマンドラインランチャ
クリップボード拡張
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
-
Check out rbenv into
~/.rbenv.$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv -
Add
~/.rbenv/binto your$PATHfor access to therbenvcommand-line utility.$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
-
Add
rbenv initto your shell to enable shims and autocompletion.$ echo 'eval "$(rbenv init -)"' >> ~/.zshrc
-
Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.) Now check if rbenv was set up:
$ type rbenv #=> "rbenv is a function"
$ apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-devruby-build のインストール
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build-
インストール可能なバージョン一覧
$ rbenv install -l
-
任意のバージョンインストール
$ rbenv install 2.0.0-p647
-
使用バージョン指定
$ rbenv global xxx $ rbenv local xxx
$ gem install rails -v 4.0.5
$ sudo apt-get install libxslt-dev libxml2-dev libsqlite3-dev # Linuxのみ
$ curl -sL https://deb.nodesource.com/setup | sudo bash -
$ sudo apt-get install nodejs
公式からインストーラ(deb)をダウンロードして実行、ソフトウェアセンターからインストール
設定ディレクトリはここ (~/.config/sublime-text-3/Packages/User)
Diff tool
% wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
% sudo apt-get install postgresql
$ sudo add-apt-repository ppa:linuxgndu/sqlitebrowser # リポジトリの登録
$ sudo apt-get update # リポジトリを追加したので更新
$ sudo apt-get install -y sqlitebrowser # SqlibBrowserをインストール
詳細は公式
ダウンロードして解凍してパス通す
ダウンロードして解凍
- Install pip and virtualenv:
$ sudo apt-get install python-pip python2.7-dev
$ sudo pip install virtualenv
- Install the Python library dependencies locally:
$ cd ~/pebble-dev/PebbleSDK-3.2
$ virtualenv --no-site-packages .env
$ source .env/bin/activate
$ pip install -r requirements.txt
$ deactivate
$ sudo apt-get install libsdl1.2debian libfdt1 libpixman-1-0