- Java锁的逻辑(结合对象头和ObjectMonitor)
- 还在用饼状图?来瞧瞧这些炫酷的百分比可视化新图形(附代码实现)⛵
- 自动注册实体类到EntityFrameworkCore上下文,并适配ABP及ABPVNext
- 基于Sklearn机器学习代码实战
很早之前的电脑ThinkPad E440,一直没怎么用。最近整理了一下电脑的资料,全部备份到云盘。整理的过程感觉电脑很慢很慢,难受极了。整理完后,终于我要对它下手了! 。
我制作了启动U盘,把Ubuntu 22.04的镜像烧录进去,通过U盘启动,把系统装在ThinkPad上。居然电脑出奇的好用,根本不卡。那就记录一下吧.
先从 官网 下载镜像,然后通过 BalenaEtcher 来把系统镜像放在U盘上。接着就是启动与安装了,没什么特别的,只要改一下BIOS的启动顺序即可.
参考: https://ubuntu.com/tutorials/install-ubuntu-desktop#2-download-an-ubuntu-image 。
可以用系统自带的,但我使用的是Shutter,直接在Ubuntu Software搜索安装即可。但安装完不能使用自选区域截图,会提示:
cannot work without X11 server
解决方案:
找到 /etc/gdm3/custom.conf 文件,去掉注释: WaylandEnable=false 。
重启一下: sudo systemctl restart gdm3 即可.
设置快捷键:
Settings -> Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts 。
接着拉到最后的Custom Shortcuts。添加如下:
参考:
新版本的Typora收费了,并且官网也下载不了原有的免费版本,可以在这个链接下载:
下载地址: https://github.com/iuxt/src/releases/download/2.0/Typora_Linux_0.11.18_amd64.deb 。
然后使用apt安装即可:
sudo apt install ./Typora_Linux_0.11.18_amd64.deb
参考: https://zahui.fan/posts/64b52e0d/ 。
Settings -> Power -> Show Battery Percentage 。
设置里找到Regin & Language,Manage installed Languages,安装中文。输入法系统选iBus即可。接着在Keyboard那添加中文输入法,有拼音和五笔,如果操作不了,可能需要先重启:
可以通过Win + 空格来切换。中英文通过Shift.
大致如下:
sudo apt install git
git config --global user.name "LarryDpk"
git config --global user.email "larry.dpk@gmail.com"
# 生成ssh key,把pub key放GitHub上
ssh-keygen -t rsa -b 4096 -C "larry.dpk@gmail.com"
Git拉取代码报错:
$ git pull
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
换成另一个域名: ssh.github.com :
参考: https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port 。
git status 显示数字,不显示中文:
git config --global core.quotepath false
因为Chrome在Ubuntu不在Software Center,所以要通过先下载安装包的方式来下载:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
系统已经自带了Python3,版本也比较高,也没办法再安装了。但要安装pip3:
$ python3 --version
Python 3.10.6
sudo apt install python3-pip
我的电脑是一个SSD盘,一个普通硬盘,系统装在SSD上,所以需要把硬盘挂载一下:
sudo mount /dev/sda3 /home/larry/data
但每次都这样手动mount很麻烦,又要输入密码,所以我们让系统在启动的时候就mount,在 /etc/fstab 文件中添加一行:
# disk
UUID=277de78c-6639-4373-a5cd-38feff129de7 /home/larry/data ext4 defaults 0 0
重启即可.
参考: https://developerinsider.co/auto-mount-drive-in-ubuntu-server-22-04-at-startup/ 。
下载Linux 64位版本: https://github.com/aliyun/oss-browser 。
直接打开会报错,少了libgconfi-2-4,安装后打开即可:
$ ./oss-browser
./oss-browser: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
$ sudo apt install libgconf-2-4
参考: https://stackoverflow.com/questions/37624225/shared-libraries-libgconf-2-so-4-is-missing 。
下载JDK: https://github.com/graalvm/graalvm-ce-builds/releases 。
我下载的版本是:graalvm-ce-java11-linux-amd64-22.3.0.tar.gz 。
解压后指定JAVA_HOME即可.
JAVA_HOME=/home/larry/software/graalvm-ce-java11-22.3.0
export PATH=$JAVA_HOME/bin:$PATH
直接下载后解压即可: https://maven.apache.org/download.cgi 。
export M2_HOME=/home/larry/software/apache-maven-3.8.6
export PATH=$M2_HOME/bin:$PATH
在 .bashrc 添加:
if [ -f ~/bash_profile.sh ]; then
. ~/bash_profile.sh
fi
然后便可在 bash_profile.sh 文件中添加自己的配置了:
export JAVA_HOME=/home/larry/software/graalvm-ce-java11-22.3.0
export PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/home/larry/software/apache-maven-3.8.6
export PATH=$M2_HOME/bin:$PATH
alias l='ls -al'
下载软件: https://github.com/kingToolbox/WindTerm/releases/tag/2.5.0 。
选择自动复制已经支持了.
右键直接粘贴:
参考: https://github.com/kingToolbox/WindTerm/issues/19#issuecomment-719334753 。
修改锁屏密码: 点击一下右下角的 Lock Screen 即可修改.
以IDEA为例,直接通过IDEA自己提供的工具,如下图所示:
或者自己创建对应的Entry,放在特定的位置:
$ cat /usr/share/applications/jetbrains-idea.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate Edition
Icon=/home/larry/software/ideaIU-2022.3/bin/idea.svg
Exec="/home/larry/software/ideaIU-2022.3/bin/idea.sh" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea
StartupNotify=true
如果只是自己生效则放在 ~/.local/share/applications .
其它例子:
[Desktop Entry]
Version=1.0
Type=Application
Name=WindTerm
Icon=/home/larry/software/WindTerm_2.5.0/windterm.png
Exec="/home/larry/software/WindTerm_2.5.0/WindTerm" %f
Comment=WindTerm
Categories=Development;SSH;
Terminal=false
StartupNotify=true
IDEA占用的内存还是太多了,还是使用VSCode吧,直接Ubuntu Software搜索安装即可.
到 官网 下载: https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh 。
然后执行命令安装:
$ bash ./Anaconda3-2022.10-Linux-x86_64.sh
会有一些提示,要输入yes等。最后init,执行命令:
$ source ~/.bashrc
其它就是帮我们加了这段内容到 .bashrc 文件中:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/larry/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/larry/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/larry/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/larry/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
同时,它直接把系统的python也切换了:
$ which python
/home/larry/anaconda3/bin/python
$ which python3
/home/larry/anaconda3/bin/python3
$ which pip
/home/larry/anaconda3/bin/pip
$ which pip3
/home/larry/anaconda3/bin/pip3
$ python --version
Python 3.9.13
$ python3 --version
Python 3.9.13
$ pip --version
pip 22.2.2 from /home/larry/anaconda3/lib/python3.9/site-packages/pip (python 3.9)
直接在官网下载Linux deb版本: https://pan.baidu.com/download#pan 。
然后用下面命令安装即可:
$ sudo apt install ./baidunetdisk_4.15.6_amd64.deb
可以直接在Software Center安装,也可以到官网下载安装: https://www.videolan.org/ 。
最后此篇关于Ubuntu玩机记录,让我破电脑又飞起来了的文章就讲到这里了,如果你想了解更多关于Ubuntu玩机记录,让我破电脑又飞起来了的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我刚刚开始使用 Arduino,对更多高级内容几乎一无所知。这看起来很简单。现在我是一个通常喜欢将两个设备集成在一起的人,所以我想知道我是否可以使用计算机的键盘或连接到 Arduino 板上的两个硬件
Hadoop上是否有支持 vector 机的实现? 我正在寻找使我能够训练然后在Hadoop之上测试SVM模型的代码。 最佳答案 有人正在使用BSP在Apache Hama之上进行实现,该实现基本上是
已关闭。此问题需要 debugging details 。目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and the
我想用 Java 编写一个“智能监视器”,它会在它检测到即将出现的性能问题时发出警报。我的 Java 应用正在将结构化格式的数据写入日志文件: | | 因此,例如,如果我有一个执行时间为 812
我在 Cappuccino 中遇到这种错误 TypeError: Result of expression '_2b' [undefined] is not an object. TypeError:
我想编写一个简单的 bean 机程序。该程序将接受用户输入的球数和槽数,并计算每个球的路径。每个槽中的球数也将打印为直方图。 我尽力让代码保持简短和简洁,但我能做到的最好的长度是 112 行。当我运行
我正在开发一个 Plone 模板。目前我正在对模板实现搜索。模板上有一个表单提交到同一模板,即同一页面。 我需要启用页面的某些部分,即结果 DIV,仅当页面中的表单已提交时。我不确定如何检查页面是否已
我是机器学习的新手。我正在使用 opencv 开源库做一个项目。我的问题是我没有机器学习方面的经验。我从不同的图像中提取了特征并对其进行了评估,现在我想使用 SVM 对这些图像中的对象进行分类,但我不
我有一个来自自定义抽象对象的数据集和一个自定义距离函数。是否有任何好的 SVM 库允许我训练我的自定义对象(不是 2d 点)和我的自定义距离函数? 我在 this similar stackoverf
我正在尝试编写 SVM 或 KNN 程序来对文本文档进行分类。我掌握了两者的概念,但我希望看到一些很好的代码示例,它们专门演示了如何将文本/单词表示为 vector 。有人知道好的教程/文章/讲座/任
我想知道支持 vector 机 (SVM) 对于大型/超大型数据集(5-15M+ 行)具有非线性决策边界(例如高斯核)? 我知道两种特殊的方法:一方面,这个使用随机梯度下降等的调查: http://c
我试图在 Raspberry Pi 中使用 python 控制连续伺服(DF15RSMG),但连续伺服无法停止。代码如下: import RPi.GPIO as GPIO import time
我们在 .net 中有银行项目。在那个项目中我们需要实现存折打印。 - 存折背面会有磁条。 - 当客户将存折插入自助服务终端时,自助服务终端将生成 ISO 8583 信息。 - 为响应此消息,CBS(
我想使用 svm 分类器进行面部表情检测。我知道 opencv 有一个 svm api,但我不知道训练分类器的输入应该是什么。到现在看了很多论文,都是说人脸特征检测后训练分类器。 到目前为止我做了什么
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
为了学习 ArchLinux,我在 VirtualBox 机器上安装并使用了 ArchLinux。它运行完美。现在我在我的电脑上安装了 Docker(Windows 环境)。在安装 Docker 的过
我找不到很多相关信息,但是我知道可以通过命令提示符electron-packager .创建一个 Electron 应用。但是,可以通过 Node 快速路由在前端执行它吗? 所以我想做这样的事情: r
我正在使用 MS Visual Studio 2008、OpenCV、C++ 和 SVM 继续我的 OCR 项目。我生成了一个超过 2000 个机印字符样本的数据集。当我用线性核测试时,我总是得到 9
我通过UART接口(interface)(RX-TX,GND-GND)将伺服(TowerPro sg90)连接到32伺服 Controller (this one)。 卖家提供了如何连接和控制我的伺服
我是一名优秀的程序员,十分优秀!