Skip to main content

Posts

How to Enter Split View on MAC

Enter Split  View Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side. Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side.

How to load the sample database into the MariaDB server.

1. Download  the Sample Database  (Source :  https://www.mariadbtutorial.com/getting-started/mariadb-sample-database/  ) 2. unzip the file to a directory e.g.,  c:\mariadb\nation.sql 2.   connect to the MariaDB server  with the  root  user account, type the password and press the   Enter  keyboard. sudo mysql -u root -p Enter password: ******** 3.  Load the database by using the source command: mysql>source c:\mariadb\nation.sql 4.  select the   nation   database and display tables of the database: mysql> use nation; Database changed mysql> show tables ;

How to change location of Mac screenshots in older macOS versions

The Default location of screenshots on Mac is desktop folder and it looks pretty scattered when we have multiple screenshots lying on the desktop. To make it look more organized and tidy we can change the location with following steps :  In the following example we'll assume we are changing the location to Documents folder on Mac.  we've created a desktop folder called exactly that, but you can change this process for different locations provided you know the file path. Click on the Finder to open a new Finder window and go to Documents folder. Create a new folder inside Documents folder. Name it Screenshots (or whatever you want to call it) Now open Terminal (press Command + Space and start typing Terminal until the icon appears) then click on that icon to open the app. In Terminal type the following: defaults write com.apple.screencapture location (There needs to be a space after location it won’t work without it) Now drag and drop your Screenshots folder on to...

Backslash on mac

I had been struggling to type back slash ( \) character on mac japanese keyboard as they don't have it printed on the keyboard, and I was doing copy paste all the time from google when i needed to type it until recently a tip came to my rescue , shortcut to backslash on mac japanese keyboard. Alt + ¥  Hope it helps others. 

How to check if apache is installed on a machine or not ?

dpkg --get-selections | grep apache It lists all installed packages that contain "apache" in their name. For example: apache2 install apache2-doc install apache2-mpm-prefork install apache2-utils install apache2.2-bin install apache2.2-common install libapache2-mod-php5 install libapache2-svn install It indicates that the package apache2 is installed on the system. Another approach, to find any running HTTP daemon on the default port would be: sudo lsof -nPi | grep ":80 (LISTEN)" Which lists something like: apache2 1026 root 4u IPv6 3739 0t0 TCP *:80 (LISTEN) apache2 3966 www-data 4u IPv6 3739 0t0 TCP *:80 (LISTEN) apache2 4014 www-data 4u IPv6 ...

How to Install Skype in Ubuntu 14.04/12.04

Install required libraries (for 64-bit system) Skype website only provides 32-bit package for Ubuntu 12.04 and higher. You’re unable to install it directly on 64-bit system due to dependencies issue. However, install the old skype from Canonical partners repository will also install the required libraries we need for NEW skype. Follow steps a, b, c mentioned below : a.) Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run commands one by one to remove old skype and .skype folder: sudo apt-get remove skype skype-bin rm -rf ~/.skype b.) Open “Software & Updates” and enable Canonical partners repository under Other Software tab. c.) Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the commands below to install old skype: sudo apt-get update; sudo apt-get install skype   For more details check : link

How to Find Your Linux Version or Distro Release

How to Find Your Linux Version or Distro Release, and Why It Matters Finding your kernel release There will be times when you must know your kernel release number. Fortunately, the developers saw fit to include a handy tool that will quickly display your kernel release number. Here’s what you need to do: Open up a terminal window Issue the command uname -r Take note of the information displayed (Figure 1). Finding your distribution release There may be times when you need to know the release number you currently use. Again, there’s a handy command to find that information. Do the following: Open a terminal window Issue the command lsb_release -a For more details pls. check the source : link

Installing Clouera Manager on Ubuntu

Links am referring to : Video : https://www.youtube.com/watch?v=z0l87tArUDk Change Hostname : https://support.rackspace.com/how-to/centos-hostname-change/ What is Hostname : https://en.wikipedia.org/wiki/Hostname , https://support.suso.com/supki/What_is_the_difference_between_a_hostname_and_a_domain_name 1. Create the Oozie Database and Oozie MySQL User : https://www.cloudera.com/documentation/enterprise/5-6-x/topics/install_oozie_ext_db.html#concept_dkp_xh4_hp For example, using the MySQL mysql command-line tool: $ mysql -u root -p Enter password: ****** mysql> create database oozie; Query OK, 1 row affected (0.03 sec) mysql> grant all privileges on oozie.* to 'oozie'@'localhost' identified by 'oozie'; Query OK, 0 rows affected (0.03 sec) mysql> grant all privileges on oozie.* to 'oozie'@'%' identified by 'oozie'; Query OK, 0 rows affected (0.03 sec) mysql> exit Bye Add the MySQL JDBC Driver JAR to...

How to change host name

