레이블이 Ubuntu인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Ubuntu인 게시물을 표시합니다. 모든 게시물 표시

2019/09/28

How to Install Mame on Jetson Nano

I confirmed launching mame for ubuntu 18.04 on Jetson Nano.
Option 1 is confirmed at this time, but option 2 is examining now.

You can install mame by APT for ubuntu 18.04 - L4T - (Option 1)
$ sudo apt install mame
$ DBUS_FATAL_WARNINGS=0 mame

But you can build latest version of mame - (Option 2)
$ git clone https://github.com/mamedev/mame.git -b mame0214
$ cd mame
$ make

Building mame takes long time to compile, so you need more patient than using apt

You can check it out and create branch after clone
$ git clone https://github.com/mamedev/mame.git
$ git checkout tags/mame0214 -b mame0214

Fix desktop sharing setting on L4T - Ubuntu 18.04


1. Fix crash when entering Desktop Sharing in Settings
  • $ sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
  • Add lines below at proper position
    <key name="enabled" type="b">
      <summary>Enable remote access to the desktop</summary>
      <description>
        If true, allows remote access to the desktop via the RFB
        protocol. Users on remote machines may then connect to the
        desktop using a VNC viewer.
      </description>
      <default>false</default>
    </key>
  • $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas

2. Launch Desktop Sharing at startup 
  • Select a button at top left on Desktop after logged in
  • Search "Startup Applications" and select it
  • Select "Add" and fill some information on dialog
    • Name: Desktop Sharing
    • Command: /usr/lib/vino/vino-server
    • Comment: Launch Desktop Sharing

3. Reboot and connect by using your VNC viewer
  • $ sudo reboot

References:
https://bugs.launchpad.net/ubuntu/+source/unity-control-center/+bug/1741027/comments/11
https://askubuntu.com/questions/1062727/how-to-get-vino-vnc-server-to-start-on-startup-in-ubuntu-18-04-1

2011/10/13

Linux에서 Android Target 연결하기

1. Android SDK 설치

2. Target 을 USB로 연결

3. USB ID 획득
    lsusb 명령어로 Target의 USB ID를 확인

    Bus 001 Device 002: ID 04e8:685e [Manufacturer]
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

    새로 연결된 타겟 뒤의 ID만 확인하시면 됩니다.

4. /etc/udev/rules.d/ 51-android.rules 파일에 USB ID 등록
위에서 얻은 ID를 해당 파일에 넣어주면 됩니다.
    파일은 보통 존재하지 않으며, 새로 만들어주시면 됩니다.

    sudo vi /etc/udev/rules.d/51-android.rules

    파일을 연 후에 아래와 같이 적어주시면 됩니다.

    SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="685e", MODE="0666"

    타겟마다 ID가 틀릴 수 있기 때문에 lsusb 명령어를 통해 얻은 ID를 확인해주셔야합니다.

 
5. Target 분리 후 다시 연결


6. adb devices 명령어로 확인하였을 때 아래와 같이 나오면 됩니다.

    List of devices attached
    M110823949234 device

[출처] http://www.appcreator.com/app-inventor-connecting-ubuntu-and-samsung-galaxy-s