Showing posts from 2018

virtual box shared folders in ubuntu


sudo usermod -a -G vboxsf <user_id>
sudo chown -R <user_id>:users /media/sf_<folder_name>/

Install Chrome on Ubuntu

Run on Terminal:

wget -q -O - | sudo apt-key add -

echo 'deb [arch=amd64] stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list

sudo apt-get update

sudo apt-get install google-chrome-stable

Ubuntu 18.04 Postman error

If you see the below error when you try to run postman, don't worry... Just run the apt-get and you should be all good

Postman Error
./Postman: error while loading shared libraries: cannot open shared object file: No such file or directory

command to fix the issue
sudo apt-get install libgconf2-4

chromebook xfce eclipse crash

Recently i have been having issues while writing code on my chromebook, wherein eclipse would randomly crash.

In order to debug that, i installed htop. My assumption was that eclipse was running out of memory considering i am running it on a 4GB chromebook running xfce.

There are a lot of plugins on Eclipse which run, which i guess were causing it and i did not have the patience to go thru all of them and remove the ones i did not need. I am sure it was you spell check!! I am sure...

I basically increased the xmx setting in the eclipse.ini file to 1280m and i haven't had any crashes after that. Guessing will go higher if it crashes.

p.s. I am looking to buy a desktop to offload some of the work as i am not sure how sustainable this is.

Chromebook xfce mysql setup

Here are the steps i used to setup mysql on xfce (chromebook)

open terminalrun sudo apt-get install mysql-serverduring the installation, you will be asked to enter the root password for the mysql instance - this is not the password for the root user for linux.restart the server to get it running using sudo /etc/init.d/mysql restartyou may get some warning - you can ignore thatfor security setup, run mysql_secure_installation. you can set the password rules, connection rules etc. hererestart again using step 3check status using sudo /etc/init.d/mysql status and you should get the below response (or something similar to that)

 * /usr/bin/mysqladmin  Ver 8.42 Distrib 5.7.22, for Linux on x86_64 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Server version5.7.22-0ubuntu0.16.04.1 Protocol version10 ConnectionLocalhost via UNIX…

chromebook xfce trackpad palm issue

Basically the track pad on my Acer Chromebook 14 was a mess as the palm detection was turned off by default when you install xfce using crouton.

here is how you turn it on

To check what is the current settings:
synclient | grep "Palm"

you will get the below response
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200

you basically need to set the PalmDetect to 1 and PalmMinWidth to about 3. That did the trick for me. Below are the commands to use

synclient PalmDetect=1
synclient PalmMinWidth=3

Another pain point is that everytime you logout, the settings get reset back to 0 and 10. So i basically set this up as a startup command. Make sure you add 2 seperate commands, else they do not seem to work.

go to "session and startup"go to "Application Autostart" tabclick on "Add"give some name and description and add the command. next time you log back in, the commands will be run automatically and palm dete…

Chromebook xfce on a chrome tab

Because I usually connect my chromebook to a monitor, i hate to keep opening the chromebook to click on the 3 key combination to move between xfce and chrome OS.

Here is what i did to run xfce in a tab. I just set the chrome tab to full screen to make it look nice.

in the chrome os shell, type in the below command
sudo sh ~/Downloads/crouton -t xiwi -u

you will need the crouton integration app on chrome for this to work, else you will get a unable to connect to extension message.

run the below command once you install the app
sudo startxfce4 -X xiwi-tab

sudo startxfce4 -X xiwi-tabUpdate: I had performance degradation, so i had to remove xiwi.
command to do that is
sudo sh ~/Downloads/crouton -u -t xorg

Chromebook xfce volume controls

As the post reads, here is what i did to be able control the volume from when i am inside XFCE on the chromebook- i basically set keyboard shortcuts to the chromebook volume controls.

Go to 'Keyboard' settingsGo to the 'Application Shortcuts' tabClick Addenter the command in the text boxclick 'OK'. you will get a notification to select the key to use. click the button you want
Increase volume command: amixer set Master 5%+ 

Decrease volume command:
amixer set Master 5%-

Mute / un-Mute command:
amixer set Master toggle

Pixel 2 XL upload issue

I recently bought myself a Google Pixel 2 XL Panda phone and a few days into the using the phone i noticed some issues with the uploads. I had no clue what was happening as my downloads on WIFI were 100+ Mbps, but the upload was in kbps which was weird.

I reset my phone and still had no way to understand what was going on. Went to the target store near my place and was able to run another speedtest on the target free wifi and noticed that the uploads were working, which meant the issue was related to the WIFI at my place.

After a few hours of digging on the internet, i found that few other people had the same issue with the DDWRT routers they were using due to an older version. I realized that i was running an early 2014 version of the software which could the cause of the issue and once i updated it to the 2018 version, all my issues were solved.

So if you face the same issue, it could just be the router.