Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of micro on RedFlag Linux 🚩红旗 #2484

Closed
englianhu opened this issue Jul 5, 2022 · 4 comments
Closed

Installation of micro on RedFlag Linux 🚩红旗 #2484

englianhu opened this issue Jul 5, 2022 · 4 comments

Comments

@englianhu
Copy link

englianhu commented Jul 5, 2022

sudo apt-get install micro already works at september 4th 2020.

Originally posted by @gabrielcoronel in #583 (comment)

Always working fine with sudo apt install micro on ⚙️Kubuntu but just install UKylin🐉 and now RedFlag Linux 🚩...

:~$ neofetch
        #####           englianhu@ScibrokesTrading 
       #######          -------------------------- 
       ##O#O##          OS: RedFlag Desktop 11.0 x86_64 
       #######          Host: 23-p080d 
     ###########        Kernel: 5.10.0-1-amd64 
    #############       Uptime: 4 hours, 49 mins 
   ###############      Packages: 2804 (dpkg), 3 (snap) 
   ################     Shell: bash 5.0.3 
  #################     Resolution: 1920x1080 
#####################   DE: KDE 
#####################   WM: KWin 
  #################     Theme: RedFlag Dark [KDE], Breeze [GTK3] 
                        Icons: RedFlag-ND-72th-Anniversary [KDE], breeze [GTK3] 
                        Terminal: konsole 
                        CPU: Intel i5-4590T (4) @ 3.000GHz 
                        GPU: NVIDIA GeForce 710M 
                        GPU: Intel HD Graphics 
                        Memory: 8705MiB / 15901MiB 

sudo apt install micro doesn't work and then noticed that it might be 🍥 Debian 11 but not ♻️ Ubuntu...

sudo apt update
sudo apt install snapd
sudo snap install micro --classic

Install via snap as above by refer to https://snapcraft.io/install/micro/ubuntu doesn't work as well.

Eventually installed as below upon refer to https://packages.debian.org/bullseye/amd64/micro/download

:~$ deb http://ftp.de.debian.org/debian bullseye main 
bash: deb:未找到命令
:~$ sudo apt install gdebi* -y
:~$ wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.8-1+b6_amd64.deb
:~$ sudo gdebi micro_2.0.8-1+b6_amd64.deb
:~$ lsb_release -a                   
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
:~$ curl https://getmic.ro | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9898  100  9898    0     0   7660      0  0:00:01  0:00:01 --:--:--  7660
Detected platform: linux64
Latest Version: 2.0.10
Downloading https://github.com/zyedidia/micro/releases/download/v2.0.10/micro-2.0.10-linux64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4392k  100 4392k    0     0  1217k      0  0:00:03  0:00:03 --:--:-- 1797k
micro-2.0.10/micro
/=====================================\\
|   update-alternatives is supported   |
\\=====================================/

getmicro can use update-alternatives to register micro as a system text editor.
For example, this will allow `crontab -e` open the cron file with micro.

To enable this feature, define the GETMICRO_REGISTER variable or use the URL
`https://getmic.ro/r`.

Note that you must install micro to a directory accessible to all users when doing
this, typically /usr/bin. cd to that directory before running this script.

E.g.:

  $ cd /usr/bin
  $ curl https://getmic.ro/r | sudo sh

or

  $ su - root -c "cd /usr/bin; wget -O- https://getmic.ro | GETMICRO_REGISTER=y sh"



 __  __ _                  ___           _        _ _          _ _
|  \/  (_) ___ _ __ ___   |_ _|_ __  ___| |_ __  | | | ___  __| | |
| |\/| | |/ __| '__/ _ \   | || '_ \/ __| __/ _\ | | |/ _ \/ _  | |
| |  | | | (__| | | (_) |  | || | | \__ \ || (_| | | |  __/ (_| |_|
|_|  |_|_|\___|_|  \___/  |___|_| |_|___/\__\__,_|_|_|\___|\__,_(_)

Micro has been downloaded to the current directory.
You can run it with:

./micro

Citation:https://www.geeksforgeeks.org/micro-lightweight-terminal-based-text-editor/

@englianhu
Copy link
Author

englianhu commented Jul 5, 2022

用在 AMD64 上 micro_2.0.8-1+b6_amd64.deb 的下載頁面
如果您正在執行 Debian,請儘量使用像 aptitude 或者 synaptic 一樣的套件管理器,代替人工手動操作的方式從這個網頁下載並安裝套件。

您可以使用以下列表中的任何一個源映象只要往您的 /etc/apt/sources.list 檔案中像下面這樣新增一行:

deb http://ftp.cn.debian.org/debian bullseye main
請使用最終確定的源映象替換 ftp.de.debian.org/debian

您可以從以下任意站點的 pool/main/m/micro/ 子目錄中下載所需的檔案:

Citation: https://packages.debian.org/bullseye/amd64/micro/download


:~$ sudo micro /etc/apt/sources.list

try to add the repo to apt store as above and then

deb http://ftp.cn.debian.org/debian bullseye main

add one more row deb ... as above to the sources.list file to keep track update~

@englianhu
Copy link
Author

englianhu commented Jul 7, 2022

:~$ echo 'deb http://ftp.cn.debian.org/debian bullseye main' | sudo tee /etc/apt/sources.list.d/bullseye.list
:~$ sudo apt update
:~$ sudo apt install micro -y

Add the repo prior install to make it ease~

@englianhu
Copy link
Author

下载后安装。

:~$ sudo apt install gdebi* -y
:~$ wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.8-1+b6_amd64.deb
:~$ sudo gdebi micro_2.0.8-1+b6_amd64.deb

添加仓库后更新下载安装。

:~$ echo 'deb http://ftp.cn.debian.org/debian bullseye main' | sudo tee /etc/apt/sources.list.d/bullseye.list
:~$ sudo apt update
:~$ sudo apt install micro -y

@englianhu
Copy link
Author

englianhu commented Aug 23, 2023

$ curl -l http://ftp.cn.debian.org/debian/pool/main/m/micro/ | awk 'gsub("[ ]*", "", $2)' | awk '/amd64.deb/' | sed 's/<a\ href="\(.*\)">\(.*\)<\/a> \(.*\)/\1/' | awk 'gsub("%2B", "+", $0)' | awk '{print "wget http://ftp.cn.debian.org/debian/pool/main/m/micro/"$0}'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5387    0  5387    0     0   7173      0 --:--:-- --:--:-- --:--:--  7163
wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.11-2+b1_amd64.deb
wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.11-3+b1_amd64.deb
wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.6-2~bpo10+1_amd64.deb
wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.8-1+b6_amd64.deb

以上链接列出所有amd64.deb版本,下载再安装sudo apt install -y ./*.deb && sudo rm -rf *.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant