Ubuntu configures the network system-& gt; network-& gt; select eth0 and set it to dhcp to automatically obtain ip addresses, mac addresses, and dns. First of all, samba must be installed: sudoapt-getinstallsambasudoapt-getinstallsmbfs: Share the read/write folder of the group. Assume that the folder you want to share is/home/luah. First, create this folder code: sudouser.
Ubuntu Network Configuration
System-> network-> select eth0 and set it to dhcp to automatically obtain ip addresses, mac addresses, and dns
First, install samba:
Code:
SudoApt-get install samba
SudoApt-get install smbfs
Next we will share the readable and writable folders of the group. Assume that the folder you want to share is/home/luah.
First create this folder
Code:
SudoUseradd lah
SudoPasswd lah
SudoMkdir/home/lah
SudoChmod 777/home/lah
Back up and edit smb. conf to allow network users to access
Code:
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf_backup
SudoGedit/etc/samba/smb. conf
Add
[Lahsmb]
Comment = lah samba
Path =/home/lah
Writable = yes
Valid users = lah
Guest OK = yes
You can also use the following command to replace the blue Font:
SodoApt-get install system-config-samba
Then add the samba folder in the graphic interface.
Now you want to add a network user account:
Code:
SudoSmbpasswd-a lah
Sudo/etc/init. d/samba restartOr sudo/etc/init. d/smbd restart
Now you can log on to windows with \ ip.
Second knowledge:Ubuntu automatically starts the root account
Sudo-s
Sudo passwd
Sudo gedit/etc/TPD/custom. conf
Add the following content:
[Daemon]
AutomaticLoginEnable = true
AutomaticLogin = root
TimedLoginEnable = true
TimedLogin = lah
TimedLoginDelay = 10
Third-party knowledge: other configurations
1. Vi tool configuration: The vim direction key of Ubuntu is abnormal. The correct method is as follows:
Sudo echo "set nocp" >> ~ /. Vimrc
2. When using the make menuconfig command, you must install "libncurses5"
Sudo apt-get install libncurses5-dev
3. Install the ssh service and log on remotely using ssh
Sudo apt-get install ssh
4. Install the patch command
Sudo apt-get install patch