赞
踩
- @-virtual-machine:~$ ifconfig
-
- Command 'ifconfig' not found, but can be installed with:
-
- sudo apt install net-tools
-
- @-virtual-machine:~$ sudo apt install net-tools
- [sudo] password for linfangfang:
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- python3-click python3-colorama
- Use 'sudo apt autoremove' to remove them.
- The following NEW packages will be installed:
- net-tools
- 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
- Need to get 194 kB of archives.
- After this operation, 803 kB of additional disk space will be used.
- Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB]
- Fetched 194 kB in 2s (81.2 kB/s)
- Selecting previously unselected package net-tools.
- (Reading database ... 163792 files and directories currently installed.)
- Preparing to unpack .../net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ...
- Unpacking net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
- Setting up net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
- Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
- linfangfang@linfangfang-virtual-machine:~$ ifconfig
- ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 10.11.1.168 netmask 255.255.255.0 broadcast 10.11.1.255
- inet6 fe80::42a4:f376:8226:2969 prefixlen 64 scopeid 0x20<link>
- ether 00:0c:29:f1:e9:07 txqueuelen 1000 (Ethernet)
- RX packets 9141 bytes 4451845 (4.4 MB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 1829 bytes 157924 (157.9 KB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
1、 sudo apt-get install samba samba-commo
2、增加samba用户名和密码:sudo smbpasswd -a XXXX
xxx@xxxx-virtual-machine:~$ sudo smbpasswd -a xxxx
New SMB password:
Retype new SMB password:
Added user xxxx.
xxxx@xxxx-virtual-machine:~$
3、共享需要文件夹 sudo vi /etc/samba/smb.conf
[share]
comment = share folder
browseable = yes
path = /home/xxxx ==>可以是新创建的路径
create mask = 0700
directory mask = 0700
valid users = xxxx
force user = xxxx
force group = xxxx
public = yes
available = yes
writable = yes
4、开启samba服务:sudo service smbd restart
5、sudo apt-get install openjdk-8-jre
xxxx@xxxx-virtual-machine:/usr/lib/jvm$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~18.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
6、安装git :sudo apt-get install git
7、make: command not found
sudo apt-get install make
8、No python 'pyelftools', please: pip install pyelftools
sudo apt-get install python
sudo apt-get install python-pip
sudo pip install pyelftools
9、line 589: fdtget: command not found
sudo apt-get install device-tree-compiler
【centos】 yum install dtc
10、/bin/sh: 1: bison: not found
sudo apt-get install bison
11、/bin/sh: 1: flex: not found
sudo apt-get install flex
12、fatal error: openssl/bio.h: No such file or directory
sudo apt-get install libssl-dev
13、
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。