Windows10 不完全使用手册之系统安装篇

2019-12-13 15:08:26 +08:00
 smilzman

目前为止 macos 和 windows 都在用,抛砖引玉,来聊一聊自己 windows 的使用情况,个人觉得不需要听别人说哪个好哪个不好,并不是用 macos 就高级,用 windows 就傻*,哪个用的舒服用哪个,至于舒不舒服你自己才知道了。

本来还想写软件、备份还原等等,但是太长了,要是大家感兴趣的话下一篇写吧。

安装系统

具体的安装步骤就不说了,这里就说几点:

  1. 从正规的地方下载,比如 msdn
  2. 安装专业版以上(据说工作站版本性能比较好,未鉴定)
  3. 品牌机安装好后先不要联网,断网状态下把官网的驱动安装好
  4. 安装完成后先进行系统更新
  5. 如果像我一样用户目录的名称喜欢自定义的,第一次进入系统不要联网,否则文件名会从云上同步

系统激活

据说最近又开通了 win7 升级的免费激活通道,大家可以完全备份系统,然后安装 win7 升级一波,升级后保存激活信息,然后恢复系统,恢复激活,洗白。

保存激活信息只需要保存C:\Windows\System32\spp\store\2.0文件夹,也可以通过下面脚本保存:

@echo off 
Setlocal enabledelayedexpansion
set KEY_NAME=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
set VALUE_NAME=BackupProductKeyDefault
for /f "skip=2 tokens=1-3" %%i in ('reg query "%KEY_NAME%" /v %VALUE_NAME%') do ( 
    set ValueName=%%i
    set ValueType=%%j
    set ValueValue=%%k

) 
if defined ValueName (
	md %computername%
    @echo Value Name = %ValueName%
    @echo Value Name : %ValueName% > %computername%\key.txt
    @echo Value Type = %ValueType%
    @echo Value Type : %ValueType% >> %computername%\key.txt
    @echo Value Value = %ValueValue%
    @echo Value Value : %ValueValue% >> %computername%\key.txt
	md %computername%\2.0
	xcopy /s /e C:\Windows\System32\spp\store\2.0 %computername%\2.0
) else (
    @echo %KEY_NAME%\%VALUE_NAME% not find.
)
pause

恢复激活:

  1. slmgr ipk 密钥
  2. 将激活文件(显示隐藏)恢复到 C:\Windows\System32\spp\store\2.0
  3. 重启系统

系统调整

PowerShell 配置

  1. 下载文件: https://github.com/microsoft/Terminal/releases
  2. 管理员打开命令行并执行:.\colortool.exe -b Builtin Solarized solarized_light.itermcolors (可以选择自己喜欢的样式)
  3. 右键-属性-保存 效果如下:

子系统配置

  1. 控制面板里面启用子系统功能

  2. Store 里面搜索安装 ubuntu

  3. 使用 root 用户启动

    # 在 cmd 下输入
    ubuntu config --default-user root
    
  4. 替换科大源

    vim /etc/apt/sources.list
    ---
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
    deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
    ---
    apt-get update
    apt-get upgrade
    
  5. 安装 zsh 以及 oh-my-zsh

    sudo apt-get install zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
  6. 修改主题、增加插件

    cd /root/.oh-my-zsh/custom/plugins
    ---
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
    git clone https://github.com/zsh-users/zsh-autosuggestions
    ---
    
    vim ~/.zshrc
    ---
    ZSH_THEME="ys"
    # 将需要激活的插件名写在小括号中
    plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
    ZSH_DISABLE_COMPFIX=true
    ---
    

    效果如下:

    终端使用代理:

    vim ~/.zshrc
    ---
    # 代理
    function noproxy
    {
        unset http_proxy https_proxy
        echo "代理 [关闭] 成功"
    }
    
    function proxy
    {  
        http_proxy=127.0.0.1:1080
        https_proxy=127.0.0.1:1080
        no_proxy="localhost,127.0.0.1"
        echo "代理 [开启] 成功"
        export no_proxy http_proxy https_proxy
    }
    ---
    

    效果如下:

最后来张全景

4382 次点击
所在节点    程序员
34 条回复
leesh853761
2019-12-14 08:21:01 +08:00
为啥我最多能调成灰色啊,调成白色显示不支持,而且徽标是白色的
14m3
2019-12-14 09:29:43 +08:00
@blueboyggh 哦哦,谢谢!
smilzman
2019-12-14 09:36:15 +08:00
@leesh853761 我也是灰色的,白色可能会和字体颜色冲突,白白的白,徽标的话估计和爸爸有关系的,中间几个版本开始键变来变去的。
smilzman
2019-12-14 09:47:27 +08:00
@blueboyggh 感谢,看了下 2 代用的是 hyper-v,会和很多软件冲突,不过按照之前的惯例应该可以自己选版本 1 或者版本 2。
leesh853761
2019-12-14 10:15:50 +08:00
@smilzman 我看你任务栏可以调黑,我的却都是白的
sprit
2019-12-14 10:49:13 +08:00
@smilzman 感谢
6jiayoung
2019-12-14 12:43:10 +08:00
@smilzman 我选择浅色后。。任务栏字和图标也是白的 看着不舒服,为啥你的是黑色。。
shijingshijing
2019-12-14 12:53:31 +08:00
这些不够的,还需要把一堆没用的服务关掉,一堆 telemetrics 的计划任务禁用,一堆无卵用的随机自带程序删掉( xbox,小娜,ms store )
cigarzh
2019-12-14 14:03:34 +08:00
花里胡哨
smilzman
2019-12-14 14:21:57 +08:00
@shijingshijing 除了古董老爷机,没必要这么折腾,你真需要也简单下载 Dism++,点一点就好~
smilzman
2019-12-14 14:22:45 +08:00
@cigarzh 哈哈,毕竟颜值即正义
smilzman
2019-12-14 14:25:43 +08:00
@6jiayoung 个性化-颜色里面把有[操作中心]这几个字的两个选项关闭试试,老版本好像是这样的。
strugglexiang
2019-12-14 16:01:52 +08:00
使用代理是不是要买 vps
zhihupron
2019-12-14 20:25:11 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/628757

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX