Radek Sprta (Posts about internet)https://radeksprta.eu/categories/internet.atom2024-01-07T02:28:56ZRadek SprtaNikolaAssign Your Raspberry Pi Static IP in Couple Stepshttps://radeksprta.eu/posts/assign-raspberry-pi-static-ip-couple-steps/2017-10-28T06:23:57+02:002017-10-28T06:23:57+02:00Radek Sprta<div><p>Due to its availability, Raspberry Pi is an ideal candidate to run a simple
server. After the <a href="https://radeksprta.eu/setting-up-headless-raspberry-pi-server/">initial setup</a>,
it will use DHCP to connect to your network. That
means, each time you restart the Pi or your router, it might end up with a
different IP address. This not ideal, as you will need to take a note of the
new IP to connect to your services. In order to avoid reconfiguring your
computers all the time, you should assign your Raspberry Pi static IP. This
post will show you how to do it for ethernet connection on Raspbian, but the
steps are the same for a <a href="https://radeksprta.eu/raspberry-pi-wifi-setup/">wireless connection</a>.
Start by connecting to your Pi. When you do, you can see the
current network settings by running: </p>
<div class="code"><pre class="code literal-block">$ cat /etc/network/interfaces
</pre></div>
<p>It should look
something like this: </p>
<div class="code"><pre class="code literal-block"># interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
iface eth0 inet dhcp
</pre></div>
<p>The entry you need to change is for the <code>eth0</code> interface. That is the default
ethernet adapter. In order to use a static IP, you have to provide IP address,
network, network mask, broadcast and default gateway. So, let's get them.</p>
<p><a href="https://radeksprta.eu/posts/assign-raspberry-pi-static-ip-couple-steps/">Read more…</a> (2 min remaining to read)</p></div>Website Obesityhttps://radeksprta.eu/posts/website-obesity/2017-03-04T16:01:45+01:002017-03-04T16:01:45+01:00Radek Sprta<p>The other day, I stumbled upon an interesting talk by Maciej Cegłowski about
the worrying trend of website obesity. I have to say, I fully agree with him.
As it stands, the situation is getting quite ridiculous. Designers and web
coders should stop the unnecessary bloat. Here's the transcript of the talk:</p>
<p><a href="https://idlewords.com/talks/website_obesity.htm">Website Obesity</a></p>Test Internet Speed in Command Linehttps://radeksprta.eu/posts/test-internet-speed-command-line/2015-07-16T14:54:45+02:002015-07-16T14:54:45+02:00Radek Sprta<div><p>Sometimes the Internet is sluggish and you need to find out if your connection
is the culprit. The usual routine to find out the connection speed is the
following. First, switch to your browser. Then type out the address of one of
the speed testing sites. Finally, navigate through, usually bloated and
annoying, GUI. For those who cannot be bothered to do that (and are on *nix
system), I have a simple trick to test internet speed in command line. You
can just create an alias called <code>speedtest</code>. If you use bash, then running
this command will do:</p>
<div class="code"><pre class="code literal-block">$<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">"alias speedtest='wget https://cachefly.cachefly.net/100mb.test -O /dev/null'"</span><span class="w"> </span>>><span class="w"> </span>.bash_aliases
</pre></div>
<p>However, my personal favorite is
<a href="https://fishshell.com/">fish</a> (the shell, not the animal). In fish, you can
make custom function in <code>~/.config/fish/functions/speedtest.fish</code>. The code is
below:</p>
<p><a href="https://radeksprta.eu/posts/test-internet-speed-command-line/">Read more…</a> (1 min remaining to read)</p></div>