惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
Security Archives - TechRepublic
Security Archives - TechRepublic
W
WeLiveSecurity
Cloudbric
Cloudbric
博客园 - 司徒正美
美团技术团队
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
PCI Perspectives
PCI Perspectives
宝玉的分享
宝玉的分享
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
Last Week in AI
Last Week in AI
S
Schneier on Security
N
News | PayPal Newsroom
B
Blog RSS Feed
L
LINUX DO - 最新话题
T
Troy Hunt's Blog
S
Secure Thoughts
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
L
Lohrmann on Cybersecurity
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tenable Blog
S
Securelist
L
LangChain Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
InfoQ
H
Heimdal Security Blog
Cisco Talos Blog
Cisco Talos Blog
F
Full Disclosure
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
K
Kaspersky official blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs

szhshp 的第三边境研究所

假设, AI 把我代替的那一刻真的到来 | szhshp 的第三边境研究所 小傻瓜都能懂的 AstrBot QQ 机器人集成 MCP 功能实战指南 | szhshp 的第三边境研究所 《智人之上: 从石器时代到 AI 时代的信息网络简史》阅读笔记 | szhshp 的第三边境研究所 iPadOS 26 无法设置空间场景图片壁纸的解决方法 | szhshp 的第三边境研究所 《一路云海》(终) | szhshp 的第三边境研究所 《一路云海》(四): 如何不按套路旅行 | szhshp 的第三边境研究所 《一路云海》(三): In Ya Mellow Tone | szhshp 的第三边境研究所 《一路云海》(二): 关西世博参观纪实 | szhshp 的第三边境研究所 《一路云海》(一): 新的征程 | szhshp 的第三边境研究所 2025 大阪世博会 [ 3 天前-先到先得 ] 阶段 场馆预约必中独家攻略 | szhshp 的第三边境研究所 Hackathon 随想 | szhshp 的第三边境研究所 一杯双皮奶 | szhshp 的第三边境研究所 Armbian + CasaOS + NAS 配置指南 | szhshp 的第三边境研究所 Docker 构建镜像报错: error getting credentials - err: exit status 1, out: `` | szhshp 的第三边境研究所 Disqus RIP! 论过高的维护成本如何治疗固执的坏习惯 | szhshp 的第三边境研究所 炸弹猫桌游变体规则 | szhshp 的第三边境研究所 《小岛经济学》阅读笔记 | szhshp 的第三边境研究所 《金钱心理学》阅读笔记 | szhshp 的第三边境研究所 为知笔记 RIP: 迁移剩余的笔记 | szhshp 的第三边境研究所 2025 博客第十年展望 - 再见我的过去 | szhshp 的第三边境研究所 我在独立游戏里面致敬的作品 | szhshp 的第三边境研究所 《How to make thing faster》阅读笔记 | szhshp 的第三边境研究所 《The Art of Clean Code》阅读笔记 | szhshp 的第三边境研究所 《Clean Architecture: A Craftsman Guide to Software Structure and Design》阅读笔记 | szhshp 的第三边境研究所 《How AI Works》阅读笔记 | szhshp 的第三边境研究所 游戏策划废案 - Project Uranus | szhshp 的第三边境研究所 游戏策划废案 - Project X | szhshp 的第三边境研究所 人生第一款独立游戏开发复盘 | szhshp 的第三边境研究所 Trap of Life | szhshp 的第三边境研究所 如果我用手搓了个暗物质雏形 | szhshp 的第三边境研究所 《Rust Programming Language》- EX - Cheatsheet | szhshp 的第三边境研究所 新的播放器上线了 | szhshp 的第三边境研究所 Cypress - End-to-End Testing: OKTA Authentication with MFA | szhshp 的第三边境研究所 VSC x VIM - 反正多学几个快捷键没有坏处 | szhshp 的第三边境研究所 两小时 Docker 速成 - Getting Started | szhshp 的第三边境研究所 《The Joy of Javascript》- 5 - Data | szhshp 的第三边境研究所 《The Joy of Javascript》- 4 - Meta Programming | szhshp 的第三边境研究所 《The Joy of Javascript》- 3 - ADT(Algebraic Data Type) | szhshp 的第三边境研究所 Web-Automation Testing | szhshp 的第三边境研究所 《The Joy of Javascript》- 2 - Functor/Monad | szhshp 的第三边境研究所 《The Joy of Javascript》- 1 - Object/Function | szhshp 的第三边境研究所 EvalError: Possible side-effect in debug-evaluate | szhshp 的第三边境研究所 前端 QA 工具链指南 - husky,commitlint,commitizen,eslint,typescript,express | szhshp 的第三边境研究所 效率工具 & 软件推荐 | szhshp 的第三边境研究所 站点开源 Project Titan | szhshp 的第三边境研究所 cmd/powershell-命令速查-Cheatsheet | szhshp 的第三边境研究所 Git-命令速查与相关问题解决-Cheatsheet & Troubleshooting | szhshp 的第三边境研究所 Tailwind.css not included in NextJS Production | szhshp 的第三边境研究所 Github GraphQL API - Data Integration | szhshp 的第三边境研究所 尝试 Windows Terminal + z.lua | szhshp 的第三边境研究所 StrokePlus.net - Powerful Hotkey Boost | szhshp 的第三边境研究所 优雅地 Hack 一台黑苹果 | szhshp 的第三边境研究所 一杯关东煮 | szhshp 的第三边境研究所 Gitee x PicGo 管理图床 | szhshp 的第三边境研究所 Create Your Own Redux (Typescript) | szhshp 的第三边境研究所 Getting Started: Ionic + Capacitor + React + Typescript + Android | szhshp 的第三边境研究所 GraphQL: File Upload & Troubleshooting | szhshp 的第三边境研究所 吉祥航空随心飞刷票工具循环查票工具 | szhshp 的第三边境研究所 NVM Windows Portable Installation | szhshp 的第三边境研究所 NextJS x Typescript - Integration & Troubleshooting | szhshp 的第三边境研究所 全站点升级 - Project Titan | szhshp 的第三边境研究所 AWS-EC2-常见问题解决-Troubleshooting | szhshp 的第三边境研究所 Workbox-Getting Started | szhshp 的第三边境研究所 《时间简史》阅读笔记 | szhshp 的第三边境研究所 《时间的秩序》阅读笔记 | szhshp 的第三边境研究所 ESLint-常见问题解决-Troubleshooting | szhshp 的第三边境研究所 站点索引 | szhshp 的第三边境研究所 个人知识库搭建 - Hexo 实现 Github/Coding 持续集成 | szhshp 的第三边境研究所 BMOB-常见问题解决-Troubleshooting | szhshp 的第三边境研究所 React + Typescript: 开启 HMR/Hot Loader | szhshp 的第三边境研究所 Yarn & NPM | szhshp 的第三边境研究所 ESLint: Typescript + React + TSX 集成 | szhshp 的第三边境研究所 《10101》EP15:过年 2020 | szhshp 的第三边境研究所 Cmder-Usage | szhshp 的第三边境研究所 Redux-DOM not refreshed | szhshp 的第三边境研究所 React Semantic UI-CheatSheet | szhshp 的第三边境研究所 Typescript: Getting Started | szhshp 的第三边境研究所 Flutter-Getting Started | szhshp 的第三边境研究所 Typescript: Access window object with type check | szhshp 的第三边境研究所 VSC Extension Development-Create A Code Formatter Extension | szhshp 的第三边境研究所 OneNote Extension-Main API | szhshp 的第三边境研究所 TortoiseGit Win10 Icon not showing correctly | szhshp 的第三边境研究所 Mongoose: aggregate() 方法实现聚合函数 | szhshp 的第三边境研究所 React In Depth - React 源码解析 - render() & Fiber | szhshp 的第三边境研究所 MongoDB x Mongoose: 实现类似 Join 的功能 | szhshp 的第三边境研究所 Disqus 评论框改造工程-实现 Disqus 代理的 Serverless 服务 | szhshp 的第三边境研究所 GUI, CLI, Terminal, Shell, TTY, Console, Bash | szhshp 的第三边境研究所 Jest Async Best Practise: No Nested Async | szhshp 的第三边境研究所 关系型数据库与非关系型数据库优缺点分析 | szhshp 的第三边境研究所 New Edge & Chromium Error - Package is invalid: 'CRX_VERSION_NUMBER_INVALID' | szhshp 的第三边境研究所 选择 GraphQL 的 N 个理由 | szhshp 的第三边境研究所 StrokePlus - 鼠标手势神器的代码编写技巧 | szhshp 的第三边境研究所 嗨,好久不见 | szhshp 的第三边境研究所 Vue + ElementUI 集成 Vue Router | szhshp 的第三边境研究所 IE8 - Unknown Runtime Error Using innerHTML & Ajax | szhshp 的第三边境研究所 React: Handling Events | szhshp 的第三边境研究所 React-Navigation Integration with Redux | szhshp 的第三边境研究所 React: States is tricky | szhshp 的第三边境研究所 《10101》EP14:小剧场 | szhshp 的第三边境研究所 ColdFusion - Basic - arguments in cffunction | szhshp 的第三边境研究所
优雅地乱玩Linux-1-系统 | szhshp 的第三边境研究所
2017-05-19 · via szhshp 的第三边境研究所

Meta

目录

更新历史:

  • 2017年05月19日
    • 攒写最初正文
  • 2017年07月10日
    • 修改章节顺序,扩展EasyStroke的详细使用
    • 添加Git的一些小技巧//反正是小技巧,随意记录一下

前言

有时候真的挺厌烦Windows下面各种依赖的安装。突然想玩Linux/Unix

自己对于Linux的知识只停留在组网课程的程度, 当初没有看到使用Linux开发的实用性。

↑其实就是什么都不懂

一番调查之后, 似乎……真的可以花点时间学习一下。

↑其实就是闲得无聊了

本来考虑入个Mac玩一玩, 但是多方考虑, 决定先自己玩玩普通Linux, 等适应后再买也不迟。

↑其实就是没钱

这篇文章旨在记录Windows深度用户转型Linux遇到的或简单或困难的各种问题。

↑其实就是装个逼

不定期更新。

反正我心情好就会更新, 玩坏了和我没关系

系统相关

初学Linux, Ubuntu是最好的选择, 相关资料比其他分支略多并且善于使用

当前文章使用的系统是Ubuntu

安装

略.

没啥好说的, 双系统, 虚拟机, 远程服务器想用哪个用哪个。

先装Windows再装Ubuntu会稍微方便一些, 反正最后少不了去修复引导。

