This article describes the process of installing Kali Linux 2024.3, Gnome Desktop, and installing various applications and beautifications.
Installation of the operating system
Download the operating system image from the Internet, write it to a USB flash drive, and make a boot disk.
/kali-images/current/kali-linux-2024.
Check your hard drive and find your flash drive
sudo fdisk -l
Find the USB flash drive as /dev/sdb
dd if=./kali-linux-2024. of=/dev/sdb bs=4M status=progress
Wait for the write to complete, you can reboot, enter the boot, into the USB flash drive operating system installed on your hard disk
Replacement of software sources
sudo vim /etc/apt/
Replace the content with
deb /kali kali-rolling main non-free contrib non-free-firmware
Install some dependencies
sudo apt install btrfs-progs xfsprogs (Here, because of the use ofbtrfsorxfsfile system,That's why it's necessary.)
sudo apt update
sudo apt upgrade
sudo apt install okular
sudo apt remove texlive-*
Installation of Chinese Input Method
sudo apt remove fcitx5-*
sudo apt install fcitx
sudo apt install qtbase5-dev
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1
sudo apt install ./sogoupinyin_4.2.1.145_amd64.deb
At this point you can use im-config to configure the system to use fcitx input framework, reboot, the system automatically starts fcitx input method framework, use fcitx-config to add a sogoupinyin one can be.
However, at this point you'll realize that although it's configured, it doesn't work and you can run the/opt/sogoupinyin/files/bin/sogoupinyin-configtool
to test it and will find that there is an error reported.
This should be a problem with the qt5 library that comes with sogou, which needs to be modified to work.
The sogou input method is installed in the /opt/sogoupinyin/files directory, and can be accessed using the/opt/sogoupinyin/files/bin/sogoupinyin-configtool
Check out its use of dynamic libraries. We can see that its use of the/opt/sogoupinyin/files/lib/qt5
Inside the dynamic library, there are certain problems, we need to replace it with the operating system comes with the qt5 library inside, we have installed all the required qt5 libraries in the previous paragraph, in the/usr/lib/x86_64-linux-gnu/qt5/
We introduced it into the
Modify the file /opt/sogoupinyin/files/bin/ to read
[Paths]
Prefix = /usr/lib/x86_64-linux-gnu/qt5/
Plugins = plugins
Remove sogou's own libraries
sudo rm /opt/sogoupinyin/files/lib/qt5 -rf
At this point it's basically good enough to run/opt/sogoupinyin/files/bin/sogoupinyin-configtool
To test it out, it generally already shows this interface, so there's generally no shortage of stuff, and the whole thing works
Installing docker
Installation maintained by debian, refer to /docs/containers/installing-docker-on-kali/
sudo apt update
sudo apt install
sudo systemctl enable docker --now
Add docker permissions for regular users
sudo usermod -aG docker $USER
Changing the docker image (referenced from /yuzhihui/p/)
sudo vim /etc/docker/
Add the following
{
"registry-mirrors": [
""
]
}
Then restart the docker container
sudo systemctl restart docker
Install docker-compose
sudo curl -L "/docker/compose/releases/download/v2.29.7/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
beta (software)
docker run hello-world
Installation of conda
Go online and download the Miniconda installer.
sh ./Miniconda3-py38_4.12.0-Linux-x86_64.sh
Replacement of conda source.
vim ~/.condarc
Fill in the following, (from/help/anaconda/)
channels:
- defaults
show_channel_urls: true
default_channels:
- /anaconda/pkgs/main
- /anaconda/pkgs/r
- /anaconda/pkgs/msys2
custom_channels:
conda-forge: /anaconda/cloud
pytorch: /anaconda/cloud
Creating conda's environment
conda create -n py311 python=3.11
conda activate py311
conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia
conda install tensorboard torchmetrics matplotlib numpy
conda install -c conda-forge diffusers accelerate transformers gpustat loguru
Installation of texlive
Uninstall texlive before installing.
sudo apt remove texlive-*
Mount the downloaded texlive image package (/CTAN/systems/texlive/Images/), go to Run installer
sudo ./install-tl
Just install it all the way.
Configuring Latex Compilation and Bidirectional Searching
Download the installer for the vscode website (/docs/?dv=linux64_deb)
sudo apt install ./code_1.94.2-1728494015_amd64.deb
Install okular
sudo apt install okular
Go to vscode and install the latex workshop plugin
Configuring vscode configuration
{
"": "Visual Studio 2017 Light - C++",.
"": "material-icon-theme".
"": 16,.
# Start the latex configuration here to automatically open okular for previews
""": "okular","":"
"": [
"--unique".
"%PDF%"
], "": "external","%PDF%","%PDF%
""": "external",
""": "okular",
"": [
"--unique".
"%PDF%#src:%LINE%%TEX%"
],
"": "on".
"[html]": {
"":"-vscode"
},
# Turn off autosave, turn off autocompile
"": 15000, # auto-compile turned off
""": "afterDelay", # # Turn off autosave, turn off autocompile, # Turn off autocompile.
"": "never","": "never","": false
"": false
}
In the settings in okular, select another editor in editor, and set the jump directive to
code --goto %f:%l
That is, in vscode, ctrl+alt+j to jump to the PDF, in okular shift+click to jump to the latex source code corresponding to line
Installing Zotero
Go to the official website to download the installation package, (/download/client/dl?channel=release&platform=linux-x86_64&version=7.0.8)
Unzip it into your directory and configure desktop to be the entry point of the program
sudo vim /usr/share/applications/
which is filled in:
[Desktop Entry]
Name=Zotero
Exec=bash -c "/home/abc/APP/Zotero/Zotero_linux-x86_64/zotero -url %U"
Icon=/home/abc/APP/Zotero/Zotero_linux-x86_64/icons/
Type=Application
Terminal=false
Categories=Office;
MimeType=text/plain;x-scheme-handler/zotero;application/x-research-info-systems;text/x-research-info-systems;text/ris;application/x-endnote-refer;application/x-inst-for-Scientific-info;application/mods+xml;application/rdf+xml;application/x-bibtex;text/x-bibtex;application/marc;application/+xml
X-GNOME-SingleWindow=true
Just change the Exec and Icon lines here to your path.
Install zotero plugin
Translation Plugin:
/windingwind/zotero-pdf-translate
You can set up the API according to the translation plugin
installation service
For some software, which needs to start up at boot, it can be made into a service.
sudo vim /usr/lib/systemd/system/***.service
fill in
Description=*** daemon
[Service]
Type=simple
User=root
ExecStart=/home/abc/APP/***/***-linux-amd64 -d /home/abc/APP/***/
Restart=on-failure
[Install]
WantedBy=
Setting up boot-up
sudo systemctl enable ***.service
sudo systemctl start **.service
View Status
sudo systemctl status ***.service