Posts

Linux Mint How to disable "login keyring" and Chrome

Image
Linux Mint How to disable "login keyring" and Chrome https://softhints.com/linux-mint-disable-login-keyring/  How to fix it: Open  Menu All Applications Accessories Passwords and Keys Right-click on the "login" keyring Select "Change Password" Enter your old password if asked Don't enter new password Continue

How To find your version of Linux Mint

To find your version of Linux Mint, open a terminal and type: cat /etc/linuxmint/info

How to Fix the SSH “Connection Refused” Error on Linux

 https://www.makeuseof.com/fix-ssh-connection-refused-error-linux/

Fix for "Is the package apt-transport-https installed?"

# Fix for "Is the package apt-transport-https installed?" - Raspberry Pi 1 A+ - sudo apt-get update # Solution ` sudo vi /etc/apt/sources.list ` ` # Was: 12/19/17. Updated 9/13/21 to point to "legacy" server. deb  http://legacy.raspbian.org/raspbian/  jessie main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' deb-src  http://legacy.raspbian.org/raspbian/  jessie main contrib non-free rpi ` ` cd /usr/lib/apt/methods sudo ln -s http https ` # References - https://forums.raspberrypi.com/viewtopic.php?t=343512 - https://www.reddit.com/r/ChipCommunity/comments/lvo82m/fix_for_is_the_package_apttransporthttps_installed/

Linux Mint "Authentication required"

 Linux Mint "Authentication required" The Keyring Concept in Ubuntu: What is It and How to Use it?

how to install the ruby gem package "taglib"

 # install FOR ubutun sudo apt-get install libtag1-dev gem install taglib-ruby # check FOR taglib $ irb irb(main):001:0> require 'taglib' => true irb(main):002:0>

A youtube-dl fork with additional features and fixes

1. youtube download:  yt-dlp https://github.com/yt-dlp/yt-dlp 2. Install  yt-dlp python -m pip install yt-dlp 3. Use  yt-dlp yt-dlp -F h ttps://www.youtube.com/watch?v=mkggXE5e2yk

install python on Linux Mint 21

1. Simple Python version management https://github.com/pyenv/pyenv 2. Install pyenv curl https://pyenv.run | bash 3. Use pyenv pyenv versions pyenv install 3.11.1 pyenv global 3.11.1

Error: Rails7, Vite3 and HMR

Solution: import { defineConfig } from ' vite ' import RubyPlugin from ' vite-plugin-ruby ' import FullReload from " vite-plugin-full-reload " ; import vue from ' @vitejs/plugin-vue ' export default defineConfig ({ plugins: [ RubyPlugin (), FullReload ( [ " config/routes.rb " , " app/views/**/* " ] , { delay: 200 }), vue () ] , server: { // Solution: https://coder.com/docs/v1/latest/guides/troubleshooting/vite-hmr // Error: [vite] Direct websocket connection fallback hmr: { clientPort: 3036 }, }, }) Error: WebSocket connection to 'ws://127.0.0.1:5100/vite-dev/' failed:            client.ts:78 [vite] Direct websocket connection fallback. Check out https://vitejs.dev/config/server-options.html#server-hmr to remove the previous connection error.             client.ts:59 References: https://coder.com/docs/v1/latest/guides/troubleshooting/vite-hmr  

The examples of Rails 7 and Vue 3 app

The examples of Rails 7 and Vue 3 app [gbarillot](https://github.com/gbarillot/rails-vue-demo-app.git) [pingcrm-vite](https://github.com/ElMassimo/pingcrm-vite) [Deanout](https://github.com/Deanout/vue-vite-rails) [vite_rails_docker_example](https://github.com/ElMassimo/vite_rails_docker_example)  

How to build/install ruby 2.7.5 on ubuntu 22.04

Solution: Download OpenSSL 1.1.1 $ cd ~/Downloads $ wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz $ tar xf openssl-1.1.1q.tar.gz Compile it $ cd ~/Downloads/openssl-1.1.1q $ ./config --prefix=/opt/openssl-1.1.1q --openssldir=/opt/openssl-1.1.1q shared zlib $ make $ make test $ sudo make install Link the system's certs to OpenSSL 1.1.1 directory $ sudo rm -rf /opt/openssl-1.1.1q/certs $ sudo ln -s /etc/ssl/certs /opt/openssl-1.1.1q Install ruby $ RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/openssl-1.1.1q asdf install ruby 2.7.5 Error: `require': libssl.so.1.1: cannot open shared object file: No such file or directory - /tmp/ruby-build.... References: https://github.com/rbenv/ruby-build/discussions/1940 https://gist.github.com/yob/08d53a003181aa0fcce9812b1b533870 https://blog.chetanmittaldev.com/how-to-install-older-rubies-on-ubuntu-2204-using-rvm https://github.com/rvm/rvm/issues/5209  

Linux Mint / Ubuntu:

  apt-key Is Deprecated sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo gpg --dearmour -o /usr/share/keyrings/yarnkey.gpg References: - https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html

How To Install Ruby 3 With rbenv?

Command: rbenv versions git -C ~/.rbenv/plugins/ruby-build pull  rbenv install 3.0 .0 rbenv versions Refrenece: - https://richstone.io/where-is-ruby-3-0-0-on-rbenv/

ERROR: The command 'foreman start"

Image
ERROR: The command 'foreman start" 19:20:41 frontend.1 | error when starting dev server: 19:20:41 frontend.1 | Error: Port 3036 is already in use 19:20:41 frontend.1 | at Server.onError SOLUTION: $ lsof -wni tcp:3036 $ sudo kill -9 PID REFERENCE: -  https://stackoverflow.com/questions/31039998/rails-address-already-in-use-bind2-errnoeaddrinuse

E: Could not get lock /var/lib/dpkg/lock-frontend

Image
 ERROR: SOLUTION: gudao@dmm : ~ $ sudo apt install monit REFERENCE: -  https://askubuntu.com/questions/1109982/e-could-not-get-lock-var-lib-dpkg-lock-frontend-open-11-resource-temporari

英语不可数名词

There is some milk There is some water There is some honey  There is some sugar  There is some cereal 

Ruby Command Line Interface (CLI) Framework

CLI Framework https://github.com/piotrmurach/tty https://github.com/dry-rb/dry-cli https://github.com/Shopify/cli-kit https://github.com/mdub/clamp https://github.com/rails/thor Resources https://www.rubyguides.com/2018/12/ruby-argv/

How to install Rstudio & R-base Ubuntu 20.04 LTS Linux

 https://www.how2shout.com/linux/how-to-install-rstudio-ubuntu-20-04-lts-linux/

英语字母a的发音

ˈenē ~~ any sôlt ~~ salt ˈwôdər ~~ water bôrd ~~ board hav ~~ have bag ~~ bag T͟Hat ~~ that ˈapəl ~~ apple ˈSHo͝oɡər ~~ sugar wəz ~~ was does you have any sugar or any salt? dā ~~ day ˈtābəl ~~ table wänt ~~ want ēt ~~ eat mēl ~~ meal ˈbrekfəst ~~ breakfast ˈredē ~~ ready ˈrē(ə)lē ~~ really märCH ~~ march

英语口语

to well, to wear H,age walk, work save, safe pictures, packages They'll, their Ireland, island RAF, rough browsers, blouses birds,boats at, ate learning, learn, running let,late fall, for lesson, listed only, early our, or, owl too much, to match where were they yesterday, we were there yesterday where were they yesterday, we were there yesterday were they there yesterday Our stay here, I'll stay here write, light, right pepper, paper noodles, new doors