Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure samba file sharing service in Ubuntu

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

It is believed that many inexperienced people have no idea about how to configure samba file sharing service in Ubuntu. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

If you can normally telnet small I under Ubuntu Linux, the method is as follows:

Sudo ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900

# # Note: unlike under windows, Xiao I uses the IP address 192.168.1.2 under Ubuntu Linux, so the IP of usb0 devices should be assigned to this network segment. At the same time, netmask and mtu should also be established. In the past, I always succeeded in telnet, but I could not operate Xiao I's files through the file manager or mount command. Later, I reflected that this should be the problem.

Telnet 192.168.1.2

# # at this time, log in with the root user and leave the password blank, then you can telnet normally. Next, if you want to modify the file operation of Xiao I, you can use a special file manager, such as nautilus or konqueror. In that case, to display Chinese normally, you need to configure the samba file sharing service under Ubuntu Linux. I will not discuss it here. My method is to use the mout command to mount the drive letter of Xiao I to the local directory.

Sudo mount-o iocharset=utf8,codepage=cp936,username=root,password=,-t smbfs / / 192.168.1.2/system / local directory /

# # Note: the above command applies to the locale of UTF-8. If it is a Chinese locale such as GB2312, the parameter iocharset=utf8 should be removed, so that the Chinese file name can be displayed normally in the Xiao I directory mounted to the local directory. At this time, you can also modify and edit Xiao I at will, which requires root permission.

The above methods have been tested on Ubuntu Linux dapper.

Mount-bind modifies the directory that cannot be modified by mobile phone

Mount-- bind is actually very simple. With this command, you can load files that are not writable inside the phone and connect them to the outside of the phone, so that you can modify the files that are not writable.

Give an example to illustrate:

If we want to load the radio outside the phone, we can use the command mount-- bind / diska/preload/tools/fmradio / usr/SYSqtapp/fmradio

The specific meaning of this command is:

Load the radio directory, the / usr/SYSqtapp/fmradio directory, into the phone disk / diska/preload/tools/fmradio directory (that is, replace the original radio directory with the fmradio directory of the phone disk) so that the actual directory of the radio becomes the / diska/preload/tools/fmradio directory, in which we can modify the radio to achieve headset-free radios.

Ubuntu Linux can load automatically as long as you add this command to the self-startup menu.

After reading the above, have you mastered how to configure samba file sharing service in Ubuntu? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report