使用Easycd修复会方便一些

刚安装完成进入系统的样子美不胜收, 重点还是字体渲染效果的buff, 比当年Centos好看多了

软件安装/卸载

几种方法:

  1. deb包,双击安装
  2. 使用apt-get下载二进制包

apt-get 详细用法实例:

apt-cache search packagename 搜索包

apt-cache show packagename 获取包的相关信息,如说明、大小、版本等

apt-get install packagename 安装包

apt-get install packagename —reinstall 重新安装包

apt-get -f install 修复安装”-f = –fix-missing”

apt-get remove packagename 删除包

apt-get remove packagename —purge 删除包,包括删除配置文件等

apt-get update 更新源

apt-get upgrade 更新已安装的包

apt-get dist-upgrade 升级系统

apt-get dselect-upgrade 使用 dselect 升级

apt-cache depends packagename 了解使用依赖

apt-cache rdepends packagename 是查看该包被哪些包依赖

apt-get build-dep packagename 安装相关的编译环境

apt-get source packagename 下载该包的源代码

apt-get clean 清理无用的包

apt-get autoclean 清理无用的包

apt-get check 检查是否有损坏的依赖

快捷键

目标是成为神奇宝贝大师

目标是把鼠标丢进马桶

目标是完全使用键盘操作

刚开始进入系统的时候可以看到快捷键

之后长按Super也能重新查看快捷键

Alt text

Alt text

截图

三种办法:

  1. Alt+PrintScreen调用系统自带截图工具

  2. Super然后运行Screenshot调用系统自带截图工具

  3. 听说有个软件叫ksnapshot, 待补充

Hosts

文件在*/etc/hosts*

修改类似Windows

需要Su权限

关于访问Google

现成的Host: https://github.com/racaljk/hosts

修改后刷新DNS然后通过https://www.google.com/ncr访问

刷新DNS

sudo /etc/init.d/networking restart

