How to check if a partition is primary in CentOS+Screenshots

This is a guide on how to check if a partition is primary in centos or not? Use the following command:

# parted /dev/sda print

parted /dev/sda print centos

Alternative:

# cfdisk /dev/sda

centos cfdisk sample output

As shown above, the field under “Part Type” would suggest if that partition is Primary/Secondary.

To exit out of the cfdisk menu, use your arrow keys and move the selection to “Quit” and hit Enter in your keyboard.

Source: Link

As always stay Happy! Happy Blogging! 🙂

ΞXΤЯ3МΞ

Disassembling my Honor 4C

I dropped my phone while running to work and the screen broke due to the impact. I have been using this phone for a very long time (since 13th June 2015) and I dint want to let go (probably due to sentimental value). Most people would just throw the old one away and get a new one but honestly I didn’t really feel the need to get a new one. As of now, I will wait and see. Maybe eventually I might get a new one (Honor 8 Pro maybe?) but I don’t know. So I thought I would keep it with me, give it time, learn and fix it myself even thought I have no clue what I am doing. LOL! May be this whole repair thing is a bad idea and might fail, but its definitely worth a shot.

Here is the picture of the broken screen 🙁

My Honor 4C - broken LCD screen

This is the first time ever that I am taking apart a phone completely so pardon me for any mistakes. I had completed dissembling this phone a while back but just didnt get the time to post about it due to work.

So, I googled for weeks on tutorials on stuff like how to open up this phone, the tools you need and stuff like that.

So, I bought a mobile repair kit which basically has a few screwdrivers, 2 x guitar strum looking things, 2 plastic crowbars and a suction cup. Here is a picture of the kit:

mobile repair kit

So, first thing I did was to remove the back shell.

Honor 4c back shell

So, this is how the back portion looks after removing the back shell.

So, I started off by removing the screws near the battery and then the outer ones. Attaching a picture for their location for reference:

It took me a while to figure out that there under the “Torn invalid” sticker, there is a star screw hidden underneath it. Attaching a picture for reference below:

Now, we can gently take out the blue casing. This is what looks like once we remove the blue casing on the Honor 4c.

My baby is so pretttyyy on the inside!! 🙂 😛

To remove the battery, I had to remove the two screws on the right side of the battery as shown in the red box below:

remove the two battery screws

Now to pop the battery out, I had to lift and disconnect the battery connector as show below.

After disconnecting the battery cable, I was able to remove the battery by simply lifting the battery up.

So, this is how the battery looks like:

back side of the battery

After the removing the battery, disconnect/pull  the below cable.

Honor 4c left side cable

Then disconnect the below two cables.

honor 4c two cables

 

Now, we can separate the motherboard from the phone.

removing honor 4c motherboard removing honor 4c motherboard 2

This is what my Honor 4c motherboard looks like.

 

Honor 4c motherboard

This is what the backside of the display looks like:(which has the Frame which holds the Display and the Touch Screen Digitizer).

Honor 4C LCD Display and Frame

So, I was able to disassemble my phone successfully! Wohoo!! 🙂 I know this is not a big deal for most people but its a big deal to me. I honestly didn’t think I could make it this far as I was alone in this learning journey. I am glad that I gained some knowledge on dissembling phones which is something I had never done before. I did make a video with audio instructions on the whole disassembly process but I am not sure I should upload it to my youtube channel or not. Lemme know what you think below in the comments section.

Do you think its worth repairing this and having it fixed? If you were in my shoes, would you hold on to your old phone?

Leave your comments in the comment section down below. I would love to hear what you have to say.

As always stay happy!  🙂

Happy blogging!

Regards,
ΞXΤЯ3МΞ

Nokia 3310 refresh will be re-launched this month at MWC 2017

Nokia is set to re-launch the iconic Nokia 3310 this month. It was one of the best phones back in 2000 & was built like a TANK! Remember the epic snake game? 🙂 The snake game that came pre-installed in this phone was so popular that you can even downloaded and play it today on your Android/Apple phones.

The phone is set to be launched at about $62 (USD) and will be revealed in MWC 2017 which is happening this month. If you are wondering, didn’t Nokia stop selling phones? Well, it was sold to another Finnish company “HMD Global” that bought rights to the “Nokia” brand.

Personally, I would love to get hands on one of these, wouldn’t you? Daymm, it would feel so retro! 🙂

Here are few hilarious memes about the indestructible Nokia 3310 that will get you laughing hard.

Thor's new hammer nokia 3310

 

footballer gets new protection - nokia 3310

Do leave a like and subscribe if you liked this article. Feel free to drop a comment on what you think about this phone. Cheers!

Source: Independent.co.uk

