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

🚩🇨🇳🏹🦔中科红旗 RedFlag Linux (🍥Debian) #4

Open
englianhu opened this issue Aug 22, 2022 · 9 comments
Open

🚩🇨🇳🏹🦔中科红旗 RedFlag Linux (🍥Debian) #4

englianhu opened this issue Aug 22, 2022 · 9 comments
Assignees
Labels

Comments

@englianhu
Copy link
Contributor

englianhu commented Aug 22, 2022

操作系统,红旗中科;不忘初心,砥砺前行。

引用:🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩红旗飘飘 —— 孙玉芳研究员谈国产操作系统

##添加网址到🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩apt仓库并更新仓库
echo 'deb http://ftp.cn.debian.org/debian bullseye main' | sudo tee /etc/apt/sources.list.d/bullseye.list
sudo apt update
## 如无法上网,尝试修改/etc/resolv.conf中的域名服务器
# sudo sh -c "echo '#赢家黄氏江夏堂,点缀全球。\nnameserver 114.114.114.114' > /etc/resolv.conf"

## 欲忽略输入密码,尝试修改%sudo用户组的权限设置
# sudo sed -i 's/^%sudo *\(.*\)* *ALL$/%sudo   ALL=(ALL:ALL) NOPASSWD:ALL/g' /etc/sudoers
# sudo sed -i 's/^%sudo *\(.*\)* *ALL$/%sudo   ALL=(ALL:ALL) NOPASSWD:ALL/g' /etc/sudoers.d/10-installer 

sudo apt update && sudo apt upgrade -y

echo 'deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/' | sudo tee /etc/apt/sources.list.d/bullseye.list
echo 'deb http://cloud.r-project.org/bin/linux/debian buster-cran40/' | sudo tee /etc/apt/sources.list.d/bullseye.list
sudo apt update && sudo apt upgrade -y
## 如果需要公钥验证R语言软件,则添加该公钥。
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B8F25A8A73EACF41

这个星期以来系统频频受到入侵,一旦添加🍥达比安/🍥德比安仓库后更新(如上),整个系统就会像刚开始安装时一样被覆盖并且只显示美国国旗🇺🇸,一天之内重新安装五六次有余~

1 先安装个gdebi安装器

下载后安装。

sudo apt install gdebi* -y

## 建议安装:
sudo apt install -y libgtk2-perl lintian liblxqt-l10n lxqt-sudo-l10n lxqt-qtplugin gettext-doc autopoint libasprintf-dev libgettextpo-dev libfont-freetype-perl libgtk2-perl-doc libhtml-template-perl binutils-multiarch libtext-template-perl lxqt*
## 推荐安装:
sudo apt install -y libcgi-fast-perl libasync-mergepoint-perl libsereal-perl libtest-fatal-perl libtest-refcount-perl libdigest-bubblebabble-perl libnet-dns-sec-perl libnet-libidn-perl libunicode-utf8-perl libxml-sax-expat-perl libperlio-gzip-perl libfm-qt6 lxqt-session lxqt-config libxml-sax-expatxs-perl libxml-sax-expatxs-perl

## wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.11-3+b1_amd64.deb
## https://www.addictivetips.com/ubuntu-linux-tips/how-to-install-a-deb-file-on-linux
## sudo gdebi micro_2.0.8-1+b6_amd64.deb
## sudo rm micro_2.0.8-1+b6_amd64.deb
## sudo gdebi ./*.deb
## sudo rm -rf *.deb
## https://github.com/scibrokes/mytools/issues/4#issuecomment-1423941958
## 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`版本。
## 通过curl -l http://ftp.cn.debian.org/debian/pool/main/m/micro/ 列出许多不同版本,然后查询最新版本再修改一下以下的版本
sudo apt install -y ./*.deb && sudo rm -rf *.deb

## 推荐安装:
sudo apt install -y *x*clip*
## 建议安装:
sudo apt install -y libosgi-annotation-java-doc devhelp
## 推荐安装:
sudo apt install -y libxfce4util-bin

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

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
## wget http://ftp.cn.debian.org/debian/pool/main/m/micro/micro_2.0.11-3+b1_amd64.deb
## https://www.addictivetips.com/ubuntu-linux-tips/how-to-install-a-deb-file-on-linux
## sudo gdebi micro_2.0.8-1+b6_amd64.deb
## sudo rm micro_2.0.8-1+b6_amd64.deb
## sudo gdebi ./*.deb
## sudo rm -rf *.deb
## https://github.com/scibrokes/mytools/issues/4#issuecomment-1423941958
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`版本。
## 通过curl -l http://ftp.cn.debian.org/debian/pool/main/m/micro/ 列出许多不同版本,然后查询最新版本再修改一下以下的版本

sudo apt install -y ./*.deb && sudo rm -rf *.deb

参考文献:How to install a DEB file on Linux

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩德比安/达比安🍥安装工具程序包
sudo apt install *gdebi* -y

## https://github.com/englianhu/RedFlag-Linux/issues/4
## 安装礼逆袭流量监控工具与网速测试工具
sudo apt install -y iftop netstat* tcpdump iptraf speedtest-cli
 
#礼逆袭操作系统调试程序包
sudo apt install -y ctags cxref cflow prof gprof adb xxgdb KDbg ddd

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩德比安/达比安🍥安装工具程序包
sudo apt install sudo l*sudo s*sudo -y
sudo apt install -y *aptitude*
sudo apt install *micro*code* -y

## 建议安装:
sudo apt install -y apt-xapian-index debtags needrestart needrestart-session hobbit-client libcwidget-dev lib*scalar* libbareword-filehandles-perl libindirect-perl libmultidimensional-perl libdevel-lexalias-perl libdevel-stacktrace-perl #apt-listbugs bsd-mailx *mailx* xymon-client
## 推荐安装:
sudo apt install -y perl-doc libclass-xsaccessor-perl libpackage-stash-xs-perl libref-util-perl libtype-tiny-xs-perl libgtk-3-doc libglib2.0-doc libpango1.0-doc  libatk1.0-doc
## 建议安装:
sudo apt install -y reportbug python-xdg tagcoll exim4-doc-html exim4-doc-info eximon4 spf-tools-perl swaks libcwidget-doc ncurses-doc libsigc++-2.0-doc wx3.0-doc iucode-tool python-apt-dbg python-apt-doc hobbit* #xapian-doc xymon*
## 推荐安装:
sudo apt install -y ruby-httpclient s6 libintl-xs-perl

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩终端编译器
#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
#sudo apt install micro* *micro* p*micro* -y

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩图象处理相关应用
sudo apt -y install parallel *image*magick

## 安装java编程语言相关程序包
sudo apt install -y *jre* *jdk*

2 省略sudo权限输入密码

🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩红旗礼逆袭的操作系统设置比较特别,所以得在好几个文档中设置XXXX ALL (ALL) = NOPASSWD : ALL~

sudo micro /etc/sudoers
sudo micro /etc/sudoers.d/10-installer
sudo micro /etc/sudoers.d/update

3 网络暂无问题

IMG_20220814_090841
IMG_20220814_090850

Originally posted by @englianhu in scibrokes/setup-centOS7-DO#2 (comment)

4 下载安装软件应用但不添加仓库

## 安装R与R文艺坊

倘若欲在默认🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩红旗操作系统安装所有R语言相关程序包sudo apt install r-base* -y 或者 sudo apt install r-base r-base-dev -y,系统无法像Kubuntu忽奔兔达比安/德比安兼容所有,只能安装所需要的程序包~

sudo apt-get install r-base r-base-core -y 
wget https://s3.amazonaws.com/rstudio-ide-build/desktop/bionic/amd64/rstudio-2022.07.0-548-amd64.deb
sudo gdebi rstudio-2022.07.0-548-amd64.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
此软件包不可安装
Cannot install 'libclang-dev'

## 下载并安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩预览版®文艺坊
## https://www.rstudio.com/products/rstudio/download/preview
## wget https://s3.amazonaws.com/rstudio-ide-build/desktop/bionic/amd64/rstudio-2022.07.1-554-amd64.deb
#sudo gdebi rstudio-2022.07.1-554-amd64.deb

## https://posit.co/download/rstudio-desktop
wget https://download1.rstudio.org/electron/bionic/amd64/rstudio-2023.03.1-446-amd64.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb
sudo mv /usr/share/applications/RStudio.desktop /usr/share/applications/提案.desktop
sudo sed -i 's/Name=RStudio/Name=提案/g' /usr/share/applications/提案.desktop
sudo cp /usr/share/applications/提案.desktop /home/englianhu/桌面
sudo chmod +x /home/englianhu/桌面/提案.desktop

Originally posted by @englianhu in scibrokes/setup-centOS7-DO#2 (comment)

下载R语言4.2.1源代码程序包并安装,可参考:

## 事先安装R语言所需的程序包
sudo apt install -y gfortran
## 建议安装:
sudo apt install -y gfortran-multilib gfortran-doc gfortran-8-multilib gfortran-8-doc libgfortran5-dbg libcoarrays-dev doc-base l*compat* ghc-doc haskell-doc llvm-6.0 libtest-modern-perl libtest-roo-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl fltk1.3-doc libcairo2-dev libjpeg-dev libpng-dev libxft-dev libxinerama-dev libghc-aeson-doc libghc-attoparsec-doc libghc-attoparsec-iso8601-doc libghc-dlist-doc libghc-exceptions-doc libghc-hashable-doc libghc-integer-logarithms-doc libghc-old-locale-doc libghc-old-time-doc libghc-primitive-doc libghc-random-doc libghc-regex-base-doc libghc-regex-posix-doc libghc-regex-tdfa-doc libghc-scientific-doc libghc-tagged-doc libghc-th-abstraction-doc libghc-unordered-containers-doc libghc-uuid-types-doc libghc-vector-doc gmp-doc libgmp10-doc libmpfr-dev gnutls-bin gnutls-doc libdbd-csv-perl liblog-dispatch-filerotate-perl librrds-perl libxml-dom-perl libnet*openssh*gateway*perl* uuid libdbd-mysql-perl libdbd-pg-perl librdf*rdfa*parser*perl* libredis-perl libroar-plugins-universal roaraudio* libmuroar0 *slpd* haskell-doc fonts-mathjax-extras fonts-stix libjs-mathjax-doc fonts-roboto *ghc*6* *hugs* haskell-mode cpphs stylish-haskell emacs-common-non-dfsg m17n-docs libcairo2-doc libdbi-test-perl freetype2-doc libice-doc libmoox-types-mooselike-numeric-perl libmoox-types-setobject-perl libmpfr-doc libsm-doc llvm-6.0-doc mailutils-mh mailutils-doc autoconf-archive gnu-standards autoconf-doc dh-make libtool-doc *gcj*jdk* m4-doc libmail-box-perl python-pygments-doc ttf-bitstream-vera libfile-fcntllock-perl spamassassin libemail-simple-perl libmime-tools-perl libtext-autoformat-perl mh-e *mail*crypt* swish++ picon-domains w3m-el razor pyzor libencode-detect-perl libgeo-ip-perl libnet-patricia-perl pyzor-doc antiword cmigemo dict dict-wn dictd libsixel-bin mpv w3m-img xsel *mule*ucs* wv *xl*html* *ppt*html* libmoe1.5 namazu2 vim-migemo dict-gcide dict-foldoc dict-jargon apache2 namazu2-index-tools skktools skkdic-cdb skkdic-extra perl-tk texlive-fonts-recommended-doc texlive-latex-base-doc icc-profiles libfile-which-perl libspreadsheet-parseexcel-perl texlive-latex-extra-doc texlive-latex-recommended-doc texlive-pstricks dot2tex prerex *ruby*tcltk* libtcltk*ruby* texlive-pictures-doc vprerex texlive elinks links lynx libclipboard-perl apache2-doc apache2-suexec-pristine apache2-suexec-custom elinks-doc tre-agrep libnkf-perl libtext-kakasi-perl kakasi chasen groff mhonarc libmp3-info-perl rpm python-pyparsing-doc gauche chasen mecab kakasi texlive-pstricks-doc xemacs21-bin semi l*wl* *wl*beta* rpm-i18n *r*5*rs*doc* gauche-doc gauche-zlib gauche-gdbm liblapack-doc gcc-arm-none-eabi libsyntax-perl libxaw-doc camlp4 ocaml-doc tuareg-mode ocaml-mode alien elfutils *rpm*lint* *rpm*2*html* *mail*crypt* *easy*pg* *star*tt*ls* x-face-el *mule*ucs* bbdb im *bit*map*mule* maildir-utils notmuch mu-cite mhc xemacs21-supportel libencode-hanextra-perl libpod2-base-perl python3-pyxattr-dbg python-pyxattr-doc chktex dvidvi dvipng fragmaster lacheck latexdiff latexmk purifyeps xindy psutils nvidia-driver php-pear nvidia-cuda-mps nvidia-kernel-dkms nvidia-kernel-source *php*mcrypt* *php*gmp* *php*compat* libdevel-argnames-perl libterm-readline-gnu-perl libterm-readline-perl-perl libghc-distributive-doc
#osspd #oss-compat #libjboss-logging-java-doc
## 推荐安装:
sudo apt install -y libclass-c3-xs-perl fluid ghc-doc libghc-aeson-doc libghc-attoparsec-doc libghc-exceptions-doc libghc-hashable-doc libghc-scientific-doc libghc-tagged-doc libghc-unordered-containers-doc libghc-vector-doc libjs-mathjax libghc-regex-base-doc libghc-regex-posix-doc libghc-regex-tdfa-doc libghc-old-time-doc libjson-xs-perl liblog-dispatch-perl libipc-shareable-perl libdevel-partialdump-perl librdf-perl librdf-trine-node-literal-xml-perl libtasn1-doc librdf-ns-curated-perl librdf-ns-perl librdf-prefixes-perl fltk1.3-doc libghc-dlist-doc libghc-uuid-types-doc libghc-old-locale-doc libghc-primitive-doc libmail-sendmail-perl libmime-lite-perl mailutils emacs-el libfreezethaw-perl libpng-tools libmath-base-convert-perl libtext-soundex-perl perl llvm-6.0-dev libjpeg-progs bzip2-doc debhelper libtool libtool-bin libvte-2.91-doc python3-pygments python3-yaml libmime-types-perl libtest-leaktrace-perl libarchive-cpio-perl libltdl-dev libtool-doc libmojolicious-perl python-pygments compface spamc sa-compile libio-socket-inet6-perl libcpanel-json-xs-perl libev-perl libio-socket-socks-perl libmojo-server-fastcgi-perl geoip-database-extra apel flim youtube-dl lmodern tex-gyre openjade icc-profiles-free libdate-calc-perl tinycdb ps2eps texlive-extra-utils texlive-font-utils fonts-texgyre phantomjs python3-pyxattr rtmpdump slib psutils php *php*5* libcuda1 libcuda*9* libevas-loaders libevas1-engines-drm libevas1-engines-fb libevas1-engines-x libghc-ansi-terminal-doc libghc-prettyprinter-ansi-terminal-doc libghc-prettyprinter-doc libghc-semigroupoids-doc gcc-arm-none-eabi kxterm libperlx-maybe-xs-perl binutils-arm-none-eabi libhttp-thin-perl libtest-www-selenium-perl libwww-mechanize-perl libwww-mechanize-treebuilder-perl libfindlib-ocaml-dev ledit *readline*editor* libdate-calc-xs-perl libfile-homedir-perl nvidia-kernel-dkms nvidia-kernel-418.226.00 nvidia-smi libnvidia-cfg1 nvidia-persistenced lib*cuda1*i386* libghc-colour-doc libghc-bifunctors-doc libghc-comonad-doc libdevel-repl-perl

sudo apt install build-essential -y
sudo apt install libreadline6* libreadline6-dev -y
sudo apt install *bzip2* -y
sudo apt install *liblzma* -y
sudo apt install *pcre1* -y
sudo apt install *pcre2-32* -y
sudo apt install xorg-dev -y
sudo apt build-dep r-base -y
## 倘若sudo apt build-dep r-base -y出现
## E: 您必须在 sources.list 中指定代码源(deb-src) URI错误信息,
## 请查阅https://github.com/scibrokes/setup-centOS7-DO/issues/2#issuecomment-1227495090 
## 寻求解决方案。

sudo apt install libcurl4-openssl* libcurl4-openssl-dev -y
##sudo apt install -y libcur*
sudo apt install -y libxml*
## 建议安装:
sudo apt install -y ada-reference-manual-2012 gnat-gps gnat-8-doc gnat-8-sjlj junit-doc libboost-doc libboost1.67-doc libboost-container1.67-dev libboost-context1.67-dev libboost-coroutine1.67-dev libboost-exception1.67-dev libboost-fiber1.67-dev libboost-filesystem1.67-dev libboost-graph1.67-dev libboost-graph-parallel1.67-dev libboost-iostreams1.67-dev libboost-locale1.67-dev libboost-log1.67-dev libboost-math1.67-dev libboost-mpi1.67-dev libboost-mpi-python1.67-dev libboost-numpy1.67-dev libboost-program-options1.67-dev libboost-python1.67-dev libboost-random1.67-dev libboost-regex1.67-dev libboost-signals1.67-dev libboost-stacktrace1.67-dev libboost-test1.67-dev libboost-timer1.67-dev libboost-type-erasure1.67-dev libboost-wave1.67-dev libboost1.67-tools-dev libmpfrc++-dev libntl-dev libgcrypt20-doc libglibmm-2.4-doc libgtkmm-3.0-dev libdancer-perl libdancer2-perl libdbix-class-perl liblog4shib-doc libapache2-mod-perl2 libnet-jabber-perl libxerces-c-doc xmlrpc-api-utils liblog-tracemessages-perl xmltv-gui libatkmm-1.6-doc *gcc*xml* xsltproc doxygen fop libcairomm-1.0-doc libdancer-session-cookie-perl libhttp-parser-xs-perl libjson-any-perl libmath-base36-perl libmoosex-types-json-perl libmoosex-types-path-class-perl libmoosex-types-perl gtkmm-documentation libgnatcoll-doc libgtkmm-3.0-doc openmpi-doc libtemplate-plugin-gd-perl libtemplate-plugin-xml-perl libyaml-shell-perl python-gi-cairo liblinux-dvb-perl doxygen-latex doxygen-doc doxygen-gui fop-doc libavalon-framework-java-doc librhino-java fonts-dustin libmath-random-isaac-perl libqdox-java-doc libxalan2-java-doc libbsf-java libxsltc-java libbcel-java-doc bsh rhino bsh-doc libjline-java-doc librhino-java-doc libevent-perl libpoe-perl libcrypt-blowfish-perl libphp-serialization-perl libyaml-syck-perl libsaxon-java-doc libcurl4-gnutls-dev libcurl4-doc libldap2-dev librtmp-dev libssh2-1-dev libcurses-perl lib*poe*loop*event*perl* lib*poe*loop*tk*perl* libsocket-getaddrinfo-perl dnsutils rblcheck
## 推荐安装:
sudo apt install -y libinline-c-perl libinline-files-perl libdata-serializer-perl libocamlnet-ocaml-doc libcache-perl libclass-date-perl libinternals-perl libanyevent-perl libanyevent-http-perl libwww-curl-perl libxalan2-java libxalan2-java-doc liblingua-preferred-perl libterm-progressbar-perl xmltv-util gnat-gps-doc python-jedi python-pep8 libbsd-resource-perl libapache2-reload-perl libconfig-general-perl libconfig-tiny-perl libcookie-baker-xs-perl libcrypt-urandom-perl libmath-random-isaac-xs-perl libsql-translator-perl libcoarrays-openmpi-dev libcgi-compile-perl libcgi-emulate-psgi-perl libfcgi-procmanager-perl libscope-upper-perl libwww-form-urlencoded-xs-perl liblingua-preferred-perl libterm-progressbar-perl libsaxon-java libasync-interrupt-perl libguard-perl libgraph-perl libgraphviz-perl libtext-recordparser-perl libjdom1-java-doc libtext-tabulardisplay-perl

sudo apt install -y openssl*
## 建议安装:
sudo apt install -y asciidoc-doc source-highlight epubcheck catdvi bisonc++ *python*beautifulsoup* claws-mail-doc claws-mail-tools docbook inkscape transfig djvulibre-desktop djview4 *djvu*viewer* evince docbook-dsssl-doc *latex*beamer* libvte9 lib*gsl*2* gvfs ibus-doc ibus-table-array30 ibus-table-cangjie ibus-table-cangjie-big ibus-table-cangjie3 ibus-table-cangjie5 ibus-table-cantonese ibus-table-cantonhk ibus-table-cns11643 ibus-table-compose ibus-table-easy ibus-table-easy-big ibus-table-emoji ibus-table-erbi ibus-table-erbi-qs ibus-table-ipa-x-sampa ibus-table-jyutping ibus-table-quick ibus-table-quick-classic ibus-table-quick3 ibus-table-quick5 ibus-table-rustrad ibus-table-scj6 ibus-table-stroke5 ibus-table-thai ibus-table-translit ibus-table-translit-ua ibus-table-viqr ibus-table-wu ibus-table-wubi ibus-table-yawerty ibus-table-yong *hbf*cns*40*b5* *hbf*jfs56* *hbf*kanji*48* imagemagick gv hevea ttf-mscorefonts-installer libcatalyst-devel-perl libcatalyst-engine-apache-perl libcatalystx-leakchecker-perl libterm-size-any-perl libtest-exception-perl libtest-pod-coverage-perl libtest-pod-perl libsort-versions-perl libgeronimo-validation-1.0-spec-java-doc monodoc-gtk2.0-manual graphicsmagick-dbg libgeronimo-jpa-2.0-spec-java libjoda-time-java imagemagick-doc libjackson2-core-java-doc libjackson2-jr-java-doc lib*j*latex*math*java* *texlive*latex*3* groovy libjanino-java libjetty9-java libtomcat9-java libmono-i18n4.0-all libgamin0 sgmls-doc libtiff-opengl libtwelvemonkeys-java-doc libjmagick6-java lilypond linuxdoc-tools-text linuxdoc-tools-info python-watchdog php-apcu *ttf*2*pt*1* php-imagick lib*paper*specs*perl* bpython ipython libsqlite3-mod-spatialite python-bcrypt python-django-doc python-flup python-memcache python-mysqldb python-psycopg2 python-sqlite python-yaml python-genshi python-lxml python-pil-doc python-pil-dbg python-egenix-mxtexttools python-reportlab-doc python-setuptools-doc python-sortedcontainers-doc bpython3 *geoip*database*contrib* ipython3 python3-bcrypt *python3*flup* python3-memcache python3-mysqldb python3-psycopg2 *python3*sqlite* python3-genshi python3-lxml-dbg python-lxml-doc elpa-ess r-mathlib r-base-html python-aafigure python-matplotlib python-sphinx *python*uniconvertor* asymptote biber python-prompt-toolkit python3-prompt-toolkit texlive-omega coderay ruby-prawn-doc treetop ttf-dejavu-core sisu-markup-samples lv calibre pinfo poedit trang texlive-science-doc why3 zathura-ps zathura-djvu zathura-cb bisonc++-doc flexc++ python-twisted python3-jedi python-unrardll djview-plugin docbook-defguide psgml *xli*sp*stat* pspp jags julia nautilus-sendto unrar xfig groovy-doc gvfs-backends hevea-doc dia inkscape-tutorials libsvg-perl *python3*uniconvertor* ivy-doc libbcpg-java libjsch-agent-proxy-java libjsch-java libmodule-install-perl libmoosex-daemonize-perl starman libosgi-compendium-java libosgi-core-java libgeronimo-jpa-2.0-spec-java-doc libjackson-json-java-doc libjanino-java-doc jetty9 libjoda-convert-java libjoda-time-java-doc coffeescript libjs-jquery-ui-docs lib*gnome*ui*0* libnunit-doc monodoc-nunit-manual tomcat9 libcglib-nodep-java libjdom2-java libjettison-java libkxml2-java lilypond-doc *mono*doc*gtk*manual* *mono*doc*gecko*manual* python-apsw-doc python-cycler-doc python-dbus-dbg python-dbus-doc python-egenix-mxtexttools-dbg python-egenix-mxtexttools-doc python-egenix-mxtools-dbg python-egenix-mxtools-doc python-enum34-doc python-genshi-doc python-greenlet-doc python-greenlet-dev python-greenlet-dbg python-jinja2-doc python-lxml-dbg python-markdown-doc python-cairocffi python-configobj python-excelerator python-gobject-2 python-matplotlib2-doc python-nose python-qt4 python-scipy python-tornado python-traits ttf-staypuft memcached default-mysql-server virtual-mysql-server python-egenix-mxdatetime python-mysqldb-dbg python-pytest python-numpy-dbg python-numpy-doc python-pexpect-doc python-doc python3-pil.imagetk python-pil.imagetk python-psycopg2-doc python-pyqt5-dbg python-cryptography python-openssl python-socks python-paste imagemagick-6.q16 python-sphinx-rtd-theme python-stemmer sphinx-doc texlive-generic-extra python-sqlite-dbg python-ntlm python3-greenlet-dbg python3-mysqldb-dbg python3-pytest python3-numpy-dbg r-doc-html why3-examples *auto*trace* enscript gnuplot hp2xx html2ps libwmf-bin mplayer povray *radiance* ufraw-batch gnuplot-doc weblint-perl xhtml2ps libdirectfb-extra mplayer-doc netselect fping povray-doc povray-examples ufraw
## 推荐安装:
sudo apt install -y xmlto claws-mail-i18n emacs fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-laksaman fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree sane gvfs ibus-clutter ibus-gtk ibus-gtk3 *ibus*qt*4* *j*latex*209*bin* inkscape fig2dev libcatalyst-dispatchtype-regex-perl gstreamer1.0-nice libposix-strptime-perl ca-certificates-mono libmono-btls-interface4.0-cil libtext-roman-perl libpurple-bin calibre pngquant openjfx-source ruby-gtk2 gstreamer1.0-gtk3 ipe php-horde-test php-horde-imap-client php-intl php-mbstring *php*m*crypt* gstreamer1.0-libav libfile-type-perl python-sqlparse docutils-doc python-crypto python-qt4 python-olefile python-renderpm python3-sqlparse python3-bs4 python3-crypto r-recommended r-base-dev r-doc-html sisu-sqlite sisu-postgresql keychain po4a qrencode ruby-rmagick tidy tree gsfonts-x11 asymptote-doc python-urwid python3-watchdog python-dnspython libgpars-groovy-java libjcommander-java libjs-bootstrap libjs-jquery-mousewheel libjs-jquery-fancybox libwmf-bin python-scour liblinux-inotify2-perl lib*glue*zilla* mono-csharp-shell php-apcu-bc python-argcomplete python-openssl python-libxml2 python-utidylib python-bs4 python-tk python-egenix-mxdatetime python-webob python-cryptography python-ipaddress r-base-dev *cvc*3* why3-coq *sp*ass* z3

sudo apt install -y alt-ergo povray-includes gsfonts-x11 dia-shapes *juni*4*doc* libservlet3.1-java-doc authbind libpar-dist-perl lilypond-doc-html python-click python-openid python-scgi node-less python3-pyinotify libtcnative-1 xfig-libs blt-demo coffeescript-doc samba-common ess julia-doc vim-julia libbcpg-java-doc libjdom2-java-doc libjna-java-doc libjnr-enxio-java-doc libjnr-ffi-java-doc libjnr-posix-java-doc libjoda-convert-java-doc libjs-es5-shim libosgi-compendium-java-doc libosgi-core-java-doc libyaml-snake-java libaspectj-java libcommons-collections3-java mariadb-test tinyca libcache-memcached-perl lib*mem*cached* ghp-import mkdocs-doc netselect-apt debiandoc-sgml *w3c*dtd*xhtml* w3-dtd-mathml python-attr-doc python-cairocffi-doc python-configobj-doc python-cryptography-doc python-cryptography-vectors *python*examples* python-egenix-mxbeebase-doc python-egenix-mxdatetime-doc python-egenix-mxproxy-doc python-egenix-mxqueue-doc python-egenix-mxstack-doc python-egenix-mxuid-doc python-egenix-mxurl-doc python-funcsigs-doc python-gobject-2-dbg python-gtk2-doc python-coverage python-nose-doc python-openssl-doc *python3*openssl*dbg* *httpd*wsgi* libapache2-mod-python libapache2-mod-scgi libjs-mochikit python-pastedeploy python-pastescript python-pastewebkit python-pil.imagetk-dbg python-ply-doc subversion python-pytest-xdist python-mock python-qt4-dbg python-scipy-doc python-stemmer-doc python-tk-dbg python-pycurl python-tornado-doc python-traitsui python-twisted-bin-dbg python-glade2 python-pampy *python3*qt3* python-serial node-uglify python-livereload-doc python3-flask python3-slimmer python3-pil.imagetk-dbg python3-tk-dbg python3-twisted tomcat9-admin tomcat9-docs tomcat9-examples tomcat9-user gimp-ufraw gsfonts-x11 spell xfig-doc evolution-plugins evolution-plugin-pstimport yelp lua5.3 libhamcrest-java-doc libfcgi-bin libmessage-passing-zeromq-perl liblinux-io-prio-perl libgssapi-perl node-source-map php-horde-cache php-horde-compress-fast php-horde-db php-horde-hashtable *php*horde*mongo* php-horde-pack *php*horde*string*prep* php-horde-smtp php-net-dns2 php-net-smtp php-horde-nls php-horde-text-filter *php*idn* php-horde-cli php-horde-log sysstat libjs-jquery-isonscreen libjs-jquery-tablesorter libjs-jquery-throttle-debounce python-livereload python3-argcomplete python3-blinker python3-simplejson samba-common-bin *why* *proof*general* libcoq-ocaml-dev *coq*doc* debiandoc-sgml-doc libedataserver* db5.3-doc libsoup2.4-doc sqlite3-doc evolution-plugins-experimental argonaut-server slapd fusiondirectory-plugin-argonaut hunspell libapache2-mod-python-doc aspectj uw-mailutils libcommons-collections3-java-doc libgpars-groovy-java-doc libjcommander-java-doc libjcsp-java-doc iwatch node-acorn *node*uglify*to*browserify* php-xdebug phpunit-dbunit php-invoker php-soap *php*uopz* postgresql-doc postgresql-doc-11 python-coverage-doc python-crypto-doc execnet-doc python-mock-doc python-kid python-cheetah python-cherrypy #postfix

sudo apt install -y libqscintilla2-doc python3*wxgtk* ruby-svn python-pycurl-dbg python-pycurl-doc python3-pyfaidx python-pyfaidx python3-pyvcf python-pyvcf python-renderpm-dbg python-sqlparse-doc python-urwid-doc python-webob-doc python3-cryptography-vectors python-flask-doc python3*openssl*dbg* python-pyinotify-doc *python3*gtk2* *python3*glade2* python3-pampy *python3*qt4* python3-serial *python3*wxgtk2.8* python3-twisted-bin-dbg python3-termcolor python-werkzeug-doc gir1.2-rsvg-2.0 fcgiwrap postgresql-contrib db5.3-util libapache2-mod-svn subversion-tools docbook-mathml python-flask python-pyinotify libsvn-perl python-subversion svn2cl python-redis python-termcolor python-blinker python-blinker-doc python-hiredis python-gevent redis-server python-gevent-doc python-gevent-dbg ruby-redis

sudo apt install -y *pdf* *latex*

## 安装个Atlas图书馆自动调整排档
sudo apt install libatlas3-base -y

## 安装个多管齐下的OpenBlas图书馆
sudo apt install libopenblas-base -y

## 下载R语言原代码程序包
export R_VERSION=4.2.1
curl -O https://cran.rstudio.com/src/base/R-4/R-${R_VERSION}.tar.gz

## 解压缩到指定的路径
sudo tar -C /usr/lib -xzvf R-${R_VERSION}.tar.gz
sudo rm -rf R-${R_VERSION}.tar.gz
sudo mv /usr/lib/R-${R_VERSION}/ /usr/lib/R
sudo chmod 777 -R /usr/lib/R
cd /usr/lib/R
#tar -xzvf R-${R_VERSION}.tar.gz
#cd R-${R_VERSION}

## R语言配置
sudo ./configure \
    --prefix=/usr/lib/R \
    --enable-memory-profiling \
    --enable-R-shlib \
    --with-pcre2 \
    --with-blas \
    --with-lapack \
    --with-readline=yes

## 安装R语言
sudo make
sudo make install

## 查询刚安装好的语言版本
/usr/lib/R/bin/R --version

#sudo ln -s /usr/bin/R/${R_VERSION}/bin/R /usr/local/bin/R
#sudo ln -s /usr/bin/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript

## 赋值修改路径以下中的文件夹设置的权限
sudo chmod 777 -R /etc/R/
sudo chmod 777 -R /usr/lib/R/library/
sudo chmod 777 -R /usr/share/R/

## 创建个快捷键到台面
sudo mv /usr/share/applications/R.desktop /usr/share/applications/.desktop
sudo sed -i 's/Name=R/Name=鄀/g' /usr/share/applications/.desktop
sudo cp /usr/share/applications/.desktop /home/englianhu/桌面
sudo chmod +x /home/englianhu/桌面/.desktop

...
...
...
tar 解压缩命令
tar
-c: 建立压缩档案
-x:解压
-t:查看内容
-r:向压缩归档文件末尾追加文件
-u:更新原压缩包中的文件
这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。
-z:有gzip属性的
-j:有bz2属性的
-Z:有compress属性的
-v:显示所有过程
-O:将文件解开到标准输出
下面的参数-f是必须的
-f: 使用档案名字,切记,这个参数是最后一个参数,后面只能接档案名。

...
...
...

总结

1、.tar 用 tar –xvf 解压
2、
.gz 用 gzip -d或者gunzip 解压
3、.tar.gz和.tgz 用 tar –xzf 解压
4、.bz2 用 bzip2 -d或者用bunzip2 解压
5、
.tar.bz2用tar –xjf 解压
6、.Z 用 uncompress 解压
7、
.tar.Z 用tar –xZf 解压
8、.rar 用 unrar e解压
9、
.zip 用 unzip 解压

引用:Linux下tar命令解压到指定的目录

倘若遇到configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support错误信息,可以查阅以下解决方案:

## 事先安装R语言所需程序包
sudo apt install gfortran -y
sudo apt install build-essential -y
sudo apt install libreadline6 libreadline6-dev
sudo apt install xorg-dev

## 下载并安装R语言
wget https://cran.r-project.org/src/base/R-4/R-4.2.1.tar.gz
sudo tar -C /usr/lib -xzf R-4.2.1.tar.gz
sudo rm -rf R-4.2.1.tar.gz
sudo mv /usr/lib/R-4.2.1/ /usr/lib/R
sudo chmod 777 -R /usr/lib/R
cd /usr/lib/R/

## 安装个Atlas图书馆自动调整排档
sudo apt install libatlas3-base -y

## 安装个多管齐下的OpenBlas图书馆
sudo apt install libopenblas-base -y

## 赋值修改路径/etc/R/中的文件设置的权限
sudo chmod 777 -R /etc/R/

## 赋值修改路径以下中的文件夹设置的权限
sudo chmod 777 -R /etc/R/
sudo chmod 777 -R /usr/lib/R/library/
sudo chmod 777 -R /usr/share/R/
## 添加网址到🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩apt仓库并更新仓库
echo 'deb http://ftp.cn.debian.org/debian bullseye main' | sudo tee /etc/apt/sources.list.d/bullseye.list
sudo apt update
echo 'deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/' | sudo tee /etc/apt/sources.list.d/bullseye.list
sudo apt update
echo 'deb http://cloud.r-project.org/bin/linux/debian buster-cran40/' | sudo tee /etc/apt/sources.list.d/bullseye.list
sudo apt update

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩德比安/达比安🍥安装工具程序包
sudo apt install *gdebi* -y

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩德比安/达比安🍥安装工具程序包
sudo apt install sudo l*sudo s*sudo -y
sudo apt install -y *aptitude*

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩终端编译器
#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
#sudo apt install micro* *micro* p*micro* -y

## 安装java编程语言相关程序包
sudo apt install -y *jre* *jdk*
## 更新🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩update应用更新程序包
sudo apt install -y *update*

## 更新🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩wget下载工具程序包
sudo apt install -y *wget*
## 建议安装:
sudo apt install -y cupt debdelta dpkg-repack debdelta-doc fakeroot
## 推荐安装:
sudo apt install -y ed xdelta3 xdelta bsdiff gnupg2 bsdiff ed gnupg2 libxdelta2 xdelta xdelta3

##安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩百度输入法🐾应用
##https://srf.baidu.com/?c=j&e=d&from=1000e&platform=ubuntu&ref=index_entrance_android_click
wget https://imeres.baidu.com/imeres/ime-res/guanwang/img/Ubuntu_Deepin-fcitx-baidupinyin-64.zip
unzip ./*.zip && sudo rm -rf *.zip *.docx
#sudo gdebi fcitx-baidupinyin.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb
##注:本输入法输入面板程序与其他输入法如搜狗输入法、讯飞输入法冲突,可能会受其他输入法影响而无法正常启动,若已安装其他输入法并导致百度输入法输入面板无法正常启动,应关闭其他输入法相关进程并重启百度输入法输入面板程序,输入面板程序安装路径为/opt/apps/com.baidu.fcitx-baidupinyin/files/bin/baidu-qimpanel
/opt/apps/com.baidu.fcitx-baidupinyin/files/bin/baidu-qimpanel
sudo chmod +x /opt/apps/com.baidu.fcitx-baidupinyin/files/bin/bd-qimpanel.watchdog.sh

##安装gcin和hime输入法
##https://github.com/scibrokes/r-world/issues/1#issuecomment-1434387627
sudo apt install *scim* *gcin* *hime* *fcitx* *im*panel* -y

sudo apt install -y *aptitude* ## 通过命令行利用aptitude 安装fcitx、qt
sudo aptitude install -y fcitx-bin fcitx-table fcitx-config-gtk fcitx-config-gtk2 fcitx-frontend-all
sudo aptitude install -y qt5-default qtcreator qml-module-qtquick-controls2

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩操作系统信息展示程序包
sudo apt install -y *neofetch* *chafa*

## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩SVN版本控制系统应用
sudo apt install -y subversion sub*version* *sub*version*
## 推荐安装:
sudo apt install -y kdiff3 kdiff3-qt kompare meld tkcvs mgdiff qct kdiff3-doc dirdiff


## 安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩截图、修图、分区、终端等应用
sudo apt install -y flameshot
sudo apt install -y kolour* *partition*manager* *kwik* flameshot* git2* gitlab* xterm lib*xfce* *micro*code *geany* *terminology* *emulat* vokoscreen vokoscreen-ng vokoscreen* *7zip*

## 下载并安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩预览版®文艺坊
## https://www.rstudio.com/products/rstudio/download/preview
## wget https://s3.amazonaws.com/rstudio-ide-build/desktop/bionic/amd64/rstudio-2022.07.1-554-amd64.deb
#sudo gdebi rstudio-2022.07.1-554-amd64.deb

## https://posit.co/download/rstudio-desktop
wget https://download1.rstudio.org/electron/bionic/amd64/rstudio-2023.03.1-446-amd64.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb
sudo mv /usr/share/applications/rstudio.desktop /usr/share/applications/移动终端操作系统.desktop
sudo sed -i 's/Name=RStudio/Name=移动终端操作系统/g' /usr/share/applications/移动终端操作系统desktop
sudo cp /usr/share/applications/移动终端操作系统.desktop /home/englianhu/桌面
sudo sed -i 's/Name=RStudio/Name=移动终端操作系统/g' /home/englianhu/桌面/移动终端操作系统.desktop
sudo chmod +x /home/englianhu/桌面/移动终端操作系统.desktop
sudo chmod 777 -R /etc/apt/sources.list.d/
sudo micro /etc/apt/sources.list.d/debian-buster.list

添加 deb https://deb.debian.org/debian buster-backports main contrib non-free

sudo apt update
sudo apt install -y apt-transport-https vim
sudo sh -c "echo 'deb https://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list"
sudo apt update
sudo apt -t buster-backports install wireguard -y
## 建议安装:
sudo apt install -y *resolv*conf*
sudo apt install -y *open*resolv*
## 推荐安装:
sudo apt install -y easy-rsa opensc pcscd
## 建议安装:
sudo apt install -y pcmciautils wireless-tools

引用:Debian 搭建 WireGuard 服务端

倘若gdebi安装vpn-unlimited时出现wireguard相关错误信息的话,就参考以上代码安装wireguard,就可以如下安装vpn-unlimited了~

## 安装🇺🇦无穷VPN♾️应用
## https://www.vpnunlimited.com/api/keepsolid/vpn-download?platform=linux-new
#sudo gdebi vpn-unlimited_8.5-amd64_ubuntu.deb
#sudo rm vpn-unlimited_8.5-amd64_ubuntu.deb
wget https://geo.keepsolidcdn.com/soft/vpn/Linux/Vpn_Unlimited_8.5.2_amd64.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb
## 建议安装:
sudo apt install -y libstrongswan-extra-plugins
## 推荐安装:
sudo apt install -y libstrongswan-standard-plugins strongswan-plugin-eap-mschap* libstrongswan-extra-plugins
##安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩VSCode🎗️应用
#wget https://code.visualstudio.com/docs/?dv=linux64_deb
#sudo gdebi code_1.70.2-1660629410_amd64.deb
#sudo rm code_1.70.2-1660629410_amd64.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb

sudo apt install -y wine* *playonlinux*

##下载并安装🇹🇼🇨🇳🇻🇳🇲🇾🐼🚩猫城🐱应用
## https://github.com/shiftkey/desktop/releases
curl -l https://github.com/shiftkey/desktop/releases | sed -n '/linux1.deb/p'
wget https://github.com/shiftkey/desktop/releases/download/release-3.0.5-linux1/GitHubDesktop-linux-3.0.5-linux1.deb ##根据版本来修改网址
#sudo gdebi GitHubDesktop-linux-3.0.5-linux1.deb
#sudo rm GitHubDesktop-linux-3.0.5-linux1.deb
sudo apt install -y ./*.deb && sudo rm -rf *.deb
sudo cp /usr/share/applications/github-desktop.desktop /home/englianhu/桌面
sudo chmod +x /home/englianhu/桌面/github-desktop.desktop
sudo chmod 777 -R /home/englianhu/桌面/猫城.desktop

## 建议安装:
sudo apt install -y gir1.2-gnomekeyring-1.0 libgnome-keyring0 pinentry-doc
## 推荐安装:
sudo apt install -y libpam-gnome-keyring gnome-keyring-pkcs11
---

用在 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 englianhu self-assigned this Aug 26, 2022
@englianhu englianhu changed the title 🚩🇨🇳🏹红旗中科 RedFlag Linux 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11) Aug 29, 2022
@englianhu
Copy link
Contributor Author

englianhu commented Oct 3, 2022

sudo apt install -y --fix-missing yelp libgdk*pixbuf* libglib* libgtk-3* libwayland* libatk1.0* libglib2.0* libpango* devhelp gstreamer1.0-lib* eog* libcairomm-1.0-doc monodoc-gtk3.0-manual gtkmm-documentation libnunit* monodoc-nunit* monodoc-gtk* monodoc-gecko* mono-csharp-shell

sudo apt install -y --fix-missing redflag-install redflag-wine redflag-record-cdrkit redflag-browser redflag-picture* linux-image-*-redflag-amd64 redflag-themes-new-year libredflag-record-media* libredflag-record-media* redflag-software-center redflag-video nautilus-extension-redflag-record redflag-picture redflag-themes-spring-festival libredflag-record-media3* redflag-themes redflag-themes-100th-anniversary redflag-dove gir1.2-redflag-recordmedia* redflag-themes-nationalday72 gir1.2-redflag-recordburn* redflag-screenshots redflag-archive-keyring redflag-record-common redflag-music redflag-record redflag-notepad gir1.2-redflag-record* gir1.2-redflag-record* gir1.2-redflag-record* gir1.2-redflag-recordburn* gir1.2-redflag-record* gir1.2-redflag-recordmedia*

sudo apt install -y --fix-missing redflag-picture-dev linux-image-4.19.0-16-redflag-amd64 redflag-themes-new-year libredflag-record-media3-1 libredflag-record-media-dev redflag-software-center redflag-video nautilus-extension-redflag-record redflag-picture redflag-themes-spring-festival libredflag-record-media3-dev redflag-themes redflag-themes-100th-anniversary redflag-dove gir1.2-redflag-recordmedia-3.1 redflag-themes-nationalday72 gir1.2-redflag-recordburn-3.1 redflag-screenshots redflag-archive-keyring redflag-record-common redflag-music redflag-record redflag-notepad gir1.2-redflag-record-3.0 gir1.2-redflag-record-3.1 gir1.2-redflag-record-3.1 gir1.2-redflag-recordburn-3.1 gir1.2-redflag-record-3.1 gir1.2-redflag-recordmedia-3.1

经过查询并没安装成功,故此得逐一查看并安装如下...

sudo apt install -y --fix-missing command-not-found gstreamer-qapt redflag-install
## 建议安装:
sudo apt install -y snapd
sudo apt install -y --fix-missing redflag-wine

sudo apt install -y --fix-missing command-not-found gstreamer-qapt redflag-record*
## 建议安装:
sudo apt install -y libdvdcss2 tracker *read*om* libdb-file-lock-perl libfile-readbackwards-perl libosinfo-l10n
## 推荐安装:
sudo apt install -y nautilus-extension-redflag-record dvdauthor libarchive-tar-wrapper-perl tracker-miner-fs

sudo dpkg-reconfigure libdvd-pkg

sudo apt install -y --fix-missing redflag-themes*
sudo apt install -y --fix-missing redflag-notepad

sudo apt install -y --fix-missing redflag-music
## 建议安装:
sudo apt install -y sg3-utils
## 推荐安装:
sudo apt install -y libgpod-common

sudo apt install -y --fix-missing redflag-video
## 建议安装:
sudo apt install -y *firmware*crystalhd*

sudo apt install -y --fix-missing libredflag-record*
sudo apt install -y --fix-missing redflag-software*
sudo apt install -y --fix-missing libdirectfb-extra mplayer-doc netselect fping firmware-crystal* youtube-dl redflag-video*
sudo apt install -y --fix-missing netselect-apt phantomjs python3-pyxattr rtmpdump python3-pyxattr-dbg python-pyxattr* python3-gdbm-dbg python3-tk-dbg
sudo apt install -y --fix-missing *redflag-record
sudo apt install -y --fix-missing *redflag-dove*
sudo apt install -y --fix-missing *redflag-screenshots*

## 创建个快捷键到台面
sudo cp /usr/share/applications/redflag-browser.desktop /home/englianhu/桌面
sudo cp /usr/share/applications/redflag-install.desktop /home/englianhu/桌面
sudo cp /usr/share/applications/brasero.desktop /home/englianhu/桌面
sudo cp /usr/share/applications/redflag-video.desktop /home/englianhu/桌面
sudo cp /usr/share/applications/redflag-screenshots.desktop /home/englianhu/桌面

sudo chmod +x /home/englianhu/桌面/redflag-install.desktop /home/englianhu/桌面/brasero.desktop /home/englianhu/桌面/redflag-browser.desktop /home/englianhu/桌面/redflag-video.desktop /home/englianhu/桌面/redflag-screenshots.desktop

@englianhu
Copy link
Contributor Author

englianhu commented Oct 3, 2022

🚩🇨🇳🏹红旗礼逆袭 RedFlag Linux (🍥Debian)

🚩🦔使用红旗礼逆袭操作系统,怎么能不使用红旗应用?

  • 红旗浏览器
  • 红旗文件管理器
  • 红旗应用商店
  • 红旗软件安装器
  • 红旗文档编辑器
  • 红旗看图
  • 红旗截图
  • 红旗影音
  • 红旗音乐
  • 红旗刻录

🚩🦔可以先授权台面应用,再复制并粘贴应用到台面,陈列应用,方便使用。

sudo chmod -R 777 /usr/share/applications

🚩🦔安装红旗应用商城方便使用许多中国应用软件...

🚩🦔安装个System Profiler and Benchmark方便查询硬件信息。

@englianhu englianhu changed the title 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11) 🚩🇨🇳🏹中科红旗 RedFlag Linux (🍥Debian 11) Oct 13, 2022
@englianhu englianhu changed the title 🚩🇨🇳🏹中科红旗 RedFlag Linux (🍥Debian 11) 🚩🇨🇳🏹中科红旗 RedFlag Linux (🍥Debian) Nov 7, 2022
@englianhu
Copy link
Contributor Author

第一部分:需要重启的内核升级

...
...
...
方法 2 - 用 apt-get 来升级 Linux 内核(推荐方法)

这是在类 Ubuntu 系统中升级 Linux 内核的推荐方法。不同于上一个方法,这种方法会从 Ubuntu 官方仓库下载、安装内核版本,而不是从 http://kernel.ubuntu.com网站。

要升级包括内核的整个系统,只需要执行:

$ sudo apt-get update
$ sudo apt-get upgrade

如果只希望升级内核,运行:

$ sudo apt-get upgrade linux-image-generic

优势: 简单。推荐方法。

缺点: 需要联网,需要重启。

从官方库中升级内核是最接近开箱即用的方法,并且不会出什么问题。如果是生产环境的系统,这是最为推荐的升级 Linux 内核的方法。

方法 1 和方法 2 都需要用户去介入到升级 Linux 内核的过程中。而下边的方法(3、 4、 5)则几乎是全自动的。

...
...
...

方法 5 - 使用 Linux 内核实用程序更新 Linux 内核

Linux 内核实用程序是目前另一个用于升级类 Ubuntu 系统 Linux 内核的程序。实质上,它是一个由一系列 Bash 脚本构成的合集,用于编译并且可以选择性地为 Debian(LCTT 译注:Ubuntu 的上游发行版)及其衍生发行版升级内核。它包含三个实用程序,一个用于手动编译、安装来自于 http://www.kernel.org 网站的源码内核,另一个用于安装来自 https://kernel.ubuntu.com 网站的预编译的内核,第三个脚本用于移除旧内核。更多细节请浏览以下链接。

Linux 内核实用程序:编译和更新最新的 Linux 内核的脚本,适用于 Debian 及其衍生产品
优势: 简单,自动。

缺点: 需要联网,需要重启。

第二部分:无需重启的内核升级

方法 6 – 使用 Canonical 实时补丁服务来更新 Linux 内核

...
...
...

引用:升级 Ubuntu Linux 内核的几种不同方法 | Linux 中国

@englianhu
Copy link
Contributor Author

englianhu commented Nov 17, 2022

/etc/sudoers的权限必须是0440,错误修改成0777后导致sudo命令无法使用。

xxx@yyy:~$ sudo more /etc/sudoers.d/README
[sudo] password for xxx:
#
# As of Debian version 1.7.2p1-1, the default `/etc/sudoers` file created on
# installation of the package now includes the directive:
#
# #`includedir /etc/sudoers.d`
#
# This will cause sudo to read and parse any files in the `/etc/sudoers.d`
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode `0440`.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade. Feel free
# to add the above directive to the end of your `/etc/sudoers` file to enable
# this functionality for existing installations if you wish!
#

解决办法1:如果系统中有root用户,那么只需要登录root用户修改/etc/sudoers文件的权限。

su root
chmod 0440 /etc/sudoers

但如果此时未设置root用户或密码,无法登录root用户。

解决办法2:可在普通用户下通过pkexec命令来修改权限。

在重新返回通常模式下,执行pkexec chmod 0440 /etc/sudoers

xxx@yyy:~$ pkexec chmod 0440 /etc/sudoers
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run '/bin/chmod' as the super user
Authenticating as: xxx,,, (xxx)
Password:
==== AUTHENTICATION COMPLETE ===

解决办法3:

  1. 重启机器,按下SHIFT,选择recovery mode,蹦出来一个菜单,选择root进入root shell。
mount -o remount,rw /
chmod 0440 /etc/sudoers
  1. 重启进入普通状态下的系统,就能sudo

出处:修改/etc/sudoers权限后的补救方法


...
...
在这些组里面用户,才可以sudo ,如果你用的那个账号,不在这些组里面,可以用gpasswd -a 用户名 组名。例如:gpasswd -a zhangy admin这句话意思是说把zhangy这个用户加入到admin这个组当中。不同的linux系统,能执行sudo的组名是不一样的,archlinux下就只有sudo这个组,而没有admin这个组。

三,修改/etc/sudoers这个文件

root@ubuntu:/home/zhangy# ll /etc/sudoers
-r--r----- 1 root root 570 2011-04-17 14:41 /etc/sudoers
  1. 这个文件是只读的,所以要想修改sudo chmod 740 /etc/sudoers
  2. vim /etc/sudoers后把%admin ALL=(ALL) ALL改成%admin ALL=NOPASSWD:ALL
  3. sudo chmod 440 /etc/sudoers改完后,别忘了把权限改回来。

引用:海底苍鹰(tank)博客:详细说明 linux sudo 不要密码

Deepin su:鉴定故障

今天想让终端以root用户登录进行一些操作,日常输入su,然后输入密码,提示su:鉴定故障。

以为密码错了,多次尝试。。还是不得果,百度了一波,原来是操作方式有误,Debian下需要用sudo su这样才能正常的用root。

sudo su

输入密码。

成功以root用户方式操作终端!

*引用:【原创】小码农:Deepin su:鉴定故障

su - -c "usermod -a -G sudo `whoami`"

引用:如何配置 SUDO - DEBIAN 软件仓库使用帮助

其它参考资源:

@englianhu
Copy link
Contributor Author

englianhu commented Dec 5, 2022

R Development Page

Contributed R Packages

Below is a list of all packages provided by project Rmetrics - Computational Finance.

Important note for package binaries: R-Forge provides these binaries only for the most recent version of R, but not for older versions. In order to successfully install the packages provided on R-Forge, you have to switch to the most recent version of R or, alternatively, install from the package sources (.tar.gz).

install.packages(c('BLCOP', 'DistributionUtils', 'FKF', 'GeneralizedHyperbolic', 'HyperbolicDist', 'Rdonlp2', 'Rnlminb2', 'Rsocp', 'SkewHyperbolic', 'VarianceGamma', 'XMLRPC', 'fACD', 'fArma', 'fAsianOptions', 'fAssets', 'fBasics', 'fBonds', 'fCertificates', 'fCopulae', 'fEcofin', 'fExoticOptions', 'fExpressCertificates', 'fExtremes', 'fGarch', 'fImport', 'fMarkovSwitching', 'fMultivar', 'fNonlinear', 'fOptions', 'fPortfolio', 'fRegression', 'fTrading', 'fUnitRoots', 'ghyp', 'gldist', 'randsobolfortran', 'randtoolbox', 'rngWELL', 'rngWELLOriginal', 'schwartz97', 'stabledist', 'timeDate', 'timeSeries'), repos='http://R-Forge.R-project.org')

Alexios

R-downloads

Packages rugarch, rmgarch, parma, Rsolnp and spd are available to download from CRAN.

Active development, which includes the most up-to date versions with bug fixes, has now moved to bitbucket for rugarch, rmgarch, racd, spd and twinkle (parma remains on r-forge as a joint collaboration effort and mirrored on bitbucket, as is Rsolnp).

To install from bitbucket directly use:

BBmisc::lib(c('rugarch', 'rmgarch', 'racd', 'spd', 'twinkle', 'parma'))
require(devtools)
install_bitbucket('alexiosg/rmgarch')
install_bitbucket('alexiosg/rugarch')
install_bitbucket('alexiosg/racd')
install_bitbucket('alexiosg/spd')
install_bitbucket('alexiosg/twinkle')
install_bitbucket('alexiosg/parma')

Note for those on windows: You need to have Rtools installed as well as a working latex installation (e.g. miktex), else you’ll be unable to create the vignettes (in which case set ‘build_vignettes=FALSE’ in the install_bitbucket to avoid errors during build/install).

出處:Alexios 博文

devtools::install_github('DavisVaughan/flyingfox')
devtools::install_github('tidyverts/fable')
devtools::install_github('tidyverts/fabletools')

# https://data.nasdaq.com/tools/r
install.packages('devtools')
library(devtools)
install_github('quandl/quandl-r')
library(Quandl)

以上程序包

相关话题

@englianhu
Copy link
Contributor Author

englianhu commented Jan 17, 2023

:~$ sudo chmod 777 -R /etc/resolv.conf
sudo: /etc/sudoers.d 可被任何人写        #出现警讯
:~$ sudo chmod 754 -R /etc/sudoers.d   #重新赋权,权限解释如下。

chmod 777 /etc/squid 运行命令后,squid文件夹(目录)的权限就被修改为777(可读可写可执行)。

Linux系统中,每个用户的角色和权限划分的很细致也很严格,每个文件(目录)都设有访问许可权限,利用这种机制来决定某个用户通过某种方式对文件(目录)进行执行等操作。

操作文件或目录的用户,有3种不同类型:文件所有者、群组用户、其他用户。最高位表示文件所有者的权限值,中间位表示群组用户的权限值,最低位则表示其他用户的权限值,所以,chmod 777中,三个数字7分别对应上面三种用户,权限值都为7。

文件或目录的权限又分为3种:只读、只写、可执行。

权限 权限数值 二进制 具体作用
r 4 00000100 read,读取。当前用户可以读取文件内容,当前用户可以浏览目录。
w 2 00000010 write,写入。当前用户可以新增或修改文件内容,当前用户可以删除、移动目录或目录内文件。
x 1 00000001 execute,执行。当前用户可以执行文件,当前用户可以进入目录。

依照上面的表格,权限组合就是对应权限值求和,如下:

7 = 4 + 2 + 1      #读写运行权限
5 = 4 + 1          #读和运行权限
4 = 4              #只读权限

因此,大家也就明白了 chmod 754 filename 命令的含义了。

这句命令的意思是将filename文件的读写运行权限赋予文件所有者,把读和运行的权限赋予群组用户,把读的权限赋予其他用户。

引用:Linux常用命令:修改文件权限chmod 754/744

@englianhu englianhu changed the title 🚩🇨🇳🏹中科红旗 RedFlag Linux (🍥Debian) 🚩🇨🇳🏹🦔中科红旗 RedFlag Linux (🍥Debian) Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant