Wednesday, February 22, 2023

How to install Dart and Android Stdio in Linux / Mint 21.1 (Vera)

 

uname -a

: Linux HOST 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

 

■ Doc. > Start > Install > Linux

  https://flutter-ko.dev/docs/get-started/install/linux


1. download Flutter SDK releases

  https://docs.flutter.dev/development/tools/sdk/releases?tab=linux

 

2. extract file

 cd ~/development
 tar xf ~/Downloads/flutter_linux_vX.X.X-stable.tar.xz

 

Ref. Android Studio - How To Install Android Studio on Linux Mint 21 
https://techviewleo.com/how-to-install-android-studio-on-linux-mint/

▶ Install Java
: sudo apt install -y openjdk-11-jdk

▶ Install Android Studio on Linux Mint 21

sudo apt-add-repository ppa:maarten-fonville/android-studio

sudo apt update
sudo apt install android-studio

‘/opt/android-studio-ide.tar.gz’
:  
: /opt/android-studio-ide.tar.g 100%[=================================================>] 967.15M  13.3MB/s    / 80s      
:  
: 2023-02-22 18:06:06 (12.1 MB/s) - ‘/opt/android-studio-ide.tar.gz’
 

sudo apt install android-sdk

 

▶ Configure Android Studio on Linux Mint 21

ls -alh /opt/android-studio-2022.1.1/android-studio/bin/

... profiler.sh
... remote-dev-server.sh
... restart.py
... studio.png
... studio.sh
 

/opt/android-studio-2022.1.1/android-studio/bin/studio.sh

(Quit)

 

3. add path

export PATH="$PATH:`pwd`/flutter/bin"
 

4. download binary

flutter precache

: Running "flutter pub get" in flutter_tools...
: Resolving dependencies in packages/flutter_tools... (2.3s)
:  _fe_analyzer_shared 50.0.0 (53.0.0 available)
: ...


5. check environment

 flutter doctor

