on i4PACE(i for Personal Archiving and Creating Environment)
actions » SearchLogin 89 articles • 11 Mar 2010

Recent articles in 'general'

Thursday, 17 Sep 2009

permalink SSL

struggling with the procedure to make https connection available for the domain emediajp, running apache on my home server (Ubuntu9.04 server).

> sudo su
> mkdir -p /etc/ssl/private
> openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
root@yarrow:/etc/ssl/private# sudo openssl req -
out server.key -out server.csrey 
Generating a 2048 bit RSA private key
..+++
................................................................................
.....+++
writing new private key to 'server.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Yamagata
Locality Name (eg, city) []:Yamagata-shi
Organization Name (eg, company) [Internet Widgits Pty Ltd]:YUI
Organizational Unit Name (eg, section) []:RD
Common Name (eg, YOUR name) []:*.emedia.jp
Email Address []:admin@emedia.jp

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

make sure to specify the name as *.emedia.jp for subdomains.

Access to http://www.cacert.org/, create an account, login, register email, register domain *.emedia.jp. Click Server Certificates, and paste all of the lines of server.csr in the textarea.

Set permission

> chown root:ssl-certs server.*
> chmod 400 server.key
> chmod 440 server.csr
> chmod 444 server.crt

Edit /etc/apache2/sites-available/default-ssl.

SSLCertificateFile      /etc/ssl/private/server.crt
        SSLCertificateKeyFile   /etc/ssl/private/server.key

Enable it

> a2ensite default-ssl
>/etc/init.d/apache restart

Access to https://192.168.1.81/ from a PC over LAN. Success!

• Wrote Teru at 16:28 (edited 3×, last on 17 Sep 2009) | read 22× | 1 Comments

Sunday, 23 Nov 2008

permalink irc setup

here's a memo on setting up an irc on ubuntu.

installed Pidgin internet messenger by choosing it from the menu pplication -> Addition/Removal. add an irc account by choosing the menu Account -> Manage Accounts -> Add. chose the server irc.freenode.net. joined chat. to register a user name on irc, went thru the followin procedure:

set nickserv propeties on NickServ tab:
    /msg nickserv help
    /msg nickserv register password email_address
    /msg nickserv set hidemail
    /msg nickserv identify nickname password

reply to the mail sent from NIckServ to verify the email address.

/msg/nickserv info

shows the current status of the account.

• Wrote Teru at 15:24 | read 4571× | 146 Comments

Thursday, 23 Oct 2008

permalink Android

Google announced on Oct. 21, 2008, that Android is now open source, and shows how to build Android on Ubuntu. Seems very promising as an open-source platform for developing open/commercial software.

Here's a list of URLs for reference:

  • http://code.google.com/android/
    Android - An Open Handset Alliance Project
  • http://android-developers.blogspot.com/2008/10/android-is-now-open-source.html
    Android is now Open Source
  • http://d.hatena.ne.jp/bs-android/20081022/1224697566
    Androidのソースコードがリリースされました
  • http://radicaladaptor.blogspot.com/2008/10/using-android-platform-for-prototyping.html
    Using the Android platform for prototyping of embedded appliances
• Wrote Teru at 23:55 | read 15× | 1 Comments

Wednesday, 05 Mar 2008

permalink Makefile

When I tried to run "make clean" on the snakelet path /var/local/Snakelets-1.44 on Ubuntu 7.10 server, an error occurred. Changing some opitons corrected the problem. Here's a "clean" part of Makefile I use now:

clean:
        @echo "Removing stray logfiles, .pyo/.pyc files..."
        find . -name \*.pyo -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.pyc -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.swp -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*~ -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*_log -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.log -type f -print0 | xargs -0 /bin/rm -f
        find . -name \*.log.? -type -print0 | xargs -0 /bin/rm -f
        find . -name \*.log.?? -type f -print0 | xargs -0 /bin/rm -f
        @echo "Removing non-CVS files..."
        rm -fv MANIFEST 
        rm -rf build
        rm -rf logs/server.pid
        find . -name  .#\* -type f -print0 | xargs -0 /bin/rm -f
        @echo "clean!"
• Wrote Teru at 10:53 | read 363× | 0 Comments

Tuesday, 04 Mar 2008

permalink Markup 2

Well, list tags should work:

  • this is the first item.
  • this is the second.
  • this is the third.

Yay, it works :-)

Still cannot figure why the internal link to /frog/files/Teru doesn't work :-/ Let me try again... [[image: logo-Ubuntu.png]] Nope :-/

Googled on the keywords 403 Deeplinking because the error message showed so, I found the code below in webapps/frog/frog/snakelets.py as follows:

def serve(self, request, response):
        if not request.getReferer().startswith(request.getBaseURL()):
            # deeplink attempted (request without a referer header)
            if not self.getWebApp().getConfigItem("allowdeeplinks"):
                return response.sendError(403, "deeplinking not allowed")

It's the code part to check "deeplinking". Let me comment out the part temporarily, and see what happens. Wow! It wooooooooorrrrrrrked! Now, the picture looks too big. Let me add an attribute to make it smaller. [[image: logo-Ubuntu.png]]
OK, but, when I add a space around the character |, it doesn't work... why? %-| By the way, how can I escape the tag expression here... By code tag?

[@logo-Ubuntu.png|w=50%]

Good. What I meant above is, when I write

[@logo-Ubuntu.png | w=50%]

it doesn't work.

• Wrote Teru at 21:02 (edited 3×, last on 04 Mar 2008) | read 4× | 0 Comments

Saturday, 01 Mar 2008

permalink Markup

Let's see how markup tags work to format a page. Let me test the ones provided in this page on editing mode below.

First, this is a bold type. How about Italic. OK, add underline to this. When showing a code,

#import <stdio.h>

void main(int argc, char **argv)
{
   printf("%s", "Helllo, world!\n");
}

A quote is like

Time is money, nay.

Yahoo's URL is http://www.yahoo.com/. This is also a link to Yahoo!.

To include an image, I uploaded it, and show it below: [[image: gutsy.jpg]] ... oops, it ain't work :-# (well, it worked later by commenting out the deeplink checker.) But, if the image is specified as http://yuwayuwa.net/images/hureai_no_oka.jpg, then it works as below: [[image: hureai_no_oka.jpg from yuwayuwa.net]] Ooops, a funny smiley showed up on the file name... Ah, I have to be careful not to use the file name like that :-S

• Wrote Teru at 14:59 (edited 15×, last on 07 Mar 2008) | read 24× | 0 Comments

Tuesday, 26 Feb 2008

permalink 日本語は?

Let's see if I can use Japanese characters here. ここでは、日本語を書くことができるでしょうか。 How does it look like on your browser?

• Wrote Teru at 13:04 | read 5× | 0 Comments

permalink Start-off!

Just installed this blog software. OK, it works! Only in English so far. I am going to use this as my blog site, while learning how this software works. Hopefully, it will help me get used to the scripting language Python.

• Wrote Teru at 11:57 | read 7× | 0 Comments

8 shown; more articles may be found in the archives. The permalink icon is the article's permalink.
Process times: page=0.426 request=0.434 cpu=0.440