Skip to content

Instantly share code, notes, and snippets.

View yano3's full-sized avatar
❄️
NO SNOW, NO LIFE.

Teppei Yano yano3

❄️
NO SNOW, NO LIFE.
View GitHub Profile
@yano3
yano3 / gist:2858555
Created June 2, 2012 14:10
Sakura VPS Ubuntu 10.04 amd64 Guided - use entire disk
$ sudo fdisk -l
Disk /dev/vda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d09a4
Device Boot Start End Blocks Id System
@yano3
yano3 / gist:2858672
Created June 2, 2012 14:39
Sakura VPS Ubuntu 10.04 amd64 Guided - use entire disk and set up LVM
$ sudo fdisk -l
Disk /dev/vda: 214.7 GB, 214748364800 bytes
16 heads, 63 sectors/track, 416101 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00080477
Device Boot Start End Blocks Id System
@yano3
yano3 / gist:2862006
Created June 3, 2012 05:10
Sakura VPS Ubuntu 10.04 amd64 Manual
$ sudo fdisk -l
Disk /dev/vda: 214.7 GB, 214748364800 bytes
16 heads, 63 sectors/track, 416101 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00080477
Device Boot Start End Blocks Id System
$ sudo update-locale LC_ALL=en_US.UTF-8
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
@yano3
yano3 / gist:2862354
Created June 3, 2012 07:07
ufw setting
$ sudo ufw status
Status: inactive
$ sudo ufw default deny
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
$ sudo ufw allow ssh
Rules updated
$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
@yano3
yano3 / gist:2862478
Created June 3, 2012 07:39
sshd_config diff
$ diff /etc/ssh/sshd_config /etc/ssh/sshd_config.dist
26c26
< PermitRootLogin no
---
> PermitRootLogin yes
50c50
< PasswordAuthentication no
---
> #PasswordAuthentication yes
@yano3
yano3 / gist:2862547
Created June 3, 2012 08:17
Ubuntu 10.04 setup / installed packages
$ sudo apt-get install vim
$ sudo apt-get install zsh
$ sudo apt-get install git-core
$ sudo apt-get install tmux
@yano3
yano3 / gist:2863455
Created June 3, 2012 13:19
Ubuntu 10.04 setup / JDK Installation
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jvm/jdk1.7.0_04/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jvm/jdk1.7.0_04/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jvm/jdk1.7.0_04/bin/javaws" 1
@yano3
yano3 / Vim_2012-08-21-094712_xxxx.crash
Created August 21, 2012 01:11
Saved crash report for Vim
Process: Vim [43417]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: MacVim [43414]
Date/Time: 2012-08-21 09:47:11.709 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@yano3
yano3 / Vim_2012-08-21-103439_xxxx.crash
Created August 21, 2012 01:36
Saved crash report for Vim
Process: Vim [43760]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: MacVim [43756]
Date/Time: 2012-08-21 10:34:37.061 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6