Showing posts with label Mac OS. Show all posts

Monday, July 9, 2018

How to enable and disable gatekeeper on mac

  No comments
July 09, 2018

How to enable and disable gatekeeper on mac. Gatekeeper is a security feature of the macOS operating system by Apple. You can see this setting on system preferences in Security & Privacy. But on mac OS sierra, this feature is hidden by apple.




You can enable "Anywhere option" with command on terminal. just type this command.

sudo spctl --master-disable

to hidden you can do again.

sudo spctl --master-enable

Read More

Wednesday, May 16, 2018

How to remove permanently a path from the fish $PATH

  No comments
May 16, 2018

How to remove permanently a path from the fish $PATH. There is also $fish_user_paths, which is a universal variable (meaning it carries the same value across fish sessions and is synchronized across them). On startup and whenever fish_user_paths is modified, fish adds it to $PATH. If the offending directory is added here, execute set -e fish_user_paths[index] once (e.g. in an interactive session).
set -e fish_user_paths would remove the entire variable (while set -U fish_user_pathswould clear it) which would also work but would also remove all other paths.
just type on your terminal
set -e fish_user_paths
set -U fish_user_paths
Close your terminal and open again. that clear another path

Read More

Tuesday, May 15, 2018

How to set $PATH permanently in fish shell

  No comments
May 15, 2018

How to set $PATH permanently fish shell.

  1. type this in your terminal
    vim ~/.config/fish/config.fish
    
  2. add this code to fish config

    
    set --universal fish_user_paths $fish_user_paths ~/path/name/here
    
    
  3. restart terminal type your bin


Read More

Friday, November 10, 2017

Add Pemanently to the PATH on MAC OS

  1 comment
November 10, 2017

Sometime after you install binary, example composer and package from composer. You must add composer to PATH, so many tutorial export PATH but is temporarly. Then how to add the path permanent.

  1. open terminal and type
    sudo nano /etc/paths

  2. Enter your password, when prompted.
  3. Go to the bottom of the file, and enter the path you wish to add
  4. Hit control-x to quit. and enter Y
  5. Open new terminal and type
    echo $PATH
You should see something similar to this (including the path you’ve added!):
add composer to PATH
add composer to PATH

Read More

Monday, February 6, 2017

How to detect php.ini on mac

  No comments
February 06, 2017

How to detect php.ini on mac,

easy to detect php.ini folder. you can use 2 way.

1. create file info.php and put this script

<?php
phpinfo();
?>

2. open terminal and type this command

php -i | grep php.ini    

and terminal will show the path folder of php.ini


Read More

Tuesday, March 22, 2016

Configuring VirtualHosts in XAMPP on Mac

  No comments
March 22, 2016

Kalian tahu apa itu virtual Host. Virtual Host adalah alamat website / URL dalam 1 mesin atau 1 IP yang bisa diakses lewat browser. Nah dalam hal ini saya akan berikan cara mengatur virtualhost pada komputer local kalian menggunakan xampp pada Macbook. cekidot artikel dibawah ini yang saya kutip dari sumber aslinya. selanjutnya akan saya tulis membuat virtual host menggunakan xampp pada windows. Jadi nikamati saja dulu yang ini.

What are VirtualHosts?

VirtualHosts allow Apache to map a hostname to a directory on the filesystem. You can set up as many VirtualHosts as you need, so that each website operates under its own hostname. For example, you might want to map mysite.local to/Users/yourusername/mysite. To test your development site all you would need to do is plug “http://mysite.local” into your browser’s address bar.

Enable VirtualHosts

