This file contains hidden or 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
Xのデスクトップ環境をヘッドレスで実行する | |
Linux/UNIXサーバとは、sshでログインさえ出来れば大抵の管理作業が出来るものであるが、GUIもあればあったで意外と便利な時があるものである。また、プロプライエタリなソフトウェアなどは GUIでのインストールを前提としているものもよくある。 | |
しかしながら、サーバ機の前までノコノコ歩いていってキーボード・マウス・画面をわざわざ接続して作業をするなどというまるで原始人のようななことは、当該機で障害が起こりネットワークに接続できなくなった時だけにしたいものである。 | |
Macユーザなら、OSに標準で含まれているX11を起動し、xtermからssh に -Xなり -Yなりのオプションを付けて対象にログインすればリモートの Xアプリケーションを手元のMac上で利用することが出来るものの、誰もが Macを持っていて(もしくはWindowsにcygwinが入れてあって) UNIXの操作をした経験があり sshを含めコマンドラインツールの使い方を分かっているというわけでもないため他人に仕事を振りづらい(こともある)。 | |
というわけで、ここでは比較的名の知れたプロトコルである VNCを使ってネットワーク経由で Xのデスクトップ環境にログイン出来るようにする。ただし、実コンソール(つまり対象ホストに接続されている画面)には Xが表示されていると操作にマウスが必要だったりしてうざったいので(vcを切り替えればいいんだけどさ)、そちらはテキストログインのままとする。 | |
USE="server" emerge vnc |
This file contains hidden or 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
江戸川区役所 | |
〒132-8501 | |
江戸川区中央1-4-1 | |
03-3652-1151 | |
船橋市役所 | |
〒273-8501 | |
船橋市湊町2-10-25 | |
047-436-2111 | |
This file contains hidden or 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
package net.stbbs; | |
import java.util.Hashtable; | |
import javax.management.MalformedObjectNameException; | |
import javax.management.Notification; | |
import javax.management.NotificationListener; | |
import javax.management.ObjectName; | |
import com.sonicsw.ma.mgmtapi.config.MgmtException; |
This file contains hidden or 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
http://hp.vector.co.jp/authors/VA000137/phpide/qanda.html | |
http://download.eclipse.org/tools/pdt/updates/2.0/releases/ | |
PDT Runtime Feature | |
PDT SDK Feature | |
http://downloads.zend.com/pdt/server-debugger/ | |
dummy.phpをDocumentRootに置く | |
/usr/lib/php5/lib/php/extensions/ZendDebugger.so | |
zend_extension=/usr/lib/php5/lib/php/extensions/ZendDebugger.so |
This file contains hidden or 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
<mx:Application> | |
<mx:initialize> | |
<![CDATA[ | |
if (Application.application.url.indexOf("file://") == 0) { | |
baseURL = "http://localhost:8080/"; | |
} | |
]]> | |
</mx:initialize> | |
<mx:String id="baseURL"><![CDATA[https://{server.name}/]]></mx:String> |
This file contains hidden or 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
<servlet> | |
<servlet-name>InstanceEvalServlet</servlet-name> | |
<servlet-class>net.stbbs.spring.jruby.InstanceEvalServlet</servlet-class> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>InstanceEvalServlet</servlet-name> | |
<url-pattern>/instance_eval</url-pattern> | |
</servlet-mapping> |
This file contains hidden or 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
SimpleJdbcTemplate jt; | |
// : | |
jt.getJdbcOperations().queryForList("select * from hoge where a=? and b=?", | |
new Object[] {"A", "B"}); |
This file contains hidden or 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
# svcs | grep auto-snapshot | |
online Oct_22 svc:/system/filesystem/zfs/auto-snapshot:frequent | |
online Oct_22 svc:/system/filesystem/zfs/auto-snapshot:hourly | |
online Oct_22 svc:/system/filesystem/zfs/auto-snapshot:weekly | |
online Oct_22 svc:/system/filesystem/zfs/auto-snapshot:monthly | |
online Oct_22 svc:/system/filesystem/zfs/auto-snapshot:daily | |
zfs set com.sun:auto-snapshot=false rpool | |
This file contains hidden or 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
# SSLの色々メモ | |
# IISからエクスポートした証明書+鍵のファイルをOpenSSL用に出力 | |
openssl pkcs12 -in cert.pfx | |
# CSRの内容を確認する | |
openssl req -in CSRファイル -text | |
# CSRつくる | |
openssl req -new -key 秘密鍵ファイル -out CSRファイル |
This file contains hidden or 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
svn switch --relocate svn+ssh://svn.stbbs.net/var/svn/hoge/trunk svn://scm.stbbs.net/hoge/trunk |