VMwareUbuntusamba configuration and Automatic startup of root account settings and other configurations

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.