The first thing you’ll need to do is open the file/Applications/XAMPP/xamppfiles/etc/httpd.conf in your favourite text editor. Look for the following lines:
# Virtual hosts
#Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
Uncomment the second line by removing the hash (#), so that Apache loads your custom VirtualHosts configuration file:
# Virtual hosts
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

Create your VirtualHosts

Open the file /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf. Towards the bottom of the file you will see some example VirtualHosts, which you should comment out or delete.
At the bottom of the file, add ‘localhost’ as the default named VirtualHost:
# localhost

    ServerName localhost
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
    
        Options Indexes FollowSymLinks Includes execCGI
        AllowOverride All
        Require all granted
    
This step is necessary to ensure that http://localhost still points at XAMPP’s htdocsdirectory once we’ve created our custom VirtualHosts. Personally I don’t use thehtdocs directory a lot, but occasionally it’s useful to have somewhere to perform quick tests.
Now you are ready to create your own VirtualHosts. After the default localhost that you just created, add:
# My custom host

    ServerName mysite.local
    DocumentRoot "/Users/yourusername/path/to/your/site"
    
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    
    ErrorLog "logs/mysite.local-error_log"
In the above example you should replace “mysite.local” with your own hostname. This can be anything you wish, but make sure you choose a hostname that won’t conflict with a real domain name. Using a .local extension makes it obvious that the site is hosted locally rather than on a public web server.
The path to your website can point at any folder in your OS X user directory. I store most of my sites inside of Dropbox so that I can access them on both my home and work machines. If your path includes spaces, make sure you enclose it in quotes, like in my example.

Edit your hosts file

Once you’ve saved your httpd.conf and httpd-vhosts.conf files, the next step is to edit your OS X hosts file so it knows how to handle your new ServerName. The hosts file is used by OS X to map hostnames to IP addresses. In this case we want to map your new ServerName to the IP address 127.0.0.1, which is your localhost.
Fire up a Terminal instance, and at the prompt type the following command:
sudo nano /etc/hosts
Enter your OS X password when prompted, and the hosts file will be opened in thenano text editor. You’ll see that the hosts file already contains some default hostname mappings (e.g. “127.0.0.1 localhost”). Use your keyboard’s arrow keys to navigate to the bottom of the file and add your own mapping:
# XAMPP VirtualHost mappings
127.0.0.1 mysite.local
Save the host file using the key combo control+o, and pressing return when prompted to choose the filename. Close the file using control+x.

Restart Apache

So that your changes take effect, restart Apache. This can be done using XAMPP Control, which is found at /Applications/XAMPP/XAMPP Control.app.
Point your browser at http://mysite.local (or whatever ServerName you chose) and you should see your website. However, there’s a chance that instead you’ll be faced with a…

Read More

Monday, September 29, 2014

Cara Remote Desktop PC dengan Chrome Remote Desktop

  No comments
September 29, 2014

Hallo ada salah satu fitur yg menarik nih dari google pada google chrome, yaitu chrome remote desktop. Kita bisa me-remote desktop dengan chrome browser ataupun remote desktop dengan android, dan yang lebih penting lagi ini free. cara kerjanyapun sama dengan team viewer, cukup dengan pin dan akun google kalian.

oke lanjut ke langkah-langkah untuk melakukan remote desktop dengan chrome.

  1. download chrome extension di chrome store
  2. download chrom remote desktop app di playstore. (jika ingin meremote dari android).
  3. setelah extension terinstall di chrome buka menu apl di chrome browser dan klik remote desktop atau chrome desktop jarak jauh.

    izor note's - remote desktop dengan android
    izor note's - remote desktop dengan android
  4. lalu pada bagian "komputer saya" klik "aktifkan sambungan jarak jauh" dan masukan PIN minimal 6 digit untuk hak akses. PIN berdasarkan angka.

    izor note's - remote desktop dengan android
    izor note's - remote desktop dengan android
    izor note's - remote desktop dengan android
  5. sebelum kalian memasukan PIN, google akan meminta kalian mendowload software remote desktop di PC, download software tersebut dan install. setelah itu klik kembali "aktifkan sambungan jarak jauh"
  6. jika sudah mari kita lihat di android apakah PC sudah tersambung. di app chrome remote desktop akan muncul daftar PC yang sudah diberi autorisasi.

    izor note's - remote desktop dengan android
    izor note's - remote desktop dengan android
  7. jika sudah tersambung maka di PC akan ada notifikasi bahwa komputer km sedang diremote.

    izor note's - remote desktop dengan android
  8. selain dengan android jg bisa menggunakan chrome browser menggunakan bagian "Bantuan jarak jauh"

    izor note's - remote desktop dengan android
oke selamat mencoba dan ini berguna bagi kalian yang ingin mengendalikan PC dari rumah, lumayan nih buat download2 film/game dari rumah tapi pake PC kantor :D.


Read More