Posts

Enable google assistant on android without root

Image
Recently, google started to roll out "google assistant" to all android smartphones with android 6.0 or above.
If you have those devices and didn't get the google assistant yet, here's how to enable it.



If your device is rooted, simply add  " ro.opa.eligible_device=true "  to your build.prop located at /system and you can skip step 5 and 6.

If your device is not rooted or you don't know what rooted means simply follow all the steps:

The first thing you need to do is to set your default language to English (US). To do that go to Settings -> Language and Input -> Set English (US) as default.




1. Go to https://play.google.com/apps/testing/... and register for the beta program for the Google app.

2. Go to https://play.google.com/apps/testing/com.google.android.gms and register for beta test program for Google Play Services app.


After registering you will get an update for both of these apps in few minutes.

3. Go to https://play.google.com/store/apps/de…

Moving window controls to the right in Ubuntu

Image
From Ubuntu 16.04 the developers have made it impossible to override the position of window controls. Many of us are accustomed to the window controls on right side type of interface. But it looks like the Ubuntu developers don't like it that way.



Unfortunately, if you are using Unity, the default window manager you are stuck with the controls on the left side. But if you are using Gnome you are lucky. Here's how to install it on your Ubuntu machine :

Open the terminal or press CTRL + ALT + T.

Then type the following command ad hit enter :

sudo apt install gnome-shell

To Gnome as your window manager logout and then choose Gnome as the window manager.

Here's how to move the window controls to the right side:

Open the terminal and type the following and hit Enter:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

That's it reboot and you'll have your window controls on the right side again!

How to setup a wifi-hotspot in Ubuntu: The terminal way.

Ubuntu has a "Use as hotspot" mode. But it creates a n ad-hoc network only.Wireless hotspots aren't same as ad hoc networks. Significant difference is there. In short, ad hoc networks aren't supported in most Android, Windows Phone and Blackberry devices (and may be iOS devices too) whereas AP mode Wi-Fi hotspots are.

              It is really simple and easy to setup a hotspot in Ubuntu. We use a tool called ap-hotspot. To install it open a terminal and type the following:

sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install ap-hotspot
             Next, to start the hotspot type the following in a terminal:
sudo ap-hotspot start
It asks you which adapter's internet you want to share, name of the network, password, etc. in an interactive manner. To stop the hotspot type the following n the terminal :
sudo ap-hotspot stop
To configure it type the following in the terminal :
sudo ap-hotspot configure

Malicious Linux commands to avoid

Warning: Don't run these commands on your machine. They can erase your valuable data or crash your machine.
It is worthwhile to have basic knowledge about malicious commands in Linux. Don't blindly run the commands instructed in websites or scripts downloaded from the internet. Just verify the contents of the script for any commands that can harm your computer.If you want to know what a command can do use the man pages if you are offline. You can get the information of a command by typinginfo <command name>in the terminal.Example: info sudoIf you are connected to the internet then typeman <command name>in the terminal to get the updated documentation.Example: man sudoAgain, the following commands can heavily damage your OS. These are extremely dangerous and should not be attempted on any computer that has any physical connection to valuable data.
1.COMMANDS THAT CAN DELETE FILES AND FOLDERS

rm -rf / rm -rf . rm -rf *
rm means remove, -f means "force" …

ANTI-VIRUS FOR LINUX

Do I need to have an anti-virus software for Linux? Isn't Linux virus free?If it is virus free then why are some anti-virus software in the software-center? If you are an average user of Linux you might be having these questions.So, do we really need an anti-virus software installed? The answer is 'yes' and 'no'. Don't worry after reading this post you will know if you need an anti-virus for your Linux.There are viruses for most all platforms, they are just more common on Windows. You can actually run Windows without a virus scanner if you keep it patched and are really careful. If you are really careful and know what you are doing you can get away without a scanner. The fact of the matter is: viruses/worms take advantage of flaws or holes in the code.There are some viruses targeted on Linux platform. Linux and other UNIX platforms are regarded are well protected, but not immune to computer viruses. It is said that Linux is not targeted because its low share ma…

INSTALLING JAVA IN UBUNTU

This post explains how to install Java in Ubuntu. You can install Iced tea java (open source) or the Oracle java. Installing Iced tea java is simple where as to install Oracle java you have to struggle a little with the command line.Let's get started. First I'll tell you how to install iced tea java and then we'll see how to install oracle java.
1. INSTALLING ICED TEA JAVA:
Open a terminal by pressing CTRL + ALT + T keys or by searching for “terminal” in dash. Type the following to installed iced tea java on your machine.
sudo apt-get install openjdk-7-jre icedtea-plugin

That should install the java run time environment and the plugin for your browser.
2. INSTALLING ORACLE JAVA:



To install oracle java you should first download the 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension. Now we need to uncompress the file. Right click on the file and select “extract here”. OR you can do it the terminal way:
tar -xvf jre-7-linux-i586.ta…

INSTALLING MOBILE PARTNER IN LINUX

Most of you who have a Huawei USB modem (data card) might have tried to install mobile partner (dash board) in Linux. Here I will show you how to install mobile partner in Linux.First, you have to copy the folder called Linux in the data card. The files in the data card are not accessible from Linux so copy them from Windows.Now right click the file “install” in the “Linux” folder. Go to the permissions tab and select the check box beside Allow executing as a program. Now open a terminal by pressing CTRL + ALT + Tkeys. Change the working directory to the folder “Linux” by using “cd <path to folder>”.Now type ./install. If you had installed this software in your system before, you will get a prompt: "The software is exist, do you want overwrites? ([Y]/[N])", enter "y" to overwrites or "n" to exit.If you do not had installed this software in your system before, you will get a prompt: "Please input the install path[/usr/local/Mobile_Partner]:"…