找回密码
 立即注册
搜索
查看: 10481|回复: 70

[软件] 俺也开始用Linux了

[复制链接]
     
发表于 2022-10-17 22:05 | 显示全部楼层 |阅读模式
嘿嘿。因为学esxi,开始用终端软件,然后自然而然的就用上了linux的命令(●ˇ∀ˇ●)
回复

使用道具 举报

     
发表于 2022-10-17 22:06 | 显示全部楼层
本帖最后由 Litccc 于 2022-10-17 22:12 编辑

快进到骂Linus真不是个玩意

评分

参与人数 2战斗力 +2 收起 理由
ambivalence + 1 笑死
Gazzz + 1 欢乐多

查看全部评分

回复

使用道具 举报

发表于 2022-10-17 22:10 来自手机 | 显示全部楼层
学esxi干啥 这玩意儿装完开虚机就完了vc可以学学 vmotion配置什么的
回复

使用道具 举报

     
发表于 2022-10-17 22:15 | 显示全部楼层
推荐找个N卡的电脑装linux,一步到位感受纯正的味道。
回复

使用道具 举报

发表于 2022-10-17 22:16 | 显示全部楼层
家用建议proxmox,本身就是个轻量debian
回复

使用道具 举报

     
发表于 2022-10-17 22:42 | 显示全部楼层
到最后,还是命令行……
回复

使用道具 举报

发表于 2022-10-17 22:48 | 显示全部楼层
上级指派升级系统,从从以前的windows +IIS 升级为CentOS+tomcat,扔过来一一顿安装文档就让下级单位自己搞
刚开始装linux就开始吃瘪,正常启动居然安不上,手册上没有提示,百度发现要按e编辑U盘路径到/dev/sdb4,在按Ctrl+x保存
可是他妈的启动项里没有“e”,也没有Ctrl+x,后才发现要bios设置为UEFI启动,才会有
到了安装界面,居然找不硬盘,折腾两天才知道这货不支持intel自带的PCH南桥配SAS盘,要上raid卡,从就将其拆raid卡堆上
终于安装完了,结果网络用不了,结果还要编辑网卡文件,手册上用vim和ifconfig命令编辑,结果系统说没有这项服务,手册上说要最小化安装,最小化安装是不带vim和ifconfig程序的啊,结论编手册的人也是个傻逼
用vi命令编辑这他妈难用,
然后修改ssh端口,结果保存完了,手册说重启sshd,结果重启失败,上网查,还要关SElinux,手册一点都没提这事
disabled了selinux后,ssh还是连不上,在差还要关firewall。
服务器终于装完了,然后装服务install.sh 是哪个逼写的,安装提示全是乱码,用xshell开UTF-8才看出是中文,安装一半要修改网络配置,可是修改配置后ssh就断了,然后安装在连上ssh,之前的前一半安装就不知道哪去了,从头开始,又安装一半,ssh又断了
这TMD是哪个逼写的程序
这是TMD给人用的?

评分

参与人数 1战斗力 +1 收起 理由
caibing + 1 hhhhhh我感受到你只是想吐槽上级.

查看全部评分

回复

使用道具 举报

发表于 2022-10-17 22:50 | 显示全部楼层
比亚迪 发表于 2022-10-17 22:48
上级指派升级系统,从从以前的windows +IIS 升级为CentOS+tomcat,扔过来一一顿安装文档就让下级单位自己搞 ...

太菜了真的
回复

使用道具 举报

发表于 2022-10-17 22:53 | 显示全部楼层
本帖最后由 比亚迪 于 2022-10-17 22:56 编辑

没用过linux,到现在还没解决Xshell安装程序一半ssh中断,重新连接后,如何恢复之前连接命令行和状态的问题
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-17 22:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2022-10-17 23:01 | 显示全部楼层
比亚迪 发表于 2022-10-17 22:53
没用过linux,到现在还没解决Xshell安装程序一半ssh中断,重新连接后,如何恢复之前连接命令行和状态的问 ...

用nohup,或者tmux、screen
退出ssh也不会中断程序
回复

使用道具 举报

发表于 2022-10-17 23:05 | 显示全部楼层
tsubasa9 发表于 2022-10-17 23:01
用nohup,或者tmux、screen
退出ssh也不会中断程序

谢谢,我去试试
回复

使用道具 举报

     
发表于 2022-10-17 23:14 | 显示全部楼层
tsubasa9 发表于 2022-10-17 23:01
用nohup,或者tmux、screen
退出ssh也不会中断程序

原来还可以这样啊.
有没有什么靠谱的linux教程?
回复

使用道具 举报

     
发表于 2022-10-17 23:16 来自手机 | 显示全部楼层
laotoutou 发表于 2022-10-17 23:14
原来还可以这样啊.
有没有什么靠谱的linux教程?

