반응형

윈도우 터미널에서 지원하는 wsl2 ubuntu 22-04 버전은 기본적으로 systemctl 을 지원하지 않습니다.

 

그래서 수동 설정으로 사용할 수 있도록 설정을 해야하는데 방법은

 

sudo apt install git

git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git

cd ubuntu-wsl2-systemd-script

sudo bash ubuntu-wsl2-systemd-script.sh --force

위의 명령어를 순서대로 입력해 서 설치하고

 

터미널을 재시작 하시면 systemctl 이 활성화 됩니다.

반응형
반응형

윈도우 wsl 에서 uibuntu 22-04 버전을 사용하던 중

Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.freedesktop.PackageKit: Permission denied

 

Error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct

 

이런 에러가 뜨는 현상이 발생했습니다.

 

그래서 구글링을 한 결과

 

https://lists.debian.org/debian-user/2015/08/msg01066.html

 

[SOLVED] Re: Failure during upgrade wheezy -> jessie

 

lists.debian.org

위의 자료를 참고하여

 

/usr/lib/dbus-1.0

아래의

dbus-daemon-launch-helper

파일의 chmod 를 u+s 로 바꾸어주니 해결이 되었습니다.

 

chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper

혹시 이렇게 해도 해결이 안되시는 분들이 계시다면

 

https://bugs.launchpad.net/ubuntu/+source/blueman/+bug/1542723 

 

Bug #1542723 “dialog with error “org.freedesktop.DBus.Error.Spaw...” : Bugs : blueman package : Ubuntu

After login a dialog with error `org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.blueman.Mechanism: Permission denied` is displayed. It doesn't seem to relate to any error because bluetooth functions fine and it's unhelpful becau

bugs.launchpad.net

https://askubuntu.com/questions/627356/xubuntu-15-04-cannot-suspend-when-inactive/851760#851760

 

Xubuntu 15.04 Cannot Suspend when inactive

I have Xubuntu 15.04 installed and having some issues with Suspend. It Suspends fine when done from the command line or the shutdown menu or even by closing the lid. I have set the inactivity timer...

askubuntu.com

위의 두 링크를 참조하여 추가로 설정값을 바꿔보시는것도 도움이 될 것 같습니다.

반응형

'개발 > linux,ubuntu,centos' 카테고리의 다른 글

window wsl2 systemctl 활성화  (1) 2023.03.20
리눅스 파일 갯수 보기  (0) 2023.02.07
리눅스 파일 디렉토리만 목록보기  (0) 2023.02.07
반응형

 

리눅스에서 현재 디렉토리의 파일의 갯수를 보고 싶으면
1
ls -l | wc -l
cs
위의 명령어를 입력하시면 됩니다.

 

반응형
반응형

리눅스에서 디렉토리 목록만 보고 싶다면

 

1
ls -d */
cs

 

위의 명령어를 입력하면 된다.

반응형

+ Recent posts