Ubuntu Or elementary Things to do After

#linux #elementary
Update ipv4 precedence file
https://askubuntu.com/questions/272796/connecting-to-archive-ubuntu-com-takes-too-long
sudo nano /etc/gai.conf
un-comment
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100

//Update
sudo apt update && sudo apt upgrade

//Add PPA
sudo apt install software-properties-common software-properties-gtk

sudo add-apt-repository -y ppa:shutter/ppa

sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:libreoffice/ppa

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make

sudo add-apt-repository ppa:jonathonf/vlc-3
sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo add-apt-repository ppa:jonathonf/meson

sudo add-apt-repository ppa:ondrej/apache2
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo add-apt-repository ppa:ondrej/php

sudo add-apt-repository ppa:nilarimogard/webupd8 #utubedll
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo add-apt-repository -y ppa:teejee2008/ppa#timeshift

//JDK 8
sudo apt install oracle-java8-installer && sudo apt install oracle-java8-set-default

//Install software
sudo apt install bash-completion ubuntu-restricted-extras finger gparted git vim speedtest-cli virtualbox virtualbox-ext-pack thunderbird firefox youtube-dl libreoffice vlc timeshift testdisk git gitg elementary-sdk ubuntu-make build-essential ibus-m17n m17n-db shutter

//Manual Install
Chrome, enpass, teamviewer, , insync, vscode,

//Stacer
https://github.com/oguzhaninan/Stacer

/Sinhala
sudo apt-get install ibus-m17n m17n-db

//Install from App Center
audacity ciano formatter graphui imageburner nutty planner resizer screencast shutdown scheduler transporter wallpaperize webpin

//Atom text editor Official PPA
curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add –
sudo sh -c ‘echo “deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main” > /etc/apt/sources.list.d/atom.list’

//MatLab
Follow the instruction on Readme.txt file
sudo chown -R gayan /home/gayan/.matlab/

//Driver install with optimus support
sudo ubuntu-drivers autoinstall
sudo prime-select query
sudo prime-select intel

//LAMP for web development
//Apache
sudo apt install apache2 && sudo systemctl enable apache2.service

//Mariadb
sudo apt-get install mariadb-server mariadb-client
sudo systemctl start mysql.service
sudo systemctl enable mysql
sudo mysql_secure_installation

//PHP 7.x
sudo apt install php libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-mcrypt php-zip php-curl

//PHPMyAdmin
sudo apt-get install phpmyadmin php-mbstring php-gettext &&
sudo phpenmod mcrypt && sudo phpenmod mbstring && sudo systemctl restart apache2

//Create user of phpmyadmin
sudo mysql –user=root -p mysql

CREATE USER ‘gayan’@’localhost’ IDENTIFIED BY ‘gayan’;
GRANT ALL PRIVILEGES ON *.* TO ‘gayan’@’localhost’ WITH GRANT OPTION;
FLUSH PRIVILEGES;

//Update PHP configuration
sudo nano /etc/php/7.1/apache2/php.ini
file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_file_size = 100M
max_execution_time = 360
date.timezone = Asia/Colombo
post_max_size = 256M

//Site Access Configuration
https://askubuntu.com/questions/767504/permissions-problems-with-var-www-html-and-my-own-home-directory-for-a-website

//Install Node.js
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash –
sudo apt-get install -y nodejs

//Wallpaper [Gnome Only]
Make available Pic folder inside wallpaper
rm -r ~/.cache/gnome-control-center/backgrounds
ln -s ~/Pictures/Wallpapers/ ~/.cache/gnome-control-center/backgrounds

//Elementary
gsettings set org.gnome.desktop.wm.preferences action-middle-click-titlebar ‘minimize’
gsettings set io.elementary.files.preferences single-click false

//VLC 3.0 PPA
https://websiteforstudents.com/vlc-3-0-recently-released-and-heres-how-to-install-it-on-ubuntu-16-04-17-10-desktops/

//Atom IDE
ide-gui
atom live server

//Sinhala Setup
http://www.nongnu.org/sinhala/doc/howto/sinhala-howto.html

Letting Go

May be the hardest thing to do in life, but undeniably the most cherished gratitude that you can offer to yourself.

