Use Ubuntu Server to Set Up Windows file sharing based on independent hard disk and FTP Server (configuration work), ubuntu file sharing
This chapter covers the environment configuration and New Hard Disk addition and settings of Ubuntu Server.
1) install and configure Ubuntu Server
I will not elaborate on the installation. just mention that when you can select a Server role, remember to check OpenSSH Server and Samba File Server. It does not matter if you forget to install the two items, or if you have already installed them but do not remember to install them. You can install them according to the following two lines of commands.
123 |
sudo apt-get install openssh-server sudo apt-get install samba |
No configuration is required here. The specific configuration is later. SSH is not necessary, but it is inconvenient to operate without it (remote access is not allowed, Putty cannot be used in Windows ).
After the above preparations are complete, add a hard disk to the server.
2) Mount the New Hard Disk
The virtual machine I used for testing is configured as a 8 GB system hard drive + 20 GB storage hard drive. The advantage of separating storage disks is that it is convenient to disassemble, replace, and expand disks in the future. I strongly recommend that you do not use a large hard disk to put the system and storage together.
After a new hard disk is added, the first thing we need to do is initialize, format it, and mount it to the Ubuntu System (there is no drive letter concept in Linux, so it is to create a folder, and then associate the folder with the hard disk ).
Specific operations:
A) execute the following commands
1234567 |
ls /dev/sd * This command lists all the current system drive letters and detected hard disks. The result is as follows: /dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb Where, /dev/sdb Is a new hard disk, the first is a hard disk, the system default configuration. Here we remember the keyword "sdb. |
B) execute the following commands
123456789101112131415 |
sudo fdisk /dev/sdb Note: /dev/sdb Is the new hard disk. After the command is executed, a description is displayed. Enter the command code below: Command (m for help): Run the p command first. Command (m for help):p After you press enter, you will see some information about the new hard disk, such as the capacity, and ask to enter the command again. This time we enter n: Command (m for help):n Then, I will ask about the partition type and number of partitions. I will use the default settings here, that is, simply press Enter. The following is: |
The above parameter sets the entire new hard disk as a large partition, but these settings have not yet taken effect, and we need to confirm the last time
1234567 |
Command (m for help):w The w command writes the parameter settings in the memory to the hard disk. Enter w and press Enter. The partition table has been altered! Then the system command line returns bash |
C) execute ls/dev/sd * To check:
1 |
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb /dev/sdb1 |
One more/dev/sdb1, And the partition is successful!
D. format the new partition.
1 |
sudo mkfs.ext3 -L /storage /dev/sdb1 |
The/storage here can be changed, that is, the name of the partition, which is equivalent to the name of the drive letter in Windows.
/Dev/sdb1 corresponds to the new partition, which we checked before.
The completion time of the preceding commands varies depending on the disk size. Large hard disks, especially TB-level disks, may take some time. Please wait.
After completion, you will see:
E) Then we will mount the newly formatted partition to the Ubuntu system.
12345678910111213 |
sudo mkdir /storage As mentioned above, Linux does not have a drive letter concept. partitions correspond to the next folder in the system, so I create a storage folder under the root directory. This hard disk is not a mobile hard disk, it needs to be automatically restarted every time mount So we need to modify /etc/fstab Content sudo nano /etc/fstab Add at the bottom /dev/sdb1 /storage auto defaults 0 0 Save and exit. Run mount Command, you should see the last section: /dev/sdb1 on /storage type ext3 (rw) |
This article is from the "www.DIYPCs.com" blog, please be sure to keep this source http://cnbeta.blog.51cto.com/1234897/1548960
What are the specific steps for setting up an intranet ftp server using server-u? Urgent, each ^
Use serv-u to create FTP
A little basic network administrator will know the SERV-U of this software, he is the most popular FTP site building tools in the past. Basically, FTP in windows is built by him. The function is very powerful, the method to establish it is very simple, and the performance is also very stable.
Small files SERV-U:
Software Version: 6.1.0.3 Beta
Software size: 3228KB
Software language: English
Software type: Shared Software
Running Environment: Win9x/Me/NT/2000/XP
Below I will introduce to you IT168 readers how to use the latest version of SERV-U 6 to build a simple FTP. Of course, the SERV-U function is very powerful, because the limited length of FTP settings and management is not detailed in this article, we will come up with a dedicated article to introduce the SERV-U management and application skills.
Step 1: double-click the downloaded SERV-U installer to install.
Step 2: By default, MCAFEE antivirus software will list the SERV-U as a virus, so the software installation will give a reminder, if the machine installed MCAFEE, Please disable the antivirus software, prevents him from accidentally deleting the SERV-U main program.
Step 3: The next is the installation information of the SERV-U, And we can directly click "Next" as common software.
Step 4: Agree to the SERV-U installation agreement, click "Next" to continue.
Step 5: Set the installation directory of the SERV-U, This is the installation directory is not the FTP release directory, this readers need to understand the effective distinction. We used the "BROWSER" button to modify its default installation path to the corresponding directory of the G disk.
Step 6: select the SERV-U to install the components, by default four components will be selected, in turn for the SERV-U main program, SERV-U management tools, help information, online help information. In fact, we only need to select the first two. The help information below is of little use.
Step 7: Install the SERV-U in the SERV-U ftp server component in the Start-> program.
Step 8: complete all SERV-U installation configuration, "Next" and start to install the file to the local hard disk.
Step 9: copy the file to the installation directory.
Step 10: After the installation is complete, there will be a SERV-U related software introduction interface, provides a few gadgets such as FTP client applet, DNS resolution gadgets, interested readers can download and use.
Step 2: complete all installation and configuration. By default, the SERV-U shortcuts are added to the desktop and the SERV-U Management Console is started.
Step 2: we will see many options on the console interface. Generally, DOMAINS is set when we create an FTP site.
Step 2: Right-click DOMAINS and select "new domain ".
Step 2: Set the ip address used by the FTP server. You can use the local ip address such as 10.91.30.45, or select "use any available ip address" from the drop-down menu to use any ip address used by the local server, we recommend that you select this option.
Step 2: NAME the FTP server, that is, set domain name. we NAME it softer's ftp. Click "NEXT" to continue.
Step 2: Set the publishing port used by the FTP server, that is, the port used by the client to access the FTP server. By default, port 21 is used. If the default port is used, you do not need to add this port number when accessing FTP, which is similar to saving port 80 when accessing HTTP. Of course, if port 21 is occupied or we want to publish multiple FTP sites on the same computer, we can modify the port.
Step 2: set the system parameters of the currently saved FTP server to the configuration file. The default value is the. ini file. We can keep the default value. Click "NEXT" to continue.
Step 2: After the establishment of the entire ftp domians, we will manage the full text...>
Help: ubuntu windows File Sharing
It should not be a problem of encoding. It is normal for my 9.10 access to windows sharing, and the encoding has not been changed specially. paste the steps for connecting to the server to see if there are other problems.