硬要教程的话,有本很经典的《鸟哥的Linux私房菜》
但是实际还是推荐多多RTFM
回复

使用道具 举报

发表于 2022-10-17 23:21 | 显示全部楼层
laotoutou 发表于 2022-10-17 23:14
原来还可以这样啊.
有没有什么靠谱的linux教程?

工具属性的东西,没法用系统教程来学
最好的方法是描述问题放狗子里搜,当然得用英文
回复

使用道具 举报

     
发表于 2022-10-18 00:14 | 显示全部楼层
本帖最后由 CyanCloverFern 于 2022-10-18 01:16 编辑

只是用终端的话推荐wsl1,coreutils齐全,还可以和windows联动,比如交叉出一个win上用的编译器反过来又能在wsl1上使用
通过minicom之类的也可以控制外接设备
缺点是没有linux的图形界面(有windows也不需要),没有docker,没有方便其它平台交叉自己的头文件(一个一个搬不太放心缺漏)
wsl2是新起了一个虚拟机尽量别用,hyperv+wsl2很容易蓝屏


image.png


image.png



回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 09:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2022-10-18 09:27 | 显示全部楼层
比亚迪 发表于 2022-10-17 22:53
没用过linux,到现在还没解决Xshell安装程序一半ssh中断,重新连接后,如何恢复之前连接命令行和状态的问 ...

screen
回复

使用道具 举报

     
发表于 2022-10-18 09:30 | 显示全部楼层
比亚迪 发表于 2022-10-17 22:48
上级指派升级系统,从从以前的windows +IIS 升级为CentOS+tomcat,扔过来一一顿安装文档就让下级单位自己搞 ...

正常操作,linux写操作指南的基本不会考虑到用户的水平和用户电脑的实际情况,只要我自己能OK就行了,默认看文档的人跟我一个水平,如果你们不OK就是你们菜。
所以正统的linux作为PC个人使用的OS一直都没法流行起来,完了linux用户还是互相鄙视用的发行版太傻瓜之类的,菜,我用的某某某某版才是王道,所以这么多年了linux还是散沙一片,普通用户就算想尝试看到一大堆发行版也是一脸懵逼
回复

使用道具 举报

     
发表于 2022-10-18 10:36 | 显示全部楼层
用linux 就像玩魂游戏要抱着虐我千百遍待她如初恋,每一次报错误就像游戏卡关一样,查看攻略,解决问题太爽啦,就是遇到要你在半天内就把问题解决那就超级吃瘪,就像老头环上来就让你去把马莲娜干了。
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 10:40 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 10:45 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2022-10-18 11:07 | 显示全部楼层
arch真的猴子也能看懂吗
回复

使用道具 举报

     
发表于 2022-10-18 11:07 | 显示全部楼层
我感觉对一般用户驱动支持比较全面的还得是linuxmint
回复

使用道具 举报

     
发表于 2022-10-18 11:12 | 显示全部楼层
nessaj 发表于 2022-10-18 10:45
文档详细到猴子都能看懂的arch被喷对新人不友好
那到底是新人的问题还是文档的问题啊
你口中的「普通用户 ...

Arch Linux的Wiki里
5.2.5.2教人家改SSH端口,全部原文如下,对于7楼那种“普通用户”来说,照着说明操作一遍,结果文档说almost done,实际能done?100%会遇到7楼遇到的那个问题,然后文档就跟他说一声“You still have to configure your client(s) to use the other port instead of the default port. ”,至于怎么configure你自己继续查啊,换任何“普通用户”都会跳脚,那你说是文档有问题还是普通用户有问题?

5.2.5.2 Possible solution
The solution is just to use some other port that the ISP is not blocking. Open the /etc/ssh/sshd_config and configure the file to use different ports. For example, add:

Port 22
Port 1234
Also make sure that other "Port" configuration lines in the file are commented out. Just commenting "Port 22" and putting "Port 1234" will not solve the issue because then sshd will only listen on port 1234. Use both lines to run the SSH server on both ports.

Restart the server sshd.service and you are almost done. You still have to configure your client(s) to use the other port instead of the default port. There are numerous solutions to that problem, but let us cover two of them here.
回复

使用道具 举报

发表于 2022-10-18 11:20 | 显示全部楼层
nessaj 发表于 2022-10-18 10:45
文档详细到猴子都能看懂的arch被喷对新人不友好
那到底是新人的问题还是文档的问题啊
你口中的「普通用户 ...

