xrdp 접속시 검은화면.. "could not acquire name on session bus xrdp" 메시지 해결
#could not acquire name on session bus xrdp
c1 123 lightdm seat0 - active no -
c2 1001 www - - active yes 3 days ago
c3 1001 www - - active no -
c4 1001 www - - active no -
# loginctl kill-session c2
# loginctl kill-session c3
# loginctl kill-session c4
$ vim /etc/ssh/sshd_config
# 하단 구문 추가 후 저장
PubkeyAcceptedAlgorithms +ssh-rsa
$ sudo systemctl restart sshd
Adding PHPMyAdmin to Laravel Sail
원문 : https://ecwebservices.medium.com/adding-phpmyadmin-to-laravel-sail-64823687e084
Adding PHPMyAdmin to Laravel Sail
PHPMyAdmin is very widely used, and it makes MySQL much easier.
ecwebservices.medium.com
1. docker-compose.yml 수
...
depends_on:
- mysql
- redis
- minio
- phpmyadmin
...
phpmyadmin:
image: 'phpmyadmin:latest'
ports:
- 8080:80
networks:
- sail
environment:
- PMA_ARBITRARY=1
2. sail up -d
3. localhost:8080 접속
4. 서버 필드에는 mysql 로 기입.
WSL 기본 리눅스(기본값) 설정하기
Create a public SSH key from the private key?
원문 : https://serverfault.com/questions/52285/create-a-public-ssh-key-from-the-private-key
Create a public SSH key from the private key?
Let's suppose I have a SSH key, but I've deleted the public key part. I have the private key part. Is there some way I can regenerate the public key part?
serverfault.com
$ ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
laravel 다국어 설정
원문 : https://digitalogia.tistory.com/282
Laravel - 다국어설정, 지역화에 대해서
Laravel 11 버전 이상에서.env 파일에서만 세팅하면 끝난다.APP_TIMEZONE=Asia/SeoulAPP_LOCALE=koAPP_FALLBACK_LOCALE=koAPP_FAKER_LOCALE=ko_KR 지역 설정 하기config/app.php'timezone' => 'Asia/Seoul','locale' => 'ko', 'fallback_locale' =>
digitalogia.tistory.com
[ .env ]
APP_TIMEZONE=Asia/Seoul
APP_LOCALE=ko
APP_FALLBACK_LOCALE=ko
APP_FAKER_LOCALE=ko_KR
git ignore 안될 때!! (node_modules 제거)
MSSql Server 사용자 편집 에러
백업에서 복원시 사용자 정보 수정시 에러 날때.
EXEC sp_change_users_login 'Auto_Fix', '계정이름'
작업 스케줄링 작동 안될때 : No scheduled commands are ready to run
$ php artisan schedule:run
No scheduled commands are ready to run.
$ php artisan up
Application is now live.
$ php artisan schedule:run
Running scheduled command:
.vim에서 마지막 수정위치 기억하기
원문 : https://saturnkim.dev/posts/vim-remembering-last-position/
vimrc
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
chown username .viminfo
전체 환경에 적용하려면 /etc/vim/vimrc에 추가