Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, 26 August 2017

Launch Applications Faster :Preload in Linux

Wanna speed up Launch time of Applications in Linux then read on.

Preload is a package that enables a service which can preload libraries required for Applications in the Ram. Obviously reading from ram is way more faster than reading from the disk. That's where your system gains up speed and can launch applications faster.


Saturday, 8 July 2017

Record internal speaker audio in Linux

Record internal speakers in linux
Recording internal audio in Linux
The other day I came up with this brilliant idea to use my mobile phone as a bluetooth speaker for my laptop. I decided this could be easily accomplished once we had access to the whatever the audio card has, save it and stream it on tcp or udp port across a network connection to my mobile phone by piping it netcat after conversion to wav.

Sounds perfect, except the fact that it has been already implemented. Meanwhile, through numerous visits to stackoverflow and askUbuntu I finally discovered a cool new way to record audio.


Saturday, 1 April 2017

Ditch Ubuntu Software Centre

Most noobies to Linux love Ubuntu Software. It one of the best things of Ubuntu, a preinstalled GUI package manager.

The Other thing that most guys love is the Software Updater it is extremely fast and efficient when compared to its Windows Counter Part.

Experts

However experts should not be using Ubuntu Software. One of the biggest and main reason is the fact that it is buggy and it hangs even on modern hardware.
It is extremely slow compared to its terminal alternative. I have used GUI package managers on various Arch Distros, they are far more efficient then Ubuntu's Software Centre.

Secondly it has a tendency to acquire a lock and then never release. Software center was taught by canonical lock n key, however turns out it learned from its distant friend Windows lock n hang. 

Usually when it decides to play this game of lock n hang. You need to use ps -aux | grep apt. To find out the process and kill it with kill -9 pid. Finally you need to ensure that the database is not corrupt by use sudo dpkg --configure -a. Failure to do so can have disastrous consequences. So why not ditch it all together ?



Sunday, 26 March 2017

The Fastest and Easiest Way to Install OpenCv for Python on Ubuntu

Python burning gif
When I first installed OpenCV I used an article on which installed opencv from source. However this is unnecessary and time consuming.

The entire process is too complicated. You will need to use that process only if
  1. You are using the latest OpenCV features
  2. You need Python 3 bindings
Before building from the source I highly recommend you trying the method described in this post. It is quick and simple.

Wednesday, 1 February 2017

Finding Java Home in Ubuntu

Often Ubuntu Users struggle with setting up of Apache Tomcat, Hadoop and other Java Technologies.

The reason being Java Home Error.

It is Either not set or incorrectly set due to mismatch in the java variant.

Java Variants

The java installation in Ubuntu comes in two ways

  1. Open Jdk
  2. Sun/Oracle Jdk
Always use the second one if you are working with android.

The Fix



The easiest way to fix this is to use the update-java-alternatives command

sudo update-java-alternatives -l

This will give you the java home.

Use this to java home in your config File.

Whenever updating apend a /jre at the end.

Screenshot


how to find java home ubuntu
update-java-alternatives
Example in this case value for Java_Home will be
/usr/lib/jvm/java-8-oracle/jre

Wednesday, 18 January 2017

Read-only file system Error In Pendrive

The Dreaded Issue


Often you come across errors in linux with storage devices and the one of the most common and dreaded one is the following one
Read-only file system

Here are a few google search suggestions that pop up the moment you begin typing read-only filesystem.

  1. Fedora pen drive read-only
  2. pen drive read-only Ubuntu
  3. pen drive read-only Problem



I have seen people using several distros constantly complaining due to this issue.
Some of the most reputed forums offer horrible fixes to this issue. The solutions offered by these forums are often over complicated.

We will look into two simple approaches to this problem.


  1. The Naive Method
  2. And Geek Method


The Geek Method is hell lot a faster and looks really cool , or rather should I say geeky.

Friday, 13 January 2017

Creating a Bootable Usb for Ubuntu 16.04 using Ubuntu

After a recent failure of system due to bad sectors in hard disk. I decided to upgrade my system to next LTS. Welcome 16.04.

If you are using Ubuntu Os to create the bootable usb here are your options.

  1. Startup Disk Creator
  2. Unetbootin
  3. mkusb

Monday, 2 January 2017

Lisp Programing Environment Setup in Ubuntu

Package Installation

Packages for Lisp
Lisp Package Required

If you are new to Lisp programing , here's the packages that you need to install.

  • emacs
  • slime
  • sbcl
Installation commands for the same are


Thursday, 27 October 2016

Remove Unwanted Software from Ubuntu 14.04

I recently decided to remove some of the useless software that comes bundled with Ubuntu 14.04. This included the games.However removing the games turned out to be little tricky, I finally found the answer on a comment in a thread on Ubuntu forums, thus the post.