Image sources & Credits: quora.com , phonearena.com

Genuino Uno Rev 3 – A Quick Look

Just bought an Genuino Uno R3 and this is a quick look of the same.

Genuino Uno unboxing

Pinout Diagram:

FYI, below is the pinout digram of the Arduino/Genuino UNO R3 from Nick Gammon’s website.

Genuino/Arduino R3 Pinout Diagram
Source: http://www.gammon.com.au/uno

Just like the Arduino Uno, it comes with a Genuino Uno R3 board, ATMEGA microcontroller, some stickers and a “Thank you” booklet as shown above. All Arduino Uno units sold outside the US are named “Genuino UNO”.

I did install the Arduino IDE (Download Link ) in my Windows 10 machine and it was pretty straightforward. You can hook it to your PC/laptop and power it up using a “USB A to B” (printer cable). Alternatively, it can be powered via the DC jack using a 5v DC power supply (such as from an external battery pack).

I have hooked it up with a USB cable and once its connected, the status LED lights up as shown below.

I will be posting Arduino/Genuino tutorials in the near future. So don’t forget to subscribe and stay tuned for future updates.

Source (Pinout Diagram): Link

Make CentOS virtual machine in VirtualBox use the host’s VPN Connection

If your host PC (in my case Windows 10) is connected to a VPN but your CentOS 6.x VM is not using the VPN, then do the following:

1: Power off your CentOS VM.

2: Right click your centos machine in virtualbox and then click “Settings“.

right click your centos virtual machine and click settings (Screenshot)

3: Click “Network” and change the Adapter Settings to “NAT“.

change virtualbox network settings to NAT (Screenshot)

4: Now power on your centos virtual machine.

5: Once your VM boots up, login and then restart the network service. You can use the following CLI command “service network restart“.

Your CentOS virtual machine should now to able to use the VPN connection and use it accordingly. Do verify the same in your virtual machine. Hope this helps!

Do like and subscribe if this guide helped you. Cheers!

Unlock Bootloader Honor 4c + Screenshots

This is a guide on how to unlock the bootloader on Honor 4c running Android 6.0 from a Windows 10 PC.

Requirements:

  1. HiSuite software
  2. Minimal ADB and Fastboot
  3. Unlock code
  4. Your Honor 4c phone- For obvious reasons 😛

Disclaimer: Please follow this guide at your own risk. Following this guide will void your warranty and may result in a bootloop and I assume you would know how to fix bootloop. If your phone gets bricked, don’t blame me.

Step 1. Get required phone details

Model Number:

In your phone, click on Settings>About Phone and you would find “Model Number”. For example, mine is CHM-U01.

IMEI number:

You would have two IMEI numbers, take a note of the 1st IMEI number that you see in the “About Phone” under Settings.

Serial Number:

Go to Settings>About Phone>Status and you should your phone’s serial number.

Product ID:

Open your phone’s dialer and type the following code: *#*#1357946#*#*

Step 2. Enable Developer Mode + USB debugging

  • Go to Settings>About Phone and keep tapping on “Build Number” until it says You’re a developer.
  • Now go back to Settings, you should be able to see “Developer Options”. Click on it and then move the slider next to “USB debugging” to enable it.

Step 3: Install HiSuite

Step 4: Get your unlock code:

honor 4c unlock bootloader link screenshot

  • Login to your Huawei Account, click “I have read and accept all terms above” and then click “Next”.
  • Fill in your phone details and you will get your unlock code Please take a note of it as we will need it to unlock the bootloader.
  • In case you do not get your unlock code, please send an email to Huawei at [email protected] and they should be able to provide you with the unlock code.

Step 5: Install Minimal Adb and fastboot

  • To download and install Minimal ADB and Fastboot, use the download link below:

https://www.androidfilehost.com/?fid=24521665358595410

  • During installation, please take a note of the installation directory. By default it would be installed to “C:\Program Files (x86)\Minimal ADB and Fastboot” for a 32-bit OS and “C:\Program Files\Minimal ADB and Fastboot” for a 64-bit OS.

[Note: For more information about Minimal ADB and Fastboot package, please visit XDA and support the original creators of the software. (XDA Link)]

Step 6: Unlock bootloader

  • Connect your Honor 4c via a USB cable to your PC/laptop and then unlock your phone.
  • Now browse to the Minimal ADB and Fastboot installation directory. Press and hold SHIFT in your keyboard and then right click on any blank space in that folder and click on “Open command window here”.
  • You should be able to see command prompt window like the one below:

adb location

  • Now we need to verify that your phone is accessible via adb run the following command:
adb.exe devices

