1. homebrew update to enable anonymous aggregate formulae

 

ellords-Mac-book:~ ellord$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> You are using macOS 10.14.
==> We (and Apple) do not provide support for this old version.
This installation may not succeed.
After installation, you will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving any
issues you experience while you are running this old version.

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R ellord:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 78, done.
remote: Counting objects: 100% (78/78), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 78 (delta 32), reused 50 (delta 16), pack-reused 0
Unpacking objects: 100% (78/78), done.
From https://github.com/Homebrew/brew
   650f516c5..b3684e55a  master     -> origin/master
HEAD is now at b3684e55a Merge pull request #14997 from ZhongRuoyu/ventura-system-settings
Updated 3 taps (shivammathur/php, homebrew/core, and homebrew/cask).
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/ellord/.bash_profile
    eval "$(/usr/local/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh

 

 

2. bash change

ellords-Mac-book:~ ellord$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile

 

3. install freetype

ellords-Mac-book:~ ellord$ brew install freetype
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Fetching freetype
==> Downloading https://gitlab.freedesktop.org/freetype/freetype/-/commit/2257f9
######################################################################## 100.0%
==> Downloading https://gitlab.freedesktop.org/freetype/freetype/-/commit/d874ff
######################################################################## 100.0%
==> Downloading https://downloads.sourceforge.net/project/freetype/freetype2/2.1
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/34c0ca3c59c0f54b35bf7667b3ef864f2321172ace9cf180c40e81819e46f0f3--freetype-2.13.0.tar.xz
==> Patching
==> Applying 2257f9abf6e12daf7c3e1bfe28fa88de85e45785.diff
patching file include/freetype/internal/compiler-macros.h
==> Applying d874ffa96ccad7dd122cdc369a284d171e221809.diff
patching file include/freetype/internal/compiler-macros.h
==> ./configure --prefix=/usr/local/Cellar/freetype/2.13.0_1 --enable-freetype-c
==> make
==> make install
🍺  /usr/local/Cellar/freetype/2.13.0_1: 67 files, 2.4MB, built in 26 seconds
==> Running `brew cleanup freetype`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

 

 

 

 

 

 

 

 

 

'Mac' 카테고리의 다른 글

Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
블로그 이미지

엘로드넷

,

ssh의 기본 포트는 22이다.

 

OSX에서 ssh 포트를 변경하는 방법 

 

1. /etc/services에서 변경

 

vi /etc/services

ssh              22/udp     # SSH Remote Login Protocol
ssh              22/tcp     # SSH Remote Login Protocol

22를 적당한 포트로 변경하고 저장한다.

 

1 ~ 65535 중의 하나로 변경가능하지만 다른 곳에서 사용중인 것은 피한다.

 

 

2. ssh데몬 재시작

 

아래와 같이 데몬을 내렸다가 올리는 방식으로 처리한다.

 

sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist 
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

 

변경된 포트로 접속하는 방법

 

ssh 192.168.0.100 -p 변경된포트 -l 사용자명

'Mac' 카테고리의 다른 글

OSX Mojave freetype install error  (0) 2023.03.18
OSX mariadb 설치  (0) 2022.04.21
osx apache httpd는 어디에 설치?  (0) 2022.04.21
osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
블로그 이미지

엘로드넷

,

OSX mariadb 설치

Mac 2022. 4. 21. 15:03

 

1. 설치

$ brew install mariadb

 

2. 서비스시작

$ brew services start mariadb

 

3. root비전 설정

$ sudo mariadb-secure-installation

 

Chan-ui-Mac-mini:www ds1ttc$ sudo mariadb-secure-installation
Password:


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n  
 ... skipping.

You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
Chan-ui-Mac-mini:www ds1ttc$

 

 

4. mariadb 서버에 접속해 보자

$ mysql -u root -p mysql

Chan-ui-Mac-mini:www ds1ttc$ mysql -u root -p mysql
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.7.3-MariaDB Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [mysql]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
4 rows in set (0.001 sec)

MariaDB [mysql]>

최신 버전이 잘 설치되었다.

 

'Mac' 카테고리의 다른 글

OSX Mojave freetype install error  (0) 2023.03.18
Change OSX ssh port 맥OS ssh 포트 변경  (0) 2022.11.04
osx apache httpd는 어디에 설치?  (0) 2022.04.21
osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
블로그 이미지