主题美化

使用Unity Tweak Tool, 这是一个非常好用的 Unity 图形化管理工具

sudo apt-get install unity-tweak-tool

执行以下命令安装Flatabulous主题:

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme

该主题有配套的图标, 安装方式如下:

sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons

以及另一个主题:

sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
sudo apt-get install paper-gtk-theme paper-icon-theme

字体修改

Unity Tweak Tool简直神器

随便改几个字体都很好看

enter image description here

enter image description here

enter image description here

enter image description here

权限相关

很明显, /home/下面可以看到自己用户名的文件夹

当然这个文件夹有全部的rw权限

刚开始经常错进入到/Home/文件夹, 经常遇到Access Denied的问题

系统问题

关闭Workspace

system settings->Appearance->behavior->Enable;

死机

特么Linux还会死机的啊

  1. 用任何方式点开Terminal输入top查看一下对应占用最大的内存

然后sudo kill [对应pid]杀掉进程

  1. Ctrl+Alt+F1进入文字界面, 同样利用上述方法杀掉进程

有时候文字界面也会假死,Ctrl+Alt+F7可以回到图形界面

权限分配

【待补充】

Ubuntu 16.04 不显示菜单栏

前段时间可能莫名奇妙删了unity,可能各种玩美化插件的时候删错了

基本上重新安装一下unity即可

sudo apt-get install unity

便可以解决问题

软件相关

基本软件(git,vim)的安装以及卸载

sudo apt-get install [softwareName]
sudo apt-get remove [softwareName]

简直反人类地一行代码解决所有问题

此方面秒杀Windows

Git

安装略。

Git密码存储

设置记住密码(默认15分钟):

git config —global credential.helper cache 如果想自己设置时间,可以这样做:

git config credential.helper ‘cache —timeout=3600’ 这样就设置一个小时之后失效

长期存储密码:

git config —global credential.helper store 增加远程地址的时候带上密码也是可以的。(推荐)

http://yourname:password@git.oschina.net/name/project.git

搜狗输入法

安装

直接下载安装

然后跑到Language SupportKeyboard input method system改为fcitx, 然后注销重新登录

可能需要到Text Entry处手动添加一个’Text Entry input source’

切换输入法快捷键是Ctrl+Space

标点符号居然无法保持英文状态这个也挺烦

Atom

详细设置已经记录到另一篇日志:胡乱折腾Atom

快捷键

很早习惯了一套Eclipse的快捷键, ST也是用这个

所以直接安装一个Package: eclipse-keybindings package for Atom 解决所有问题

注意这样会将Command Panel的快捷键改为Ctrl+3

Sublime Text 3

详细设置已经记录到另一篇日志:优雅地乱玩Linux-4-Ubuntu下Sublime Text中文输入解決方案

为知笔记

安装

从官方PPA进行安装, 轻而易举

sudo add-apt-repository ppa:wiznote-team
sudo apt-get update
sudo apt-get install wiznote

使用

快捷键似乎有一些改变

F4无法进行编辑了

截图功能似乎也不能使用

居然还不能修改快捷键

全屏到哪里去了

Markdown编辑器

本体已经自带Markdown编辑器, 只是编辑的时候无法实时预览

并且官方未实现Linux下为知笔记的预览功能

这一点不如Windows

于是我考虑换一个Markdown编辑器, 大不了最后Copy到笔记这儿来.

选择的编辑器是Typora

EasyStroke

之前一直在Win下面使用StrokeIt, 到了Linux肯定也要有一个手势软件, 搜了一下发现了这个软件

EasyStroke配置

一开始无论如何都无法设置, 因为StrokeIt食用鼠标右键来绘画手势的, 然而ES用的是鼠标中键

但是可以在设置中改为右键

只需要将上面Gesture Button改为Button 3即可

然后就是模仿StrokeIt进行窗体最大最小化的设置:

几个要点:

  1. 窗体最大化的时候如果使用最小化方案似乎只能将窗体取消最大化
  2. 截图快捷键,如果直接设置成Print screen就会截取全屏

设置为开机启动

Dash里面搜索Startup App Preferences 然后加入EasyStroke的路径即可

系列文章

优雅地乱玩Linux

参考文献