Author: Junner
Date: 12/17/2024
My R version is 4.4.3.
While installing tidyverse:
install.packages("tidyverse")
It showed this kind of warnings:
removing ‘/home/hubbert/R/x86_64-pc-linux-gnu-library/4.4/tidyverse’
JunnerX changed a month agoView mode Like Bookmark
Author: Junner
Date: 2025/5/13
I need to run LLM in Chroot container. But using CPU to process language model is not a smart idea. So here, I'm going to lead you how to access an RTX graphic Card inside the enviroment.
1. Bind Nvidia Decive Node
mkdir -p /etc/systemd/nspawn/
cd /etc/systemd/nspawn/
nano agents.nspawn
Add these for binding Nvidia device with the container
JunnerX changed a month agoView mode Like Bookmark
Author: Junner
Date: 5/10/2025
There is a BUG for systemd-nspawn container, Ubuntu Focal. When entering a working machine, the caintainer terminated immediately.
┌──(junnerℵ₀pop-os)-[~]
└─$ sudo systemctl start systemd-nspawn@agents
┌──(junnerℵ₀pop-os)-[~]
└─$ machinectl list
JunnerX changed 2 months agoView mode Like Bookmark
Author: Junner
Date: 5/8/2025
After using sudo apt upgrade, terminal showed:
Waiting for cache lock: Could not get lock: /var/lib/dpkg/lock-frontend. It is held by process 3399.
I checked the process name by
ps -A | grep 3399
JunnerX changed 2 months agoView mode Like Bookmark
Author: Junner
Date: 12/2/2024
When your using python, needs to import nltk packages, and the line nltk.download('punkt') always failed when downloading it:
E LookupError:E **********************************************************************E Resource punkt not found.E Please use the NLTK Downloader to obtain the resource:EE >>> import nltkE >>> nltk.download('punkt')
The way to avoid it is by running the command below directly in prompt:
echo -e "import nltk\nnltk.download('punkt')" | python3
JunnerX changed 4 months agoView mode Like Bookmark
Author: Junner
Date: 05/01/24
Stage 1
First, let me introduce a simple version of this kind of problem:
$$\newcommand{\d}{\mathrm{d}}
\newcommand{\alb}{\begin{align*}}
\newcommand{\ale}{\end{align*}}
\newcommand{\dis}{\displaystyle}
JunnerX changed 4 months agoView mode Like 1 Bookmark
Author: Junner
Date: 2/26/2025
Solution Ref: https://unix.stackexchange.com/questions/410723/how-to-install-a-specific-version-of-gcc-in-kali-linux
When I'm building gf2x for NTL, it failed:
C++ style comments are not allowed in ISO C90
And I found the version with gcc -v
JunnerX changed 4 months agoView mode Like Bookmark
Author: Junner
Date: 2/26/2025
When try to run PS script (.ps1), terminal came out an error:
.\*ps1 : File D:\Junner\setup_env.ps1 cannot be loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\*ps1
+ ~~~~~~
JunnerX changed 4 months agoView mode Like Bookmark
Author: Junner
Date: 2/16/2025
Find the output device that you want to adjust.
pactl list sinks
image
Assume you want to adjust the volume up to 150% for sink #64.
JunnerX changed 5 months agoView mode Like Bookmark
Author: Junner
Date: 1/19/2025
I want to make three things:
Let ls as ls -la with color
Let cls as clear 'cause I'm a windows user
Set q as exit
1. Check the Shell Type
JunnerX changed 6 months agoView mode Like Bookmark
Author: Junner
Date: 2024/09/24
Commands
Open Command Prompt or PowerShell as an administrator. <small><small>[1]</small></small>
Run the following commands. <small><small>[1]</small></small>
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all
Reboot your computer to apply the changes.
JunnerX changed 6 months agoView mode Like Bookmark