[Mac] XShell lrzsz 설정 하기

Posted 2022. 3. 27. 00:53

https://joycecoder.tistory.com/106

 

[Macbook] lrzsz 설치

개요 lrzsz 는 터미널에서 접속한 원격지에서 호스트 PC 로 파일을 전송 및 수신을 가능하게 하는 툴이다. macbook (macOS Big Sur 11.2.3) 에서 해당 유틸리티를 설치하는 방법을 정리한다. 1. homebrew 설치

joycecoder.tistory.com

위에 참고해서 lrzsz 를 설치한 후에 linux와는 다르게 xshell 에서 설정을 추가로 진행하지 않으면 파일 전송 시에 연결이 끊어진다. 원인은 명령어 옵션들이 조금 달라서 문제가 생기는 것으로 보인다. (xshell default: rz -E )

방법은 xshell에서 rz 설정을 변경하면 된다. 

 

 

여기서 위에 Zmodem 명령어 설정을 아래 값으로 변경해준다.

 

rz --rename --escape --binary --bufsize 4096

 

그리고 xshell에서 드래그 앤 드롭을 해보면 잘 된다. 

Changing keyboard shortcut tip (Hotkey)

Posted 2021. 4. 27. 19:27

I installed many tools for changing shortcuts.

Among them, 'AutoKey'  is the best for my work circumstance. 

 

sudo apt install autokey-gtk

 

AutoKey's graphic interface helps a user be able to maintain many scripts.

In my case, I need to change Copy and  Paste shortcuts to Alt+C and Alt+V.

 

Here is the example script.

keyboard.send_keys('<ctrl>+c')

 

Using this script, you can change your copy shortcut except for 'Guake' application which is a good terminal app.

And then, you can set Alt+c on Guake's shortcut to your own preference - if you do not set Window Filter, Guake recognizes Alt+c as ^C, and in rare cases, it might lead to disaster. 

아래 문구로 인하여 윈도우에서 접속이 되지 않을 때 인터넷 보면 많은 방법들이 존재

 

SMB 최소 버전 정보 변경 또는 윈도우 설정 변경.

 

 

 

조직의 보안 정책에서 인증되지 않은 게스트 액세스를 차단하므로 이 공유 폴더에 액세스할 수 없습니다. 이러한 정책은 안전하지 않거나 악의적인 장치로부터 PC를 보호하도록 도와줍니다.

하지만, 아래처럼 설정 값을 빼주기만 해도 되는 경우가 있으니 한번 해볼 것

 

sudo vi /etc/samba/smb/conf

 

map to guest = bad user   -> 이거 주석처리

 

 

인증 실패가 뜨는 경우

 

1. 패스워드 변경 시 

 

2. two factor 인증 추가 시 

lee-seul.github.io/other/git/2018/04/13/github-Two-factor-authentication.html

 

 

 

 

 

이젠 windows 10 store에서 여러개의 Linux 배포판을 지원한다




여러개를 설치했는데 bash.exe 명령어로 실행되는 리눅스는 하나이므로 따로 설정이 필요하다.

못찾은건지 없는건지 방법을 못찾아서 레지스트리를 직접 변경하여 설정한다.


HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss


여기에 들어가보면 하위에 설치했던 배포판 리눅스들이 있고 DefaultDistribution 값에 데이터가 설정되어있다.


Lxss\ 하위에 있는 키를 보면 DistributionName에 설치한 리눅스 이름이 있다.




그리고 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss에서  DefaultDistribution값에 

해당 배포판의 키, 예를들면 {2d7ccfa2-5584-49c3-be2a-7245325422b5} 처럼 넣으면 

다음번 bash 부터 변경되는 것을 확인할 수 있다.



[solved] samba / smbd error

Posted 2017. 2. 1. 18:53

[2016/05/10 13:54:18.062733,  0] ../source4/smbd/server.c:372(binary_smbd_main)
  samba version 4.3.9-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2015
[2016/05/10 13:54:18.552887,  0] ../source4/smbd/server.c:477(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2016/05/10 13:54:18.553081,  0] ../lib/util/become_daemon.c:111(exit_daemon)
  STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22

 

 

/etc/samba/smb.conf

 

+++++add

 

server services = +smb -s3fs
dcerpc endpoint servers = +winreg +srvsvc

 

 

 

reference : https://wiki.samba.org/index.php/Samba4/s3fs

해결 방법. 아래와 같이 하면 해결된다.

 

 

 

 

저기서 [높은 DPI 설정에서 디스플레이 배율을 사용하지 않음]에 체크를 한다.

 

글자가 흐리게 보이는 원인은 노트북과 같이 화면이 작은 디스플레이의 경우 윈도우에서 강제로 글자를 확대하기 때문에 생기는 현상으로 보인다.

 

 

윈도우 10 버전으로 터치패드 드라이버 업데이트 하기.

오류: Connection timed out after 20 seconds of inactivity
오류: 디렉터리 목록 조회 실패

처음에는 passive 문제인줄 알았으나..

 

암호화 방식문제인 경우도 있음.

plain으로 바꾸면 됨

 

 

 

물론 그 환경에 맞춰야됨

Samba 설치하기

Posted 2014. 11. 21. 21:36

1. samba 설치하기 

 # apt-get install samba


2. samba 설정하기

 # vi /etc/samba/smb.conf

  * 아래 서버설정처럼

 # service smbd restart  또는 /etc/init.d/smbd restart

[global]

   security = user

   encrypt passwords = true

   passdb backend = smbpasswd



   workgroup = WORKGROUP


   #보안설정상 

   server string = Windows Server


   dns proxy = no

   log file = /var/log/samba/log.%m

   max log size = 1000

   syslog = 0

   panic action = /usr/share/samba/panic-action %d

   server role = standalone server

   passdb backend = tdbsam   obey pam restrictions = yes

   unix password sync = yes

   passwd program = /usr/bin/passwd %u

   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

   pam password change = yes

   map to guest = bad user

   usershare allow guests = yes


   dos charset = CP949

   unix charset = UTF-8

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


# 보여질 파일 공유 이름

[media]

    comment = Data (share)

    # 경로

    path = /samba/data

    browseable = yes

    read only = no

    create mask = 0775

    directory mask = 0775


3. 계정 등록

 # smbpasswd -a [계정이름]

    ** 주의사항. 현 시스템에 존재하는 계정으로 해야함,,,, 비밀번호는 달라도 상관없음