Can not install any other package -Ubuntu 12.04

E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem. When I try to run the command it starts downloading dropbox but it never finishes its task. I definite dont want to download dropbox.If I want to install any other package from terminal it show the same error.Can anyone help me with this isssue….
Read more

Mail (gmail) using terminal

I need to send mail using a corporate gmail account from the terminal. I am thinking of writing a shell script for it. I’ve tried using ssmtp and mail but it gives Authorization error because google doesn’t allow less secured apps to send mails (described here) without enabling less secured app mail sending option. I followed tutorials from here and…
Read more

npm proxy settings not getting removed

using ubuntu 12.04 and npm 1.4.28 When I do: npm config get proxy I get: to remove that I did the following: npm config rm proxy npm config rm https-proxy I also removed the .npmrc file and doing the get command again it returns: It’s driving me crazy, is there any way to remove this? Source: ubuntu

how to install npm on ubuntu?

I want to install mocha test framework but for this we need npm So I ran following commands 1. sudo apt-get install npm 2. npm install -g mocha But getting following error when I ran first command user@dell:~/mochatest$ sudo apt-get install npm [sudo] password for user: Reading package lists… Done Building dependency tree Reading state information… Done The following packages…
Read more

Java program is not able to execute terminal command

import java.io.*; import java.io.IOException; import java.util.Scanner; public class AutoStart{ public static void main(String[] args){ while(true){ Runtime r = Runtime.getRuntime(); try{ Process p = r.exec(“ps -ef >> services.txt”); try{ p.waitFor(); } catch(InterruptedException e){ e.getStackTrace(); } Scanner txtscan = new Scanner(new File(“services.txt”)); int running = 0; //0 means not running and 1 means running while(txtscan.hasNextLine()){ String str = txtscan.nextLine(); if(str.indexOf(“red5”) != -1){…
Read more

How to enable Cisco AE6000 (usb wifi adapter) in VirtualBox Ubuntu 12.04

I would like to use Cisco AE6000 (usb wifi adapter) in VirtualBox Ubuntu or Kali. I have tried the previous guides by googling. Currently, dmesg shows: –>RTUSBVenderReset fw version:0.1.00 build:7640 RTUSB_VendorRequest failed(-110), TxFlags=0x0, ReqType=OUT, Req=0x6,… … ERROR!!! NICLoadFirmware failed, Status[=0x00000001] !!! rt28xx init fail !!! And I checked lsusb and iwconfig: #lsusb Bus 001 Device 002: ID 13b1:003e Linksys Bus…
Read more

Additional Java process slowing down Android Studio and the whole system

It’s been a while that I have noticed that after using Android Studio for a while, another Java process starts, consumes a lot of memory and eventually freeze Android Studio and the whole system becomes unresponsive. If I kill that process, nothing happens, but both system and Android Studio start operating normally. This is how it looks When I hover…
Read more

why my App has two manifest files

I opened android project in android studio and I found that that project contains two manifest files as shown below in the image. the first manifest contains the activities in the projects while the other manifest contains the permissions!! please let me know how that is possible and why?? Note: I used to work with eclipse and I have not…
Read more