画面は青かった。

・ワ・)うえてしぬのだ

イベントログを触ってみる

日々社畜業に勤しんでいると、月にどのくらい社畜しているか気になるものです。
社畜の嗜みとして勤務時間の記録はきちんとしておきたいものですが、よく記録するの忘れます。
数日程度忘れます。
PCついてる時間≒勤務時間ということでまとめてイベントログから拾えばいいんじゃ?ということで。

今インストールされているOpenSSLがビルドされた時のあんな事やこんな事を確認する

Heartbleed Bugとか、CCS Injection Vulnerabilityとかあって調べたのでめも。

本家マニュアルはこちらです。

使ってみる

"-f"オプションで確認できます。

$ openssl version -f
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM

"-a"をつけておけばビルドした日付とか色々出ます。

$ openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Tue Apr 8 02:39:29 UTC 2014
platform: linux-x86_64
options: bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/etc/pki/tls"
engines: dynamic

プログラミング生放送勉強会 第29回@サイボウズ株式会社 松山オフィス #pronama 突撃してきました。

6/14日(土)に行われた「プログラミング生放送勉強会 第29回@サイボウズ株式会社 松山オフィス」に参加してきました。

一言。
プロ生ちゃんマジ天使!

参加の動機のようなもの

主にだるやなぎ氏のコンテンツ力に影響されました。
3月後半ぐらいの私のTLをさかのぼると出てくると思いますが、とにかくノープランでえいやと参加ボタンを押したのは仕方のないことだと思います。

懇親会

周囲を猛者達に固められて小さくなっておりました。
がりっち氏とお話できました。Global Windows Azure Boot Camp 2014 in Japan!!の時からロックオンされていた模様。

参加します!!

6/21 CLR/H+プログラミング生放送勉強会@GMO Yours
相変わらずノリと勢いですが、懇親会のときに参加を決定しました。
皆さまよろしくお願いします。

*1:一息で書ききれないのでちょっとずつ書き足します