엘로드넷

,

1. 설치방법 

 

$ brew install httpd

 

 

2. httpd.conf 위치는 ?

 

/usr/local/etc/httpd

 

 

 

3. 홈 디렉토리는 ?

 

/usr/local/var/www

 

블로그 이미지

엘로드넷

,

osx 원격제어설정

Mac 2022. 4. 15. 13:31

맥에는 vnc가 기본적으로 설치되어 있다.

vnc가 사용하는 포트는 5900이다.

 

원격제어 remote 맥 설정 : 

 

시스템 환경설정 > 공유 > 화면공유 체크

 

 

 

로컬맥에서 remote 접속 : 

 

파인더 상에서 Command + K 

 

끝.

블로그 이미지

엘로드넷

,

OSX ssh 포트 변경

Mac 2022. 4. 14. 16:32

1.  포트변경

$ sudo vi /etc/ssh/sshd_config

13째 줄에 주석을 제거하고 원하는 포트로 변경한다.

 

변경 전 : 

#Port 22

 

변경 후 : 

Port 12345

 

 

$ sudo vi /etc/services

77, 78라인을 찾아서 아래와 같이 변경한다.

 

변경 전 : 

ssh         22/udp

ssh         22/tcp

 

변경 후 

ssh.         원하는 포트/udp

ssh.         원하는 포트/tcp

 

 

 

 

2. 데몬 재시작

아래 명령어 차례로 수행

 

sudo launchctl unload /System/Llibrary/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

 

블로그 이미지

엘로드넷

,

eclipse.ini파일을 열어서 -vm 바로 아래줄을 주석처리하고 아래와 같이 jdk버전을 변경

 

/Applications/Eclipse/Contents/Eclipse>eclipse.ini

 

 

-vm
/Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/MacOS/libjli.dylib
#../Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.2.v20220201-1208/jre/lib/libjli.dylib

'Mac' 카테고리의 다른 글

osx 원격제어설정  (0) 2022.04.15
OSX ssh 포트 변경  (0) 2022.04.14
OSX .DS_Store 파일 생성 안되게 하기  (0) 2022.04.13
OSX .DS_Store 파일 삭제  (0) 2022.04.13
OSX SVN Server 세팅  (0) 2022.04.12
블로그 이미지

엘로드넷

,

생성 안되게 하기

$ defaults write com.apple.desktopservices DSDontWriteNetworkStores true

 

 

생성 되게 하기

 

$ defaults write com.apple.desktopservices DSDontWriteNetworkStores false

 

블로그 이미지

엘로드넷

,

OSX .DS_Store 파일 삭제

Mac 2022. 4. 13. 07:57

현재 위치 아래에 있는 모든 .DS_Store 파일 삭제

 

$ sudo find ./ -name ".DS_Store" -depth -exec rm {} \;

Password:

 

 

 

블로그 이미지

엘로드넷

,

OSX SVN Server 세팅

Mac 2022. 4. 12. 08:32

맥에서 SVN 서버 구축은 리눅스와 같다.

 

1. svn 저장소로 만들 디렉토리를 만든다.

$ mkdir /Users/apps/Downloads/SVN

 

 

2. 프로젝트를 만든다.

$ svnadmin create /Users/apps/Downloads/SVN/프로젝트명

 

 

3. SVN사용자를 만든다.

$ cd /Users/apps/Downloads/SVN/프로젝트명/conf/

$ vi passwd

[users]

# harry = harryssecret

# sally = sallyssecret

새사용자아이디 = 비밀번호

 

 

4. 환경설정을 수정한다.

$ vi svnserve.conf

 

19, 20, 27 행을 수정한다.

 

아래와 같이 되어 있는 것을

19 # anon-access = read

20 # auth-access = write

 

27 # password-db = passwd

 

 

다음과 같이 변경한다.(#과 공백을 제거함)

19 anon-access = none

20 auth-access = write

 

27 password-db = passwd

 

저장하고 빠져나온다.

 

5. snv 서버를 실행한다.

 

$ svnserve -d -r /Users/apps/Downloads/SVN

 

 

끝.

 

블로그 이미지

엘로드넷

,