<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux &amp; Systems on punt2cpu</title>
    <link>https://punt2cpu.net/categories/linux--systems/</link>
    <description>Recent content in Linux &amp; Systems on punt2cpu</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 28 Aug 2017 10:45:11 +0000</lastBuildDate>
    <atom:link href="https://punt2cpu.net/categories/linux--systems/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Big and Little Endian</title>
      <link>https://punt2cpu.net/2017/08/28/big-and-little-endian/</link>
      <pubDate>Mon, 28 Aug 2017 10:45:11 +0000</pubDate>
      <guid>https://punt2cpu.net/2017/08/28/big-and-little-endian/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Big endian&lt;/strong&gt; - &lt;strong&gt;most significant&lt;/strong&gt; byte stored in smallest address,  read from &lt;strong&gt;left to right&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s take a 32-bit value :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0x09080706&lt;/strong&gt; :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;09|08|07|06&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;byte address : x|x+1|x+2|x+3&lt;/strong&gt;&lt;br&gt;
For example &lt;strong&gt;32-bit&lt;/strong&gt; value &lt;strong&gt;5&lt;/strong&gt; writing as &lt;strong&gt;0x00000005&lt;/strong&gt; is a Big endian.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Little endian&lt;/strong&gt; - &lt;strong&gt;least significant&lt;/strong&gt; byte is stored in smallest address, read from &lt;strong&gt;right to left.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;32-bit value would be stored in memory in following way :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0x09080706&lt;/strong&gt; :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;06|07|08|09&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;byte address : x|x+1|x+2|x+3&lt;/strong&gt;&lt;br&gt;
For example little endian value would be &lt;strong&gt;16-bit&lt;/strong&gt; value **53  **in &lt;strong&gt;0x3500&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Small how to setup a WiFI device on your FreeBSD machine.</title>
      <link>https://punt2cpu.net/2017/08/24/small-how-to-setup-a-wifi-device-on-your-freebsd-machine/</link>
      <pubDate>Thu, 24 Aug 2017 11:41:05 +0000</pubDate>
      <guid>https://punt2cpu.net/2017/08/24/small-how-to-setup-a-wifi-device-on-your-freebsd-machine/</guid>
      <description>&lt;p&gt;Scanning for wifi networks :&lt;br&gt;
ifconfig wlan0 up scan&lt;/p&gt;
&lt;p&gt;Setting up your wifi device :&lt;a href=&#34;https://www.freebsd.org/doc/en/books/handbook/network-wireless.html&#34;&gt;Network-Wireless&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This example shows the Atheros ath0 wireless adapter.Add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it. Replace myssidand mypsk with the SSID and PSK provided by the network administrator.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;network={&lt;/p&gt;
&lt;p&gt;ssid=&amp;ldquo;myssid&amp;rdquo; psk=&amp;ldquo;mypsk&amp;rdquo;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Add entries to /etc/rc.conf to configure the network on startup:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;wlans_ath0=&amp;ldquo;wlan0&amp;rdquo;&lt;br&gt;
ifconfig_wlan0=&amp;ldquo;WPA SYNCDHCP&amp;rdquo;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Restart the computer, or restart the network service to connect to the network:&lt;br&gt;
&lt;strong&gt;# service netif restart&lt;/strong&gt;&lt;br&gt;
After 8.0v, it is necessary to create a wlan clone device of the actual wifi card :&lt;br&gt;
&lt;strong&gt;# ifconfig wlan0 create wlandev ath0&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;# ifconfig wlan0 up list scan&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Apt-get/Yum through proxy</title>
      <link>https://punt2cpu.net/2017/08/24/apt-getyum-through-proxy/</link>
      <pubDate>Thu, 24 Aug 2017 11:28:31 +0000</pubDate>
      <guid>https://punt2cpu.net/2017/08/24/apt-getyum-through-proxy/</guid>
      <description>&lt;p&gt;**APT-GET **&lt;/p&gt;
&lt;p&gt;In case if your access is going through proxy server you need to provide the credentials to APT.&lt;/p&gt;
&lt;p&gt;Just create an apt.conf file in &lt;strong&gt;/etc/apt&lt;/strong&gt;/ and add there the following entry :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Acquire::http::Proxy &amp;ldquo;http://proxyadd:port&amp;rdquo;;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In case if authentication is needed :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Acquire::http::Proxy &amp;ldquo;http://username:password@proxyadd:port&amp;rdquo;;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;**YUM **&lt;/p&gt;
&lt;p&gt;/etc/yum.conf&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;proxy=http://proxyadd:port&lt;br&gt;
proxy_username=user&lt;br&gt;
proxy_password=passwd&lt;/p&gt;
&lt;/blockquote&gt;</description>
    </item>
  </channel>
</rss>