别吹arch wiki了,你告诉我新手照着installation guide成功安装系统的比例能有5%吗
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 11:22 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2022-10-18 11:28 | 显示全部楼层
本帖最后由 乔槁 于 2022-10-18 11:37 编辑
zanber 发表于 2022-10-18 09:30
正常操作,linux写操作指南的基本不会考虑到用户的水平和用户电脑的实际情况,只要我自己能OK就行了,默 ...

PC区的抱怨,基本上就是既希望有Mac的统一度,又想要Windows的兼容性,同时还要保留Linux的自由度。

但是高自由度的发行版,实现同一个功能的可行路径太多。比如开机启动,既能写脚本,也能用systemd。linux只负责内核,没有强制官方方案,所以理论上这个文档会写得无限长……

迎合初级用户的发行版,很多都限制了自由度。ChromeOS默认砍掉了大多数功能,命令行要包一层虚拟化。基于Arch的SteamOS(SteamDeck),也有默认不可改的系统镜像。

鱼与熊掌不可兼得、多快好省是假话。

回复

使用道具 举报

     
发表于 2022-10-18 11:31 | 显示全部楼层
nessaj 发表于 2022-10-18 11:22
你着什么迷惑言论,改服务端端口在同一页的3.1,重启服务在本页3.2,客户端配置在本页2.1,你光盯着5.2.5 ...

好,既然你这么杠,你告诉我2.1、3.1、3.2哪里写了要开放防火墙端口和处理selinux?洋洋洒洒写一大堆有用?
2.1Configuration
The client can be configured to store common options and hosts. All options can be declared globally or restricted to specific hosts. For example:

~/.ssh/config
# global options
User user

# host-specific options
Host myserver
    Hostname server-address
    Port     port
With such a configuration, the following commands are equivalent

$ ssh -p port user@server-address
$ ssh myserver
See ssh_config(5) for more information.

Some options do not have command line switch equivalents, but you can specify configuration options on the command line with -o. For example -oKexAlgorithms=+diffie-hellman-group1-sha1.

3.1Configuration
To allow access only for some users, add this line:

AllowUsers    user1 user2
To allow access only for some groups:

AllowGroups   group1 group2
To add a nice welcome message (e.g. from the /etc/issue file), configure the Banner option:

Banner /etc/issue
Public and private host keys are automatically generated in /etc/ssh by the sshdgenkeys service and regenerated if missing even if HostKeyAlgorithms option in sshd_config allows only some. Four key pairs are provided based on the algorithms dsa, rsa, ecdsa and ed25519. To have sshd use a particular key, specify the following option:

HostKey /etc/ssh/ssh_host_rsa_key
If the server is to be exposed to the WAN, it is recommended to change the default port from 22 to a random higher one like this:

Port 39901
Tip:
To help select an alternative port that is not already assigned to a common service, review the list of TCP and UDP port numbers. You can also find port information locally in /etc/services. A port change from default port 22 will reduce the number of log entries caused by automated authentication attempts but will not eliminate them. See Port knocking for related information.
It is recommended to disable password logins entirely. This will greatly increase security, see #Force public key authentication for more information. See #Protection for more recommend security methods.
OpenSSH can listen to multiple ports simply by having multiple Port port_number lines in the configuration file.
New (or missing) host key pairs can be generated by removing the pair(s) that you want to replace from /etc/ssh and running ssh-keygen -A as root.

3.2Daemon management
Start/enable sshd.service. It will keep the SSH daemon permanently active and fork for each incoming connection.[1]

Note: openssh 8.0p1-3 removed sshd.socket that used systemd's socket activation due to it being susceptible to denial of service. See FS#62248 for details. If sshd.socket is enabled when updating to openssh 8.0p1-3, the sshd.socket and sshd@.service units will be copied to /etc/systemd/system/ and reenabled. This is only done to not break existing setups; users are still advised to migrate to sshd.service.
Warning: If you continue using sshd.socket, be aware of its issues:
sshd.socket unit may fail (e.g. due to out-of-memory situation) and Restart=always cannot be specified on socket units. See systemd issue 11553.
Using socket activation can result in denial of service, as too many connections can cause refusal to further activate the service. See FS#62248.
Note: Using sshd.socket negates the ListenAddress setting, so it will allow connections over any address. To achieve the effect of setting ListenAddress, you must specify the port and IP for ListenStream (e.g. ListenStream=192.168.1.100:22) by editing sshd.socket. You must also add FreeBind=true under [Socket] or else setting the IP address will have the same drawback as setting ListenAddress: the socket will fail to start if the network is not up in time.
Tip: When using socket activation, a transient instance of sshd@.service will be started for each connection (with different instance names). Therefore, neither sshd.socket nor the daemon's regular sshd.service allow to monitor connection attempts in the log. The logs of socket-activated instances of SSH can be seen by running journalctl -u "sshd@*" as root or by running journalctl /usr/bin/sshd as root.
回复

