很久以前写的电脑ThinkPadE440,一直没怎么用。最近整理电脑上的资料,全部备份到云盘。整理的过程感觉电脑很慢,很不舒服。整理好之后,终于得动手了!我做了一个U盘启动,把Ubuntu22.04的镜像烧进去,通过U盘启动,在ThinkPad上安装系统。这台电脑出奇地易于使用,而且一点也不死机。然后记录下来。安装Ubuntu系统,首先从官网下载镜像,然后通过BalenaEtcher将系统镜像放到U盘中。然后是启动安装,没什么特别的,改一下BIOS的启动顺序就可以了。参考:https://ubuntu.com/tutorials/...可以用系统自带的截图,不过我用的是Shutter,在UbuntuSoftware中搜索安装即可。但是安装后不能使用自选区域截图,会提示:cannotworkwithoutX11server解决方法:找到/etc/gdm3/custom.conf文件,去掉注释:WaylandEnable=false,然后重启:sudosystemctl重新启动gdm3。设置快捷键:Settings->Keyboard->KeyboardShortcuts->ViewandCustomizeShortcuts然后拖到最后一个CustomShortcuts。添加如下:参考:https://askubuntu.com/questio...https://hakanu.net/linux/2021...安装新版Typora需要付费,官网无法下载原版免费版,可以在这个链接下载:下载地址:https://github.com/iuxt/src/r...然后使用apt安装:sudoaptinstall./Typora_Linux_0.11.18_amd64.deb参考:https://zahui.fan/posts/64b52...显示电池百分比Settings->Power->ShowBatteryPercentage中文输入法设置找到Regin&Language,ManageinstalledLanguages,安装中文。选择iBus作为输入法系统。然后在键盘上添加中文输入法,包括拼音和五笔。如果无法操作,可能需要先重启:可以通过Win+空格切换。中英文通过Shift。git安装大致如下:sudoaptinstallgitgitconfig--globaluser.name"LarryDpk"gitconfig--globaluser.email"larry.dpk@gmail.com"#生成sshkey,把pubkey放到GitHubssh-keygen-trsa-b4096-C"larry.dpk@gmail.com"Gitpullcodeerror:$gitpullssh:connecttohostgithub.comport22:Connectiontimedoutfatal:无法从远程存储库读取。请确保您拥有正确的访问权限并且存储库存在。换个域名:ssh.github.com:参考:https://docs.github.com/en/au...gitstatus显示数字,不是中文:gitconfig--globalcore.quotepathfalseChrome因为Chrome是不在Ubuntu的软件中心,需要先下载安装包:wgethttps://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudodpkg-igoogle-chrome-stable_current_amd64.debpython-相关系统已经自带了Python3,版本比较高,没办法重新安装。但是要安装pip3:$python3--versionPython3.10.6sudoaptinstallpython3-pip挂载硬盘我的电脑是SSD盘,普通硬盘,系统安装在SSD上,所以需要挂载硬盘disk:sudomount/dev/sda3/home/larry/data但是每次都这样手动挂载很麻烦,而且还得输入密码,所以我们让系统一启动就挂载,在里面加一行/etc/fstab文件:#diskUUID=277de78c-6639-4373-a5cd-38feff129de7/home/larry/dataext4defaults00重启。参考:https://developerinsider.co/a...OSS阿里云下载Linux64位版本:https://github.com/aliyun/oss...直接打开会报错,libgconfi-2-4缺少,安装后打开:$./oss-browser./oss-browser:errorwhileloadingsharedlibraries:libgconf-2.so.4:cannotopensharedobjectfile:Nosuchfileordirectory$sudoaptinstalllibgconf-2-4参考:https://stackoverflow.com/que...JDK下载JDK:https://github.com/graalvm/gr...我下载的版本是:graalvm-ce-java11-linux-amd64-解压22.3.0.tar.gz后,指定JAVA_HOME。JAVA_HOME=/home/larry/software/graalvm-ce-java11-22.3.0exportPATH=$JAVA_HOME/bin:$PATHMaven可以直接下载解压:https://maven.apache.org/down...exportM2_HOME=/home/larry/software/apache-maven-3.8.6exportPATH=$M2_HOME/bin:$PATH在.bashrc中添加bash_profile设置:if[-f~/bash_profile.sh];然后。~/bash_profile.shfi然后你可以在bash_profile.sh文件中添加你自己的配置:exportJAVA_HOME=/home/larry/software/graalvm-ce-java11-22.3.0exportPATH=$JAVA_HOME/bin:$PATHexportM2_HOME=/home/larry/software/apache-maven-3.8.6exportPATH=$M2_HOME/bin:$PATHaliasl='ls-al'SSHSFTP客户端WindTerm下载软件:https://github.com/kingToolbo...已经支持选择自动复制。右键直接粘贴:参考:https://github.com/kingToolbo...修改锁屏密码:点击右下角锁屏即可修改。FaroritesBar添加程序以IDEA为例,直接通过IDEA自身提供的工具,如下图:或者自己创建对应的Entry,放在特定位置:$cat/usr/share/applications/jetbrains-idea.desktop[DesktopEntry]Version=1.0Type=ApplicationName=IntelliJIDEAUltimateEditionIcon=/home/larry/software/ideaIU-2022.3/bin/idea.svgExec="/home/larry/software/ideaIU-2022.3/bin/idea.sh"%fComment=CapableandErgonomicIDEforJVMCategories=Development;IDE;Terminal=falseStartupWMClass=jetbrains-ideaStartupNotify=true如果只是自己生效,放在~/.local/share/applications.其他示例:[DesktopEntry]Version=1.0Type=ApplicationName=WindTermIcon=/home/larry/software/WindTerm_2.5.0/windterm.pngExec="/home/larry/software/WindTerm_2.5.0/WindTerm"%fComment=WindTermCategories=Development;SSH;Terminal=falseStartupNotify=trueVSCodeIDEA还是太占内存了,还是用VSCode吧,搜索安装Ubuntu软件即可。安装Anaconda官网下载:https://repo.anaconda.com/arc...然后执行命令安装:$bash./Anaconda3-2022.10-Linux-x86_64.sh会有一些提示,你需要输入是等最后init,执行命令:$source~/.bashrc别人帮我们在.bashrc文件中加入这段内容:#>>>condainitialize>>>#!!此块中的内容由'condainit'!!__conda_setup="$('/home/larry/anaconda3/bin/conda''shell.bash''hook'2>/dev/null)"if[$?-eq0];然后eval"$__conda_setup"elseif[-f"/home/larry/anaconda3/etc/profile.d/conda.sh"];然后。"/home/larry/anaconda3/etc/profile.d/conda.sh"elseexportPATH="/home/larry/anaconda3/bin:$PATH"fifiunset__conda_setup#<<
