页面“笔记本本本”与“Debian服务器初始化”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
=想购买的本本=
 
最好  16G RAM 1TB硬盘,不要太重,显示器能好此么
 
==机械革命Umi Air ==
 
机械革命(MECHREVO)Umi Air 4K 100% DCI-P3 AMOLED设计师轻薄笔记本电脑(i7-9750H 16G 1TPCIE GTX1650) 9999
 
机械革命Umi Air
 
  
重量只有1.55公斤  还有网口
+
[[Salt-ssh批量初始化机器]]
 +
= os init=
 +
== change sources ==
 +
===10源===
 +
<pre>
  
[https://post.smzdm.com/p/ar084l67/ 西装暴徒 机械革命Umi Air评测 ]
+
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
 +
deb http://mirrors.aliyun.com/debian-security buster/updates main
 +
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
 +
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
 +
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  
==xps ==
+
</pre>
可以加硬盘么
+
===9 源===
 +
<pre>
  
DELLXPS13-7390  ONLY  TYPE C 
+
echo 'deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
 +
deb http://mirrors.aliyun.com/debian-security stretch/updates main
 +
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
 +
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
 +
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
 +
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib ' >sources.list
 +
</pre>
  
内存是焊死的 ?  内存板载,硬盘能换。
+
== ssh config==
全新戴尔DELLXPS13-7390 13.3英寸英特尔酷睿i7超轻薄笔记本电脑(十代 i7-10710U 16G 1TB SSD 2年先智)银  RMB 12999
+
<pre>
https://item.jd.com/100005419419.html#crumb-wrap
+
echo "ssh-rsa AAAAB3NzaC you_prk_key root@ops
 +
"  >> /root/.ssh/authorized_keys
  
其实在商务领域,Dell针对ThinkPad X1 Carbon的对标产品应该是Latitude 13,它同样具备长键程和多扩展接口,可靠性极强。只是在外观上不敌更拉风的XPS 13,因此人们更愿意把XPS 13搬出来与ThinkPad X1 Carbon进行讨论。
+
sed -i "s/#PubkeyAuthentication yes/PubkeyAuthentication yes/g" /etc/ssh/sshd_config
  
 +
sed -i "s/^PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config
  
[https://www.bilibili.com/video/av53433025/?spm_id_from=333.788.videocard.0 旗舰级纯轻薄本,戴尔XPS13 9380简评]
+
systemctl restart sshd
 +
#service  sshd restart
  
 +
</pre>
 +
==常用软件==
 +
<pre>
 +
useradd -d /data/evan  -s /bin/bash -m  evan
 +
数m表示如果该目录不存在,则创建该目录
  
[https://post.smzdm.com/p/467436/ 新 DELL 戴尔 XPS 13 超极本 购买改造升级全攻略]
 
[https://tech.sina.com.cn/n/t/2018-05-17/doc-iharvfhu3426862.shtml  18款ThinkPad X1C对抗18款Dell XPS 13 谁是赢家]
 
  
==Dell Latitude 7300 ==
+
apt install net-tools rsync wget firewalld  vim  build-essential dnsutils screen  curl sudo lsb-release  iotop software-properties-common  -y  #dig dnsutils
[https://zhuanlan.zhihu.com/p/65371687 Dell Latitude 7300 入手体验]
 
== mac==
 
  不好上freebsd 暂时放弃 Apple 2019新品 MacBook Pro 16九代六核i7 16G 512G 银色
 
16288元 按这个来找本本就行
 
  
== ThinkPad==
+
#全面的开发工具
联想ThinkPad T495(03CD)14英寸轻薄笔记本电脑(R5 PRO-3500U 16G 512GSSD FHD Micro SD读卡器)  6299
+
sudo apt  install git golang build-essential gcc g++ gdb libboost-dev make automake autogen autoconf cscope global cmake cmake-gui astyle clang-format clang llvm lldb libsqlite3-dev sqlite3 bison flex ruby-dev linux-headers-`uname -r`
  
未来,像T480这样“可靠、厚重、强扩展”的笔记本会越来越少。所以,如果你有大容量存储或者长续航的需求,T480依然是你最好的选择,并且几乎是唯一的选择。如果你不是非大容量和长续航不可,那么张sir建议你可以忘了T480,再多看看其它几款机器。
 
好像是两个 内存卡  和两个硬盘卡
 
  
注意不 要1336×768的  tn屏
+
#ps
 +
apt install procps
  
和t480s有什么区别  s比较 6
 
  
总结
+
安装Fail2Ban
 +
</pre>
  
联想ThinkPad T480s的成功不是因为轻薄的外形,而是因为超长的续航和能够更好保护隐私的摄像头盖。但是它的屏幕暗淡乏味,还有键盘,虽然很好,但是比我们习惯的ThinkPad键盘还是要差一点。
+
[https://www.debian.cn/archives/2880 Debian 安装 fail2ban 方式SSH爆破攻击]
  
如果你有更多一点的预算,那么起售价为1519美元(合人民币10025元)的联想第六代ThinkPad X1 Carbon(2018)将会提供一个更有吸引力的设计、一块更亮的屏幕和最好的键盘。如果你多花一点钱配备HDR屏幕,你将拥有市场上最好的产品之一,同时它也有ThinkShutter。
 
  
另一方面,如果你的预算比较紧张或者需要更长的续航时间,那么你可以考虑更大一点的T480,起售价1049美元(合人民币6608元),在使用扩展电池的情况下,续航时间可以达到17小时。
+
[[Debian配置iptables]]
  
但是,如果你正在寻找一个续航时间长、生产力突出的轻薄笔记本,那么ThinkPad T480s是一个很好的选择。
+
=时间同步=
 +
<pre>
 +
UTC时区切换到CST 时区
  
看完之后我很满意的滚去买T480了……除了重了点,剩下对s都是全面碾压(包括屏幕色域……这点实在太搞笑了
+
#用这个啦
 +
# 设置亚洲时区  tzselect 有时不准备
 +
timedatectl set-timezone Asia/Shanghai
 +
# 启用NTP同步 #关闭是 false
 +
timedatectl set-ntp yes
  
https://zhuanlan.zhihu.com/p/34813616
 
  
https://item.jd.com/100010259526.html
+
echo "export TZ='Asia/Shanghai'"  >> /etc/profile 
 +
cat /etc/profile |grep TZ 
 +
source /etc/profile
  
 +
date -R  #时区查看
 +
date
 +
Sat Aug 19 17:03:17 CST 2017
 +
</pre>
  
[https://item.jd.com/100010259526.html#none 6299 hinkPad T495(03CD)14英寸轻薄笔记本电脑(R5 PRO-3500U 16G 512GSSD FHD]
+
=security=
不知能汉有买个 8G  然后自己再加 内存呢  不然加硬盘  但是可以换个大的 1TSSD吧
+
==firewalld==
  
 +
详情可见 [[Centos7 firewalld防火墙基础]]
  
[https://www.bilibili.com/video/av79374423?from=search&seid=13392252076928694687 ThinkPad 思考本T480S拆机加装16G内存512G建兴固态硬盘教程]
+
[https://computingforgeeks.com/how-to-install-and-configure-firewalld-on-debian/ How To Install and Configure Firewalld on Debian 10]
  
 +
[https://ywnz.com/linuxaq/5495.html 在Debian 10(Buster)上安装和配置Firewalld]
  
[https://item.jd.com/6685410.html 8999 联想ThinkPad T480(0PCD)14英寸轻薄笔记本电脑(i7-8550U 8G 128GSSD+1T双硬盘 FHD IPS屏 2G独显 双电池) ]
+
=参考=
  
[https://www.zhihu.com/question/335085631 thinkpad X1 carbon 2019买哪一款好(I5还是I7,FHD屏还是2K屏]
+
[https://blog.51cto.com/wzlinux/2043586 Ubuntu 新装服务器部署流程]
  
[https://zhuanlan.zhihu.com/p/61046806 ThinkPad T系列2019款首发新品值得买吗]
+
[https://www.howtoing.com/install-java-in-debian-and-ubuntu 如何在Debian和Ubuntu系统中安装Java 9]
=== BAD===
 
ThinkPad T580的屏幕表现相当辣眼,这块屏幕的色域覆盖仅56.3% sRGB,与笔记本屏幕的及格标准线“85% sRGB”相差甚远。
 
  
笔者完全无法理解联想为何要在这款售价万元的ThinkPad T580上使用45%ntsc色域的辣眼垃圾屏。
+
[http://www.ruanyifeng.com/blog/2014/03/server_setup.html Linux服务器的初步配置流程]
  
难道是认为100%sRGB(标称)的屏幕配不上这款万元级的笔记本?
+
[http://spenserj.com/blog/2013/07/15/securing-a-linux-server/ Securing a Linux Server]
  
还是说联想私藏着将“56.3% sRGB优化成95%sRGB”的逆天黑科技?
+
[http://blog.51cto.com/feihan21/1060365 Linux服务器初始化配置脚本]
  
 +
[https://blog.imdst.com/linux-fu-wu-qi-chu-shi-hua-an-quan-jia-gu/ Linux服务器初始化调优及安全加固]
  
色准方面,T580的屏幕在出厂状态下最大△E为20.08,平均彩色△E为8.07,色彩严重失真。
+
[https://linux.cn/article-5067-1.html 如何使用 fail2ban 防御 SSH 服务器的暴力破解攻击]
  
    即便在使用校色仪对屏幕进行校色后,最大△E也达到了7.06。
+
[https://blog.csdn.net/developerinit/article/details/73065229?utm_source=blogxgwz7 Debian的一些常用命令]
  
如果是这组数据是从一台4000元以内的笔记本上测得,倒也没什么稀奇,
 
  
但T580的售价高达9999元人民币,这在万元级笔记本中简直是令人难以理解的存在
+
[https://www.cnblogs.com/yoyotl/p/8151409.html Debian 8 设置时区和时间配置]
 
+
  [[category:ops]] [[category:debian]]
==lg gram ==
 
==未来人类==
 
[https://item.jd.com/100009353170.html 未来人类T7光影刺客17.3英寸窄边框创意设计轻薄游戏笔记本电脑(9代i7-9750H RTX2060 16G 512GB+1T ) ]
 
 
 
==Vaio SX12轻薄超级本==
 
https://www.cnbeta.com/articles/tech/940567.htm
 
==宏碁 Swift 7  ==
 
 
 
==战66==
 
惠普战66的内部扩展空间也相当足,其拥有两个内存插槽,这意味着用户可以自由升级内存。目前很多笔记本都采用板载内存设计,相比之下,惠普战66的内存升级空间相当大。此外,惠普战66还拥有M.2和2.5英寸硬盘位,用户也可以自由升级硬盘
 
 
 
 
 
pd充电器就够  连续航比较 不行,能不能找个比这个贵一点的 ,然后 长时间 一点的呢
 
 
 
bad  1500 g
 
 
 
惠普战66锐龙升级版
 
[https://post.smzdm.com/p/a3gznoln/ 比一代值得买吗?HP战66二代评测 ]
 
 
 
[https://www.zhihu.com/question/305670179 如何看待惠普新出的二代战66]
 
 
 
https://www.bilibili.com/video/av80789970?from=search&seid=4310650107922757814  好
 
 
 
https://www.bilibili.com/video/av57264783?from=search&seid=4310650107922757814
 
 
 
==蜂鸟FUN ==
 
[https://zhuanlan.zhihu.com/p/80696216 不到一个月出二手,谈谈宏碁(Acer)蜂鸟FUN的优缺点]
 
 
 
=elite=
 
 
 
 
 
VirtualBox 不能创建64位虚拟机
 
 
 
需要在BIOS中开启虚拟化技术 1、BIOS中的虚拟化技术
 
 
 
本文介绍了如何在主板BIOS中启用虚拟化技术(VT)。要运行一些操作系统,虚拟化软件和虚拟机,硬件虚拟化就需要启用。大多数情况下,不需要虚拟化技术的操作系统可以正常运行在启用了虚拟化技术的系统,但有些需要这种技术的操作系统,必须启用虚拟化技术才能运行。 所有最新的处理器和主板都支持虚拟化技术,检查一下你的主板厂商是否支持并且要知道如何启用或禁用BIOS中的VT。当在主板上启用虚拟化技术后,操作系统能立即检测到。
 
 
 
 
 
2、在哪里能找到在BIOS中的虚拟化技术(VT)?
 
 
 
首先开机进入BIOS,一般机器是按F2,我的T420是按F1,然后进入Security,Virtualization,选择Enable即可,如下图:
 
 
 
elite 820 g1  f2 -->f10 -->高级 --》虚拟化技术VTX
 
 
 
[https://blog.csdn.net/zhao1949/article/details/53403828 VirtualBox没有64位选项,无法安装64位的解决方法]
 
 
 
 
 
 
 
[http://ask.zol.com.cn/x/2952010.html hp elitebook 840 g4 触摸板肿么关闭]
 
 
 
=see also=
 
 
 
[http://detail.zol.com.cn/series/16/223/param_16843_0_1.html 你是哪个EliteBook 820 G1型号]
 
 
 
[https://www.notebookcheck.net/Review-HP-EliteBook-820-G1-H5G14ET-Subnotebook.112967.0.html Review HP EliteBook 820 G1-H5G14ET Subnotebook]
 
 
 
[http://nb.zol.com.cn/426/4262303_all.html 只差一点就完美 体验惠普EliteBook 820]
 
 
 
 
 
[http://detail.zol.com.cn/367/366367/param.shtml 惠普EliteBook 820 G1(F6B38PA)参数]
 
 
 
[https://jingyan.baidu.com/article/455a99504f8e89a16627788e.html 我为实用证名 惠普EliteBook 840 G3评测]
 
 
 
[https://wenku.baidu.com/view/e3b462a36394dd88d0d233d4b14e852458fb39e1.html HP EliteBook 820 G1]
 
 
 
=AMD=
 
Acer Swift 3 轻薄笔记本
 
 
 
https://www.amd.com/zh-hans/where-to-buy/ryzen-systems#%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91
 
 
 
https://item.jd.com/6426875.html
 
 
 
https://item.jd.com/6893213.html#crumb-wrap 和小米一样的价 但是独立显卡
 
 
 
[https://www.zhihu.com/question/28214547 为什么很多人都在嘲笑神舟电脑]
 
 
 
[https://zhuanlan.zhihu.com/p/102280558 笔记本电脑选购指南(轻薄本/全能本)]
 
 
 
[[category:ops]][[category:desktop]]
 

2020年2月27日 (四) 08:19的版本

Salt-ssh批量初始化机器

os init

change sources

10源


deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

9 源


echo 'deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib ' >sources.list

ssh config

echo "ssh-rsa AAAAB3NzaC you_prk_key root@ops
"  >> /root/.ssh/authorized_keys

sed -i "s/#PubkeyAuthentication yes/PubkeyAuthentication yes/g" /etc/ssh/sshd_config

sed -i "s/^PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config

systemctl restart sshd
#service  sshd restart

常用软件

useradd -d /data/evan  -s /bin/bash -m  evan
数m表示如果该目录不存在,则创建该目录


apt install net-tools  rsync wget  firewalld  vim  build-essential dnsutils screen  curl sudo lsb-release  iotop software-properties-common  -y  #dig dnsutils 

#全面的开发工具
sudo apt  install git golang build-essential gcc g++ gdb libboost-dev make automake autogen autoconf cscope global cmake cmake-gui astyle clang-format clang llvm lldb libsqlite3-dev sqlite3 bison flex ruby-dev linux-headers-`uname -r`


#ps 
apt install procps


安装Fail2Ban
 

Debian 安装 fail2ban 方式SSH爆破攻击


Debian配置iptables

时间同步

UTC时区切换到CST 时区

#用这个啦 
# 设置亚洲时区  tzselect 有时不准备 
timedatectl set-timezone Asia/Shanghai
# 启用NTP同步 #关闭是 false 
timedatectl set-ntp yes


 echo "export TZ='Asia/Shanghai'"  >> /etc/profile  
 cat /etc/profile |grep TZ  
source /etc/profile

date -R  #时区查看 
 date 
Sat Aug 19 17:03:17 CST 2017

security

firewalld

详情可见 Centos7 firewalld防火墙基础

How To Install and Configure Firewalld on Debian 10

在Debian 10(Buster)上安装和配置Firewalld

参考

Ubuntu 新装服务器部署流程

如何在Debian和Ubuntu系统中安装Java 9

Linux服务器的初步配置流程

Securing a Linux Server

Linux服务器初始化配置脚本

Linux服务器初始化调优及安全加固

如何使用 fail2ban 防御 SSH 服务器的暴力破解攻击

Debian的一些常用命令


Debian 8 设置时区和时间配置