使用道具 举报

     
发表于 2022-10-18 11:34 来自手机 | 显示全部楼层
比亚迪 发表于 2022-10-17 22:48
上级指派升级系统,从从以前的windows +IIS 升级为CentOS+tomcat,扔过来一一顿安装文档就让下级单位自己搞 ...

你可能是吃了“保姆级”教程的鳖。现在大多的操作教程语焉不详,极其傻逼
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 11:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2022-10-18 11:51 | 显示全部楼层
zanber 发表于 2022-10-18 11:12
Arch Linux的Wiki里
5.2.5.2教人家改SSH端口,全部原文如下,对于7楼那种“普通用户”来说,照着说明操作 ...

在archinstall脚本出来以前,用archlinux的人都需要手动装archlinux。一开始就刻意不让『一般用户』进门,manjaro用户都属于搭便车白嫖。

archlinux维基的写作者,默认读者有一定的基本操作水平,和微软的帮助文档不一样。相当于专业字典,不是猴子都能懂的入门书。
回复

使用道具 举报

发表于 2022-10-18 11:58 | 显示全部楼层
感觉场面有点似曾相识

顺便58l
https://bbs.saraba1st.com/2b/thread-2089951-2-1.html
回复

使用道具 举报

发表于 2022-10-18 12:02 | 显示全部楼层
乔槁 发表于 2022-10-18 11:51
在archinstall脚本出来以前,用archlinux的人都需要手动装archlinux。一开始就刻意不让『一般用户』进门 ...

事实上就不知道该怎么入门了,一些入门发行版,隐藏掉了过程细节,转到arch,这些又不教
回复

使用道具 举报

发表于 2022-10-18 12:53 | 显示全部楼层
macos 发表于 2022-10-18 12:02
事实上就不知道该怎么入门了,一些入门发行版,隐藏掉了过程细节,转到arch,这些又不教 ...

入门的话,ArchWSL2挺好的,能用最新软件、折腾坏了也影响不大。
https://github.com/yuk7/ArchWSL/blob/master/i18n/README_zh-cn.md

最近微软还挖了systemd作者,WSL未来会更接近一般Linux。再加上网络连通也能用ZeroTier解决,坑越来越少了。
回复

使用道具 举报

发表于 2022-10-18 13:06 来自手机 | 显示全部楼层
用esxi学Linux?你买到正经服务器了?你没发现你的esxi读不到主板CPU硬盘温度么?怎么保证硬件正常?
赶快转投proxmox吧。基于Debian,开箱可用。又能学Linux,又能有虚拟平台用,还可以不需要ipmi就能读取CPU主板硬盘温度(基于lm-sensor),岂不美哉。

—— 来自 HONOR HPB-AN00, Android 12上的 S1Next-鹅版 v2.5.4
回复

使用道具 举报

     
发表于 2022-10-18 13:20 | 显示全部楼层
wsl2基于hyperv,影响主机性能非常不爽
回复

使用道具 举报

头像被屏蔽
     
发表于 2022-10-18 13:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2022-10-18 13:27 | 显示全部楼层
本帖最后由 5long 于 2022-10-18 15:45 编辑
macos 发表于 2022-10-18 12:02
事实上就不知道该怎么入门了,一些入门发行版,隐藏掉了过程细节,转到arch,这些又不教 ...
编辑: 以下都是胡说. 立了个靶子自己打.

像 7 楼遇到的那种"服务器端改了监听端口, 那么客户端也应该相应修改"的问题
需要的是网络通信的基础知识
为了这点知识去看一整本讲网络通信的书, 肯定划不来
那么就得在"操作系统的入门教程"里顺便收纳进来才行

我自己接触这个知识点可能是...
早年配置 Email 桌面客户端的时候都要手动填 SMTP / POP3 端口号吧
没看过什么系统性的教程

Arch Wiki 的各个页面其实只介绍了对应软件的一般入门步骤 + 常见使用套路与疑难问题
像上面提到的网络基础知识
肯定没必要在所有页面都重复一遍

总之, 现在如果要我推荐一本 Linux 教程
且能够为读者补足必要的网络基础知识
一时我也找不到很好的候选
回复

使用道具 举报

     
发表于 2022-10-18 13:46 | 显示全部楼层
chachi 发表于 2022-10-18 13:20
wsl2基于hyperv,影响主机性能非常不爽

时不时来个Hyperv IRQ ERROR非常难受
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|上海互联网违法和不良信息举报中心|网上有害信息举报专区|962110 反电信诈骗|举报电话 021-62035905|Stage1st ( 沪ICP备13020230号-1|沪公网安备 31010702007642号 )

GMT+8, 2024-9-22 05:36 , Processed in 0.181922 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表