ubuntu20搭建环境使用的一下指令

1.更新源

sudo vim etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

2.更新软件

sudo apt-get update
//更新源的内容
sudo apt-get -f install
//复损坏的软件包,重新安装正确版本的
sudo apt-get upgrade
//更新软件

3.ifconfig使用

sudo apt install net-tools

4.安装vim

sudo apt-get install vim

5.安装python

sudo apt-get install python

sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install openjdk-8-jdk
sudo apt-get install build-essential 
sudo apt-get install libncurses* 
sudo apt-get install lzop
sudo apt-get install openssh-server vim git fakeroot
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler python-pip libncurses5-dev
sudo apt install python3-pip

sudo apt-cache search aarch64
//查看gcc的版本
sudo apt-get install gcc-10-aarch64-linux-gnu
//选择一款gcc
sudo apt --fix-broken install
//解决依赖问题

sudo apt-get install gcc-aarch64-linux-gnu
//安装一个没有版本号的

sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev 
sudo apt-get install libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl 
sudo apt-get install libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils 
sudo apt-get install xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev 
sudo apt-get install lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip device-treecompiler 
sudo apt-get install liblz4-tool python-pyelftools python3-pyelftools -y

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar

sudo apt-get install ssh

sudo apt-get install samba-common -y
sudo apt-get install samba

问题:
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
sudo apt-get install aptitude
sudo aptitude install samba


sudo vim etc/samba/smb.conf 


[sdk]
comment= lm sdk samba
path=/home/sdk
public=yes
writable=yes
browseable=yes
available=yes
valid users= @root @sdk
sudo smbpasswd -a sdk
然后输入密码xxxx

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
相关推荐
AndyFrank5 分钟前
mac crontab 不能使用问题简记
linux·运维·macos
筱源源21 分钟前
Kafka-linux环境部署
linux·kafka
算法与编程之美1 小时前
文件的写入与读取
linux·运维·服务器
xianwu5431 小时前
反向代理模块
linux·开发语言·网络·git
Amelio_Ming1 小时前
Permissions 0755 for ‘/etc/ssh/ssh_host_rsa_key‘ are too open.问题解决
linux·运维·ssh
Ven%2 小时前
centos查看硬盘资源使用情况命令大全
linux·运维·centos
TeYiToKu3 小时前
笔记整理—linux驱动开发部分(9)framebuffer驱动框架
linux·c语言·arm开发·驱动开发·笔记·嵌入式硬件·arm
dsywws3 小时前
Linux学习笔记之时间日期和查找和解压缩指令
linux·笔记·学习
yeyuningzi3 小时前
Debian 12环境里部署nginx步骤记录
linux·运维·服务器
上辈子杀猪这辈子学IT4 小时前
【Zookeeper集群搭建】安装zookeeper、zookeeper集群配置、zookeeper启动与关闭、zookeeper的shell命令操作
linux·hadoop·zookeeper·centos·debian