<?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>beardy&#039;s</title>
	<atom:link href="http://www.beardy.se/feed" rel="self" type="application/rss+xml" />
	<link>http://www.beardy.se</link>
	<description>thoughts, more or less unorganized</description>
	<lastBuildDate>Sat, 31 Mar 2012 20:05:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Earth Hour 2012</title>
		<link>http://www.beardy.se/earth-hour-2012</link>
		<comments>http://www.beardy.se/earth-hour-2012#comments</comments>
		<pubDate>Sat, 31 Mar 2012 19:50:00 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=724</guid>
		<description><![CDATA[Today is Earth Hour 2012. Most lights in the office are shut off. I&#8217;m working the night, I usually do that whenever I work alone, but doing it with a thought today. Changing the theme to require less energy to display (in theory, on CRT:s anyway ).]]></description>
			<content:encoded><![CDATA[<p>Today is <a title="Earth Hour 2012" href="http://www.earthhour.org/" target="_blank">Earth Hour 2012</a>.<br />
Most lights in the office are shut off. I&#8217;m working the night, I usually do that whenever I work alone, but doing it with a thought today.</p>
<p>Changing the theme to require less energy to display (in theory, on CRT:s anyway <img src='http://www.beardy.se/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p><a href="http://www.beardy.se/blog/wp-content/uploads/2012/03/earth_hour_2012.png" rel="lightbox[724]" title="earth_hour_2012"><img class="aligncenter size-medium wp-image-728" title="earth_hour_2012" src="http://www.beardy.se/blog/wp-content/uploads/2012/03/earth_hour_2012-300x106.png" alt="" width="300" height="106" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fearth-hour-2012&amp;title=Earth%20Hour%202012" id="wpa2a_2"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/earth-hour-2012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intressant föreläsning om utvecklingen i världen</title>
		<link>http://www.beardy.se/intressant-forelasning-om-utvecklingen-i-varlden</link>
		<comments>http://www.beardy.se/intressant-forelasning-om-utvecklingen-i-varlden#comments</comments>
		<pubDate>Thu, 29 Mar 2012 07:52:40 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[bloggande]]></category>
		<category><![CDATA[survivalism]]></category>
		<category><![CDATA[Svenska]]></category>
		<category><![CDATA[politik]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=718</guid>
		<description><![CDATA[Swedish Prepper skrev i måndags en artikel, och länkade till en föreläsning av Fredrik Härén om utvecklingen i världen. Jag såg den igår morse när jag kom hem från jobbet. Mycket tänkvärd, kolla in den. Siten verkar i övrigt ha en hel del intressant att läsa. Jag har tänkt börja skriva lite om survivalism och <a href='http://www.beardy.se/intressant-forelasning-om-utvecklingen-i-varlden'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a title="Sverige, ett land utan drömmar" href="http://swedishprepper.wordpress.com/2012/03/26/sverige-ett-land-utan-drommar/">Swedish Prepper </a>skrev i måndags en artikel, och länkade till en föreläsning av Fredrik Härén om utvecklingen i världen. Jag såg den igår morse när jag kom hem från jobbet. Mycket tänkvärd, kolla in den. Siten verkar i övrigt ha en hel del intressant att läsa. Jag har tänkt börja skriva lite om survivalism och &#8220;preppande&#8221;, och/eller relaterade saker så småningom.<br />
<span id="more-718"></span><br />
<iframe width="420" height="315" src="http://www.youtube.com/embed/C0jDJ-wsMYI" frameborder="0" allowfullscreen></iframe></p>
<p><iframe width="420" height="315" src="http://www.youtube.com/embed/ohHNONAbheE" frameborder="0" allowfullscreen></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fintressant-forelasning-om-utvecklingen-i-varlden&amp;title=Intressant%20f%C3%B6rel%C3%A4sning%20om%20utvecklingen%20i%20v%C3%A4rlden" id="wpa2a_4"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/intressant-forelasning-om-utvecklingen-i-varlden/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing the MikroTik RouterBOARD RB751G-2HnD (or any RouterOS device) &#8211; the bare minimum</title>
		<link>http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum</link>
		<comments>http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum#comments</comments>
		<pubDate>Mon, 26 Mar 2012 05:49:58 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[routerboard]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routeros]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=696</guid>
		<description><![CDATA[Before you do anything else with the MikroTik RouterBOARD RB751G-2HnD, or any other device running RouterOS with a default configuration I guess, you should configure the device with some bare minumum security features. Set a password The first thing to do is changing the password for the default user &#8220;admin&#8221;. When you are logged in, <a href='http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Before you do anything else with the MikroTik RouterBOARD RB751G-2HnD, or any other device running RouterOS with a default configuration I guess, you should configure the device with some bare minumum security features.</p>
<h2>Set a password</h2>
<p>The first thing to do is changing the password for the default user &#8220;admin&#8221;. When you are logged in, you can do this two ways (at least), either by setting it directly:</p>
<pre>
[admin@MikroTik] &gt; user set admin password=somegoodpassword
</pre>
<p>Or by using the &#8220;password&#8221; utility to set the password interactively:</p>
<pre>
[admin@MikroTik] &gt; password
old password: ********
new password: ********
retype new password: ********
</pre>
<p><span id="more-696"></span></p>
<h2>Basic wireless security</h2>
<p>The default configuration is a completely open wireless network, with the ESSID &#8220;MikroTik&#8221;:</p>
<pre>
[admin@MikroTik] > interface wireless print
Flags: X - disabled, R - running
 0    name="wlan1" mtu=1500 mac-address=00:0C:42:FC:B9:2B arp=enabled interface-type=Atheros 11N mode=ap-bridge
      ssid="MikroTik" frequency=2412 band=2ghz-b/g/n channel-width=20/40mhz-ht-above scan-list=default
      wireless-protocol=any antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none wds-ignore-ssid=no
      bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0
      default-client-tx-limit=0 hide-ssid=no security-profile=default compression=no
</pre>
<p>The first thing we need to do is to configure some wireless security. I choose WPA2-PSK (pre-shared key), because it is easy and simple to setup, and also simple and quick to configure on clients. Here is how you configure it, first take a look at the current wireless security profile, notice that there is a &#8220;0&#8243; first, this number is used later when configuring the profile, to identify it:</p>
<pre>
[admin@MikroTik] > interface wireless security-profiles print
0 name="default" mode=none authentication-types="" unicast-ciphers="" group-ciphers="" wpa-pre-shared-key=""
   wpa2-pre-shared-key="" supplicant-identity="MikroTik" eap-methods=passthrough tls-mode=no-certificates
   tls-certificate=none static-algo-0=none static-key-0="" static-algo-1=none static-key-1="" static-algo-2=none
   static-key-2="" static-algo-3=none static-key-3="" static-transmit-key=key-0 static-sta-private-algo=none
   static-sta-private-key="" radius-mac-authentication=no radius-mac-accounting=no radius-eap-accounting=no
   interim-update=0s radius-mac-format=XX:XX:XX:XX:XX:XX radius-mac-mode=as-username radius-mac-caching=disabled
   group-key-update=5m management-protection=disabled management-protection-key=""
</pre>
<p>You can set each parameter separately, or all that we want to change at once, in one line. Let&#8217;s do it by setting them all at once:</p>
<pre>
[admin@MikroTik] > interface wireless security-profiles set mode=dynamic-keys authentication-types=wpa2-psk unicast-ciphers=aes-ccm group-ciphers=aes-ccm  wpa2-pre-shared-key=longrandomlycreatedkey numbers=0
</pre>
<p>Notice the &#8220;numbers=0&#8243; at the end, that means that we are setting the parameters for the number &#8220;0&#8243;, the first and default wireless security-profile. The &#8220;wpa2-pre-shared-key&#8221; value &#8220;longrandomlycreatedkey&#8221; is of course only an example. Create/come up with a long, strong and secure key, and keep it locked in if you write it down on paper, or in a file on a removable storage medium.<br />
<br />
Let&#8217;s check the configuration we applied:</p>
<pre>
[admin@MikroTik] > interface wireless security-profiles print
 0 name="default" mode=dynamic-keys authentication-types=wpa2-psk unicast-ciphers=aes-ccm group-ciphers=aes-ccm
   wpa-pre-shared-key="" wpa2-pre-shared-key="longrandomlycreatedkey" supplicant-identity="MikroTik"
   eap-methods=passthrough tls-mode=no-certificates tls-certificate=none static-algo-0=none static-key-0=""
   static-algo-1=none static-key-1="" static-algo-2=none static-key-2="" static-algo-3=none static-key-3=""
   static-transmit-key=key-0 static-sta-private-algo=none static-sta-private-key="" radius-mac-authentication=no
   radius-mac-accounting=no radius-eap-accounting=no interim-update=0s radius-mac-format=XX:XX:XX:XX:XX:XX
   radius-mac-mode=as-username radius-mac-caching=disabled group-key-update=5m management-protection=disabled
   management-protection-key=""
</pre>
<p>The Security Profiles properties are documented further in the <a href="http://wiki.mikrotik.com/wiki/Manual:Interface/Wireless#Security_Profiles" title="Security Profiles">manual</a>.<br />
</p>
<h2>Disable unnecessary services</h2>
<p>There are some services started and running by default:</p>
<pre>
[admin@MikroTik] > ip service print detail
Flags: X - disabled, I - invalid
 0   name="telnet" port=23 

 1   name="ftp" port=21 

 2   name="www" port=80 

 3   name="ssh" port=22 

 4 X name="www-ssl" port=443 certificate=none 

 5 X name="api" port=8728 

 6   name="winbox" port=8291
</pre>
<p>SSH is enabled by default, and SFTP works nicely, so we do not need to have telnetd or the <a href="http://mywiki.wooledge.org/FtpMustDie" title="FTP Must Die - A GreyCat rant.">ftp</a>-server running, let&#8217;s disable them.<br />
Disable the telnet server:</p>
<pre>
[admin@MikroTik] > ip service disable telnet
</pre>
<p>Disable the ftp-server:</p>
<pre>
[admin@MikroTik] > ip service disable ftp
</pre>
<p>We are also not going to use the Winbox utility, so we disable that service:</p>
<pre>
[admin@MikroTik] > ip service disable winbox
</pre>
<p>If you were paying attention and used TAB as you should, you have noticed that the CLI let&#8217;s you do as many things as you like on one line, if you separate the commands with semicolon, &#8220;;&#8221;. The above could have been acomplished with a line like:</p>
<pre>
[admin@MikroTik] > ip service disable telnet ; ip service disable ftp ; ip service disable winbox
</pre>
<p>If you remember from the previous post, there is also a bandwidth testing server of some kind running on port 2000, not listed in the IP services, let&#8217;s disable that too:</p>
<pre>
[admin@MikroTik] > tool bandwidth-server set enabled=no
</pre>
<h3>Test and confirm</h3>
<p>Check which services are running now:</p>
<pre>
[admin@MikroTik] > ip service print detail
Flags: X - disabled, I - invalid
 0 X name="telnet" port=23 

 1 X name="ftp" port=21 

 2   name="www" port=80 

 3   name="ssh" port=22 

 4 X name="www-ssl" port=443 certificate=none 

 5 X name="api" port=8728 

 6 X name="winbox" port=8291
</pre>
<p>and:</p>
<pre>
[admin@MikroTik] > tool bandwidth-server print
                  enabled: no
             authenticate: yes
  allocate-udp-ports-from: 2000
             max-sessions: 100
</pre>
<p>Alright, that looks like we want it. Let&#8217;s confirm:</p>
<pre>
root@messtent:~# nmap -A -p0-65535 192.168.88.1 

Starting Nmap 5.00 ( http://nmap.org ) at 2012-03-26 05:42 CEST
Interesting ports on 192.168.88.1:
Not shown: 65533 closed ports
PORT   STATE SERVICE VERSION
22/tcp open  ssh     (protocol 2.0)
|_ ssh-hostkey: 1024 [...] (DSA)
53/tcp open  domain?
80/tcp open  http?
|  robots.txt: has 1 disallowed entry
|_ /
|_ html-title: RouterOS router configuration page
[...]
</pre>
<p>Nice, the services are really stopped.</p>
<h3>Testing wireless</h3>
<pre>
root@messtent:~# iwconfig wlan0 ; ifconfig wlan0 ; wpa_cli status ; echo ; ping -f -c 10000 -s 1500 192.168.88.1
wlan0     IEEE 802.11abgn  ESSID:"MikroTik"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:0C:42:[...]
          Bit Rate=150 Mb/s   Tx-Power=15 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-8 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan0     Link encap:Ethernet  HWaddr 00:21:5d:[...]
          inet addr:192.168.88.252  Bcast:192.168.88.255  Mask:255.255.255.0
          inet6 addr: fe80::221:5d[...]/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7371256 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10303519 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3847289761 (3.5 GiB)  TX bytes:11677149925 (10.8 GiB)

Selected interface 'wlan0'
bssid=00:0c:42:[...]
ssid=MikroTik
id=0
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.88.252

PING 192.168.88.1 (192.168.88.1) 1500(1528) bytes of data.

--- 192.168.88.1 ping statistics ---
10000 packets transmitted, 10000 received, 0% packet loss, time 27908ms
rtt min/avg/max/mdev = 2.280/2.686/22.347/0.868 ms, pipe 2, ipg/ewma 2.791/2.788 ms
</pre>
<p>Our wireless security profile works, and traffic can flow, and quite well too.</p>
<h2>Configuration backup</h2>
<p>To export the current configuration (with all keys in cleartext):</p>
<pre>
[admin@MikroTik] > export file=secured_default
</pre>
<p>Note however, that the user and passwords are not saved with the above. They are however saved with the binary configuration backup:</p>
<pre>
[admin@MikroTik] > system backup save name=secured_default_bin
</pre>
<pre>
[admin@MikroTik] > file print
 # NAME                                TYPE                                                     SIZE CREATION-TIME
 0 skins                               directory                                                     jan/01/1970 00:00:53
 1 auto-before-reset.backup            backup                                                 13 178 jan/02/1970 00:00:55
 2 secured_default.rsc                 script                                                 17 695 jan/03/1970 04:43:25
 3 secured_default_bin.backup          backup                                                 21 143 jan/03/1970 04:44:06
</pre>
<p>Download the files to your computer and examine them. Keep them safe because they contain your keys and passwords.</p>
<pre>
root@messtent:~/mikrotik# sftp admin@192.168.88.1
admin@192.168.88.1's password:
Connected to 192.168.88.1.
sftp> ls
auto-before-reset.backup      secured_default.rsc           secured_default_bin.backup    skins
sftp> get *.*
Fetching /auto-before-reset.backup to auto-before-reset.backup
/auto-before-reset.backup                                                               100%   13KB  12.9KB/s   00:00
Fetching /secured_default.rsc to secured_default.rsc
/secured_default.rsc                                                                    100%   17KB  17.3KB/s   00:00
Fetching /secured_default_bin.backup to secured_default_bin.backup
/secured_default_bin.backup                                                             100%   21KB  20.7KB/s   00:00
</pre>
<h2>Related articles</h2>
<ul class="lcp_catlist"><li><a href="http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time">Examining, configuring and playing with the MikroTik RouterBOARD RB751G-2HnD for the first time</a>   </li><li class = current ><a href="http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum">Securing the MikroTik RouterBOARD RB751G-2HnD (or any RouterOS device) - the bare minimum</a>   </li></ul>
<p>I hope this has been informative, and I would like to thank You for reading. Feel free to comment.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fsecuring-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum&amp;title=Securing%20the%20MikroTik%20RouterBOARD%20RB751G-2HnD%20%28or%20any%20RouterOS%20device%29%20%26%238211%3B%20the%20bare%20minimum" id="wpa2a_6"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Examining, configuring and playing with the MikroTik RouterBOARD RB751G-2HnD for the first time</title>
		<link>http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time</link>
		<comments>http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time#comments</comments>
		<pubDate>Sun, 25 Mar 2012 22:10:39 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[routerboard]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routeros]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=658</guid>
		<description><![CDATA[I bought a MikroTik RouterBOARD RB751G-2HnD a little while back. Tonight is the first time I power it up and connect to it, examining what it can do, and how to do it. From the outside it&#8217;s a nice looking little box, with a seemingly sturdy enough plastic casing with the size of 113x138x29mm. There are <a href='http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.beardy.se/blog/wp-content/uploads/2012/03/RB751G_2HnD.png" rel="lightbox[658]" title="RouterBOARD RB751G-2HnD"><img class="alignleft  wp-image-670" title="RouterBOARD RB751G-2HnD" src="http://www.beardy.se/blog/wp-content/uploads/2012/03/RB751G_2HnD-300x277.png" alt="RouterBOARD RB751G-2HnD" width="300" height="277" /></a>I bought a <a title="MikroTik" href="http://www.mikrotik.com/">MikroTik</a> <a title="RouterBOARD is the hardware platform made by MikroTik. Their routers are powered by the powerful RouterOS software. RouterBOARD routers are used by ISPs, integrators, system builders and large corporations around the world." href="http://routerboard.com/">RouterBOARD</a> RB751G-2HnD a little while back. Tonight is the first time I power it up and connect to it, examining what it can do, and how to do it. From the outside it&#8217;s a nice looking little box, with a seemingly sturdy enough plastic casing with the size of 113x138x29mm. There are holes for passive cooling, some status LEDs, 5 RJ45 ports, and a USB 2.0 port. On the other side there is an antenna connector for an external <a title="MMCX connector" href="http://en.wikipedia.org/wiki/MMCX">MMCX</a> antenna.</p>
<p>The labeling on my case is &#8220;RouterBOARD 751G&#8221;.<br />
<span id="more-658"></span><br />
The <a title="RB751G-2HnD product page" href="http://routerboard.com/RB751G-2HnD">product page</a> says says:</p>
<blockquote><p>The RB751G is the wireless SOHO Gigabit AP you have been waiting for. It has five Gigabit Ethernet ports, one USB 2.0 port and a high power 30dBi/1W 802.11b/g/n wireless AP with antennas built in.</p>
<p>It’s also possible to connect an external MMCX antenna to replace one of the built in antennas. The device is very small and will look good in any home or office, wall mounting anchor holes are provided.</p>
<p>Package contains RouterBOARD 751G-2HnD in a plastic case and power adapter.</p>
<p>RB751G-2HnD will be available in United States through our Distributor network when FCC certification will be ready, hopefully by the end of March.</p></blockquote>
<h2>Specifications</h2>
<table>
<tbody>
<tr>
<td>Product code</td>
<td>RB751G-2HnD</td>
</tr>
<tr>
<td>Current Monitor</td>
<td>No</td>
</tr>
<tr>
<td>TX power</td>
<td>30dBm</td>
</tr>
<tr>
<td>CPU</td>
<td>Atheros AR7242</td>
</tr>
<tr>
<td>Antenna gain</td>
<td>2&#215;2 MIMO PIF antennas, max gain 2.5dBi; external MMCX option</td>
</tr>
<tr>
<td>CPU speed</td>
<td>400MHz</td>
</tr>
<tr>
<td>Max Power consumption</td>
<td>13W</td>
</tr>
<tr>
<td>RAM</td>
<td>64MB</td>
</tr>
<tr>
<td>LAN ports</td>
<td>5</td>
</tr>
<tr>
<td>Gigabit</td>
<td>Yes</td>
</tr>
<tr>
<td>MiniPCI</td>
<td>0</td>
</tr>
<tr>
<td>Integrated Wireless</td>
<td>1</td>
</tr>
<tr>
<td>Wireless standards</td>
<td>802.11b/g/n</td>
</tr>
<tr>
<td>USB</td>
<td>1</td>
</tr>
<tr>
<td>Power Jack</td>
<td>8-30V DC</td>
</tr>
<tr>
<td>802.3af support</td>
<td>No</td>
</tr>
<tr>
<td>PoE</td>
<td>8-30V DC on Ether1</td>
</tr>
<tr>
<td>Voltage Monitor</td>
<td>No</td>
</tr>
<tr>
<td>PCB temperature monitor</td>
<td>No</td>
</tr>
<tr>
<td>CPU temperature monitor</td>
<td>No</td>
</tr>
<tr>
<td>Dimensions</td>
<td>113x138x29mm</td>
</tr>
<tr>
<td>Operating System</td>
<td>RouterOS</td>
</tr>
<tr>
<td>Temperature range</td>
<td>-20C&#8230;+50C</td>
</tr>
<tr>
<td>RouterOS License</td>
<td>L4</td>
</tr>
</tbody>
</table>
<h2><a href="http://www.beardy.se/blog/wp-content/uploads/2012/03/board.png" rel="lightbox[658]" title="Inside"><img class="aligncenter size-medium wp-image-682" title="Inside" src="http://www.beardy.se/blog/wp-content/uploads/2012/03/board-237x300.png" alt="Inside" width="237" height="300" /></a></h2>
<h2>Ethernet throughput</h2>
<table>
<tbody>
<tr>
<th colspan="3">RB751G-2HnD @400MHz (5 port test)</th>
<th colspan="2">64 byte frames</th>
<th colspan="2">512 byte frames</th>
<th colspan="2">1518 byte frames</th>
</tr>
<tr>
<th>IP Firewall</th>
<th>Conntrack</th>
<th>Mode</th>
<th>Mbps</th>
<th>Fps</th>
<th>Mbps</th>
<th>Fps</th>
<th>Mbps</th>
<th>Fps</th>
</tr>
<tr>
<td>off</td>
<td>off</td>
<td>Bridging</td>
<td>49.66</td>
<td>97000</td>
<td>370.28</td>
<td>90400</td>
<td>949.66</td>
<td>78200</td>
</tr>
<tr>
<td>on</td>
<td>off</td>
<td>Routing</td>
<td>34</td>
<td>66400</td>
<td>266.24</td>
<td>65000</td>
<td>631.49</td>
<td>52000</td>
</tr>
<tr>
<td>on</td>
<td>off</td>
<td>Bridging</td>
<td>30.77</td>
<td>60100</td>
<td>234.7</td>
<td>57300</td>
<td>650.92</td>
<td>53600</td>
</tr>
<tr>
<td>on</td>
<td>on</td>
<td>Routing</td>
<td>25.6</td>
<td>50000</td>
<td>200.7</td>
<td>49000</td>
<td>479.69</td>
<td>39500</td>
</tr>
<tr>
<td>on</td>
<td>on</td>
<td>Bridging</td>
<td>18.02</td>
<td>35200</td>
<td>141.72</td>
<td>34600</td>
<td>386.18</td>
<td>31800</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>Powering up and connecting</h2>
<p>Alright, we are ready to power it up. The <a title="Quick Guide" href="http://routerboard.com/pdf/384/rb751G-2HnD-qg.pdf">Quick Setup Guide</a> says:</p>
<blockquote><p>&nbsp;</p>
<h3>Powering</h3>
<p>The device accepts powering from the power jack or from the first Ethernet port (Passive PoE):</p>
<ul>
<li>DC power jack (5.5mm outside and 2mm inside diameter, female, pin positive plug) accepts 8-30V DC</li>
<li>The first Ethernet port accepts passive Power over Ethernet accepts 8-30V DC</li>
</ul>
<p>Under maximum load, the power consumption of this device is 7W</p></blockquote>
<p>I currently do not have a PoE-switch or any power injector to give the RouterBOARD power on its first ethernet port, which is the 751G&#8217;s incoming PoE-port (the so-called &#8220;WAN-port&#8221;, the uplink port).<br />
<em>(Update: As &#8220;P&#8221; kindly points out in his comment below, a PoE-switch would not have helped me much, since the RB751G-2HnD does not support 802.3af, only DC-power injected directly on the right pair.)</em><br />
Instead I connect the DC power adapter to a power outlet, then to the device, and we have blinkenlights!<br />
After that I connect a straight <a title="Category 5 cable" href="http://en.wikipedia.org/wiki/Category_5_cable">CAT 5</a> cable to my laptop, and to port 4 (the fifth, rightmost RJ45-port on the device).</p>
<p>My laptop&#8217;s eth0 (first Ethernet port) is configured as:</p>
<pre>allow-hotplug eth0
iface eth0 inet dhcp</pre>
<p>So, I quite immediately get an IP address from the RouterBOARD&#8217;s DHCP server:</p>
<pre>eth0      Link encap:Ethernet  HWaddr [...]
          inet addr:192.168.88.254  Bcast:192.168.88.255  Mask:255.255.255.0
[...]</pre>
<p>The <a title="Quick Guide" href="http://routerboard.com/pdf/384/rb751G-2HnD-qg.pdf">Quick Setup Guide</a> says:</p>
<blockquote>
<h3>Connecting</h3>
<ol>
<li>Connect your Internet cable to port 1, and LAN computers to ports 2-5</li>
<li>Set LAN computer IP configuration to automatic (DHCP)</li>
<li>Default IP address from LAN/WLAN is 192.168.88.1, connect with SSH, Telnet or Winbox tool for configuration. The username is admin and there is no password</li>
<li>Wireless AP mode is enabled by default, you can connect to the SSID “MikroTik”. Log into your router and configure a WPA wireless password to secure your network</li>
</ol>
</blockquote>
<h2>SSH and default configuration</h2>
<p>So I connected to it with ssh, without entering a password, and was presented with:</p>
<pre>ssh admin@192.168.88.1

  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS 5.6 (c) 1999-2011       http://www.mikrotik.com/

The following default configuration has been installed on your router:
-------------------------------------------------------------------------------
ether1 is renamed to ether1-gateway
DHCP client and masquerade is set on ether1-gateway
ether2 is renamed to ether2-master-local and configured as switch master port for ether3-ether5
ether2-master-local and wlan1 are bridged
wireless is set as access point in 2412MHz using both chains and extension channel enabled.
IP address 192.168.88.1/24 and DHCP server is set on bridge interface
   P servers address pool is 192.168.88.10-192.168.88.254

'/system default-configuration print' command.
To remove this default configuration type "r" or hit any other key to continue.
If you are connected using the above IP and you remove it, you will be disconnected.

Confirming configuration</pre>
<p>As logical minds will conclude from the output, I hit the any key, and continued. One can also observe that the DHCP pool is seemingly assigning addresses to hosts downwards from the pool&#8217;s max value, which is a good as any design decision. (Unless it is random, and we were extremely lucky this time to be assigned 192.168.88.254.)<br />
After that I disconnected, and connected again, and was then presented with:</p>
<pre>  MMM      MMM       KKK                          TTTTTTTTTTT      KKK
  MMMM    MMMM       KKK                          TTTTTTTTTTT      KKK
  MMM MMMM MMM  III  KKK  KKK  RRRRRR     OOOOOO      TTT     III  KKK  KKK
  MMM  MM  MMM  III  KKKKK     RRR  RRR  OOO  OOO     TTT     III  KKKKK
  MMM      MMM  III  KKK KKK   RRRRRR    OOO  OOO     TTT     III  KKK KKK
  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     III  KKK  KKK

  MikroTik RouterOS 5.6 (c) 1999-2011       http://www.mikrotik.com/

[admin@MikroTik] &gt;</pre>
<p>A press on TAB reveals the available <a title="MikroTik's wiki: RouterOS Manual:TOC" href="http://wiki.mikrotik.com/wiki/Manual:TOC">RouterOS</a> commands:</p>
<pre>certificate  interface  metarouter  ppp     routing        store   user   export  password  redo
driver       ip         mpls        queue   snmp           system  beep   import  ping      setup
file         log        port        radius  special-login  tool    blink  led     quit      undo
[admin@MikroTik] &gt;</pre>
<p>After a few seconds, TAB-completions and &#8220;?&#8221; I found:</p>
<pre>[admin@MikroTik] &gt; system routerboard print
       routerboard: yes
             model: 751G-2HnD
     serial-number: [...]
  current-firmware: 2.37
  upgrade-firmware: 2.36</pre>
<p>The full list of available commands in the root of the command tree is listed with a question mark, &#8220;?&#8221;, (the first or second button one presses in a terminal when dealing with network equipment, or any system really, if one has worked with any common brand/model/os):</p>
<pre>beep --
blink --
certificate -- Certificate management
delay -- does nothing for a while
do -- executes command
driver -- Driver management
environment -- list of all variables
error -- make error value
execute -- run script as separate console job
file -- Local router file storage.
find -- Find items by value
for -- executes command for a range of integer values
foreach -- executes command for every element in a list
global -- set value global variable
if -- executes command if condition is true
import --
interface --
ip -- IP options
led --
len -- return number of elements in value
local -- set value of local variable
log -- System logs
metarouter --
mpls --
nothing -- do nothing and return nothing
parse -- build command from text
password -- Change password
pick -- return range of string characters or array values
ping -- Send ICMP Echo packets
port -- Serial ports
ppp -- Point to Point Protocol
put -- prints argument on the screen
queue -- Bandwidth management
quit -- Quit console
radius -- Radius client settings
redo -- Redo previously undone action
resolve -- perform a dns lookup of domain name
routing --
set -- Change item properties
setup -- Do basic setup of system
snmp -- SNMP settings
special-login -- Special login users
store --
system -- System information and utilities
terminal -- commands related to terminal handling
time -- returns time taken by command to execute
toarray -- convert argument to array value
tobool -- convert argument to truth value
toid -- convert argument to internal number value
toip -- convert argument to IP address value
toip6 -- convert argument to IPv6 address value
tonum -- convert argument to integer number value
tool -- Diagnostics tools
tostr -- convert argument to string value
totime -- convert argument to time interval value
typeof -- return type of value
undo -- Undo previous action
user -- User management
while -- executes command while condition is true
export -- Print or save an export script that can be used to restore configuration</pre>
<p>The first thing one just has to try is of course &#8220;blink&#8221;:</p>
<pre>[admin@MikroTik] &gt; blink duration=1 ;</pre>
<p>And it blinks its ACT (Activity) LED! I&#8217;m already starting to love this little thing. I guess it does not have any tiny speaker connected, because the &#8220;beep&#8221; command doesn&#8217;t produce any sound, though the command works. (The semicolon above is not necessary, but it is added if TAB-completing. That brings me to another observation, the CLI-interface is very easily understood, beautiful, intuitive, helpful and just.. nice.<br />
Let&#8217;s see what IP services it&#8217;s running by default (the addition of &#8220;detail&#8221; doesn&#8217;t give more detailed output in this case, but it formats the output better for pasting here, try it without &#8220;detail&#8221; yourself to see what I mean):</p>
<pre>[admin@MikroTik] &gt; ip service print detail
Flags: X - disabled, I - invalid
 0   name="telnet" port=23 

 1   name="ftp" port=21 

 2   name="www" port=80 

 3   name="ssh" port=22 

 4 X name="www-ssl" port=443 certificate=none 

 5 X name="api" port=8728 

 6   name="winbox" port=8291</pre>
<p>Let&#8217;s see and confirm if that is the truth, and what the services say:</p>
<pre>PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
23/tcp   open  telnet
53/tcp   open  domain
80/tcp   open  http
2000/tcp open  callbook
8291/tcp open  unknown

PORT     STATE SERVICE   VERSION
21/tcp   open  ftp       MikroTik router ftpd 5.6
22/tcp   open  ssh       (protocol 2.0)
|_ ssh-hostkey: 1024 [...] (DSA)
23/tcp   open  telnet    Linux telnetd
53/tcp   open  domain?
80/tcp   open  http?
|  robots.txt: has 1 disallowed entry
|_ /
|_ html-title: RouterOS router configuration page
2000/tcp open  callbook?</pre>
<p>So, it also runs a DNS server/forwarder, and something on port 2000, by default, which doesn&#8217;t show when looking at the services configuration of the device.</p>
<pre>[admin@MikroTik] &gt; tool bandwidth-server print
                  enabled: yes
             authenticate: yes
  allocate-udp-ports-from: 2000
             max-sessions: 100</pre>
<p>As you see, it runs some form of bandwidth testing server on port 2000. I have to look into that more another time. It&#8217;s documented in their <a title="Manual:Tools/Bandwidth Test" href="http://wiki.mikrotik.com/wiki/Manual:Tools/Bandwidth_Test">wiki</a>. Perhaps/probably the server and client is proprietary, but we&#8217;ll have to investigate further later like I said.</p>
<p>I also noticed that critical log messages are printed to the console (my ssh session). The following happened when I scanned it: (since it has not yet had Internet access it has not had the opportunity to set its clock using NTP yet, if it does by default, and I have not yet set it, if you are wondering)</p>
<pre>jan/02/1970 03:54:36 system,error,critical login failure for user anonymous from 192.168.88.254 via ftp</pre>
<p>&nbsp;</p>
<h2>Web interface</h2>
<p>The next thing to check is the web-interface, which is running by default. It looks like this:</p>
<p><a href="http://www.beardy.se/blog/wp-content/uploads/2012/03/webfig_front.png" rel="lightbox[658]" title="WebFig, frontpage"><img class="aligncenter size-large wp-image-675" title="WebFig, frontpage" src="http://www.beardy.se/blog/wp-content/uploads/2012/03/webfig_front-1024x465.png" alt="WebFig, frontpage" width="695" height="315" /></a>When clicking on the WebFig-icon, we are given a login prompt, we log in with the default username &#8220;admin&#8221;, and no password, and we are presented with:</p>
<p><a href="http://www.beardy.se/blog/wp-content/uploads/2012/03/webfig_interface.png" rel="lightbox[658]" title="WebFig interface"><img class="aligncenter size-large wp-image-676" title="WebFig interface" src="http://www.beardy.se/blog/wp-content/uploads/2012/03/webfig_interface-1024x468.png" alt="WebFig interface" width="695" height="317" /></a></p>
<p>The configuration hierarchy in the WebFig interface is the same as in the command line interface, and it seems logical, straightforward and clean, as it should be.</p>
<h2>Wireless</h2>
<p>I also connected to it over wireless, using the following /etc/network/interfaces configuration:</p>
<pre># MikroTik
allow-hotplug wlan0
iface wlan0 inet dhcp
    wireless-essid MikroTik</pre>
<p>On my laptop:</p>
<pre>wlan0     IEEE 802.11abgn  ESSID:"MikroTik"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:0C:42:[..]
          Bit Rate=150 Mb/s   Tx-Power=15 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-8 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0</pre>
<p>And on the RB751G:</p>
<pre>[admin@MikroTik] &gt; interface wireless registration-table print
 # INTERFACE                          RADIO-NAME       MAC-ADDRESS       AP  SIGNAL-STRENGTH TX-RATE UPTIME
 0 wlan1                                               00:21:5D:[..]     no  -34dBm@HT40-7   36.0... 3m48s</pre>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>I&#8217;m really impressed by the MikroTik RouterBOARD RB751G-2HnD so far, by just looking at it quickly like this. I will lab/play more with it and test out its functions in later articles.</p>
<h2>Related articles</h2>
<ul class="lcp_catlist"><li class = current ><a href="http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time">Examining, configuring and playing with the MikroTik RouterBOARD RB751G-2HnD for the first time</a>   </li><li><a href="http://www.beardy.se/securing-the-mikrotik-routerboard-rb751g-2hnd-or-any-routeros-device-the-bare-minimum">Securing the MikroTik RouterBOARD RB751G-2HnD (or any RouterOS device) - the bare minimum</a>   </li></ul>
<p>I hope this has been informative, and I would like to thank You for reading. Feel free to comment.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fexamining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time&amp;title=Examining%2C%20configuring%20and%20playing%20with%20the%20MikroTik%20RouterBOARD%20RB751G-2HnD%20for%20the%20first%20time" id="wpa2a_8"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/examining-configuring-and-playing-with-the-mikrotik-routerboard-rb751g-2hnd-for-the-first-time/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How computer and operating system introduction courses should be done</title>
		<link>http://www.beardy.se/how-computer-and-operating-system-introduction-courses-should-be-done</link>
		<comments>http://www.beardy.se/how-computer-and-operating-system-introduction-courses-should-be-done#comments</comments>
		<pubDate>Sun, 25 Mar 2012 11:41:24 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[computer history]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[60s]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[retro]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[timesharing]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=688</guid>
		<description><![CDATA[The following video is from 1963, before, or in the middle of the creation of proper operating systems. It explains so fantastically well how computers work in general, and also important concepts that was later developed further, and which are the foundations of modern operating systems today. This video should be shown at the first <a href='http://www.beardy.se/how-computer-and-operating-system-introduction-courses-should-be-done'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>The following video is from 1963, before, or in the middle of the creation of proper operating systems. It explains so fantastically well how computers work in general, and also important concepts that was later developed further, and which are the foundations of modern operating systems today.<br />
This video should be shown at the first lecture of any operating system, or general &#8220;computer science&#8221; course. Enjoy.<br />
<iframe src="http://www.youtube.com/embed/Q07PhW5sCEk" frameborder="0" width="420" height="315"></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fhow-computer-and-operating-system-introduction-courses-should-be-done&amp;title=How%20computer%20and%20operating%20system%20introduction%20courses%20should%20be%20done" id="wpa2a_10"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/how-computer-and-operating-system-introduction-courses-should-be-done/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If a PDP-8 minicomputer can&#8217;t help with Greece, who can?</title>
		<link>http://www.beardy.se/if-a-pdp-8-minicomputer-cant-help-with-greece-who-can</link>
		<comments>http://www.beardy.se/if-a-pdp-8-minicomputer-cant-help-with-greece-who-can#comments</comments>
		<pubDate>Mon, 26 Sep 2011 02:38:06 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[computer history]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[dec]]></category>
		<category><![CDATA[economy]]></category>
		<category><![CDATA[pdp-8]]></category>
		<category><![CDATA[retro]]></category>
		<category><![CDATA[simh]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=649</guid>
		<description><![CDATA[.BASIC NEW OR OLD--OLD FILE NAME--HELLO.BA READY RUN HELLO BA 5A HELLO, MY NAME IS PETEY P. EIGHT. WHAT&#8217;S YOUR NAME ?BEARDY HI THERE BEARDY. ARE YOU ENJOYING YOURSELF HERE IN THIS WONDERFUL PLACE?YES OH, I&#8217;M GLAD TO HEAR THAT BEARDY SAY, BEARDY, I CAN SOLVE ALL KINDS OF PROBLEMS EXCEPT THOSE DEALING WITH GREECE. <a href='http://www.beardy.se/if-a-pdp-8-minicomputer-cant-help-with-greece-who-can'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><code><br />
.BASIC<br />
NEW OR OLD--OLD<br />
FILE NAME--HELLO.BA</code></p>
<p>READY<br />
RUN</p>
<p>HELLO BA 5A</p>
<p>HELLO, MY NAME IS PETEY P. EIGHT.</p>
<p>WHAT&#8217;S YOUR NAME ?BEARDY</p>
<p>HI THERE BEARDY. ARE YOU ENJOYING YOURSELF HERE<br />
IN THIS WONDERFUL PLACE?YES</p>
<p>OH, I&#8217;M GLAD TO HEAR THAT BEARDY</p>
<p>SAY, BEARDY, I CAN SOLVE ALL KINDS OF PROBLEMS<br />
EXCEPT THOSE DEALING WITH GREECE. WHAT KIND OF<br />
PROBLEMS DO YOU HAVE (ANSWER SEX, HEALTH, MONEY,<br />
OR JOB)?</p>
<p>Not even a <a title="Wikipedia, Digital Equipment Corporation" href="http://en.wikipedia.org/wiki/Digital_Equipment_Corporation">DEC</a> <a title="Wikipedia, PDP-8" href="http://en.wikipedia.org/wiki/PDP-8">PDP-8</a> (simulated in <a title="The Computer History Simulation Project" href="http://simh.trailing-edge.com/">SIMH</a>) running <a title="Wikipedia, OS/8" href="http://en.wikipedia.org/wiki/OS/8">OS/8</a> and a <a title="Wikipedia, BASIC" href="http://en.wikipedia.org/wiki/BASIC">BASIC</a> program, HELLO.BA, can help with Greece!</p>
<p style="text-align: center;"><a href="http://upload.wikimedia.org/wikipedia/commons/6/6d/PDP-8.jpg" rel="lightbox[649]" title="PDP-8"><img class="aligncenter" title="PDP-8" src="http://upload.wikimedia.org/wikipedia/commons/6/6d/PDP-8.jpg" alt="PDP-8" width="576" height="768" /></a></p>
<p>Guess if I dropped my jaw in surprise and amusement when I read that, when playing around with a simulated historic computer just now. If not even that can help to solve the problems of/with Greece, I guess they&#8217;re doomed! <img src='http://www.beardy.se/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>On another note, SIMH is a great thing, the DEC PDP-8 minicomputer (from 1965) seems to have been a nice machine in its days, and OS/8 quite a decent OS for its time and environment. Expect another post on SIMH and simulating/emulating old computers shortly.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fif-a-pdp-8-minicomputer-cant-help-with-greece-who-can&amp;title=If%20a%20PDP-8%20minicomputer%20can%26%238217%3Bt%20help%20with%20Greece%2C%20who%20can%3F" id="wpa2a_12"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/if-a-pdp-8-minicomputer-cant-help-with-greece-who-can/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cron, crontab example reference and how to run things periodically in GNU/Linux and Unix</title>
		<link>http://www.beardy.se/cron-crontab-example-reference-and-how-to-run-things-periodically-in-gnulinux-and-unix</link>
		<comments>http://www.beardy.se/cron-crontab-example-reference-and-how-to-run-things-periodically-in-gnulinux-and-unix#comments</comments>
		<pubDate>Thu, 04 Nov 2010 18:54:56 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=633</guid>
		<description><![CDATA[Cron is a job scheduler found in most Unix-like operating systems. &#8220;Chronos&#8221;, which is the Greek word for &#8220;time&#8221;, is where the name cron comes from. Cron makes it possible to schedule jobs, which can be commands, a series of commands, or scripts, that you want to run periodically. Common uses are backups, notifications, periodic <a href='http://www.beardy.se/cron-crontab-example-reference-and-how-to-run-things-periodically-in-gnulinux-and-unix'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Cron is a job scheduler found in most Unix-like operating systems. &#8220;Chronos&#8221;, which is the Greek word for &#8220;time&#8221;, is where the name <em>cron</em> comes from. Cron makes it possible to schedule jobs, which can be commands, a series of commands, or scripts, that you want to run periodically. Common uses are backups, notifications, periodic checks on availability of services, networks, machines, or other things, and administration and maintenance tasks like rotating of logs, to mention a few. It is very general-purpose though, (like Unix tools is and should be) and can be used for whatever you can think of that needs to run periodically.<span id="more-633"></span><br />
<a href="http://www.beardy.se/blog/wp-content/uploads/2010/11/bigben.jpg" rel="lightbox[633]" title="bigben"><img class="alignright size-medium wp-image-634" title="bigben" src="http://www.beardy.se/blog/wp-content/uploads/2010/11/bigben-300x269.jpg" alt="Image showing the Big Ben clock." width="300" height="269" /></a></p>
<p>Jobs that should be run by <em>cron</em> are specified in <em>crontab</em> (cron table) files. A crontab is a configuration file that specifies commands (shell commands, including programs, scripts, or pipelines thereof) to be run, and when they should be executed.</p>
<p>Each line in a crontab file represents a &#8220;job&#8221;, and is composed of a CRON expression (specifying the time) followed by the command or commands to be executed. There are two different crontab files, the ones installed by system software, and editable only by root (but in most cases best left alone), and crontab files written by and belonging to users (including root). The authorization control to cron, who will be allowed to have a crontab or not, are done with the files <code>/etc/cron.allow</code> and <code>/etc/cron.deny</code>.</p>
<p>The manpages of <em>cron</em> and the <em>crontab</em> format are nice. &#8220;crontab&#8221; is both the name of the program installing, listing and editing user&#8217;s crontabs, and the file format manpage, so do read them:</p>
<pre>man cron
man 1 crontab
man 5 crontab</pre>
<p>The page in section 5, about the format is most interesting. However I prefer to keep a short reference in my user&#8217;s crontab file itself for quick reference, feel free to grab it:</p>
<pre># mycrontab.txt
# beardy
# My example crontab, kept in ~/

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Send the mail to another address than the local user
##MAILTO=foo@foo.bar

##############################################################################
#
# The following example should run "true" every day of every month, at half
# past eight, every day of the week.
#
# Example:
#
# 30 8  * * *   true
# |  |  | | |    |
# |  |  | | |    +--- command, or script, to run
# |  |  | | +-------- day of week, 0-7 or mon, Tue, FRI
# |  |  | +---------- month, 1-12, or names, jan, Mar, AUG (case doesn't matter)
# |  |  +------------ date, 1-31
# |  +--------------- hour, 0-23
# +------------------ minute, 0-59
#
# see "man 5 crontab"
#
#     Instead of the first five fields, one of eight special strings may
#     appear:
#
#           string          meaning
#           ------          -------
#           @reboot         Run once, at startup.
#           @yearly         Run once a year, "0 0 1 1 *".
#           @annually       (same as @yearly)
#           @monthly        Run once a month, "0 0 1 * *".
#           @weekly         Run once a week, "0 0 * * 0".
#           @daily          Run once a day, "0 0 * * *".
#           @midnight       (same as @daily)
#           @hourly         Run once an hour, "0 * * * *".
#
##############################################################################

# Run beep every Christmas Eve, at 14:40 (20 min before Kalle Anka)
#40 14  24 12 * beep -f 1000 -r 5 -l 150 -D 250
# next job goes after this line
40 14   24 12 * echo "God Jul!"</pre>
<p>To install a new <em>crontab</em>, the <strong>crontab(1)</strong> program is used:</p>
<pre>crontab mycrontab.txt</pre>
<p>To later list it, and edit it (with the editor configured with the <em>$EDITOR</em> environment variable usually):</p>
<pre>crontab -l
crontab -e</pre>
<p>Read more about <em>cron</em> and <em>crontab</em>:</p>
<p><a title="CRON(8)" href="http://manpages.debian.net/cgi-bin/man.cgi?query=cron&amp;apropos=0&amp;sektion=8&amp;manpath=Debian+5.0+lenny&amp;format=html&amp;locale=en">cron(8)</a><br />
<a title="CRONTAB(1)" href="http://manpages.debian.net/cgi-bin/man.cgi?query=crontab&amp;apropos=0&amp;sektion=1&amp;manpath=Debian+5.0+lenny&amp;format=html&amp;locale=en">crontab(1)</a><br />
<a title="CRONTAB(5)" href="http://manpages.debian.net/cgi-bin/man.cgi?query=crontab&amp;apropos=0&amp;sektion=5&amp;manpath=Debian+5.0+lenny&amp;format=html&amp;locale=en">crontab(5)</a><br />
<a title="Time - An important Subject with any OS" href="http://www.markus-gattol.name/ws/time.html#cron">Time &#8211; An important Subject with any OS</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fcron-crontab-example-reference-and-how-to-run-things-periodically-in-gnulinux-and-unix&amp;title=Cron%2C%20crontab%20example%20reference%20and%20how%20to%20run%20things%20periodically%20in%20GNU%2FLinux%20and%20Unix" id="wpa2a_14"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/cron-crontab-example-reference-and-how-to-run-things-periodically-in-gnulinux-and-unix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing missing menu entries of Opera and Skype in Debian GNU/Linux</title>
		<link>http://www.beardy.se/fixing-missing-menu-entries-of-opera-and-skype-in-debian-gnulinux</link>
		<comments>http://www.beardy.se/fixing-missing-menu-entries-of-opera-and-skype-in-debian-gnulinux#comments</comments>
		<pubDate>Wed, 20 Oct 2010 05:48:37 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howro]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[skype]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=622</guid>
		<description><![CDATA[Unfortunately the third-party packages of Opera and Skype do not contain menu entries for the Debian menu system. Not very surprisingly one might think, but I just think it&#8217;s sloppy. If you, like me, like the Debian menu system and want Opera and Skype available in it, do the following to solve that, until the <a href='http://www.beardy.se/fixing-missing-menu-entries-of-opera-and-skype-in-debian-gnulinux'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Unfortunately the third-party packages of <a title="How to install Opera in Debian" href="http://wiki.debian.org/Opera">Opera</a> and <a title="How to install Skype in Debian" href="http://wiki.debian.org/skype">Skype</a> do not contain menu entries for the Debian menu system. Not very surprisingly one might think, but I just think it&#8217;s sloppy. If you, like me, like the Debian menu system and want Opera and Skype available in it, do the following to solve that, until the packagers have included the menu entry files themselves:</p>
<p>(<em>Update:</em> I noticed that Opera has apparently had a menu entry in its package before, but has now removed it. It&#8217;s explained in <a title="New Opera 10.51 UNIX packages (.deb, .rpm &amp; .tar)" href="http://my.opera.com/ruario/blog/new-opera-unix-packages-arrive-deb-rpm-tar">this post</a>, but I still think that was a bad choice.)<br />
<span id="more-622"></span><br />
To override, or in this case add menufiles in Debian, one should put the files in <code>/etc/menu</code>. Put the following in <code>/etc/menu/opera</code>:</p>
<pre>?package(opera):needs="x11" section="Applications/Network/Web Browsing" \
  title="Opera" command="/usr/bin/opera" hints="Web browsers" \
  icon="/usr/share/icons/hicolor/32x32/apps/opera-browser.xpm"</pre>
<p>And the following in <code>/etc/menu/skype</code>:</p>
<pre>?package(skype):needs="X11" section="Applications/Network/Communication" \
        title="Skype" \
        longtitle="Skype" \
        icon="" \
        command="skype"</pre>
<p>Then run &#8216;<code>update-menus</code>&#8216; after you have added the above files to update the menu system, and have Opera and Skype available in your window manager&#8217;s menus.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Ffixing-missing-menu-entries-of-opera-and-skype-in-debian-gnulinux&amp;title=Fixing%20missing%20menu%20entries%20of%20Opera%20and%20Skype%20in%20Debian%20GNU%2FLinux" id="wpa2a_16"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/fixing-missing-menu-entries-of-opera-and-skype-in-debian-gnulinux/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Modems &amp; Bulletin Boards, The Computer Chronicles</title>
		<link>http://www.beardy.se/modems-bulletin-boards-the-computer-chronicles</link>
		<comments>http://www.beardy.se/modems-bulletin-boards-the-computer-chronicles#comments</comments>
		<pubDate>Sun, 10 Oct 2010 22:27:07 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[computer history]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[computer chronicles]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[retro]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=605</guid>
		<description><![CDATA[This Sunday&#8217;s video (I will from now on try to post atleast one video from this series, or another, each Sunday (even though it technically is Monday in this part of the world)) is about modems and bulletin boards (BBS:es). I also have to recommend the movie/series &#8221;BBS: The Documentary&#8220; which is very interesting and well made. <a href='http://www.beardy.se/modems-bulletin-boards-the-computer-chronicles'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>This Sunday&#8217;s video (I will from now on try to post atleast one video from this series, or another, each Sunday (even though it technically is Monday in this part of the world)) is about modems and bulletin boards (BBS:es). I also have to recommend the movie/series &#8221;<a href="http://www.bbsdocumentary.com/">BBS: The Documentary</a>&#8220; which is very interesting and well made.</p>
<blockquote><p>
From high-tech trysts to selling black-market software, computers users are talking.</p>
<p>Guests: Ezra Shapiro, Byte Magazine; Rory O&#8217;Connor, InforWorld; Matthew McClure, The Well; Donald Ingrim, Alameda County DA; George Morrow, Morrow Computing</p>
<p>Products/Demos: CompuServe, Byte BBS, The Well
</p></blockquote>
<p>Let&#8217;s hear your thoughts and comments after watching the video, enjoy.<br />
<span id="more-605"></span></p>
<p><object width="640" height="506" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="true" name="allowfullscreen"/><param value="always" name="allowscriptaccess"/><param value="high" name="quality"/><param value="true" name="cachebusting"/><param value="#000000" name="bgcolor"/><param name="movie" value="http://www.archive.org/flow/flowplayer.commercial-3.2.1.swf" /><param value="config={'key':'#$aa4baff94a9bdcafce8','playlist':['format=Thumbnail?.jpg',{'autoPlay':false,'url':'ModemsBu1985_512kb.mp4'}],'clip':{'autoPlay':true,'baseUrl':'http://www.archive.org/download/ModemsBu1985/','scaling':'fit','provider':'h264streaming'},'canvas':{'backgroundColor':'#000000','backgroundGradient':'none'},'plugins':{'controls':{'playlist':false,'fullscreen':true,'height':26,'backgroundColor':'#000000','autoHide':{'fullscreenOnly':true}},'h264streaming':{'url':'http://www.archive.org/flow/flowplayer.pseudostreaming-3.2.1.swf'}},'contextMenu':[{},'-','Flowplayer v3.2.1']}" name="flashvars"/><embed src="http://www.archive.org/flow/flowplayer.commercial-3.2.1.swf" type="application/x-shockwave-flash" width="640" height="506" allowfullscreen="true" allowscriptaccess="always" cachebusting="true" bgcolor="#000000" quality="high" flashvars="config={'key':'#$aa4baff94a9bdcafce8','playlist':['format=Thumbnail?.jpg',{'autoPlay':false,'url':'ModemsBu1985_512kb.mp4'}],'clip':{'autoPlay':true,'baseUrl':'http://www.archive.org/download/ModemsBu1985/','scaling':'fit','provider':'h264streaming'},'canvas':{'backgroundColor':'#000000','backgroundGradient':'none'},'plugins':{'controls':{'playlist':false,'fullscreen':true,'height':26,'backgroundColor':'#000000','autoHide':{'fullscreenOnly':true}},'h264streaming':{'url':'http://www.archive.org/flow/flowplayer.pseudostreaming-3.2.1.swf'}},'contextMenu':[{},'-','Flowplayer v3.2.1']}"></embed></object></p>
<p>Related posts:<br />
<ul class="lcp_catlist"><li><a href="http://www.beardy.se/ibm-clones-the-computer-chronicles">IBM Clones, The Computer Chronicles</a>   </li><li><a href="http://www.beardy.se/if-a-pdp-8-minicomputer-cant-help-with-greece-who-can">If a PDP-8 minicomputer can't help with Greece, who can?</a>   </li><li><a href="http://www.beardy.se/how-computer-and-operating-system-introduction-courses-should-be-done">How computer and operating system introduction courses should be done</a>   </li><li><a href="http://www.beardy.se/unix-the-computer-chronicles">UNIX, The Computer Chronicles</a>   </li><li class = current ><a href="http://www.beardy.se/modems-bulletin-boards-the-computer-chronicles">Modems & Bulletin Boards, The Computer Chronicles</a>   </li></ul></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2Fmodems-bulletin-boards-the-computer-chronicles&amp;title=Modems%20%26%23038%3B%20Bulletin%20Boards%2C%20The%20Computer%20Chronicles" id="wpa2a_18"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/modems-bulletin-boards-the-computer-chronicles/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 WordPress plugins</title>
		<link>http://www.beardy.se/3-wordpress-plugins</link>
		<comments>http://www.beardy.se/3-wordpress-plugins#comments</comments>
		<pubDate>Sat, 09 Oct 2010 19:22:06 +0000</pubDate>
		<dc:creator>beardy</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.beardy.se/?p=596</guid>
		<description><![CDATA[Yesterday I decided to change the permalinks structure of this site. I wondered if WordPress had redirection built into to the core, but it seems it does not yet. But there are many plugins, like always, providing the needed functionlity. At first I looked at one called Redirection, but it was not really what I was <a href='http://www.beardy.se/3-wordpress-plugins'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_597" class="wp-caption alignright" style="width: 310px"><a href="http://www.beardy.se/blog/wp-content/uploads/2010/10/advanced_permalinks.png" rel="lightbox[596]" title="advanced_permalinks"><img class="size-medium wp-image-597" title="advanced_permalinks" src="http://www.beardy.se/blog/wp-content/uploads/2010/10/advanced_permalinks-300x114.png" alt="Advanced Permalinks dashboard screenshot" width="300" height="114" /></a><p class="wp-caption-text">Advanced Permalinks dashboard screenshot</p></div>
<p>Yesterday I decided to change the permalinks structure of this site. I wondered if WordPress had redirection built into to the core, but it seems it does not yet. But there are many plugins, like always, providing the needed functionlity. At first I looked at one called <a title="Redirection WordPress plugin" href="http://wordpress.org/extend/plugins/redirection/">Redirection</a>, but it was not really what I was after. If seems to do most things one could want regarding redirects and 404 logging, but I only wanted to simply redirect my old &#8220;YYYY/MM/DD/postname&#8221; structure to &#8220;/postname&#8221;. I then tried another plugin called <a title="Advanced Permalinks WordPress plugin" href="http://wordpress.org/extend/plugins/advanced-permalinks/">Advanced Permalinks</a>, which does exactly what I wanted. After installing it, its options/functionality is found under <em>Settings-&gt;Permalinks-&gt;Migration</em> in the WordPress administration dashboard.</p>
<p>This allows you to move from one permalink structure to another one, and have the old structure be forwarded to the new, for each post. I used the &#8220;<em>/%year%/%monthnum%/%day%/%postname%/</em>&#8221; structure before, but I switched to the &#8220;<em>/%postname%/</em>&#8221; structure. Now, with the Advanced Permalinks plugin my possible old links in to my articles are forwarded properly.</p>
<p>The second plugin I installed and tried yesterday was <a title="Optimize DB WordPress plugin" href="http://wordpress.org/extend/plugins/optimize-db/">Optimize DB</a>, a simple plugin that just does what the name says, optimizes the MySQL database with one click. Seems to do its work well too. For my little site it wasn&#8217;t that much to optimize, but a few kilobytes atleast.</p>
<p>The third plugin I installed, and which you can see the effects of in this post, is <a title="Lightbox Plus WordPress plugin" href="http://wordpress.org/extend/plugins/lightbox-plus/">Lightbox Plus</a>, which handles the viewing of images fullsize in an overlay frame using javascript, instead of opening the image directly. Click on the image in this post and see.</p>
<p>Are you using any of these plugins and have anything to add? leave a comment.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.beardy.se%2F3-wordpress-plugins&amp;title=3%20WordPress%20plugins" id="wpa2a_20"><img src="http://www.beardy.se/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.beardy.se/3-wordpress-plugins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

