首页 > 系统相关 >ECS Initial(Ubuntu22)

ECS Initial(Ubuntu22)

时间:2023-12-26 12:22:54浏览次数:34  
标签:git org Initial apt ECS USER install NEW Ubuntu22

Summary

There is a new server whose system is ubuntu22.04

Steps

  1. Upgrade system packages
apt update -y && apt upgrade -y && apt install -y python-is-python3 python3-venv zsh && apt autoremove -y
  1. Reboot
reboot
  1. New user and sudo
export NEW_USER=grap
adduser $NEW_USER
chmod +w /etc/sudoers
python3 -c 'import os;from pathlib import Path;p=Path("/etc/sudoers");s="%admin ALL=(ALL) ALL";name=os.environ["NEW_USER"];t=f"%{name} ALL=(ALL) NOPASSWD:ALL";ss=s+"\n"+t;org=p.read_text();t in org or p.write_text(org.replace(s,ss))'
chmod -w /etc/sudoers
  1. Setup oh my zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git
./ohmyzsh/tools/install.sh
  1. Install python3.11
su - $NEW_USER
mkdir archives
cd archives
git clone https://github.com/waketzheng/carstino.git
cd carstino
sh did_upgrade_py.sh
  1. Configure pip mirrors and install pipx/poetry
./init_my_dev.py
  1. Deployment tools
sudo apt install -y nginx supervisor

标签:git,org,Initial,apt,ECS,USER,install,NEW,Ubuntu22
From: https://www.cnblogs.com/waketzheng/p/17927871.html

相关文章

  • docker 启动报错 library initialization failed - unable to allocate file descript
    docker启动报错library initialization failed-unabletoallocatefiledescriptortable-outofmemory1.报错日志libraryinitializationfailed-unabletoallocatefiledescriptortable-outofmemory/cm-server/aiboxCloud-web/boot/entrypoint.sh:line2:......
  • ubuntu22.04 install cuda cudnn
    https://blog.csdn.net/qq_49323609/article/details/130310522isverygood  1,firstcheckdrivernvidia-smiifnocontent,showinstalldriverfirst twoways:oneis:useapt-getlike:https://blog.csdn.net/zxdd2018/article/details/127705627ubuntu-d......
  • Ubuntu22.04 安装 MQTT 服务器
    本周web课简单了解了MQTT,在此记录下我的安装使用(用python写个订阅新闻的简单示例)流程,如有错误,欢迎指正!1.MQTT简介MQTT是一种轻量级的消息传递协议,专为低带宽、高延迟或不可靠的网络环境设计。1.1MQTT的主要特点轻量级和低带宽:MQTT协议的头部非常小,这使得它在带......
  • Ubuntu22.04 安装 kvm
    确认环境egrep-c'(vmx|svm)'/proc/cpuinfo输出结果需要大于0,否则主机需要开启cpu虚拟化功能。设置桥接网卡#网卡配置示例cat<<'EOF'|sudotee/etc/netplan/00-installer-config.yaml>/dev/null#Thisisthenetworkconfigwrittenby'subiquity'netw......
  • Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
    报错:OMP:Error#15:Initializinglibiomp5md.dll,butfoundlibiomp5md.dllalreadyinitialized.OMP:HintThismeansthatmultiplecopiesoftheOpenMPruntimehavebeenlinkedintotheprogram.Thatisdangerous,sinceitcandegradeperformanceorcausei......
  • 阿里云ECS自建K8S_IPV6重启后异常问题解决过程
    阿里云ECS自建K8S_IPV6重启后异常问题解决过程背景最近安装了一个单节点的K8S_IPV6昨天不知道何故突然宕机了.然后只能在阿里云的控制台后台重启了ECS启动之后看K8S的状态一开始是正常的.但是查看ing的时候,发现IP地址却变成了IPV4的地址,感觉比较奇怪.这里整理一下......
  • ubuntu22.04安装Goland2022.2.4
    ubuntu22.04安装Goland2022.2.4自行下载Goland版本下载golandwgethttps://download.jetbrains.com/go/goland-2022.2.4.tar.gz./将下载的压缩文件解压到指定目录sudotar-zxvfgoland-2022.2.4.tar.gz-C/tools/goland启动试运行golandcd/tools/goland/GoLand......
  • logback error Logging system failed to initialize using configuration from 'nul
    *[Afterupgradingtheprojectfromspringboot2.3.4to2.7.0,buildfailwithalogback.xml·Issue#32025·spring-projects/spring-boot·GitHub](https://github.com/spring-projects/spring-boot/issues/32025)*[WhyDoesTheLoggingSystemFailToInitial......
  • 使用AWS CLI精通AWS ECS:部署和管理的综合指南
    亚马逊弹性容器服务(AmazonElasticContainerService,ECS)为部署和管理容器化应用提供了强大的平台。在本指南中,我们将通过AWS命令行界面(CLI)探讨如何无缝地执行常见的ECS任务。无论您是初学者还是经验丰富的用户,本逐步教程都将帮助您轻松地导航ECS集群、任务和服务。先决条件在我们......
  • 香橙派ubuntu22开启热点并设置成开机自启
    创建热点通过create_ap创建WIFI热点的方法以下是官方用户手册给的方案,此脚本的GitHub地址为https://github.com/oblique/create_ap香橙派官方给的ubuntu22镜像已安装此脚本create_ap的基本命令格式如下所示:create_ap[options]<wifi-interface>[<interface-with-intern......