Wednesday, 21 October 2015

Always fetch upstream!


Welcome to n00bsland!





Everybody should remember where there come from. Including their repos.

Why you ask? Becase git merge :/


I recently edited a few files in my branch of a repo and created pull request. Well guess what? The master had moved forward.



So the usual-

1. Delete local repo

2. Add remote upstream <parent_repo_link>

git remote add upstream <parent_repo_link>

3. Update local copy.

git fetch upstream

4. Create changes (again >_<)

5. Commit and pull.


Don't be a n00b, always add upstream repo.


Monday, 19 October 2015

Getting started with Raspbian - First touches


Disclaimer : All the knowledge here has been scoured from the internet.

So I got myself a Raspberry Pi 2 this month. But due to some display connectivity issues (lack of HDMI monitor, USB keyboard,etc) on my part, I was unable to use it.

Finally now though, I have got it up and running. But there are a few customizations (and fixes) that I had to do before it became usable for me.

1. The terminal hotkey 

My number one problem was that there was no terminal hotkey (that launched in the same x session). I sorely missed that, needing to click on the taskbar icon and then shifting onto the keyboard to type the update and install commands.

Adding the shortcut is no biggie. Do the following:

    sudo leafpad ~/.config/openbox/lxde-pi-rc.xml

Find the </keyboard> tag and paste these lines just before it:


    <keybind key="C-A-T">
      <action name="Execute">
        <command>lxterminal</command>
      </action>
    </keybind>

and restart.


2. The youtube play icon

So there is a glitch in epiphany because of which the play icon of youtube doesn't really go away.

5 seconds since the video started


So I just installed midori and now that's my default browser.

sudo apt-get install midori


3. Headphones audio not working

This required configuring from the rasp-config utility.

sudo raspi-config 

Goto Advanced Options -> Audio -> Force 3.5 mm.


I'll keep adding as and when I find something worth sharing.