Ubuntu change hostname command The procedure to change the computer name on Ubuntu Linux: Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname Delete the old name and setup new name. Next Edit the /etc/hosts file: sudo nano /etc/hosts Replace any occurrence of the existing computer name with your new one. Reboot the system to changes take effect: sudo reboot     How to change the Ubuntu server hostname without a system restart? Type the following commands: $ sudo hostname new-server-name-here Next edit the /etc/hostname file and update hostname: $ sudo nano /etc/hostname Finally, edit the /etc/hosts file and update the lines that reads your old-host-name: $ sudo nano /etc/hosts

Cloudera manager Installation on Ubuntu

Steps followed :  1. change hosts file 2.sudo apt-get install ssh 3. save public keys as 'authorized_keys'    ssh-keygen    cd ~/.ssh    cat id_rsa.pub  >  authorized_keys 4. download cloudera repo from "wget http://archive-primary.cloudera.com/cdh5/one-click-install/precise/amd64/cdh5-repository_1.0_all.deb" 5. install this file using "sudo dpkg -i cdh5-repository_1.0_all.deb" 6. download cloudera install manager from "wget http://archive-primary.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin" 7. change permission on file "chmod +x cloudera-manager-installer.bin" 8. start the installer "sudo ./cloudera-manager-installer.bin" 9. follow steps and your install is complete. Errors faced while installtion : 1. After step 8 Errors faced as I had previous Cloudera  installations on my system . Resolution : unsinstall the previous installation if any . -->sudo  /usr/share/cmf/uninstall-clo...

how to check and add USER on Ubuntu

To check existing users in Ubuntu : cut -d: -f1 /etc/passwd   To Add User in Ubuntu : sudo adduser new_username or: sudo useradd new_username To remove/delete a user, first you can use: sudo userdel username To delete the home directory for the deleted user account : sudo rm -r /home/ username (Please use with caution the above command!) To modify the username of a user: usermod -l new_username old_username   To change the password for a user: sudo passwd username

how to reset mysql root password

Problem : 1. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Solution : Rest root password   sudo dpkg-reconfigure mysql-server-5 .5              This will change the root password. 2.  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Solution :  ps ax | grep mysql                  sudo service mysql start                  mysql start/running, process 7226

Shortcuts ...

1. Accessing  browser's address bar directly from the keyboard  Note: All shortcuts that use Command apply only to Macs. Firefox : Control+L, Alt+D, F6 (Windows); Command+L (Mac) Chrome/Safari/WebKit : Control+L, Alt+D, F6 (Windows); Command+L (Mac) Internet Explorer : Control+L, Alt+D, F6 Opera : Control+L, Alt+D, F6/Command+L In Chrome, Ctrl+K puts you in the address bar with a question mark, which explicitly tells Chrome that you want to search. Here's an added bonus. If your browser has a separate search box Firefox : Control+K (Windows); Command+K (Mac) Safari : Command+Option+F (Mac) Internet Explorer : Control+E Opera : Control+E (Windows); Command+E (Mac)

301 Redirects

URL Capitalization and SEO

Why not use capitalization in URL - read here - URL Capitalization and SEO domainname.com/page1 domainname.com/Page1 Your site is hosted on a  Windows-based server Header response when requested either of the two 200 200 Google’s reaction Both URLs will be indexed and ranked. Obviously, this will cause some  duplicate content  issues but Google will most obviously be able to figure that out (by choosing one of them). What’s more important is that you are wasting plenty of link juice spreading it between the two versions. Your site is hosted on a  Linux / Unix-based server Header response when requested either of the two 200 404 Google’s reaction Google will try to index both but will drop the 404-one. Again, you are wasting your link juice in this situation. What’s also important, you confuse your visitors by sending them to the non-existent page.

Graphic Drivers on Ubuntu

How to view which graphic drivers are in use in my Linux (Ubuntu) system . >jockey-text -help     Options:   -h, --help            show this help message and exit   -c, --check           Check for newly used or usable drivers and notify the                         user.   -u, --update-db       Query driver databases for newly available or updated                         drivers.   -l, --list            List available drivers and their status.   -a, --auto-install    Enable drivers that can be automatically installed...

OPEN SSH

What is ? OpenSSH  is a free open source set of computer tools used to provide secure and encrypted communication over a computer network by using the  ssh  protocol. Many people, new to computers and protocols, create a misconception about  OpenSSH , they think it is a protocol, but it is not, it is a set of computer programs that use the  ssh protocol . Why Open SSH ? The most important reason why should use  OpenSSH  tools over  ftp  and  telnet  is that all communications and user credentials using  OpenSSH  are encrypted, they are also protected from man in the middle attacks. If a third party tries to intercept your connection,  OpenSSH  detects it and informs you about that. Installation ?  sudo apt-get update $ sudo apt-get install openssh-server openssh-client $ sudo ufw allow 22 Links : https://help.ubuntu.com/community/SSH/OpenSSH/Configuring http://www.tecmint.com/install-openssh-se...