Shammer's Philosophy

My private adversaria

2014-01-01から1年間の記事一覧

Missing Power Off Icon on Debian Wheezy - version 2

I wrote Missing Power Off Icon on Debian wheezy - Shammerism before, but I discover my mistake. I wrote that gnome-tweak-tool is required to show shutdown button, but this is not required on wheezy 7.6. That may not be my mistake, but vers…

Bind Logging Configuration

Steps mkdir /var/log/named chown bind /var/log/named chgrp bind /var/log/named generate /etc/bind/named.logging.conf with following content. add following line to /etc/bind/named.conf check config with "named-checkconf /etc/bind/named.conf…

Using Tomcat Deployer via ant

Download Tomcat Deployer from Apache Site Expand Deployer's tar.gz file anywhere you like(call the directory tomcat.deployer.dir) Generate build.xml Add following element to build.xml <path id="classpath.tomcat"> <fileset dir="${topmcat.dir}/lib/"> <include name="*.jar" /> …</include></fileset></path>

Tomcat daemon configuration on Debian

According to Apache Tomcat 7 (7.0.92) - Tomcat Setup, tomcat can be invoked as UNIX daemon. And installation step is explained in this document. This requires JDK and gcc. I try this by following steps. This article is an additional one of…

Java environment setup on Debian by using /etc/profile.d

This is a replacement of Install JavaSDK and apache-tomcat on Debian - Shammerism. The script files located at /etc/profile.d/ are invoked during boot. I generate javaenv.sh. JDK installation step is same as above article. javaenv.sh expor…

Basic DNS Configuration

What DNS Server should do? Basic DNS server functions are below. DNS Server configuration files Manage own zone Resolver DNS Server configuration files are depended on the DNS Server. I use bind so I will write about bind config files. The…

SRIOVとは

この記事について 業務でSRIOVについて触れる機会があった。言葉は聞いたことがあるが、詳細はよくわからなかったので内容をメモ。 SRIOVとは Single Root I/O Virtualization の略のようだ。要は、VMがNICにアクセスする際に管理VMやハイパーバイザを経由せ…

Send HTTP Request with python

Before I wrote python http client with python socket in this article, but this is not a socket version, using httplib. GET connection = httplib.HTTPSConnection(host) connection.request("GET", uri) response = json.loads(connection.getrespon…

AWKからのファイル書き出し

[AWK]AWKからのファイル書き出し AWK NR Sample Script - Shammerismでは、選択対象を標準出力に書き出ししたが、これを特定のファイルに書き出したい。方法はいくつか考えられるが、最もシンプルなのは $ ./awk-script.awk somefile.txt > newfile.txt $と…

AWK NR Sample Script

AWK

I wrote about AWK NR in this article, so today I translate this one liner awk command to script. It is below. #!/usr/bin/awk -f { for(i=6;i<=NF;i++){ printf "%s ", $i; } printf "\n"; } Here is a log that executed above script. $ echo "aaa …

一行の前方一部分を削除する--NRとは?

AWK

ログの解析などをしていて、大量のログの中から同じメッセージは何回出てくるか、というのを調べたい時がある。重複の排除はuniqでできるが、ログの場合はタイムスタンプが異なるのでuniqのみでは絞り込みに難がある。そこで、ログのタイムスタンプ部分だけ…

Dropbox auto launch configuration

If Dropbox installed by following command, Dropbox wouldn't be launched automatically. cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -Adding following code to .profile required after executing above command…

Mac Mail change "" automatically

Mac

I use Mail installed as default mailer in Mac. This change the pair of double quotation pair automatically, so this behavior bothered me. I found the way how to disable this change by following articles. http://d.hatena.ne.jp/nakamura001/2…

Install uim-1.8.6 from source instead of apt-get

I would like to use sticky-shift with uim-skk. According to Google Code Archive - Long-term storage for Google Code Project Hosting., sticy-shift is supported since 1.8.2. But, uim-skk installed by apt-get seems version 1.8.1. So, I can no…

Organizing Debian Install Procedure without network-manager

This is a newer version of Organizing Debian Install Procedure - Shammerism Select only System Tools and Laptop during Install process After reboot, enable wireless by editing /etc/network/interfaces like below. /etc/init.d/networking rest…

Switch wireless access point by CLI

This is a reference site. The section "Switching Connections" indicates how to switch wireless access point. generate /etc/network/interfaces like below. ifup wlan0=$DEFINED_ESSID This is a sample of /etc/network/interfaces. root@debian:~#…

Organizing Debian Install Procedure

I wrote some articles about Debian installation, such as below. Install Debian wheezy with least software - Shammerism Using NetworkManager on Debian - Shammerism Try UIM - Shammerism These articles are not all. For example, I wrote about …

Try UIM

iBus makes SKK private dictionary reset, so I look for other IME. Then, I found uim-skk. Installing UIM is easy. su - apt-get update apt-get install uim apt-get install uim-skk After installed above packages, edit ~/.xprofile. In my enviro…

iBus-SKK resets private jisyo file

I have no idea why the fact I will write below would be happened. I use Dropbox from my office Mac, private Mac, private Linux, and sync SKK private jisyo file via Dropbox.When using Mac client, there is no problem. But I use Linux, my pri…

Emacs SLIME configuration on Mavericks

I tried SLIME configuration on Debian wheezy before, but I couldn't. I write this try as SLIME Configuration on my Debian - Shammerism. I tried SLIME configuration again on my Mavericks, and finished without problems. ;;; SLIME (load (expa…

Dropbox Debut!

I have used GoogleDrive as my personal cloud to save my own data which I would like to backup. But, GoogleDrive is NOT supported Linux, there is no Linux client. That GoogleDrive has no Linux client makes me frustrated, and I try other per…

Install JavaSDK and apache-tomcat on Debian

I install JavaSDK and apache-tomcat on my environment, each products version are below. Debian Squeeze JavaSDK 7u65 Apache Tomcat 7.0.54 JavaSDK can be downloaded from Oracle Web Site, and Apache Tomcat can be downloaded from Apache Web Si…

Using NetworkManager on Debian

Change how to manage Debian network Debian has a network management application named NetworkManager. I have ever configured my Debian's network configuration by writing /etc/network/interfaces manually. It is no problem if I would like to…

How to connect Starbucks Free Wifi on my Debian?

Starbucks provides free Wifi at stores. We can use this free Wifi at Starbucks with registering some informations from at_STARBUCKS_Wi2.But there is no explanation how to connect their wifi by Linux commands. This stands to reason because …

Emacs on OS X Font Config

I have been using Emacs font as following configuration. (when window-system (global-set-key [ns-drag-file] 'ns-find-file) (defvar fixed-width-use-QuickDraw-for-ascii t) (create-fontset-from-ascii-font "Inconsolata:slant=normal" nil "myfav…

Install vsftpd into Debian Squeeze

Install vsftpd I use Debian Squeeze as server for test. I have no article about vsftpd so I write this article as my memo. The procedure to configure vsftpd is below. su - apt-get update apt-get install vsftpd edit /etc/vsftpd.conf comment…

Missing Power Off Icon on Debian wheezy

I have no idea why, but I faced with the fact that there is no icon about shutdown in the menu showed by click username at the right-top Desktop. I found how to show Power Off icon. apt-get install gnome-tweak-tool apt-get install gnome-sh…

Favorite aliases

Debian whezzy has $HOME/.bash_aliases. This is invoked from $HOME/.bashrc if this file exists. I write aliases which I prefer to. alias ccl='ccl -K :UTF-8' alias ccl64='ccl64 -K :UTF-8' alias tshark='tshark -t ad' alias tcpdump='tcpdump -n…

How to share skk user-dictionaries between ibus-skk and ddskk?

I installed ibus-skk a couple weeks ago and have been using ibus-skk. But I have a question about user-dictionary that ibus-skk wouldn't save my translate recordings.This reason is very simple because there is no directory where ibus-skk d…

replace ifconfig to ip

I have used ifconfig when configure network interfaces. But, my colleague recommends ip command. So I note the basic procedure how to configure ethernet by ip command. ip link set $ETHER_NAME up ip addr add $IP_ADDRESS/$SUBNET brd + dev $E…