当前位置:网站首页>source insight via samba
source insight via samba
2022-04-23 14:20:00 【anron】
1. pull image, create container and enter the container
docker pull centos
# without --privileged=true, executing "systemctl start sshd.service" will occur the error "system has not been booted with systemd as init system"
docker run -p 8022:22 -p 139:139 -p 445:445 -itd --name fireware --privileged=true centos /sbin/init
docker exec -it fireware bash
2. execute command in the container
2.1 install language pack
locale -a
yum install -y glibc-langpack-en
locale -a
2.2 install libraries
yum install -y passwd net-tools git bzip2 make samba automake
2.3 install sshd
yum install -y openssl openssh-server
# don't need modify to "PermitRootLogin yes", because it's always that
# vim /etc/ssh/sshd_config
systemctl start sshd.service
systemctl enable sshd.service
# set the password for user root
passwd root
2.4 create user and group
useradd -d /home/ljh -s /sbin/nologin ljh
2.5 config samba
# add user for samba
pdbedit -a -u ljh
# add share folder in config file
# [codes]
# comment = codes for SC08S
# path = /home/ljh
# writable = yes
# public = no
vi /etc/samba/smb.conf
# start smb
systemctl start smb
systemctl enable smb
# modify selinux, change enforcing to disabled
vi /etc/sysconfig/selinux
# setlinux
setenforce 0;
2.6 get codes from git
# get codes from git server
cd /home/ljh
git clone http://xxx:81/xxx/parker_EX
# change folder parker_EX's owner
chown -Rf ljh:ljh /home/ljh
2.7 mdofiy ev200 compilation environment
# install arm-himix100-linux
tar xzvf arm-himix100-linux.tgz
cd xzvf arm-himix100-linux
./arm-himix100-linux.install
# add path
export PATH=/opt/hisi-linux/x86-arm/arm-himix100-linux/bin:$PATH
# test
arm-himix100-linux-gcc -v
# make clean & make
cd /home/ljh/parker_EX/app/mainApp
make clean
make
2.8 visit the share folder through samba in windows
my computer (right click) -> map network driver -> folder (\\192.168.0.21\codes)
if you didn't add config section information [codes] in file /etc/samba/smb.conf then you can only access \\192.168.0.21\ljh, otherwise you can also access \\192.168.0.21\codes
版权声明
本文为[anron]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231409380504.html
边栏推荐
猜你喜欢
随机推荐
Tongxin UOS uninstall php7 2.24, install php7 4.27 ; Uninstall and then install PHP 7.2.34
Some experience of using dialogfragment and anti stepping pit experience (getactivity and getdialog are empty, cancelable is invalid, etc.)
Nacos作为配置中心(四) 使用Demo
剑指offer刷题(1)--面向华为
Arrays类的使用案例
XX project structure notes
After entering the new company, the operation and maintenance engineer can understand the deployment of the system from the following items
在电视屏幕上进行debug调试
Operation instructions of star boundary text automatic translator
LLVM - 生成for循环
A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
How does void * exist?
redis数据库讲解(三)redis数据类型
拨开云雾synchronized使用五种方式介绍
预览CSV文件
MySQL lock database lock
Storage path of mod subscribed by starbound Creative Workshop at Star boundary
API Gateway/API 网关(三) - Kong的使用 - 限流rate limiting(redis)
百度笔试2022.4.12+编程题目:简单整数问题
翻牌效果









