Ubuntu系统安装、samba共享
1、下载Ubuntu镜像文件
2、下载Universal-USB-Installer 制作U盘启动
3、软件更新
apt-get update 更新软件列表。
apt-get upgrade 更新软件。
apt-get dist-upgrade 更新系统版本。
4、安装软件
sudo apt-get install [package name]
5、忘记安装包全名,可搜索
sudo apt-cache serach [package name]
6、安装java
(1)安装jre
(2)安装javac
7、编译Android源码时,若遇到
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
(1)先安装bison
(2)ubuntu 64位系统运行32位程序的问题,需要安装运行32位程序的兼容库
sudo apt-get install lib32ncurses5
sudo apt-get install lib32stdc++6
8、Linux添加用户
sudo adduser [用户名]
sudo userdel -r 用户名 // -r删除用户目录
9、添加ssh远程用户登录
需要通过apt-get install 安装ssh相关包
10、安装samba服务,实现在windows环境下映射Linux存储
(1)安装samba服务
(2)修改/etc/samba/smb.conf //主要修改如下:
[homes] comment = Home Directories browseable = yes # By default, the home directories are exported read-only. Change the # next parameter to 'no' if you want to be able to write to them. read only = no # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0755 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0755 # By default, \\server\username shares can be connected to by anyone # with access to the samba server. # Un-comment the following parameter to make sure that only "username" # can connect to \\server\username # This might need tweaking when using external authentication schemes valid users = %S
(3)添加samba用户
smbpasswd -a 用户名