Pranten
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
https://dartsim.github.io/install_dart_on_ubuntu.html
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)
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
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
Pranten