You may receive a message in your phone to allow the connection, click Allow when prompted. If the above command does not display your device, then something went wrong with the installation of Huawei HiSuite drivers or your phone is not connected properly to your PC. Below is a screenshot when adb was able to detect my device.

adb recogized device screenshot

  • Now type the following to boot into your phone’s bootloader.
adb.exe reboot bootloader
  • You would see a screen with a white background titled “FASTBOOT&RESCUSE MODE” with the message “BOOTLOADER LOCKED”.
  • Verify that you are fastboot is able to recognize your device by running the following command:
fastboot.exe devices
  • To unlock your bootloader, run the following command “fastboot oem unlock keyyourecieved” from your pc after replacing 123456789 with the unlock code that you received from Huewai’s website:
fastboot oem unlock 123456789

You should see the message “Phone Unlocked” message in the bottom after the bootloader has been successfully unlocked.

  • Now, reboot your phone by typing the following command:
fastboot.exe reboot

Congratutaions, you should have unlocked your bootloader by now. I will link another article soon on how to root and install custom recovery TWRP on Honor 4c running Android 6.0 (Marshmallow).

Do leave a comment below and share if you liked this guide. Cheers!

Source:
Minimal ADB and Fastboot: XDA

Protect against vulnerability CVE-2016-5696 in CentOS 6.8

This guide on how to protect against Off-path TCP vulnerability CVE-2016-5696 in a CentOS 6.8 machine.

Run the following command to check the kernel version that your box is running:

uname -r

Run the following to verify your Centos version details:

cat /etc/redhat-release

Below is a screenshot for the outputs for the above commands from my CentOS 6.8 box.

release information screenshot CentOS 6.8

Workaround against the attack:

Open your sysctl.conf file:

vi /etc/sysctl.conf

edit config file command CentOS 6.8

Below is a screenshot of my default sysctl.conf file which does not contain “net.ipv4.tcp_challenge_ack_limit”.

default sysctl.conf in CentOS 6.8

Now add the following line at the end of the config file:

net.ipv4.tcp_challenge_ack_limit = 999999999

Below is a screenshot after editing the config file.

edited-config-file screenshot in CentOS 6.8

Save and exit the file. (Press ESC and then type :wq and hit Enter in your keyboard).

Use the command below to verify if the value of net.ipv4.tcp_challenge_ack_limit is 999999999.

sysctl -p

sysctl -p in CentOS 6.8

If you are able to see the line in the above screenshot, this means that it will make the exploit extremely hard to perform (practically impossible). The above is a workaround to mitigating the Off-Path TCP attack in a CentOS 6.8 machine and will also work for redhat 6.8.

The Fix:

If you are not looking for the workaround but for a permanent fix, then you can upgrade your Linux kernel to 4.6 or above.

If this article helped you, do leave a comment below and like us on Twitter and Facebook. Cheers!

Source: Bobcares

References: Redhat Portal, Redhat Shared Ack Vulnerability

AMD announces RX 470 & RX 460

AMD has announced two more cards RX 470 and the RX 460.

The specs (unconfirmed) that we know so far for the RX 470 and RX 460 are shown below:

rx 470 and rx 480 specs (not confirmed)

If you missed out AMD’s previous announcement about the $199 VR ready card, then you can find it in my previous post here. Now talking about the RX 470, it is meant for 1080p gaming @ 60fps (on a budget) while the RX 460 is suited for games with lower system requirements such as MOBA. The TDP for the RX 460 is speculated to be less than 75W and this is great for gamers who don’t have a beefy PSU and just looking to upgrade to a better GPU.

Personally, I think this was the right time for AMD to announce the RX lineup and I like the direction where they are headed this time. With the RX 480 priced at $199, the RX 470 and RX 460 would be priced lower, these would sell like hot cakes once launched.

Would you buy the RX 480, 470 or the 460? Or would you wait for Nvidia to release their new card? Feel free to leave a comment in the comment section down below.

Do subscribe to get more updates and follow us on Twitter and Facebook. Happy Gaming!

 

Source: videocardz

AMD announces RX 480 at $199

AMD has announced the RX 480 14nm GPU which is VR ready. The RX 480 is meant for gaming at 1440p resolution + VR & its 4GB variant will be priced at $199. (R.I.P. Nvidia)

rx 480 specs
Image Source: engineering.com

Now that’s a brilliant move from AMD and I believe its going to sell like hot cakes. It will be officially launched on 29th June 2016. There will also a RX 480 8GB version which will be released later but its pricing is officially not out yet.

According to reports from gamespot and pcworld, the RX series of graphics card will support DirectX12, Vulkan gaming APIs, HDMI 2.0b, DisplayPort 1.3/1.4, HDR, and H.265 encoding/decoding.

Source: gamespot, pcworld