This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff /etc/ssh/sshd_config /etc/ssh/sshd_config.dist | |
26c26 | |
< PermitRootLogin no | |
--- | |
> PermitRootLogin yes | |
50c50 | |
< PasswordAuthentication no | |
--- | |
> #PasswordAuthentication yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install vim | |
$ sudo apt-get install zsh | |
$ sudo apt-get install git-core | |
$ sudo apt-get install tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |