Shammer's Philosophy

My private adversaria

Debian

SIP test on Debian

The deb package "sip-tester" has a command line tool named sipp, this would help to test SIP protocol. The server demo is by sipp -sn uas The client demo is sipp -sn uac $ServerIP

Supporting SSL/TLS version changed on apache2

Adding SSLProtocol Directive to /etc/apache2/site-available/default-ssl like below. SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2I can add this config to apache 2.2.22.

"There is no public key available ..." when apt-get update

I forgot since when, my debian outputs the message like below when executing apt-get update. W: There is no public key available for the following key IDs: 9D6D8F6BC857C906 W: There is no public key available for the following key IDs: 763…

First try OCSP Stapling on Debian Jessie but failed

This is a subsequent article of Apache 2.4 bundled as default on Debian Jessie - Shammerism. I tested enabling OCSP Stapling on Apache. A lot of sites tell the way how to configure apache to enable OSCP Stapling, for example How To Configu…

Apache 2.4 bundled as default on Debian Jessie

I'm using Debian wheezy mainly, but Debian Jessie's apache version seems to be 2.4. And this version supports OCSP Stapling. I wrote about OCSP before, one of them is OCSPの動作 - Shammerism, it has passed about 2 years. But, Jessie's apac…

How to hide username from login screen?

Username will be shown at login screen after creating user by useradd. But, there are those who would like username not to be shown at login screen, I want to make username disappeared at least. The command usermod enables this. usermod -u…

Enable sticky key in Debian

I found the way how to use sticky keyboard in Debian. This function has been supported already at OS layer. Open System Settings Click Universal Access Select Typing tab Change Sticky Keys to ON I use UIM-SKK version 1.8.1 installed by apt…

How to use openvpn client on Debian?

LinuxをクライアントでOpenVPN is a reference site. If you had openvpn configuration files already, this is very easy. apt-get update apt-get install openvpn cp $OPEN_VPN_CONFIG_FILES /etc/openvpn openvpn /etc/openvpn/***.ovpn & OpenVPN file…

My git procedure at 20150116

This is just my memo. Check if there are new files to be tracked If new tracking files are exists, add those files by git add $FILE_NAME Check the diff by git diff Consider the commit comment based on diff result git commit git push

How to check the diff between git commited files and modified or created files?

git diff shows the difference between old commited files and new files. Here is an example. $ git diff diff --git a/logger.lisp b/logger.lisp index dda9a4c..2fa0def 100644 --- a/logger.lisp +++ b/logger.lisp @@ -6,10 +6,17 @@ (provide 'my-…

Add file to git track target by CLI on Debian wheezy

The way how to clone the git repository from remote git repository to local is written as Try git on Debian wheezy - Shammerism. Today's article is how to add git track target.At first, git status command teaches which files are tracked al…

Try git on Debian wheezy

I would like to use git for my private text files. At first, I use github but this permits only public access if using free account. But, I want to use git in secret. So, I created an account for Bitbucket | The Git solution for profession…

Install Emacs 24.4 and other related tools version 20150107

Switching root and execute following steps. Install Fonts Install Monaco cd /usr/share/fonts/truetype mkdir ttf-monaco cd ttf-monaco wget http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf mkfontdir cd .. fc-cache Install Osa…

tcとiptablesの組み合わせ方法

以下の記事で、それぞれtcとiptablesについて書いたが、今回は両方を組み合わせて、特定のパケットのみtcで遅延させてみる。 Linux tc command samples - 20141125 - Shammerism Linux iptables samples - 20141129 - Shammerism これを本気で理解しようとし…

Linux iptables samples - 20141129

iptablesはこれまでも使用していたが、情報としてまとめていなかったのでまとめることにしました。 tcp-flagsについて tcp-flags は2つの引数を取る。最初はチェック対象のTCPフラグ、2つ目はどのフラグがONのパケットを対象にするか。指定可能なフラグは以…

Linux tc command samples - 20141125

What is tc? Linuxにはtcコマンドというものがある。https://linuxjf.osdn.jp/JFdocs/Adv-Routing-HOWTO/lartc.qdisc.htmlから辿ることのできる内容が一次情報に近そうだ。結構古そうだが。このコマンドを使用することで、パケットの遅延やdropを発生させる…

Emacs 24.4 Install on Debian, only terminal version.

This is a split article of Install Emacs 24.3 on Debian 7.4 - Shammerism. apt-get install build-essential apt-get install libncurses-dev apt-get install autoconf wget http://ftp.gnu.org/pub/gnu/emacs/emacs-24.4.tar.gz cd emacs-24.4 ./confi…

Disable IPv6 access when executing apt-get

Here is a reference. http://unix.stackexchange.com/questions/9940/convince-apt-get-not-to-use-ipv6-method I think these 2 methods are reasonable. Using -o Acquire::ForceIPv4=true like apt-get -o Acquire::ForceIPv4=true update Generate /etc…

Install Tomcat7 on Debian wheezy via apt-get

On wheezy, we can install tomcat 7.0.28 via apt-get. apt-get update apt-get install openjdk-7-jdk apt-get install tomcat7 apt-get install tomcat7-admin edit /etc/tomcat7/tomcat-user.xml No system user required. Tomcat seems to check tomcat…

Emacs Font configuration on Debian

Today's article is a Debian version of Emacs Font change - Shammerism. But both Monaco and Osaka font are not installed as default. Some steps are required different from Mac OS X. Install Osaka su - mkdir -p /usr/share/fonts/ttc-osaka cd …

Tomcat configuration

I cannot transfer big data to tomcat. In detail, tomcat seems to stop reading post parameter if it's size is big(I tried more than 50MB text). This is caused by default tomcat config parameter "maxPostSize". Changing this parameter to -1 a…

Squeeze apt source list

I use Debian Squeeze as my test server default destribution. But, recently, squeeze apt is not good. My /etc/apt/sources.list is like below. + # cat /etc/apt/sources.list # # /etc/apt/sources.list # # # squeeze # deb http://ftp.jp.debian.o…

Install HP Printer Driver on Debian wheezy

I use HP PhotoSmart printer, and can get and install driver by this site procedure. This is my memo. su - apt-get update apt-get install avahi-utils apt-get install libcups2 apt-get install libcups2-dev apt-get install cups-bsd apt-get ins…

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…

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…

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…

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:~#…