*2:一息で書ききれないので(ry

L4D2をホストしようとして気になったこと

L4D2をホストするために作業していますが、これって何なんでしょうね…。
ゲームする上で特に支障なさそうな感じはしていますが気になる。

Couldn't find any entities named ほげほげ

erudot@debian:~/Steam/left4dead2$ ./srcds_run -console -game left4dead2
WARNING: No map specified! Defaulting to c1m1_hotel
Server will auto-restart if there is a crash.
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Game_srv.so loaded for "Left 4 Dead 2"
Server is hibernating
ConVarRef test_progression_loop doesn't point to an existing ConVar
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Parent cvar in server.dll not allowed (spit_scaling_min_scale)
Game supporting (2) split screen players
maxplayers set to 18
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Unknown command "mat_bloom_scalefactor_scalar"
Network: IP 127.0.1.1, mode MP, dedicated Yes, ports 27015 SV / 0 CL

        • Host_NewGame ----

Host_NewGame on map c1m1_hotel
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
CSpeechScriptBridge initializing...
HSCRIPT loaded successfully
Initializing Director's script
Couldn't find any entities named fire13_timer, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_clip, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_smoke, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_fog_volume, which point_template fire13_template is specifying.
Couldn't find any entities named fire14_timer, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_clip, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_smoke, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_fog_volume, which point_template fire14_template is specifying.
Couldn't find any entities named fire15_timer, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_clip, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_smoke, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_fog_volume, which point_template fire15_template is specifying.
Couldn't find any entities named fire16_timer, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_clip, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_smoke, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_fog_volume, which point_template fire16_template is specifying.
Couldn't find any entities named sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire03-sound, which point_template fire03-template is specifying.
Couldn't find any entities named fire04-sound, which point_template fire04-template is specifying.
Couldn't find any entities named fire10-sound, which point_template fire10-template is specifying.
Couldn't find any entities named fire27-sound, which point_template fire27-template is specifying.
Couldn't find any entities named fire28-sound, which point_template fire28-template is specifying.
Couldn't find any entities named fire_ballroom_02-sound, which point_template fire_ballroom_02-template is specifying.
Couldn't find any entities named fire_ballroom_01-sound, which point_template fire_ballroom_01-template is specifying.
Couldn't find any entities named fire_ballroom_03-sound, which point_template fire_ballroom_03-template is specifying.
Couldn't find any entities named fire_ballroom_04-sound, which point_template fire_ballroom_04-template is specifying.
Couldn't find any entities named fire_ballroom_05-sound, which point_template fire_ballroom_05-template is specifying.
Couldn't find any entities named fire_ballroom_06-sound, which point_template fire_ballroom_06-template is specifying.
Couldn't find any entities named fire_ballroom_07-particles, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point1, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point3, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point5, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point6, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-hurt, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_08-sound, which point_template fire_ballroom_08-template is specifying.
Couldn't find any entities named fire_ballroom_09-sound, which point_template fire_ballroom_09-template is specifying.
Couldn't find any entities named fire_ballroom_10-sound, which point_template fire_ballroom_10-template is specifying.
Couldn't find any entities named fire_ballroom_11-sound, which point_template fire_ballroom_11-template is specifying.
Couldn't find any entities named inferno02-sound, which point_template inferno02-template is specifying.
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
WARNING: orator at 454 5671 2684 missing modelname
Attempting to precache model, but model name is NULL
Commentary: Loading commentary data from maps/c1m1_hotel_commentary.txt.
Initializing Director's script
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 550
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
exec: couldn't exec server.cfg
Connection to Steam servers successful.
VAC secure mode is activated.

Debianでsudo

CentOSと違ってデフォルトで入っていないのでメモ。

root@debian:~# visudo
-bash: visudo: command not found

sources.listを編集。
DVDからのパッケージ取得を無効にする。

root@debian:~# vi /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official amd64 DVD Binary-1 20131012-14:05]/ wheezy contrib main

# deb cdrom:[Debian GNU/Linux 7.2.0 _Wheezy_ - Official amd64 DVD Binary-1 20131012-14:05]/ wheezy contrib main

deb http://ftp.jaist.ac.jp/debian/ wheezy main
deb-src http://ftp.jaist.ac.jp/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib

# wheezy-updates, previously known as 'volatile'
deb http://ftp.jaist.ac.jp/debian/ wheezy-updates main contrib
deb-src http://ftp.jaist.ac.jp/debian/ wheezy-updates main contrib

sudoインストール

root@debian:~# apt-get install sudo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 842 kB of archives.n
After this operation, 1,882 kB of additional disk space will be used.
Get:1 http://ftp.jaist.ac.jp/debian/ wheezy/main sudo amd64 1.8.5p2-1+nmu1 [842 kB]
Fetched 842 kB in 0s (31.3 MB/s)
Selecting previously unselected package sudo.
(Reading database ... 24605 files and directories currently installed.)
Unpacking sudo (from .../sudo_1.8.5p2-1+nmu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up sudo (1.8.5p2-1+nmu1) ...

visudoして作業用ユーザでsudoできるよう定義を追加する。

erudot ALL=(ALL:ALL) ALL

確認

erudot@debian:~$ sudo ifconfig

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for erudot:

Debian(squeeze)無線LAN環境の構築

Debian(squeeze)で無線LANを使うまでの作業メモ。
今回、魔が差して有線LANに接続せずに環境を構築してみた。

環境

参考サイト
Ubuntu 9.10で無線LANアダプタWLI-CB-AMG54を使う
無線LAN導入記(on Debian/GNU Linux Etch) - *読書と物理と時々車 - Yahoo!ブログ

#lspci -v

16:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)

Subsystem: Melco Inc Buffalo WLI-CB-AMG54

Flags: bus master, medium devsel, latency 168, IRQ 16

Memory at 44000000 (32-bit, non-prefetchable) [size=64K]

Capabilities: [44] Power Management version 2

Kernel driver in use: ath5k

Atheros用のカーネルモジュールを読み込まない

#echo "blacklist ath5k" >> /etc/modprobe.d/blacklist.conf

PCを再起動。

#lspci -v
16:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
Subsystem: Melco Inc Buffalo WLI-CB-AMG54
Flags: medium devsel, IRQ 16
Memory at 44000000 (32-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: [44] Power Management version 2

ndiswrapperをインストールする。
以下のパッケージをインストール。

ndiswrapper-common_1.56-1_all.deb
ndiswrapper-utils-1.9_1.56-1_i386.deb
ndiswrapper-source_1.56-1_all.deb
module-assistant_0.11.3_all.deb
debhelper_8.0.0_all.deb
dpkg-dev_1.15.8.10_all.deb
libdpkg-perl_1.15.8.10_all.deb
libtimedate-perl_1.2000-1_all.deb
make_3.81-8_i386.deb
html2text_1.3.2a-15_i386.deb
binutils_2.20.1-16_i386.deb
po-debconf_1.0.16+nmu1_all.deb
intltool-debian_0.35.0+20060710.1_all.deb
gettext_0.18.1.1-3_i386.deb
libcroco3_0.6.2-1_i386.deb
libglib2.0-0_2.24.2-1_i386.deb
libgomp1_4.4.5-8_i386.deb
libunistring0_0.9.3-3_i386.deb

BUFFALOのページからWindows2000用ドライバをダウンロード・インストール。

#ndiswrapper -i netamg54.inf


インストール状況を確認。

#ndiswrapper -l
netamg54 : driver installed
device (168C:0013) present (alternate driver: ath5k)

#depmod -a

#modprobe ndiswrapper
FATAL: Module ndiswrapper not found.

ndiswrapperのモジュールが無いらしい。

DVDを挿入。
モジュールをビルドする。

#module-assistant prepare
#module-assistant a-i ndiswrapper

今度は通ります。

#modprobe ndiswrapper

自動起動ファイルの生成と起動時にロードする設定。

#ndiswrapper -m
#echo "ndiswrapper" >> /etc/modules

私の無線LAN環境はWPA2PSK(TKIP)なので、wpa_supplicantをインストール

#dpkg -i wpasupplicant_0.6.10-2.1_i386.deb

wpa_supplicant.confを生成

#wpa_passphrase myid mypass > /etc/wpa_supplicant/wpa_supplicant.conf

network={
ssid="myid"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}

/etc/network/interfacesを編集

iface wlan0 inet dhcp
wpa-essid "myid"
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

接続てすと

#ifup wlan0