<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>googlecloud  |  塞翁失馬</title>
	<atom:link href="https://hbirds.mydns.jp/tag/googlecloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://hbirds.mydns.jp</link>
	<description>禍福は糾える縄の如し</description>
	<lastBuildDate>Mon, 26 Dec 2022 04:04:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://hbirds.mydns.jp/wp-content/uploads/2022/12/cropped-akaza-32x32.png</url>
	<title>googlecloud  |  塞翁失馬</title>
	<link>https://hbirds.mydns.jp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>GoogleCloudのComputeEngine</title>
		<link>https://hbirds.mydns.jp/googlecloud%e3%81%aecomputeengine/</link>
		
		<dc:creator><![CDATA[hbirds]]></dc:creator>
		<pubDate>Fri, 23 Dec 2022 04:23:04 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[computeengine]]></category>
		<category><![CDATA[googlecloud]]></category>
		<guid isPermaLink="false">http://hbirds.mydns.jp/?p=83</guid>

					<description><![CDATA[GoogleCloudのComputeEngineを使ってみた。]]></description>
										<content:encoded><![CDATA[
<p>GoogleCloudのComputeEngineを作ってみました。</p>



<p>マシンの構成は、e2-microでubuntu20.04とした。ゾーンはus-west1bにした。</p>



<p>外部IP（34.127.72.35）も付与されているが、固定IPではないようだ。</p>



<p>SSHは、「ブラウザウィンドウで開く」のがお手軽。</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="452" src="https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-23-13-30-47-1024x452.png" alt="" class="wp-image-87" srcset="https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-23-13-30-47-1024x452.png 1024w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-23-13-30-47-300x132.png 300w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-23-13-30-47-768x339.png 768w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-23-13-30-47.png 1070w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>とりあえず、mydns.jpへの通知を行うシェルスクリプトをcrontabに登録して実行するようにしてみた。</p>



<pre class="wp-block-code"><code>hbirds1104@instance-1:~$ sudo -s
root@instance-1:/home/hbirds1104#  /root/mydns.sh
--2022-12-23 04:19:39--  https://mydns252391:*password*@ipv4.mydns.jp/login.html
Resolving ipv4.mydns.jp (ipv4.mydns.jp)... 81.4.109.51, 168.235.80.32, 168.235.72.167, ...
Connecting to ipv4.mydns.jp (ipv4.mydns.jp)|81.4.109.51|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="Enter MasterID and Password."
Reusing existing connection to ipv4.mydns.jp:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified &#91;text/html]
Saving to: ‘STDOUT’

-                               &#91;&lt;=&gt;                                        ]       0  --.-KB/s               &lt;html&gt;
&lt;head&gt;
&lt;title&gt;Free Dynamic DNS (DDNS) for Home Server and VPS etc  | MyDNS.JP&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;LINK href="./site.css" rel=stylesheet type=text/css&gt;

&lt;/head&gt;
&lt;BODY BGCOLOR="#FFFFFF"
      TEXT="#304040"
      leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
&gt;
Login and IP address notify OK.&lt;BR&gt;
login_status = 1.&lt;BR&gt;</code></pre>



<p>crontab の設定</p>



<pre class="wp-block-code"><code>0 4-6 * * * /root/mydns.sh 1&gt; /dev/null 2&gt; /dev/null</code></pre>



<p>以下のようにできているようだが、時間が変。Google側のtimezoneが　Asia/Tokyoになっていないせいなので、修正した。</p>



<figure class="wp-block-image size-large has-custom-border"><img decoding="async" width="1024" height="196" src="https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-25-06-19-27-1024x196.png" alt="" class="wp-image-115" style="border-width:1px" srcset="https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-25-06-19-27-1024x196.png 1024w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-25-06-19-27-300x57.png 300w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-25-06-19-27-768x147.png 768w, https://hbirds.mydns.jp/wp-content/uploads/2022/12/Screenshot-from-2022-12-25-06-19-27.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
