Thursday, September 3, 2015

Fixing Kali Linux 2.0 Slow Internet Connection in Parallels Desktop 10

Hi. Past two days I have had the opportunity to try Kali Linux 2.0 (Sana) in my Parallels and when I tried to do apt-get update and apt-get upgrade as well as apt-get dist-upgrade, the connection is really slow. I was getting about 15KB/s download speed and my Internet connection speed is actually about 3-5MB/s. Which means, my download speed should be 250-600 KB/s. This is really frustrating.

I tried investigating the problem. At first, I thought this has to be something wrong with the repository. So i changed the repo to a different mirror. Even on the nearest mirror to my country, the connection still looks shitty. Never mind, let's try another one. Still not working. The day goes on and finally i ended up trying 5 different mirrors with no luck. Holy crap, i said to myself, this has to be something i overlooked. I changed the DNS to Google public DNS too but still, that didn't make anything better.

I opened up Iceweasel (a Firefox clone that is preinstalled in Kali - Firefox can't be included for some licensing issue they said) and try to run speed test by going to Oh crap, I don't even have Flash plugin installed. Should I install it? Hell no, I won't do that. Flash is dead. Killed by series of non-stop emerging vulnerabilities. I should download Chrome and observe the speed test using it.

While downloading Google Chrome deb file, i noticed that the download speed won't go pass 40 KB/s. WHATT?? And now I am sure that this has something to do with my connection speed. So, I try to download some random stuff using my Chrome in Mac OS X and there it is. THE DOWNLOAD SPEED IS FINE! ~500 KB/s as usual.

Now I know that my Internet connection speed is fine and Kali Linux repos mirrors are fine, but something is capping my bandwidth in Kali Linux. Is it Parallels? So I shut down the virtual machine and checked the settings. There it is. After changing some setting in Network section, my capped connection speed problem solved. Because I don't find the solution via googling around, I posted the solution here.

Problematic settings
This is the problematic settings. The NIC Type is set to Realtek RTL8029AS and type is Wi-fi. I believed other settings below those two matters.

Correct settings
And this is the correct settings that solved the problem for me. NIC Type is Virtio network adapter and type is shared network.

PS: I've tried playing around with the settings a bit and i found that changing the type to bridged, wi-fi and so on doesn't matter. The only problem is NIC Type and you have to choose that right.

Thursday, July 30, 2015

OnePlus One with BlissPop 3.7 (Lollipop 5.1.1) Nightly Build Quick Review

This is not really a review but I would like to say a few words about this custom ROM. Please note that I just got my hands on this phone 3 days ago and this is the first custom ROM installed in my OnePlus One.

The installation went very smooth. I unlocked the bootloader, flashed TWRP custom recovery (I really love this one and been using it since 4 years ago), flashed the latest OnePlus One firmware dated 15th May 2015, flashed the ROM zip file, and finally flashed the TK Mini Modular GApps. No hiccup along the process.

This is a nightly build and by that I am aware that this ROM might have some bugs that will soon be fixed. Before that, I'll just have to live with that. The ROM is quite smooth. I end up using the new Trebuchet launcher instead of my all time favourite Google Now Launcher this time and after 3 days, I am still using it and never think of replacing it for the mean time.

There are some bugs that is bothering me.

  • Proximity sensor 

There is something wrong with the proximity sensor. Whenever i place a call, the screen will be totally blacked out and not going to turn on again until i pressed the power button. Thus, I'll have to use the power button to end the call. I really don't feel comfortable with this and  hope this will be fixed soon. I end up disabling proximity sensor in Settings and also in dialler apps.

  • Mobile networks (GSM, 3G and LTE) using too much battery
Whenever i turn off airplane mode, the battery will drain like hell. I am not sure what is causing this. Might me wakelocks I think. But I  don't have a good coverage at home so I'm fine with turning on the airplane mode and just use wifi.

However, when turning the airplane mode on, I got a pretty decent battery life and managed to get more than 9 hours screen on time (SOT). Refer pictures for proof.

Wednesday, July 29, 2015

OnePlus Two - The Era of Paying a Fortune for a Flagship Model is Over

Well, actually that's over since the OnePlus One is launched. But this newer model is quite more interesting. Yesterday, I managed to watch the first ever VR product launch of a smartphone and that's very impressive. OnePlus surely got balls to do that and now already updated the  detail specifications of the phone.

The only drawback of this phone is it  does not have NFC. Some are not happy with this but I'm fine with that. For those who are gonna brag around about that, I think you should be grateful enough cause you'll never get a better phone for the same price ($389  for 64GB model). Be sure to check up the OnePlus website for product info. Bye.