Skip to main content
Ubuntu

Commands to run after fresh installation of Ubuntu / Lubuntu / Kubuntu / Xubuntu

By October 5, 2018March 7th, 2019No Comments
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#

sudo apt-get install zip unzip php5.6-zip php-zip php7.0-zip;

#softwares

sudo apt install linuxbrew-wrapper
brew # run this
sudo apt install aptitude;
sudo add-apt-repository ppa:noobslab/apps; #For playonlinux
sudo apt-get update;
sudo apt install planner;
sudo apt install npm;
sudo apt install artha;
snap install phpstorm --classic;
sudo apt-get install playonlinux;
sudo add-apt-repository ppa:serge-rider/dbeaver-ce
sudo apt update
sudo apt-get install dbeaver-ce;
sudo apt install rofi;

# Following is for sublime [STARTS]
# Install the GPG key:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

#Ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https

#Select the channel to use:

#Stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sudo apt-get update
sudo apt-get install sublime-text

# [ENDS]

# Download android studio. Don't use ubuntu repo

#PATH

#Programming

sudo add-apt-repository ppa:ondrej/apache2;
sudo apt-get update;

sudo apt install composer;
sudo apt install apache2;
sudo ufw allow in "Apache Full";
sudo nano /etc/apache2/apache2.conf
# For directory /var/www AllowOverride All
# This enables execution of htaccess files located in project folder
sudo service apache2 restart
sudo apt install curl;
sudo a2enmod rewrite;

sudo apt install mysql-server;
sudo mysql_secure_installation; # validation plugin should not be installed for development
sudo mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PASS';
FLUSH PRIVILEGES;
exit;

sudo apt install php libapache2-mod-php php-mysql;
sudo apt install php5.6 -y;
sudo apt install php7.0 -y;
sudo apt install php7.1 -y;
sudo apt install php7.2 -y;

sudo apt-get install php5.6-mysql;
sudo apt-get install php7.0-mysql;
sudo apt-get install php7.1-mysql;
sudo apt-get install php7.2-mysql;

# index.php should be first here
sudo nano /etc/apache2/mods-enabled/dir.conf

# Turn on PHP Short tags for ALL the php versions.
# Uncomment pdo_mysql, curl and other modules that are required.
# Increase upload_max_filesize limit

# For laravel 4 projects
sudo apt-get install php5.6-mcrypt;

sudo apt-get install php5.6-gd -y;
sudo apt-get install php7.0-gd -y;
sudo apt-get install php7.1-gd -y;
sudo apt-get install php7.2-gd -y;

sudo apt-get install php5.6-curl -y;
sudo apt-get install php7.0-curl -y;
sudo apt-get install php7.1-curl -y;
sudo apt-get install php7.2-curl -y;

# Install this only when required for other versions. Something breaks if unecessarily included for other versions
sudo apt-get install php7.2-mbstring -y;

# For fpm - Not advised. Requires a lot of attention to set it right.

sudo apt-get install php-mbstring;
sudo a2enmod proxy_fcgi setenvif;
sudo a2enconf php7.0-fpm;
sudo service apache2 restart;

# fpm ends

sudo apt-get install php5.6-xml -y;
sudo apt-get install php7.0-xml -y;
sudo apt-get install php7.1-xml -y;
sudo apt-get install php7.2-xml -y;

sudo apt-get install php5.6-mysql;
sudo apt-get install php7.0-mysql;
sudo apt-get install php7.1-mysql;
sudo apt-get install php7.2-mysql;

# NPM
npm install -g bower;
sudo npm install -g cordova@7.1;
sudo npm install -g ionic@2.0;
sudo npm install -g gulp;

# For dbeaver
sudo apt-get install mysql-client -y;

Git clone all your project repositories (note to self: remember not to use same repo account on multiple laptops). Npm install. Composer install.

For laravel projects. Make sure the env file is there. Configured correctly. Databases are there.

# Create website definitions
cd /etc/apache2/sites-available

Copy default and create your site definition.

Add an entry for vhost in

1
sudo nano /etc/hosts

For ionic 1 project

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
sudo ionic platform add android@7.1;
sudo apt install gulp;
gulp
sudo npm install bower;
sudo npm install gulp-concat;
sudo npm install gulp-sass;
sudo npm install gulp-minify-css;
sudo npm install gulp-rename;
sudo npm install gulp-uglify;
sudo npm install shelljs;

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

# JAVA
# I did not set the JAVA_HOME variable
sudo apt install openjdk-8-jdk

# ANDROID_HOME

# Cordova

npm install -g cordova-check-plugins

#Notify send

sudo apt install libnotify-bin