For Internet cafe game Server Linux

Source: Internet
Author: User
For more information about Internet cafe game Server Linux-Linux Enterprise Application-Linux server application, see the following. Nowadays, a lot of Internet cafes use a series of game update software such as Tencent, Yiyou, yisu, and wangwei. but they all share a common feature. is to use the sharing method to compare and update the game. what I want to do today is share in Linux, and we can easily compare and update games. in Linux, samba must be installed, because samba is used to complete the sharing protocol in Linux, shared with other computers. how can I update the game server in Linux.

First install the Linux system. linux has many versions, such as red flag, Red Hat, centos, ubuntu, FC, or other versions, during installation. select the customized software and choose to install the samba service in the server item. after installation, use root to enter the system.

After installing the system. samba services are not enabled when the system starts by default. now we use the command to set the samba service to auto-start upon startup. The command is ntsysv. Enter this command on the terminal to display a graphic interface. select samba and press the Space key. Press the switch key to confirm. you can. now let's go to the samba directory, first run the command cd/etc/samba to enter the samba directory, and then back up the original samba configuration file. We use the following command, mv smb. conf smb. conf1. because we are already in this directory. therefore, no path is required. after the backup is complete, edit the file. command vi samba. conf. After the command is enabled, copy the previously configured

[Global]
Workgroup = workgroup
Netbios name = server
Server string = Linux Samba Server TestServer
Security = share
[Netgame]
Read list = nobody
Valid users = nobody, @ nobody
Writable = yes
Path =/home/gamesir/netgame
Write list = admin
Public = yes
[Langame]
Read list = nobody
Valid users = nobody, @ nobody
Writable = yes
Path =/home/gamesir/langame
Write list = admin
Public = yes
[Gamesir]
Read list = admin
Valid users = admin, @ admin
Writable = yes
Path =/home/gamesir
Write list = admin
Public = yes
[Xmenu]
Read list = nobody
Valid users = nobody, @ nobody
Writable = yes
Path =/home/gamesir/xmenu
Write list = admin
Public = yes

Okay. Our file is configured. Press ESC. In the upper-case outbound state, press ZZ twice to exit.

Now we create a folder path based on the configuration file we wrote and grant folder permissions and permissions to the folder.

Go to home, enter mkdir gamesir, and enter gamesir to continue creating netgame, langame, and xmenu,

After creation, we need to create a user named admin and set the samba password for admin. The command is as follows:

Adduser admin press enter user admin to create the account.

Now, this is the samba password for admin. smbpasswd-a admin. After the command is entered, it will ask you to enter the password and then repeat the new password. Then, it will be OK.

Now, set the permission and authorization folder.

The command is as follows:

Chomd-R 755/home/gamesir

Chown-R admin: admin/home/gamesir

The above command is used up. The entire samba game is compared with the updated server. The above is set for messaging.

Other game servers can be set based on different needs. This is probably the case!

There is also a more convenient configuration file!

[Global] (smb general settings)
Workgroup = workgroup (set workgroup)
Netbios name = game (set server name)
Server string = game (enter the server description)
Security = share (input Sharing Mode)
[Game $] (share name)
Path =/home/game (set the shared folder path)
Valid users = admin, nobody (set the visitor)
Writeable = yes (set whether to write)
Browseable = yes (set whether to browse)
Guest OK = yes (set whether to allow access by guests)

That's it.
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.