Disable Native Notification on Google Chrome Ubuntu

On Ubuntu, Google chrome had a disable native notification option. On Chrome 78, this option is removed. But you still can manually enable it. To enbale chrome notification, edit file gedit ~/.config/google-chrome/Local\ State Find “tab-hover-cards@4” Replace with “enable-native-notifications@2″,”tab-hover-cards@4” Save and exit the file. Now restart google chrome. Related Posts Google Chrome

Identify virtual machine technology

virt-what is a shell script which can be used to detect if the program is running in a virtual machine. It will identify what VM technology is used for current VM. For example KVM, Xen, HyperV etc. On CentOS 7, install virt-what with On Debian/Ubuntu Example See VPS

apropos

apropos is a linux command that search manual pages and descriptions. Example root@mil-146068:~# apropos vagrant vagrant (1) – Tool for building and distributing virtualized development environments. dh_vagrant_plugin (1) – packaging helper for vagrant plugins root@mil-146068:~# See Linux Commands

df not showing all mounts

On a server, df not showing all mounts root@server20 [~]# df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.9G 0 3.9G 0% /dev/shm root@server20 [~]# This is caused by corrupt /etc/mtab To fix mv /etc/mtab /etc/mtab.old cat /proc/mounts > /etc/mtab See df

Show disk usage with df

df command shows partitions and disks used by each partition. root@server54 [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 450G 380G 47G 90% / /dev/sda1 99M 11M 83M 12% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sdb1 458G 390G 46G 90% /backup /usr/tmpDSK 485M 63M 397M 14% /tmp root@server54 [~]# To see … Read more

MySQL ERROR Access denied you need SUPER privilege for this operation

MySQL

WHen restoring a MySQL database, i get following error root@ns3043014:~# mysql -u NEW_DB_USER -p’PASSOWRD_HERE’ DB_NAME < BACKUP_FILE.sql ERROR 1227 (42000) at line 4382: Access denied; you need (at least one of) the SUPER privilege(s) for this operation root@ns3043014:~# I opened the file in vim editor. On checking line 4382, i found following /*!50013 DEFINER=`OLD_DB_USER`@`localhost` SQL ... Read more

Install Unbound DNS caching server

Unbound is an Open source DNS caching and recursive resolver. You can find more about unbound at https://nlnetlabs.nl/projects/unbound/about/ To install unbound on Ubuntu/Debian, run apt install unbound To start unbound systemctl start unbound Set unbound to start on boot systemctl enable unbound To configure your server to use local name servers provided by unbound, edit … Read more

Manually run icecast on CentovaCast server

On CentovaCast server, icecast is run as user ccuser, to run icecast, you need to enable shell for this user. By defult, this user have shell access disabled. ccuser:x:1001:1001::/usr/local/centovacast:/bin/false running icecast manually maybe useful when you want to debug some issue with icecast. To enable bash shell for user, run chsh –shell /bin/bash ccuser Login … Read more

CentovaCast Enable SSL on icecast

Before you can get SSL work, you need to compile icecast with SSL. If icecast is not installed with SSL support, it will ignore settings and just serve the stream using non HTTPS. To install Icecast with SSL support, download Icecast from https://icecast.org/download/ cd /usr/local/src wget http://downloads.xiph.org/releases/icecast/icecast-2.4.4.tar.gz tar xvf icecast-2.4.4.tar.gz cd icecast-2.4.4 ./configure –prefix=/usr/serverok/icecast –with-curl … Read more

Install Paid SSL on Centova Cast

To install SSL on Centova Cast, edit file vi /usr/local/centovacast/etc/ssl/certificate.pem Add your SSL cert and ca-bundle file content to this file. Edit vi /usr/local/centovacast/etc/ssl/private.key paste your private key. Creae dhparam. cd /usr/local/centovacast/etc/ssl/ openssl dhparam -out dhparam.pem 4096 Edi nginx config vi /usr/local/centovacast/etc/cc-panel.conf find listen 2199 default ssl; Add below listen 443 ssl; listen 80; Verify … Read more