All of are no strangers to loss. We’ve watched family members and friends die or part away. We’ve all had romantic relationships end in a spectacular explosion and we’ve had them end in a long, drawn out silence. We’ve lost friendships, jobs, cities, and communities. And, most tragically we’ve lost belief and faith—in both ourselves and others.

Human mind has the most complicated texture in nature. It hold on to pain and memories, beyond their ability to serve us; because among life’s chaos, we believe they give us a sense of identity. Yes, it may be true, since every mistake and every pain creates us and each experience brings out our true potential. Nevertheless holding on to things that we don’t have any control over, also has the power to eventually destroy our sense of self.

The thought of letting go involves a conscious choice versus a physical action. Also it can be extremely challenging and terrifying. It can also be very excruciating because letting go is not always something you’re prepared to do: especially if your heart and mind are singing two different songs.

Sometimes life enlightens us with lessons in the hardest possible way. When we are no longer in a position to alter anything that is happening, we must awake the warrior in our self and  find courage to accept what is happening as it is.

Letting go means liberating yourself from all the negative energy surrounding you, letting go means expanding your life to see the world differently and letting go means forgiving yourselves and the circumstances that created your state of mind.

As the well-known quote, ultimately what matter is how much you loved…how gently you lived and how gracefully you let go of the things not meant for you…

 Let go….embrace yourself…just think a min….

Gratitude

Vague and unfocused mind of mine
Glanced through the darkness,
To be shattered by life
Over and over and over again,
Life knocked me down,
And I never stood-up
It was my own misery,
And it drew myself-in
The deeper it goes, the more I stuck-up
Sorrowful things have surrounded me up
No matter I shouted, No body heard me up
It was my fault that I looped through life
Making bad decisions, one at a time
As I have repented when the days passing by
Moaning for ‘the love-s’ that destroyed my life
Suddenly,
It was a mid-day of August,
The day she came to me
Like a ‘divine angel’ who came to rescue me
She pulled myself up and patted me back
Taught me up to never give-up
Said, ‘Life went on and never looks back’
I was eased with pain and it’s time to look up
I wondered as if kindness runs through her veins
Cause, she’s admirable for the things she has done
A true soul that I can count myself on
My gratitude for you, will be ‘forever on’
As long as life went on,
And no matter what!

Think a min before throwing away

“I only feel angry when I see waste. When I see people throwing away things we could use.”
—Mother Teresa

 According to the researchers we have produced enough plastics which can be covered whole planet. The effect of plastics to the environment is neglected by both people and governments for a long time. Unknowingly those plastics travel to the deepest parts of the sea bed and everywhere by giving us an unhealthy planet. While there are so many objections about banning plastics there should be a control mechanism to mitigate the damage to the environment by disposed plastics. But there is no way of completely limit the damage because there is no any safe disposal method introduced for plastics. Everywhere we can see empty bottles, supermarket bags, plastic straws, compact discs etc. The impact is highly damaging the planet.

The easiest and most effective method to reduce the amount of plastic waste is to reduce its production. Developing countries have a trend towards “a throw away concept” especially in urban areas. When countries become more industrialized and their per capita income increase, they generate more waste. However the amount of production depends on consumers’ patterns and their demands. Nowadays people are more concerned about getting their needs at the lowest price instead of concerning quality. Because of the low market price of low quality goods people tend to throw away their used goods without repairing and reusing them.

There are several methods which can be used to reduce the production of waste. They are improving packaging considering effect of waste stream, enhance recycling and reusing by the producer and increase the life span of the product.

The source separation, material recovery and recycling, will reduce the waste stream. Solid waste separation at household levels is continuously occuring at some level all over the world. The aim is to prevent most valuable and reusable items from being discarded. After the household level separation, waste pickers remove valuable items before garbage enters the waste stream. Currently, this happens in almost all municipalities in developing countries. Therefore, the need is extra encouragement for recycling.

Tips for reduce plastic waste

Bring your own reusable bag to the supermarket

Handover Used plastic bottles to the recycling collection centres

Use a lunchbox for packing your everyday meal

Use glass storage bottles instead of plastic containers

Say no to plastic spoons and straws & sachet packets

 

“The Earth is a fine place and worth fighting for.”
—Ernest Hemingway

Escape

