Thursday, 5 October 2017

Heroku commands

Set Environment Variable
$ heroku config:set variable=value


Check Logs
$ heroku log


Login to remote shell
$ heroku run bash 

Saturday, 30 September 2017

Install Openproject on ubuntu

wget -qO- https://dl.packager.io/srv/opf/openproject-ce/key | sudo apt-key add -

sudo wget -O /etc/apt/sources.list.d/openproject-ce.list \
  https://dl.packager.io/srv/opf/openproject-ce/stable/7/installer/ubuntu/16.04.repo

sudo apt-get update
sudo apt-get install openproject

Monday, 3 July 2017

Ubuntu/Linux Fix Wifi On Dell Latitude

Wifi not working/detecting any network on Dell Latitude



sudo apt-get update
sudo apt-get install firmware-b43-installer

and restart the computer.

It worked for me on Dell Latitude,
I think this should work on other Laptops/Systems also.

Saturday, 29 April 2017

Create swap on USD drive for Linux

 - Unmount the USB drive
$ sudo umount /media/sdb1

- To watch the disk label as we have used here sdb1 yours might be different,
use the following and make sure which one is your pen drive with the consideration of size,
and sdb1 is just used here for exampling and explaining -

$ sudo fdisk -l

- Create swap on you pen drive by-
$ sudo mkswap /dev/sdb1

- Turn it on by:
$ sudo swapon -p 32767 /dev/sdb1

- To check its working use
$ cat /proc/swaps

Saturday, 11 February 2017

Things to do after fresh/first install of Ubuntu

These notes are written wrt Ubuntu 16.x



Click to minimize an app from taskbar

Run this command:-
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true


Install Linux Graphics Drivers

    1. Open up the ‘Software & Updates’ tool from the Unity Dash
    2. Click the ‘Additional Drivers’ tab
    3. Follow any on-screen prompts to check for, install and apply any changes

Check for best driver option for your NVidia Graphics cards.

Install System Cleaner

Install Development Tools

Saturday, 28 January 2017

AOSP - Android Source Building Comprehensive Guide

Binaries Generated By The Build

1. boot.img
boot.img contains the kernel and ramdisk, critical files necessary to load the device before the filesystem can be mounted. You have to generate the boot.img yourself using mkbootimg, a tool provided by AOSP.

2.kernel
Binary for linux kernel.

3. ramdisk.img
ramdisk.img is a small partition image that is mounted read-only by the kernel at boot time.
It only contains /init and a few config files.
It is used to start init which will mount the rest of the system images properly and run the init procedure.

A Ramdisk is a standard Linux feature.


4. ramdisk-recovery.img
Recovery image for ramdisk.

5. recovery.img
It is the Android recovery image.

A bootable program on an Android flash memory partition that is used to perform a factory reset or restore the original OS version. In order to install a different OS version (a different ROM), the stock recovery image must be replaced with a custom version such as ClockworkMod Recovery. After rooting the Android, utilities such as ROM Manager install the custom recovery, which is then used to install the custom ROM.

6. userdata.img
userdata.img is a partition image that can be mounted as /data and thus contains all application-specific and user-specific data.   

7. system.img
system.img is a partition image that will be mounted as / and thus contains all system binaries

8. full_mako-img-eng.nsk.zip
A full update is one where the entire final state of the device (system, boot, and recovery partitions) is contained in the package. As long as the device is capable of receiving the package and booting the recovery system, the package can install the desired build regardless of the current state of the device.

Friday, 27 January 2017

Linux Troubleshooting

1. How do I fix a “Problem with MergeList” or “status file could not be parsed” ?

sudo rm -vf /var/lib/apt/lists/*
sudo apt-get update


2. How to run 32 bit binaries on 64 bit Linux ?

sudo dpkg --add-architecture i386

Or if you are using Ubuntu 12.04 LTS (Precise Pangolin) or below, use this:

echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch

Then:

sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

3. How to remove openjdk ?

sudo apt-get purge openjdk*