Linux/Ubuntu2022. 1. 28. 09:56

아래의 명령어를 추가하면 해당 아키텍쳐를 추가하고

아키텍쳐별 패키지를 설치할 수 있다고 하는데

sudo dpkg --add-architecture armhf
sudo apt-get install -y crossbuild-essential-armhf \
                        libpython3-dev:armhf \
                        libusb-1.0-0-dev:armhf

sudo dpkg --add-architecture arm64
sudo apt-get install -y crossbuild-essential-arm64 \
                        libpython3-dev:arm64 \
                        libusb-1.0-0-dev:arm64

[링크 : https://github.com/google-coral/edgetpu]

 

실제로 접속해서 보니 binary-armhf는 없고 binary-amd64나 binary-i386만 존재한다.

리파지터리를 다른데서 뒤져봐야 하나?

E: http://kr.archive.ubuntu.com/ubuntu/dists/focal/main/binary-armhf/Packages 파일을 받는데 실패했습니다  404  Not Found [IP: 91.189.91.39 80]
E: http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-armhf/Packages 파일을 받는데 실패했습니다  404  Not Found [IP: 91.189.91.38 80]
E: http://kr.archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-armhf/Packages 파일을 받는데 실패했습니다  404  Not Found [IP: 91.189.91.39 80]
E: http://kr.archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-armhf/Packages 파일을 받는데 실패했습니다  404  Not Found [IP: 91.189.91.39 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

 ports.ubuntu.com 에서 발견!

 

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main

[링크 : https://askubuntu.com/questions/705895/]

[링크 : http://ports.ubuntu.com/ubuntu-ports/dists/focal/main/binary-armhf/]

 

+

아오.. 당췌 되질 않네 ㅠㅠ

$ sudo apt-get install -y crossbuild-essential-armhf libpython3-dev:armhf libusb-1.0-0-dev:armhf
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
몇몇 패키지를 설치할 수 없습니다. 요청한 상황이 불가능할 수도 있고,
불안정 배포판을 사용해서 일부 필요한 패키지를 아직 만들지 않았거나,
아직 Incoming에서 나오지 않은 경우일 수도 있습니다.
이 상황을 해결하는데 다음 정보가 도움이 될 수도 있습니다:

다음 패키지의 의존성이 맞지 않습니다:
 libpython3-dev:armhf : 의존: libpython3.8-dev:armhf (>= 3.8.2-1~) 하지만 %s 패키지를 설치하지 않을 것입니다
 libusb-1.0-0-dev:armhf : 의존: libusb-1.0-0:armhf (= 2:1.0.23-2build1) 하지만 %s 패키지를 설치하지 않을 것입니다
E: 문제를 바로잡을 수 없습니다. 망가진 고정 패키지가 있습니다.

[링크 : https://gist.github.com/josephlr/5034c933bbcfddc25a9275037821b048]

 

으헝?! 이런 무시무시한 내용이? 포맷하게 될 지도 모르겠군아 ㅋㅋㅋㅋㅋ

시스템에 무언가 해가 되는 작업을 하려고 합니다.
계속하시려면 다음 문구를 입력하십시오: 'Yes, do as I say!'
 ?]

 

+

E: 하위 프로세스 [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true 프로세스가 오류 코드(100)를 리턴했습니다
E: Failure running hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true
E: Problem executing scripts APT::Install::Pre-Invoke '[ ! -f /usr/lib/ubuntu-advantage/apt-esm-hook ] || /usr/lib/ubuntu-advantage/apt-esm-hook pre-invoke || true'
E: Sub-process returned an error code
E: 하위 프로세스 [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true 프로세스가 오류 코드(100)를 리턴했습니다
E: Failure running hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true

 

/etc/apt/apt.conf.d$ sudo mv 20snapd.conf .20snapd.conf

[링크 : https://i5i5.tistory.com/511]

 

아놔.. 해도해도 막히네

E: Problem executing scripts APT::Install::Pre-Invoke '[ ! -f /usr/lib/ubuntu-advantage/apt-esm-hook ] || /usr/lib/ubuntu-advantage/apt-esm-hook pre-invoke || true'
E: Sub-process returned an error code

 

경고를 잘 봤어야 했는데...

그냥 시스템 날아감 ㅋㅋ 포맷 필요 ㅠㅠ

'Linux > Ubuntu' 카테고리의 다른 글

우분투 크롬, 구글 로그인이 안됨  (0) 2022.02.14
크로스 컴파일 패키지  (2) 2022.01.28
debian 소스 받아 빌드하기  (0) 2021.12.02
ubuntu trim manually  (0) 2021.10.19
ubuntu 무선 미러링  (0) 2021.07.13
Posted by 구차니
Linux/Ubuntu2021. 12. 2. 17:21

'Linux > Ubuntu' 카테고리의 다른 글

크로스 컴파일 패키지  (2) 2022.01.28
ubuntu x86에서 arm용 아키텍쳐 패키지 추가하기(주의)  (0) 2022.01.28
ubuntu trim manually  (0) 2021.10.19
ubuntu 무선 미러링  (0) 2021.07.13
gpsd 현재 좌표 얻기  (0) 2021.06.05
Posted by 구차니
Linux/Ubuntu2021. 10. 19. 23:59

 

 

$ fstrim -v /
fstrim: /: FITRIM ioctl failed: 명령을 허용하지 않음

$ sudo fstrim -v /
/: 197.8 GiB (212384423936 bytes) trimmed

[링크 : https://www.thefastcode.com/ko-krw/article/ubuntu-doesn-t-trim-ssds-by-default-why-not-and-how-to-enable-it-yourself]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu x86에서 arm용 아키텍쳐 패키지 추가하기(주의)  (0) 2022.01.28
debian 소스 받아 빌드하기  (0) 2021.12.02
ubuntu 무선 미러링  (0) 2021.07.13
gpsd 현재 좌표 얻기  (0) 2021.06.05
vino server without login  (0) 2021.04.14
Posted by 구차니
Linux/Ubuntu2021. 7. 13. 18:36

일단 내 노트북은 2세대라서 그런가.. 일단 실패 ㅠㅠ

$ flatpak install org.gnome.NetworkDisplays.flatpakref

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/minimonk/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

The remote 'flathub', referred to by 'org.gnome.NetworkDisplays' at location https://dl.flathub.org/repo/ contains additional applications.
Should the remote be kept for future installations? [Y/n]: 
Required runtime for org.gnome.NetworkDisplays/x86_64/stable (runtime/org.gnome.Platform/x86_64/40) found in remote flathub
Do you want to install it? [Y/n]: 

org.gnome.NetworkDisplays permissions:
    ipc                        network     fallback-x11       pulseaudio
    wayland                    x11         file access [1]    dbus access [2]
    system dbus access [3]

    [1] xdg-run/gvfs, xdg-run/gvfsd
    [2] org.a11y.Bus, org.gtk.vfs, org.gtk.vfs.*
        ID                                              Branch            Op           Remote            Download
 1. [—] org.freedesktop.Platform.GL.default             20.08             i            flathub              73.2 MB / 106.4 MB
 2. [ ] org.freedesktop.Platform.VAAPI.Intel            20.08             i            flathub            < 11.6 MB
 3. [ ] org.freedesktop.Platform.openh264               2.0               i            flathub             < 1.5 MB
 4. [ ] org.gnome.NetworkDisplays.Locale                stable            i            flathub             < 2.3 MB (partial)
 5. [ ] org.gnome.Platform.Locale                       40                i            flathub           < 333.7 MB (partial)
 6. [ ] org.gtk.Gtk3theme.Yaru                          3.22              i            flathub           < 226.2 kB
 7. [ ] org.gnome.Platform                              40                i            flathub           < 363.7 MB
 8. [ ] org.gnome.NetworkDisplays                       stable            i            flathub             < 5.0 MB

Installing 8/8… ████████████████████ 100%  759.4 kB/s  00:00

$ flatpak run org.gnome.NetworkDisplays

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/minimonk/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Gtk-Message: 18:31:41.762: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:31:41.763: Failed to load module "canberra-gtk-module"

** (gnome-network-displays:2): WARNING **: 18:31:42.615: Error calling DBus method during Screencast portal initialization: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

** (gnome-network-displays:2): WARNING **: 18:31:42.615: Error initing screencast portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

** (gnome-network-displays:2): WARNING **: 18:31:42.615: Screencasting portal is unavailable! It is required to select the monitor to stream!

** (gnome-network-displays:2): WARNING **: 18:31:42.615: Falling back to X11! You need to fix your setup to avoid issues (XDG Portals and/or mutter screencasting support)!



[링크 : https://askubuntu.com/questions/1017249/samsung-tv-mirror-screen]

 

근데 내 노트북이 요구사항이 되나?

반대로.. 굳이 저런 요구사항이 필요로 되는 이유가 멀까?

[링크 : https://www.intel.co.kr/content/www/kr/ko/support/articles/000014932/emerging-technologies.html]

'Linux > Ubuntu' 카테고리의 다른 글

debian 소스 받아 빌드하기  (0) 2021.12.02
ubuntu trim manually  (0) 2021.10.19
gpsd 현재 좌표 얻기  (0) 2021.06.05
vino server without login  (0) 2021.04.14
ubuntu gnome-control-center over ssh  (0) 2021.04.14
Posted by 구차니
Linux/Ubuntu2021. 6. 5. 07:52

대~충 보니 gpspipe 라는 유틸로 받아올수도 있고 api로도 제공하는 것 같은데..

일단 받아야 할게 위도,경도,속도,방향,고도 정도일려나?

 

[링크 : https://stackoverflow.com/questions/28387230/use-gpsd-or-cgps-to-return-latitude-and-longitude-then-quit]

[링크 : https://bbs.archlinux.org/viewtopic.php?id=166934]

[링크 : https://gpsd.gitlab.io/gpsd/client-howto.html]

[링크 : https://gpsd.gitlab.io/gpsd/gpspipe.html]

 

 

 

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu trim manually  (0) 2021.10.19
ubuntu 무선 미러링  (0) 2021.07.13
vino server without login  (0) 2021.04.14
ubuntu gnome-control-center over ssh  (0) 2021.04.14
우분투 패키지 버전 확인하기  (0) 2020.12.16
Posted by 구차니
Linux/Ubuntu2021. 4. 14. 18:59

서비스로 만들어서 넣거나

자동 로그인 켜거나

 

[링크 : https://askubuntu.com/questions/636270/vino-vnc-server-unable-to-start-on-startup]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 무선 미러링  (0) 2021.07.13
gpsd 현재 좌표 얻기  (0) 2021.06.05
ubuntu gnome-control-center over ssh  (0) 2021.04.14
우분투 패키지 버전 확인하기  (0) 2020.12.16
ubuntu 20.04 한글입력기  (2) 2020.12.07
Posted by 구차니
Linux/Ubuntu2021. 4. 14. 15:46

ubuntu 20.04 에서 SSH X11 forwarding 상태로 실행하면

devices / details만 나오고 내용이 없는 상태로 나온다.

 

다만.. Display 설정과 화면 공유(display sharing)설정이 안되네 ㅠㅠ

$ env XDG_CURRENT_DESKTOP=GNOME gnome-control-center

[링크 : https://blog.rixa.kr/58]

'Linux > Ubuntu' 카테고리의 다른 글

gpsd 현재 좌표 얻기  (0) 2021.06.05
vino server without login  (0) 2021.04.14
우분투 패키지 버전 확인하기  (0) 2020.12.16
ubuntu 20.04 한글입력기  (2) 2020.12.07
/dev/ipmi를 보고 싶다!!!  (0) 2020.11.07
Posted by 구차니
Linux/Ubuntu2020. 12. 16. 11:19

apt list 명령어나

aptitude 패키지를 설치해서 해당 유틸리티로 확인하는게 가장 확실한 듯

 

[링크 : https://www.cyberciti.biz/faq/debian-ubuntu-linux-apt-get-aptitude-show-package-version-command/]

 

+

만약에 해당 버전 배포판에서 원하는 버전(그러니까 구버전)이 없으면 어떻게 해야하려나?

'Linux > Ubuntu' 카테고리의 다른 글

vino server without login  (0) 2021.04.14
ubuntu gnome-control-center over ssh  (0) 2021.04.14
ubuntu 20.04 한글입력기  (2) 2020.12.07
/dev/ipmi를 보고 싶다!!!  (0) 2020.11.07
우분투에서 부팅 USB 만들기(iso)  (0) 2020.10.06
Posted by 구차니
Linux/Ubuntu2020. 12. 7. 17:51

설정에서 한글 입력기를 추가로 설정을 해주어야 한다.

외산 노트북이라 한영키가 없다 보니 기본 설정으로는 안되고

오른쪽 alt 를 추가해주어도 한영 변환이나

오른쪽 ctrl로 한자 변환이 되지 않는다 -_ㅠ

ibus라 그런가.. 다른걸로 해봐야하나?

 

[링크 : https://velog.io/@yujo/Ubuntu-20.04한글-입력기-설치-설정하기]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu gnome-control-center over ssh  (0) 2021.04.14
우분투 패키지 버전 확인하기  (0) 2020.12.16
/dev/ipmi를 보고 싶다!!!  (0) 2020.11.07
우분투에서 부팅 USB 만들기(iso)  (0) 2020.10.06
jaaa - JACK and ALSA Audio Analyser  (0) 2020.10.05
Posted by 구차니
Linux/Ubuntu2020. 11. 7. 15:24

콴타 서버  파워가 이제 돌려받아져서 오랫만에 켜서 테스트 해보는데

영 안뜨네.. 얘도 ipmi 가 있는것 같긴한데 되는 장비를 못 보겠다 ㅠㅠ

$ sudo apt install ipmitool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  freeipmi-common libfreeipmi17 libopenipmi0 libsensors-config libsensors5
  libsnmp-base libsnmp35 openipmi
Suggested packages:
  freeipmi-tools lm-sensors snmp-mibs-downloader
The following NEW packages will be installed:
  freeipmi-common ipmitool libfreeipmi17 libopenipmi0 libsensors-config
  libsensors5 libsnmp-base libsnmp35 openipmi
0 upgraded, 9 newly installed, 0 to remove and 6 not upgraded.
Need to get 3298 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

$ ipmitool
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

$ sudo dmidecode -t 1
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: Quanta
        Product Name: Freedom
        Version: C1
        Serial Number: To be filled by O.E.M.
        UUID: 26f47cac-5bb2-11d9-899f-9c4c68493100
        Wake-up Type: LAN Remote
        SKU Number: 16DIMM
        Family: Server

$ sudo dmidecode -t 2
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: Quanta
        Product Name: Winterfell
        Version: To be filled by O.E.M.
        Serial Number: To be filled by O.E.M.
        Asset Tag: To be filled by O.E.M.
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Left
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

$ sudo dmidecode -t 3
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0003, DMI type 3, 22 bytes
Chassis Information
        Manufacturer: Quanta
        Type: Rack Mount Chassis
        Lock: Not Present
        Version: To Be Filled By O.E.M.
        Serial Number: To Be Filled By O.E.M.
        Asset Tag: To Be Filled By O.E.M.
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: None
        OEM Information: 0x00000000
        Height: 2 U
        Number Of Power Cords: 1
        Contained Elements: 0
        SKU Number: To be filled by O.E.M.

$ sudo modprobe ipmi_devintf
$ ll /dev/i
i2c-0    initctl  input/
$ sudo modprobe ipmi_si
modprobe: ERROR: could not insert 'ipmi_si': No such device

$ dmesg | tail
[  197.942225] IPMI message handler: version 39.2
[  197.944408] ipmi device interface
[  210.061984] ipmi_si: IPMI System Interface driver
[  210.062167] ipmi_si: Unable to find any System Interface(s)

 

+

[링크 : http://coffeenix.net/board_print.php?bd_code=1765]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 패키지 버전 확인하기  (0) 2020.12.16
ubuntu 20.04 한글입력기  (2) 2020.12.07
우분투에서 부팅 USB 만들기(iso)  (0) 2020.10.06
jaaa - JACK and ALSA Audio Analyser  (0) 2020.10.05
ipmitool  (0) 2020.09.24
Posted by 구차니