I run and run
Digging my bare soles in to the darkness
Only the moonlight to lit my pathway
I run to find solitude
To break away from this feeling of trapped
I run to stumble on a way
Until I can feel the breeze dancing with me
I run wildly beyond the horizons
To feel an eternal moment
Until I can feel that illuminated touch again
I run to make myself complete
To believe in the magic inside me
Only to witness
The Sun gliding through the clouds
The butterflies embracing the petals in the roses
Making me aware
That I’m the survivor
Who endured thousand agonies of spring
I rest;
Uncovering a warrior in my self
Finally to taste the summer’s bliss!

Companion

In the cold light of day
Where loneliness strikes at its best
She was all by herself
Lost,
Inside her tiny little world
On the rare nights
When the ‘demons-of-past’,
Haunted back at her
She ached alone,
All by herself
Desperately, she was
In need of someone
To cling-on to
As the past shattered her soul into unrecognizable pieces
She was afraid of constant-relationships
Her thoughts have been raped,
And has thrown away
There were no familiar voices at all
The voices,
Who could support her, love her
Or give her a hand
Deeper down,
She has lost herself,
In a place she rarely acknowledged
Her life was a mess, painted in a gray-scale
There were no beams of hopes, at all
But yet,
She was a dreamer, a fighter and a believer
Who search through the rubble of life,
To find the pebbles of happiness
Just then one day,
She found the ‘love of her life’
Who had accepted her as a whole
Sorrows started to fade away
Fantasies of a little girl in her twenties
Started to bloom-up
Though ‘he’ is not a Knight in a shining armor
He is a true ‘Companion’,
To herself,
And to her wounded heart.

If you can be anything…..Always chose to be kind…..

“Kindness is the language which the deaf can hear and the blind can see”- Mark Twain

 

Kindness is the essence of mankind, which enlighten us that there still is hope to linger on. Kindness is the universal language that is comprehended beyond any boundaries. An act of kindness never goes vain.  Being kind to others implants a positive feeling and makes this world a better place to live.

Kindness is the basic driving force of the nature. It is taught by every religion. Be it Buddhism, Christianity, Hinduism or Islam or any other religion to name, all teach to express kindness towards each other.

By practicing acts of kindness spontaneously, you have the power to change the way people see and experience the world. As the most of the times selfless deeds result in the most favorable and flourishing deals of the life. Every single person hopes to leave a legacy in the world. Thus, practicing a random act of kindness is an opportunity to leave your footprints in the world.

You may feel that you have little to offer but by practicing a random act of kindness, even the tiniest things matter. Even a little hug or just uttering “take care” would be enough to brighten up someone’s life.

Being kind to self is equally important as being kind to others. Don’t be unkind to yourself and give space to the trivial mistakes in life to make you a bitter person. As, we only learn by making mistakes. Learn from the experience and move ahead in the positive direction and apply that knowledge to give wisdom to others. By practicing a random act of kindness, you can help uplift their spirit, make their day way better or inspire them. Even with the madness that surrounds us, we don’t fight fire with fire – we spread love, we look after each other.

Surviving Failures…..

Success and failure are two sides of the same coin. Like stars can not shine without darkness, success cannot exist without facing failures few or more times.

However, even if there is so much positivity, encouragements and plenty of philosophical thoughts behind failures; when our mistakes stare us in the face; it is almost impossible to not to let negative feelings rule our mind. That is why it is important to realize that certain failures in life are really a blessing in disguise.

It requires immense strength to admit our faults and even greater strength to witness the light at the end of the tunnel. A failed try is an opportunity to return with a smarter approach. The idea of success itself comes through the process of learning to fix our errors; rather than embracing victory at the first attempt.

Our ego is the main culprit that prevents us from accepting our failures, since our self-esteem leads us to deny the fact that we were wrong, thus building up various excuses to lay the blame on others.

A failure may not be all exciting, but its’ consequences depend on how you interpret your experience. Failures are a part of life and the universal energies challenge us to decode the hidden message implied by them.

A failure helps us to be exposed to different opinions of others. It guides you to redefine the priorities in life and let you realize your true friends who bond with you through thick and thin. It develops ways to deal with different emotions and educate us with the lesson that we should not get too much attached to the plan, since even the “Unsinkable Titanic” also failed to complete its journey.

