Linux 4

Windows 공유 폴더 Linux Samba mount error

windows 공유 폴더를 linux에서 mount하는 경우, host is down 발생 이 경우 version 문제라서 vers=1.0을 써보라고 했지만 dmesg "vers=1.0 (cifs) mount not permitted when legacy dialects disabled" 만 뜨면서 안되었다. 이 경우 windows에서 samba v2,v3가 enable 되었는지 확인하고 enable되지 않았다면 enable 시키고 해보자 windows에서 관리자 권한의 power shell 실행 enable 여부 확인 Get-SmbServerConfiguration | Select EnableSMB2Protocol 결과가 false면 아래 명령어로 true로 변경 Set-SmbServerConfigur..

shell command로 aws 정보 찾기

에전 방식이기는 하지만 linux shell에서 현재 ec2의 정보를 보는 법은 다음과 같다. curl http://169.254.169.254/latest/meta-data/instance-type instance-type 대신에 아래 값을 넣으면 관련 정보가 나온다. 현재도 동작하는지는 확인이 필요. 다만, 과거 정보 기록차 남겨둔다. 요즘에는 ec2 meta 하면 될 듯. ami-id ami-launch-index ami-manifest-path block-device-mapping/ hostname instance-action instance-id instance-type kernel-id local-hostname local-ipv4 mac network/ placement/ public-hos..

개발/AWS 2020.02.01