Monthly Archives: July 2018

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