Ubuntu – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Wed, 11 Aug 2021 16:36:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 How to make TP Link tl-wn823n wifi dongle work on Kubuntu? https://priyank.rocks/making-tp-link-work-on-kubuntu/ Wed, 11 Aug 2021 13:56:07 +0000 https://priyank.rocks/?p=8391 I followed the instructions here and then noticed that there are more steps to be done than mere running the bash. Next, we can follow from step 6 onwards. I followed all the steps and I can confirm it worked on Kubuntu 20.04.

]]>
Error: EACCES: permission denied, mkdir ‘node_modules/node-sass/build https://priyank.rocks/error-eacces-permission-denied-mkdir-node_modules-node-sass-build/ Mon, 11 Feb 2019 07:34:27 +0000 http://priyank.rocks/?p=362 I installed the package with –unsafe-perm and the installation went through.

More about the parameter here.

]]>
KDE Connect notifications are not displayed https://priyank.rocks/kde-connect-notifiations-are-not-displayed/ Mon, 17 Dec 2018 08:00:07 +0000 http://priyank.rocks/?p=275 Please ensure you have given all the permissions required by the app. For me it didn’t ask up front. 

Not sure if following is required too.


1
sudo apt install libnotify-bin;
]]>
KDE Connect not finding the device On Ubuntu / kubuntu https://priyank.rocks/kde-connect-not-finding-the-device-on-ubuntu-kubuntu/ Sat, 15 Dec 2018 10:51:29 +0000 http://priyank.rocks/?p=267 The ufw firewall blocks some of the ports required for the KDE connect to work.

1
2
3
sudo ufw allow 1714:1764/udp;
sudo ufw allow 1714:1764/tcp;
sudo ufw reload;

Tested on Xiaomi Redmi 6 Pro but should work on other devices too.

]]>
How to install source code pro font on Ubuntu / Kubuntu? https://priyank.rocks/installing-source-code-pro-on-ubuntu/ Wed, 24 Oct 2018 15:37:32 +0000 http://priyank.rocks/?p=234 The following commands helped me install source code pro font on Kubuntu 18.04.

1
2
3
[ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype
sudo git clone https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/opentype/scp
sudo fc-cache -f -v

I prefer adobe’s source code pro as the font on my IDE (PHPStorm).

Source: https://github.com/adobe-fonts/source-code-pro/issues/17#issuecomment-73454001

If you want to download google fonts. Please download it from here.

If you found this post helpful, please consider dropping a comment at the very bottom of this page.

]]>
Settign up FTP user on local https://priyank.rocks/settign-up-ftp-user-on-local/ Tue, 23 Oct 2018 12:45:01 +0000 http://priyank.rocks/?p=231 Mostly the first resource should do it.

After installing vsftpd please run following.

1
sudo ufw enable

https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04

 

]]>
Swap file Kubuntu https://priyank.rocks/swap-file-kubuntu/ Mon, 15 Oct 2018 17:35:55 +0000 http://priyank.rocks/?p=225 https://askubuntu.com/questions/1009404/how-to-expand-existing-swap-file

]]>
Commands to run after fresh installation of Ubuntu / Lubuntu / Kubuntu / Xubuntu https://priyank.rocks/commands-to-run-after-fresh-installation-of-ubuntu-lubuntu-kubuntu/ Fri, 05 Oct 2018 17:24:15 +0000 http://priyank.rocks/?p=191
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
]]>
HP Laptop Shift and Control key pressed randomly in Ubuntu. https://priyank.rocks/hp-laptop-shift-and-control-key-pressed-randomly-in-ubuntu/ Tue, 02 Oct 2018 15:51:09 +0000 http://priyank.rocks/?p=189
1
2
3
4
5
6
7
sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.dumbkbd"

sudo update-grub

reboot
]]>
Installing LAMP https://priyank.rocks/installing-lamp/ Sun, 23 Sep 2018 14:34:46 +0000 http://priyank.rocks/?p=179 Turn on PHP Short tags
Uncomment pdo_mysql, curl and other modules that are required.

1
 
1
<code lang="bash">

sudo a2enmod rewrite

1
<code lang="bash">

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

1
<code lang="bash">

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

1
<code lang="bash">

sudo apt-get install php7.2-curl;

1
<code lang="bash">

sudo apt-get install php7.2-mbstring;

# For fpm

sudo apt-get install php-mbstring

1
<code lang="bash">

sudo apt-get install php7.2-xml;

1
<code lang="bash">

sudo apt-get install php5.6-mysql

1
<code lang="bash">

# For dbeaver
sudo apt-get install mysql-client

1
 
1
 
]]>