We must walk consciously only part way toward our goal, and then leap in the dark to our success.
Henry David Thoreau
We must walk consciously only part way toward our goal, and then leap in the dark to our success.
Henry David Thoreau
Never make your home in a place. Make a home for yourself inside your own head. You’ll find what you need to furnish it – memory, friends you can trust, love of learning, and other such things. That way it will go with you wherever you journey. ~Tad Williams
Ok,
Ingredient:
Home computer “A” working as a server
linksys router that comes with ddns setup firmware for tzo.com
htmailserver running on the home computer “A”.
port forward set up for the linksys router port 25 (for smtp) and port 143 (for imap), pointing to computer “A”‘s ip address.
set up the linksys router with Tzo.com (or dyndns.com) so that “mydomain.linksysnet.com” is now recognized from the outside world, pointing to computer “A”
Using htmailserver administrator, configure imap account. this is straightforward. For the sake of clarity, let’s say I have created “mydomain.linksysnet.com” domain in the administrator program, then I add an account “john@mydomain.linksysnet.com” I also set up a password for this account, lets say “*htpassword*” is my password
‘attach’ existing external e-mail accounts to the “john@mydomain.linksysnet.com.” In that way, all my e-mail accounts will be collected by this imap server.
receiving mail part is done. this was straight forward.
The reason for this post is to document what had been done for email sending part. this turns out to be a trciky part. There are a lot of posts about comcast smtp server relaying for hmailserver. To make a long story short, the relaying of mail to smtp.comcast.net does work. here is how.
htmailserver side : Settings->Prootcol->SMTP in “Delivery of e-mail” tab,
localhost name =”smtp.mydomain.linksysnet.com”
SMTP relayer : Remote Host name =”smtp.comcast.net” Remote TCP/IP port =”25″
Server Requires Authentification=”Checked” Username : your comcast mail address, ie “johnsmith@comcast.net” (Since you are a comcast customer, you do have one, don’t you?)
Password=password for johnsmith@comcast.net”
Use SSL =Unchecked
That’s all for htMailserver side.
Now I want to use my e-mail client (such as Thunderbird) to connect to htmailserver from other computer “B”. Since I setup the imap server, all emails will be stored in the server (computer A) and not in the local folder (of computer B). This is good because I wanted to access mails from multiple PCs.
Assuming Thunderbird as mail client,
mail protocol is imap. server name for recieving mail is imap.mydomain.linksysnet.com. Port is 143. Thunderbird should automatically configre this for you, if the hmailserver is properly set up and running (amazing)
For e-mail sender, the servername is smtp.myname.linksysnet.com. you use plain password to send an email and the username is “john@mydomain.linksysnet.com”, password you are going to use is “*htpassword*” and port you are going to use is 25
That’s all there is to it. with this setup, I can send e-mail from ‘john@mydomain.linksysnet.com” to any e-mail addresses.
Its thrilling to see my email is now sent from “john@mydomain.linksysnet.com” rather than “johnsmith@comcast.net” tzo let you use your own domain name rather than linksysnet.com subdomain (for fee) so it is possible to have e-mail address such as john@smiths.info.
Watch the little things; a small leak will sink a great ship. ~Benjamin Franklin
One person with a belief is equal to 99 who have only interests.
– John Stuart Mill
A winner never whines.
-Paul Brown
先週、うちの地下室のPCをWindows 7のHomeからプロフェッショナルにアップグレードした。
自分でデザインしたWEBPageを見るために同じパソコン上IE6,IE7などをバーチャルPCとXPモードの組み合わせで走らせられるようにしたかったのが動機だが、このXPモード云々はリモートモードで動いてる。 でSide benefitでリモートアクセスが他のコンピューターからもできるようになった。
このコンピューターからー>このコンピューターを操作するのに必要なツールというのは
Windows 7 homeで走っている書斎のPC -> Windows Professional の地下室のPC: Remote Desktop Connection でOK
Ubuntu Desktop で走っているノートブックパソコン->地下室のPC: TS Clientという標準プログラムで接続OK
で、興味がわいてやってみたら、
Windows Home -> Ubuntu Desktop ‘は Windwos7側にTight VNC (Viewer のみ)というフリーソフトをインストールしてOK
ここまではローカルネットワーク内部での話し。
外からアクセスできないかと思って調べていたら、今使っているリンクシスのラウターがDDNSという機能をサポートしているのにルータを買ってから3年目にして気が付いた。 TZOというプロバイダーを通して設定し、 ターゲットコンピューターのIPアドレスをポートフォワードしてすることによって、外部からドメインネームの指定で自分の家のパソコンにたどり着ける。上のリモートデスクトップ機能と組み合わせると外部からのデスクトップへのリモートアクセスが可能になる。 つまり、地下のパソコンに外部からの接続が可能。
と、ここまでは楽しくできたのだが、 会社のオフィスのパソコンからはこの方法が使えない。 会社の マイクロソフトファアフロントというセキュリティソフトがポートをブロックしているために接続が不可能になっているのだ。
で、あらためてネットを見直してみると、リモートアクセス用のプログラムというのが実は色々あるのに気が付いた。
logmein というツールがすぐれものだ、と聞いたが、試してみると、やはり会社のファイアウオールでポート接続が、はねられる。
この中でTeamViewerというプログラムはincoming ports を使用しない、というオプションがあり、office側のクライエントでこれを使うとファイアウオールを超えて通信が可能になった。
自宅のPCにTeamViewer のサーバー設定を前もっておこなっておき、 オフィスのPCからはTeamViewerのクライエントを使うか、ブラウザでTeamViewerのサイトにアクセスし、ここからログインすることによって、自宅のPCの画面を見ることができる。 私用に使うなら無料、というのがうれしい。
ま、繋がったから何か悪いことをやってやろうとか、そういうことではないのですが。TeamViewer は知識としてしまっておくくらいにしておいて、 役にたつかなあ、と思うのはDDNSを使った外部からのコンピューターアクセス。 Web Cam とリモートデスクトップを組み合わせれば旅行先から自分の家の中をモニターする、なんてことができそうだ。 このDDNSサービス、最初の30日は無料だが、あとは有料。 値段はmyname.linksysnet.comというdomain name なら年間25ドル。 自分のドメインを使いたければ50ドルだ。 PCにアパッチやIISなどのサーバー設定をしておけば、自宅でWeb Site のホストができるようになる。 プロバイダーのTZOも簡単に設定できるサーバーソフトを提供しているようだ。
http://myname.linksysnet.com で自宅のPC上で運営するWeb siteにアクセスし、 リモートデスクトップで接続先をmyname.linksys.net と入力すると自宅のPCのデスクトップを使える、という感じか。
A question that sometimes drives me hazy: am I or are the others crazy?
Albert Einstein
Windows Share をLinux (ubuntu)側から(常時)みれらるようにする方法
Windows側からLinux Server 側のファイルを見る方法、というのはいくらでも方法が書いてあるのだが、その逆をやろうとするとあまり無い、いや、あるのだけれど、あっちに少し、こっちに少し。
というわけで。
Ubuntu Wikiに書いてあったのでそれをもとにやってみた。 ターゲットはUbuntu 10.4
Windows のファイルシステムを読み書きするためのsmbfsは導入済みと思ったが念のために
$ sudo apt-get install smbfs
案の定、何もアップデートされなかった。
次に、etc/hosts に以下の 一行を追加
192.168.1.99 mybooklive
セールのときにうっかり購入してしまった、1テラバイトのネットワークHDを前もって固定アドレスで設定済み
ローカルファイルシステムに取り込むために /media にフォルダーを追加
$ sudo mkdir /media/Public
Public Share は パスワードがついてない。 誰でもアクセスできる
etc/fstab ファイルに以下を追加
//mybooklive/Public /media/Public cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0
で、ファイルシステムをマウントしなおす。
$ sudo mount -a
これで/media/Public 経由で 1テラバイトがアクセスできるようになった。
ちなみにパスワードが必要な場合のアクセスは
//servername/sharename /media/mountname cifs username=myusername,password=mypassword 0 0
とすれば、よいのだが etc/fstab は誰でも読めてしまう、ということで、 別ファイルを参照する方法が推奨されている
//servername/sharename /media/mountname cifs exec,credentials=/etc/cifspw 0 0
これで password file cifspw を作るわけだが、中身は
userid=ここにログインネーム
password=ここにパスワード
だけを記入しておく
ファイルをのぞき見されないようにプロテクト
$ sudo chmod 600 /etc/cifspw
やっぱり最後は
$sudo mount -a
After you’ve done a thing the same way for two years, look it over carefully. After five years, look at it with suspicion. And after ten years, throw it away and start all over. ~Alfred Edward Perlman, New York Times, 3 July 1958