: Doctor summary (to see all details, run flutter doctor -v):
: [✓] Flutter (Channel stable, 3.7.4, on Linux Mint 21.1 5.15.0-60-generic, locale ko_KR.UTF-8)
: [✗] Android toolchain - develop for Android devices
: ✗ Unable to locate Android SDK.
: Install Android Studio from: https://developer.android.com/studio/index.html
: On first launch it will assist you in installing the Android SDK components.
: (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
: If the Android SDK has been installed to a custom location, please use
: `flutter config --android-sdk` to update to that location.
:
: [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
: ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
: [✗] Linux toolchain - develop for Linux desktop
: ✗ clang++ is required for Linux development.
: It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
: [!] Android Studio (not installed)
: [✓] Connected device (1 available)
: [✓] HTTP Host Availability
:
: ! Doctor found issues in 4 categories.

--issue

: [✗] Android toolchain - develop for Android devices
: ✗ Unable to locate Android SDK.
: ...
: Android license status unknown.
: Run `flutter doctor --android-licenses` to accept the SDK licenses.
: See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.


: [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
: ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.


: [✗] Linux toolchain - develop for Linux desktop
: ✗ clang++ is required for Linux development.
: It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/

 ⑴-➊ cmdline-tools component is missing

Ref. https://www.fluttercampus.com/guide/202/cmdline-tools-component-is-missing-error-flutter/

Ref. https://memostack.tistory.com/266

 
Add "Android SDK Command-line Tools" in [SDK Tools]

Preferences > Apperanance & Behavior > System Settings > Android SDK

 [SDK Tools] Tab -->

  Android SDK Command-line Tools (latest)


/opt/android-studio-2022.1.1/android-studio/bin/studio.sh

→ Launch SDK Manager

 
  → [SDK Tools] - Android SDK Command-line Tools

 

⑴-
flutter doctor --android-licenses

setting CHROME_EXECUTABLE

#+title: .bashrc .zshrc
#+begin_src sh
# -- flutter
export FLUTTER_HOME=/data/guo/flutter
export PATH=$PATH:$FLUTTER_HOME/bin
CHROME_EXECUTABLE=/usr/bin/chromium
export CHROME_EXECUTABLE
#+end_src


Linux toolchain, clang++

sudo apt install clang


6. Run & check

flutter doctor
 
: Doctor summary (to see all details, run flutter doctor -v):
: [✓] Flutter (Channel stable, 3.7.4, on Linux Mint 21.1 5.15.0-60-generic, locale ko_KR.UTF-8)
: [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
: [✓] Chrome - develop for the web
: [✓] Linux toolchain - develop for Linux desktop
: [✓] Android Studio (version 2022.1)
: [✓] Android Studio
: [✓] Connected device (2 available)
: [✓] HTTP Host Availability
:  
: • No issues found!


/opt/android-studio-2022.1.1/android-studio/bin/studio.sh




Install DART on Ubuntu

https://dartsim.github.io/install_dart_on_ubuntu.html








Monday, November 01, 2021

자전거 - 12년만에 패달질 → Cleat 교체, Saddle 교체, tube/tire (front & rear) replace

11. .. 
21.09 -  40km
21.09 -  30km
21.09 - 120km (Cleat Shoes)

(*) Cleat Shoes - Look-KEO compatible (RC7)
    RC7-0 black (fix angle)
    RC7-6 red (floating type 2˚, 6˚, 9˚)

note.
   RC5 → Look-ARC compatible
   RC9 → SPD compatible

Expense: 

| item            | money | note              |
|-----------------+-------+-------------------|
| cleats shoes    |    60 |                   |
| cleats Look-KEO |    20 | rc7 fixed. 2 sets |
| tire            |    75 | $40 + 35$         |
| tue             |    36 | $18 X 2           |
| saddle          |    25 | $25               |
|-----------------+-------+-------------------|
| sum             |  $216 |                   |
#+TBLFM: @7$2=vsum(@2$2..@6$2)
 (show notation: C-c } / references: C-c ? / update: C-u C-c / run: C-c C-c)





Tuesday, September 28, 2021

PAM authentication error (Mint Ubunt Linux Grub rescue /etc/pam.d/)

 Unable to sudo: PAM authentication error: Module is unknown [closed]

Mint Ubunt Linux Grub rescue /etc/pam.d/ 

 

* Refer: https://stackoverflow.com/questions/25897572/unable-to-sudo-pam-authentication-error-module-is-unknown

 

* Problem.

sudo su -

>>

 PAM authentication error: Module is unknown

 

* Why

sudo apt install kwartz-client

...

(system reboot)

...


* check

ls -alh /etc/pam.d/

...

common-account   <--- changed 1
common-auth      <--- changed 2
common-password  <--- changed 3
common-session   <--- canged 4
common-session-noninteractive   <---changed 5
cron
cups
....


* fix

remove pam with ldap edited file

remove all ldap module session

change 1,2 order


Tuesday, March 24, 2020

ob-js, javascript, nodejs in org babel in Emacs

1. install from default packagge
  > refer from > How to Install Latest Nodejs on LinuxMint 19/18
 ->  https://tecadmin.net/install-latest-nodejs-npm-on-linux-mint/

> install default pacakge with apt-get
sudo apt-get install nodejs

node -v
: v8.xx.x

> remove
sudo apt-remove nodejs
sudo apt remove nodejs-doc

sudo apt remove npm

 sudo apt-get autoremove

2. install from nodejs and github node 10, node 12
https://nodejs.org/en/download/package-manager/
https://github.com/nodesource/distributions/blob/master/README.md

>Node.js v10.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs


- Node.js v12.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

- check
node -v
v12.16.1

npm -v
6.13.4


3. Emacs
  Org-babel-js

3-1. if yo got some eorr like following
https://emacs.stackexchange.com/questions/55690/org-babel-javascript-error

#+begin_src js
  console.log("Hello");
#+end_src

/tmp/babel-8kqQwQ/js-script-shBzKH:1
require('sys').print(require('sys').inspect(function(){
....

+begin_src js :results output
console.log("Hello, World!");
#+end_src

#+RESULTS:
: Hello, World!
(then add org header)

#+PROPERTY: header-args:js :results output


#+begin_src js
console.log("Hello");
#+end_src

#+RESULTS:
: Hello

Saturday, March 21, 2020

알츠하이머 예방 효과 - 엔브렐

은폐된 자료, 알츠하이머 예방 효과

지난 6월 4일 <워싱턴포스트>는 화이자가 엔브렐이 알츠하이머 치매에 효과가 있다는 사실을 은폐했다고 발표했다. 화이자 내부 연구팀이 2015년 보험 기록을 검토하던 중 엔브렐을 복용한 사람이 그렇지 않은 사람에 비해 알츠하이머 발병 위험이 64%나 줄어..

https://news.v.daum.net/v/20190619092102745

Sunday, March 08, 2020

MU / mu4e / short key


C-c RET f mml-attach-file (Attach with MIME)
C-c RET e mml-attach-external (Attach external file)
C-c RET b mml-attach-buffer   (Attach buffer; save to file)
S-return (mu4e-view-save-attach)
R reply
F forward
C compose
m move message other folder
u umark
U umark all
d to trash
D delete mark
? ! mark msg as unread/read

사물인터넷과 LTE의 관계 (NB-IoT, LTE-M)

사물인터넷과 LTE의 관계 (NB-IoT, LTE-M)
..
요금제명월 요금데이터 제공량
LPWA 33330 원100 KB
LPWA 1101,100 원5 MB
LPWA 2202,200 원15 MB

Sunday, December 29, 2019

Wednesday, December 18, 2019

일본 여성들의 전쟁과 평화박물관(WAM : Women's Active Museum on war and peace)

 일본 제국군 위안소 지도공개
> 일본
証言,公文書等,様々な文書を徹底調査
https://wam-peace.org/ianjo/map/

>  동북아역사넷 일본군위안소지도
   http://contents.nahf.or.kr/item/item.do?itemId=iswm
  러시아 중국 북한 대한민국 일본 타이완 베트남 캄보디아 타이 미얀마



How to upgrade to Linux Mint 19.3 - “Tricia” Xfce released!

How to upgrade to Linux Mint 19.3  
- from The Linux Mint Blog by Clem

...

4. Add packages (optional)

Celluloid, gnote, drawing and neofetch were added to Linux Mint 19.3. To install these packages, open a terminal and type:
apt install celluloid gnote drawing neofetch
 
celluloid
celluloid - A simple GTK+ frontend for mpv
SYNOPSIS celluloid [options...]  [filenames|URIs]
DESCRIPTION
       Celluloid  is  a  simple  GTK+  frontend  for  mpv.  Celluloid interacts with mpv via the client API
       exported by libmpv, allowing access to mpv's powerful playback capabilities.

gnote
NAME gnote - A simple note-taking application for Gnome
SYNOPSIS gnote [OPTION] ...
DESCRIPTION This manual page documents briefly the gnote command.
 
drawing - simple drawing like paint or paintbrush
 
 
neofetch - simple system info in terminal base with color


Tuesday, December 10, 2019

It Must Have Been Love

Roxette Singer Dies at 61, December 10, 2019. (news)

Song in Movie Sweet November (2001)

Can't sleep again and played some songs.
I can't recall which movie title is but clearly remember the song title and lyric.

And I found in twitter that Roxette died at today,maybe that makes me recall the song.

But it means nothing at all to me now, viva forever and leave with peace.

Thursday, December 05, 2019

Pranten

 Pranten