There are certain failures that are necessary to thrive in life.

  • It takes a toxic relationship or a failed romance to appreciate when the soul mate comes along.
  • An unsatisfactory  career choice to discover the true passion in life
  • A broke financial position to value a stable income
  • Or simply an awful hairstyle to find out which fashion highlights the finest features of you.

 

Life is all about understanding and accepting the journey even it makes no sense at this moment. The tragedies we confront ultimately create the best version of ourself, since a smooth sea has never made a good sailor…

To Travel is to Live

“To Travel is to Live” – Hans Christian Anderson

There is nothing quite like travelling, seeing a place for the first time, experiencing a new culture or returning to a favorite place which has left you enchanted. Ibn Battuta;  the greatest traveler of Pre-modern times has once stated that “Travelling…first it leaves you speechless…Then it turns you into a storyteller”, which beautifully narrates the excitement of travelling.

Recent studies have relieved that “travelling” brings satisfaction more than financial wealth, since it open doors for many adventures. It also warms your heart and set your mind free .A travelling exposure doesn’t necessarily have to be to a foreign location; it could also be a well known local place that has captured your soul.

It is a big world out there and there are seven billion people who live each day of their lives having different yet unique experiences. Travelling allows one to grasp those experiences and conceive them into their hearts.Travelling enlightens us that how insignificant and irrelevant the problems we thought that were so significant are.It affirms us how small our surroundings are and that we are not the only ship in the sea.

Travelling gets a person out of their comfort zones, away from their routine life styles, which enables them to realise their true selves and to make most out of this precious gift of life.

Travelling allows us to witness our native ambience in a different light. We all live between the crazy chaoses of our lives, thus travelling gives the opportunity to disconnect from our regular monotonous life. It helps  to re-adjust ourselves and re-face our concerns in a more productive manner . Furthermore, travelling helps one to appreciate local settings more as away from home one comes to realise what “home” actually means.

Most importantly travelling increases our knowledge and enhances our wisdom more than reading a book can do, since we actually  get to experience a whole new world, touch the places and smell the fragrances. It helps to build open minded persons as it encourages one to encounter different backgrounds. Food and culture is the most important in a new location , as different flavors of food and different colours of the culture of a far away destination is a soul awakening experience for sure.

One would never regret taking time off and spending the valuable savings while flying away to a distant  location, since to travel is eventually is to find yourself and most importantly it allows you to be in love with the cities that you have never been to and adore the people that you have never met. Travelling gives you strength to appreciate the dissimilarities between different cultures and to embrace the similarities among them , explaining that ultimately all of us belong to the same tribe  of “ humans on Earth”.

Let the Children be…..

“The word can be a serious place. That is why it is important to go outside and play. I hope you take time to smell all the flowers and put all the leaves you want in your bucket now” – Words by Mark Zuckerberg to his daughter “August”

Children are the beautiful flowers that blossoms in the life’s garden. They are the sunshine that brings warmth into our heart and we as parents holds the greatest responsibility of shaping them as all the children are uncut diamonds. Every child is gifted in his own way and behind every kid who believes in himself; there is the parents who believed in him first and let him be proud of himself.

The future world desires a generation with an optimistic sense of self and who is able to feel the beauty in the surroundings; not robotic creatures who fail to see the colours in this world.

The greatest thing we can do for our children is “let them just be children” for they will not have this precious childhood for long. They should be free from the pressure and free from judgments for they are the tiny version of our selves who needs love and acceptance to follow their vivid and unscripted imaginations.

Let them dream and let them be sad, since that is how they should be taught that the world will not be fair for them always.  Let them play; let them eat that ice cream that they so badly crave. Hopefully if one day we can allow them to run outside when it’s raining or if we let them remove shoes and dance in that puddle of water that they find so fascinating and let them shout and laugh when the sun rays touches their faces; they will have the chance to grasp that ever so magical childhood that their small hearts yearn from us.

Love is what they need to thrive and be confident yet humble human beings.  We as modern parents are prepared to do almost anything for our children except letting them just be themselves. At the end, our task as parents should be to ensure that our children will always have a home filled with love and understanding to return to…no matter where they wonder off in life.

Just think a min