- VisualStudio2022插件的安装及使用-编程手把手系列文章
- pprof-在现网场景怎么用
- C#实现的下拉多选框,下拉多选树,多级节点
- 【学习笔记】基础数据结构:猫树
本文讲述安装了Kali Linux 2024.3,Gnome桌面,以及安装各种应用与美化的过程.
网络上下载操作系统镜像,写入u盘,制作启动盘 https://mirrors.tuna.tsinghua.edu.cn/kali-images/current/kali-linux-2024.3-installer-amd64.iso 。
查看硬盘,找到你的U盘 。
sudo fdisk -l
找到U盘为/dev/sdb 。
dd if=./kali-linux-2024.3-installer-amd64.iso of=/dev/sdb bs=4M status=progress
等待写入完毕,即可重启,进入引导,进U盘操作系统安装到你的硬盘上 。
sudo vim /etc/apt/sources.list
内容替换为 。
deb https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main non-free contrib non-free-firmware
sudo apt install btrfs-progs xfsprogs (这里因为用了btrfs或者xfs文件系统,所以需要)
sudo apt update
sudo apt upgrade
sudo apt install okular
sudo apt remove texlive-*
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
此时可以使用im-config来配置系统使用fcitx输入框架,重启后,系统自动启动fcitx输入法框架,使用fcitx-config进去添加一项sogoupinyin一项即可.
但是,这时你会发现,虽然配置好了,但是不能使用,可以运行/opt/sogoupinyin/files/bin/sogoupinyin-configtool来测试一下,会发现存在报错.
这应该是sogou自带的qt5库的问题,需要修改方能使用.
sogou输入法安装在/opt/sogoupinyin/files目录下,可以使用/opt/sogoupinyin/files/bin/sogoupinyin-configtool查看其动态库的使用。我们可以发现,其使用了/opt/sogoupinyin/files/lib/qt5里面的动态库,存在一定的问题,我们需要将其换成操作系统自带的qt5库里面,我们前文已经安装了所有所需的qt5的库,在/usr/lib/x86_64-linux-gnu/qt5/,我们将其引入 。
将文件/opt/sogoupinyin/files/bin/qt.conf修改为 。
[Paths]
Prefix = /usr/lib/x86_64-linux-gnu/qt5/
Plugins = plugins
删除sogou自带的库 。
sudo rm /opt/sogoupinyin/files/lib/qt5 -rf
这时基本已经好使了,可以运行/opt/sogoupinyin/files/bin/sogoupinyin-configtool来测试一下,一般已经能显示这个界面了,这样一般就不缺少东西了,整个都能用了 。
安装由debian维护的docker.io,参考https://www.kali.org/docs/containers/installing-docker-on-kali/ 。
sudo apt update
sudo apt install docker.io
sudo systemctl enable docker --now
为普通用户添加docker的权限 。
sudo usermod -aG docker $USER
更改docker镜像(参考了https://www.cnblogs.com/yuzhihui/p/17461781.html) 。
sudo vim /etc/docker/daemon.json
添加内容如下 。
{
"registry-mirrors": [
"https://dockerproxy.cn"
]
}
然后重启docker容器 。
sudo systemctl restart docker
安装docker-compose 。
sudo curl -L "https://github.com/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
测试 。
docker run hello-world
去网上下载Miniconda的安装包 。
sh ./Miniconda3-py38_4.12.0-Linux-x86_64.sh
更换conda源, 。
vim ~/.condarc
填入以下内容,(from https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/) 。
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
创建conda的环境 。
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
装之前先给系统带的texlive卸载 。
sudo apt remove texlive-*
挂载上下载的texlive镜像包(https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/texlive2024-20240312.iso),进入运行安装程序 。
sudo ./install-tl
一路安装即可.
为vscode官网下载安装包(https://code.visualstudio.com/docs/?dv=linux64_deb) 。
sudo apt install ./code_1.94.2-1728494015_amd64.deb
安装okular 。
sudo apt install okular
进入vscode,安装latex workshop插件 。
配置vscode配置 。
{
"workbench.colorTheme": "Visual Studio 2017 Light - C++",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 16,
# 这里开始latex配置,自动打开okular来预览
"latex-workshop.view.pdf.external.viewer.command": "okular",
"latex-workshop.view.pdf.external.viewer.args": [
"--unique",
"%PDF%"
],
"latex-workshop.view.pdf.viewer": "external",
"latex-workshop.view.pdf.external.synctex.command": "okular",
"latex-workshop.view.pdf.external.synctex.args": [
"--unique",
"%PDF%#src:%LINE%%TEX%"
],
"editor.wordWrap": "on",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
# 关闭自动保存,关闭自动编译
"files.autoSaveDelay": 15000,
"files.autoSave": "afterDelay",
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.latex.autoBuild.cleanAndRetry.enabled": false
}
在okular中设置中,editor中选择其他编辑器,跳转指令设置为 。
code --goto %f:%l
即可在vscode中,ctrl+alt+j跳转到PDF中,在okular中shift+click跳转到latex源码对应行 。
去官网下载安装包,(https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=7.0.8) 。
解压到你的目录中,配置desktop来作为程序入口 。
sudo vim /usr/share/applications/zotero.desktop
其中填入:
[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/icon128.png
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/vnd.citationstyles.style+xml
X-GNOME-SingleWindow=true
给这里的Exec和Icon行修改为你的路径即可 。
安装zotero插件 。
翻译插件:
https://github.com/windingwind/zotero-pdf-translate 。
可以根据翻译插件去设置API 。
对于某些软件,需要开机自启动,可以做成服务 。
sudo vim /usr/lib/systemd/system/***.service
填入 。
Description=*** daemon
[Service]
Type=simple
User=root
ExecStart=/home/abc/APP/***/***-linux-amd64 -d /home/abc/APP/***/
Restart=on-failure
[Install]
WantedBy=multi-user.target
设置开机自启动 。
sudo systemctl enable ***.service
sudo systemctl start **.service
查看状态 。
sudo systemctl status ***.service
安装flatpak,并设置flathub,并使用sjtu的flathub镜像 。
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub
安装flatseal 。
sudo flatpak install flathub com.github.tchx84.Flatseal
使用lfatpak安装WPS 。
sudo flatpak install flathub com.wps.Office
安装缺失字体(https://github.com/dv-anomaly/ttf-wps-fonts) 。
cd /tmp
git clone https://github.com/iamdh4/ttf-wps-fonts.git
cd ttf-wps-fonts
sudo bash install.sh
cd .
rm -rf /tmp/ttf-wps-fonts
sudo flatpak install flathub com.qq.QQ
sudo flatpak install flathub com.tencent.WeChat
最后此篇关于配置与美化Linux桌面的文章就讲到这里了,如果你想了解更多关于配置与美化Linux桌面的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。
这显然有可能导致一场激烈的 war ,但无论如何,我试一试……(目前)还没有任何明确的答案。 在我的一台机器上,我确实被切换/升级到 Matlab 2012b。这是一个漂亮的新桌面,好吧。但出于很多原
当我的 Docker 容器启动时,我收到以下通知: Docker Desktop has detected that you shared a Windows file into a WSL 2 co
我希望能够(从服务器)连接到远程 PC 并能够访问其文件。我正在尝试使用 PHP 或 JavaScript 来完成此操作。 所以我想知道 1) 是否可能以及 2) 如何做到。 有人有任何示例/解决方案
我想使用 DirectX 为 Windows 7 制作动画桌面背景。我正在使用 C#、SlimDX 和几个 Windows API 函数的 P/Invoke 导入。我对 native Windows
是否可以为 Mac 开发动态桌面?我所说的“动态”是指其图像采用系统参数(例如时间和作业信息)并使用此信息来更新图像的桌面。有关图像状态的信息也将在 session 之间保留。我不是在谈论电影或随机但
我正在 LibGDX 中构建一个仅限桌面的应用程序。该游戏内置了一个 map 编辑器,您可以切换到并更改游戏 map 。我想添加一个功能,如果用户单击关闭窗口并且有未保存的编辑,它会提示您是否要在关闭
有没有像样的Windows桌面JSON lines (JSONL)格式查看器? 这种格式也称为: 行分隔的 JSON (LDJSON) 换行符分隔的 JSON (NDJSON) 我正在寻找至少能够从
我有一个UITableView,它在单元格中显示大量图像,并且我对滚动性能并不满意。我的 UITableView 类似于 iPhone 上的照片应用程序。有谁知道为什么 iphone 照片应用程序滚动
let img1 = document.createElement('img'); img1.setAttribute('src', 'https://caniuse.com/img/browsers
我在同一窗体上有两个不同的网格控件。它们共享相同的上下文菜单。当我选择上下文菜单项时,我无法确定哪个控件是所有者。 最佳答案 ContextMenuStrip 类的 SourceControl 属性将
我已经安装了 Docker Desktop ( version : 2.3.0.4 ) 并启用了 Kubernetes . 我部署了几个 PODS,一切正常,从昨天开始,我遇到了下面提到的一个奇怪的问
我正在制作需要实现TableView的应用程序。 我想将背景图像应用到桌面 View 。 谁能帮我解决这个问题。我正在使用下面的代码来创建 TableView Titanium.UI.setBackg
我在同一窗体上有两个不同的网格控件。它们共享相同的上下文菜单。当我选择上下文菜单项时,我无法确定哪个控件是所有者。 最佳答案 ContextMenuStrip 类的 SourceControl 属性将
您能建议一些库在我的桌面 Java 应用程序中创建雷达图吗? 谢谢 最佳答案 似乎JFreeChart提供了SpiderWebPlot 。 images for which看起来像雷达图。 关于jav
这个问题已经有答案了: 已关闭10 年前。 Possible Duplicate: Not possible to launch a file on a network using Java Desk
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
我想知道是否可以(使用JAVA)识别用于发出请求的计算机类型,例如:服务器、台式机、PDA(平板电脑、手机等)? 谢谢! 最佳答案 取决于您使用什么来接受请求。对于 http 请求,信息位于请求 he
我添加了一个事件处理程序,用于滚动到我的桌面 View ,但它仅在我使用滚轮滚动时才起作用,但我也需要它在您单击并拖动滚动条时起作用。任何想法有什么问题吗?我尝试使用不同的方法来处理该事件,但没有一个
我想开始开发桌面 Java 应用程序,并且我想知道 Java 社区使用什么。 我从 Swing 开始,但发现它非常初级。 我习惯于在 Visual Studio 2010 中使用 .net c# WP
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
我是一名优秀的程序员,十分优秀!