SSLstruggling 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 33× | 1 Comments
irc setuphere'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 passwordreply 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 7855× | 450 Comments
AndroidGoogle 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:
MakefileWhen 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 590× | 0 Comments
Markup 2Well, list tags should work:
Yay, it works 
Still cannot figure why the internal link to /frog/files/Teru doesn't work
Let me try again...
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.
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 10× | 0 Comments
MarkupLet'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:
... 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_n
ka.jpg, then it works as below:
Ooops, a funny smiley showed up on the file name... Ah, I have to be careful not to use the file name like that 
日本語は?Let's see if I can use Japanese characters here. ここでは、日本語を書くことができるでしょうか。 How does it look like on your browser?
• Wrote Teru at 13:04 | read 14× | 0 Comments
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 14× | 0 Comments
icon is the article's permalink.