MacBook Pro 2017 에서 Windows 10 USB 설치시 Mac SSD 를 찾지 못하는 증상

맥OS BigSur 부터 부트캠프에서 USB 를 통해 설치 윈도우 USB를 만들수 없음.
따라서, Mac OS 삭제가 되지 않은 상태에서 부트캠프로 윈도우 설치시 Mac OS 용량을 낭비함.

Mac OS는 나중에 복구 모드로 재 설치할 수 있으니 윈도우 사용시 MacOS 를 삭제하고 클린설치를 진행 하는 방법

우선 윈도우 10 부팅 USB 준비.

여기서 반드시 본인 MacOS 의 부트캠프에서 “Windows 지원 소프트웨어 다운로드” 받아 USB에 저장함.

https://support.apple.com/ko-kr/102465

지원 소프트웨어 다운로드 후 USB를 보면 WindowsSupport 폴더가 생김.
WindowsSupport 안에 “$WinPEDrive$” 라는 폴더가 있는데 이 폴더를 USB 루트 폴더에 복사함.

https://apple.stackexchange.com/questions/400324/windows-10-usb-installer-not-detecting-mac-ssd-on-macbook-pro-2016

그리고 USB로 부팅하면 드디어 안잡히던 MAC SSD 가 잡힘..
깔끔히 모든 파티션 다 삭제하고 윈도우 설치!!

아웃룩 메일 전송시, 자동으로 숨은참조 추가 – 특정 발신 메일주소 설정가능

메일을 보낼때 물론 보낸 편지함에 저장이 되긴 하지만 실제도 받는 사람이 보는 화면과 약간 다르고 또한 서버에는 남지 않기 떄문에 (보통의 POP 형식 서버를 사용 하는경우) 보내기전 숨은 참조에 자신의 이메일을 넣어 발송하는 경우가 많고,

매번 하기 귀찮다 보니 “자동으로 숨은참조에 내 이메일 주소가 들어가 있으면 좋겠다” 라고 생각 하시는 분들을 위해 준비한 꿀팁입니다.
자 이제 시작 합니다.

※참고사항 : 오피스 2007, 2010, 2013, 2016, 365 모두적용 가능합니다.
저는 오피스 2013 기준으로 작성 하도록 하겠습니다. 인터페이스가 다르지만 집입 경로는 비슷하니 어렵지 않을 것 같습니다.

1. 아웃룩을 실행 하여 [파일] 버튼을 클릭합니다.
2. [옵션] 버튼을 클릭합니다.
3. [보안센터]를 클릭후 [보안센터설정] 을 클릭합니다.
4. [메크로 설정] 클릭후 [모든메크로실행]을 선택 한 후 [확인] 버튼을 클릭 합니다.
5. 아웃룩 메인 화면에서 키보트릐 Alt와 F11 키를 통시에 눌리면 비주얼 베이직 프로그램이 열립니다.
6. 왼쪽에 있는 내용을 다 펼치신 뒤에 맨 아래에 있는 [This OutlookSession]을 더블 클릭 합니다.
이후 아래의 내용을 입력 합니다. (빨간색 부분은 숨은참조에 넣고싶은 이메일 주소를 넣으면 됩니다.)

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient

If Item.SenderEmailAddress = “보내는사람메일주소1” Or Item.SenderEmailAddress = “보내는사람메일주소2” Then
Set objMe = Item.Recipients.Add(Item.SenderEmailAddress)
objMe.Type = olBCC
objMe.Resolve
End If

Set objMe = Nothing
End Sub

위와 같이 할 경우 보내는사람메일주소1,2 에서 발송하는 메일만 숨은 참조로 들어갑니다.

모든 발송 메일에 숨은 참조를 넣고 싶을 경우..

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient

Set objMe = Item.Recipients.Add(Item.SenderEmailAddress)
objMe.Type = olBCC
objMe.Resolve

Set objMe = Nothing
End Sub

위와 같이 설정하시면 됩니다.

두명 이상에서 숨은 참조를 넣고 싶을 경우

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient

Set objMe = Item.Recipients.Add(“메일주소1@메일주소.com”)
objMe.Type = olBCC
objMe.Resolve

Set objMe = Item.Recipients.Add(“메일주소2@메일주소.com”)
objMe.Type = olBCC
objMe.Resolve

Set objMe = Item.Recipients.Add(“메일주소3@메일주소.com”)
objMe.Type = olBCC
objMe.Resolve

.
.
.

Set objMe = Nothing
End Sub

Set objMe = Item.Recipients.Add(“메일주소@메일주소.com”)
objMe.Type = olBCC
objMe.Resolve

이 항목만 추가 하시면 됩니다.

7. 내용을 저장한뒤 비주얼 베이직 창을 닫습니다.
메크로 설정
8. 매크로 실행시 보안 오류 메시지가 발생 될 경우 아래의 옵션을 변경 하여 주시기 바랍니다.
<파일>–<옵션>–<보안 센터>–<보안센터 설정>–<매크로 설정>을 클릭합니다.
<매크로 보안>을 <모든 매크로 실행>으로 변경합니다.
9. 아웃룩을 종료한뒤 다시 실행 합니다.

How to Disable snap/snapd services in Ubuntu 20.04.1 LTS (& How to Uninstall/Remove snap)

The Issue
We want to disable snapd service on system startup/prevent snapd services startup automatically on system boot on Ubuntu or remove Snap completely

The Fix
1 Disable snap services
1.1 Bring up the terminal or login via SSH

