Skip to main content

Posts

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 top

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