Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@wnoguchi
wnoguchi / gist:6386276
Created August 30, 2013 04:18
メールでRedmineのチケット登録。
Project: sample-proj
Status: 終了、解決等漢字で書く
@wnoguchi
wnoguchi / gist:6450689
Last active December 22, 2015 09:18
wgetおそいなあって思ったらIPv6で読み出そうとしてる。
wget http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/netboot.tar.gz
--2013-09-05 23:13:55-- http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/netboot.tar.gz
archive.ubuntu.com をDNSに問いあわせています... 2001:67c:1360:8c01::1a, 2001:67c:1360:8c01::22, 2001:67c:1360:8c01::23, ...
archive.ubuntu.com|2001:67c:1360:8c01::1a|:80 に接続しています... ^C
おまえはこうして
wget http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/netboot.tar.gz --inet4-only
こうじゃ
@wnoguchi
wnoguchi / gist:6476760
Created September 7, 2013 15:57
curlでファイルに保存。-o オプションを使う。
localhost:pxe noguchiwataru$ curl http://192.168.1.31/dhcpd.conf -o dhcpd-ubuntu.conf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4183 100 4183 0 0 2334k 0 --:--:-- --:--:-- --:--:-- 4084k
@wnoguchi
wnoguchi / gist:6482786
Created September 8, 2013 08:01
Ubuntu 12.04 Precise Serverのpxelinuxのデフォルト。
# ubuntu-installer/amd64/boot-screens/txt.cfg
default install
label install
menu label ^Install
menu default
kernel ubuntu-installer/amd64/linux
append vga=788 initrd=ubuntu-installer/amd64/initrd.gz -- quiet
label cli
menu label ^Command-line install
kernel ubuntu-installer/amd64/linux
# To install grub to multiple disks:
#d-i grub-installer/bootdev string (hd0,0) (hd1,0) (hd2,0)
@wnoguchi
wnoguchi / preseed.md
Last active December 22, 2015 16:09
Ubuntu Preseedのパーティショニング関係のメモ。

Preseed Debugging

カーネルパラメータに DEBCONF_DEBUG=5 を指定する。
出力されるログは2つ?
2つある。どっちが正しいのかわからない。

  1. /var/log/installer/syslog
    死ぬほど長い。
  2. /var/log/syslog
    許せるレベル。
@wnoguchi
wnoguchi / gist:6497319
Created September 9, 2013 15:36
Mac OS Xでknife configureできない!なんで。
localhost:chef noguchiwataru$ git clone git://github.com/opscode/chef-repo.git
Cloning into 'chef-repo'...
remote: Counting objects: 218, done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 218 (delta 79), reused 173 (delta 49)
Receiving objects: 100% (218/218), 37.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (79/79), done.
Checking connectivity... done
@wnoguchi
wnoguchi / gist:6510304
Created September 10, 2013 14:35
MacOS Xでsandbox offしたらエラーになった。なにゆえ。。。
localhost:example noguchiwataru$ vagrant sandbox off
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Snapshot operation failed
VBoxManage: error: Code NS_ERROR_FAILURE (0x80004005) - Operation failed (extended info not available)
VBoxManage: error: Context: "int handleSnapshot(HandlerArg*)" at line 431 of file VBoxManageSnapshot.cpp
@wnoguchi
wnoguchi / gist:6561525
Created September 14, 2013 12:12
gnome-open on Ubuntu
wnoguchi@wnoguchi-VirtualBox:/var/tmp/ubuntu1204$ gnome-open .
プログラム 'gnome-open' はまだインストールされていません。 次のように入力することでインストールできます:
sudo apt-get install libgnome2-bin
wnoguchi@wnoguchi-VirtualBox:/var/tmp/ubuntu1204$ sudo apt-get -y install libgnome2-bin