1.2 E1xecute following commands to disable snap services

sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded
sudo systemctl disable snapd.snap-repair.timer

1.3 Restart the system

sudo reboot

1.4 Now the snap service will not start on system startup

2 Removing Snap

To uninstall snap (If necessary), we need to make sure snap is not used at all.

If we want to uninstall/remove snap just follow the below steps

2.1 List all snaps

snap list

2.2 If there is any installed snap pckage e.g. bashtop, remove all of them one by one

sudo snap remove bashtop

2.3 Find the snap core service directory ID

df

From the output, under the “Mounted on” column, find the ones with “/snap/core/xxxx”

2.4 Unmount the snap core service

sudo umount /snap/core/xxxx

2.5 Remove all snapd package

sudo apt purge snapd

2.6 Remove all directories (If necessary), be careful with the rm command, we will lose data if done incorrectly

rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd

서버에서 주기적으로 Ping 하고 이메일 알람 전송

다음과 같은 스크립트 추가 후,

crontab 에

* * * * * 사용자 실행

추가

#!/bin/sh
HOSTS=”SERVER ADDRESS”
COUNT=1
EMAIL=”EMAIL ADDRESS”

pingtest(){
  for myhost in “$@”
  do
    echo “host ping : $HOSTS”
    ping -c “$COUNT” “$HOSTS” -w 5 && return 1
  done
  return 0
}
pingtest $HOSTS
if [ $? -eq 1 ]
then
  #echo “Everyting is fine” | mail -s “Server is OK ” $EMAIL
  echo “Everyting is fine”
else
  echo “Server ($HOSTS) Pint Test Failed at $(date)” | mail -s “Server is down from KPOPMART DB” $EMAIL
  echo “Host ($HOSTS) is down (PING failed) at $(date)”
fi

텍스트큐브에서 워드프레스로 이전했습니다.

지난 12년을 사용하던 텍스트 큐브에서 워드프레스로 이전했습니다.

미루고 미루다가.. 결국은 이전했습니다.

이전하면서 각 글의 링크가 틀어졌지만 선택의 여지가 없었네요.

찾고자 하시는 글이 있으시면 오른쪽 상단 검색에서 찾아주시기 바랍니다.

감사합니다.

how to upgrade openssl for apache 2.2.29 – still using old 0.9.8 version

I am running a 10.04LTE server where I do want to upgrade openssl for apache.

Therefore I downloaded openssl 1.0.2c and apache 2.2.29 and compiled both. The server is starting, but is using the old ssl version:

curl --head http://localhost
HTTP/1.1 200 OK
Date: Mon, 22 Jun 2015 06:00:06 GMT
Server: Apache/2.2.29 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k
Last-Modified: Sun, 18 Mar 2012 19:56:07 GMT

However, Openssl is installed in new version:

/usr/local/ssl/bin/openssl version
OpenSSL 1.0.2c 12 Jun 2015

While the original version stayes in place:

openssl version
OpenSSL 0.9.8k 25 Mar 2009

I compiled apache with:

./configure --with-included-apr --prefix=/usr/local/apache2 --enable-so     
--enable-rewrite --with-ssl=/usr/local/ssl --enable-ssl=shared
--enable-deflate --enable-expires --enable-headers 

Apache did not start before I included:

LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so

According to the mod ssl website this is only available for apache 1.x

Not sure what is going wrong here. Thank you for any help!

1 Answer
1

The problem is that your Apache installation is unable to link the shared libraries of your new OpenSSL installation. Run the command ldd /usr/local/apache/modules/mod_ssl.so (with the apporpriate path to your mod_ssl.so). You’ll see that mod_ssl.so is not linking to the libraries in /usr/local/ssl/lib

You have a couple options to fix the problem:

Option #1 – Link in the libraries:

Open /etc/ld.so.conf.d/local.conf for editing and add the following line: /usr/local/openssl/lib

Re-compile Apache (remember to make clean) and it should work.

If that doesn’t work. You could also try specifying LDFLAGS directly with your configure command:

LDFLAGS=-L/usr/local/ssl/lib \ ./configure --with-included-apr --prefix=/usr/local/apache2 --enable-so     
--enable-rewrite --with-ssl=/usr/local/ssl --enable-ssl=shared
--enable-deflate --enable-expires --enable-headers

Option #2 – Upgrade the system OpenSSL:

Re-install OpenSSL with the config line ./config --prefix=/usr --openssldir=/usr/local/openssl shared

When the prefix is not specified in your config line, the OpenSSL installer will default to /usr/local/ssl.

Quick install instructions:

cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -zxf openssl-1.0.2*
cd openssl-1.0.2*
./config --prefix=/usr --openssldir=/usr/local/openssl shared
make
make test
make install

아파치 SSL 로 구동시 키 비밀번호 없애기 – Some of your private key files are encrypted for security reasons.

SSL 인증서 생성시 인증키 값을 넣을경우
아파치 구동시 키 비밀번호를 입력하지 않으면 구동되지 않는다.



Apache/2.2.13 mod_ssl/2.2.13 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.


Server test.com:443: (RSA)
Enter pass phrase:



서버를 관리하는 입장에서는 비밀번호를 입력하지 않고 자동으로 웹서버를
구동하여야할때가 있다.
 
인증서 생성시 이미 넣어버린 키는 아래와 같이 하면 간단하게 없앨 수 있다.
단, 당연한 이야기지만 기존 비밀번호는 알고있어야한다.-.-;


cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

다시 아파치를 restart 해본다.