Linux game server with flash drive

Source: Internet
Author: User
Linux and flash game server-Linux Enterprise Application-Linux server application information. The following is a detailed description. I have seen many people asking how to use linux to create a game server. This test is actually very simple, just like what we usually use windows, but linux, you need to set up a samba service. Then, log on to the samba server and copy the game menu (server) to a shared directory under the samba server. If you don't talk much about it now, I will not capture the picture.

1 .. install the samba service. Here we use the rpm package for installation.

Start samba Installation
If you have not installed these packages, find the mounted optical drive on the redhat installation disk.
Mount-t/mnt/cdrom
Rpm-ivh samba-client-3.0.2-6.3E
Rpm-ivh redhat-config-samba-1.0.16-1
Rpm-ivh samba-common-3.0.2-6.3E
Rpm-ivh samba-3.0.2-6.3E

Check after installation
[Root @ game/] # rpm-qa | grep samba
Samba-client-3.0.2-6.3E
Redhat-config-samba-1.0.16-1
Samba-common-3.0.2-6.3E
Samba-3.0.2-6.3E

Set an smaba user
[Root @ game/] # useradd knuoxy
[Root @ game/] # smbpasswd knuoxy-
New SMB password:
Retype new SMB password:

Enter the knuoxy User Password
We will use this user for access later ..

Check whether the user knuoxy already exists in the smbpasswd file.
[Root @ game/] # cat/etc/samba/smbpasswd
Knuoxy: 504: 671A2AE8F5664383AAD3B435B51404EE: 08202913F5DBCF3AA7ED225DBA81C40B: [U]: LCT-456D5D88:

Open the smb. conf file
[Root @ game/] # vi/etc/samba/smb. conf

View smb. conf content
[Global]
# Unix charset = cp936
# Dos charset = cp936
# Display charset = cp936
Workgroup = WORKGROUP ------------------ the Working Group must remember the same group that windows belongs.
Netbios name = game ---------------------- I did not add my own name to this section.
Server string = netgame ------------------ samba server name displayed when the network neighbor opens
Guest account = nobody ----------------------- anonymous access not allowed
Log file =/var/log/samba/% m. log ----------- log
Max log size = 50 --- set the maximum log Length
Security = user --------------- here we use the user mode. The default value is share.
Encrypt passwords = yes ------------------ access to information under this user
Smb passwd file =/etc/samba/smbpasswd ---------- the same as above
Username map =/etc/samba/smbusers ------------ users can map to different samba names
Socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192
# Interfaces = 192.168.1.254/24 192.168.2.254/24
OS level = 33
# Default case = lower
# Case sensitive = no
Valid users = knuoxy ----------- allow user access
Admin users = knuoxy -- administrator user
Write list = knuoxy ----- Writable User

Share part
[Game $]
Path =/game
Public = no
Writeable = yes

The above is the smb. conf segment
You will surely feel that you are so nice and our smb. there are so many conf segments. In fact, you don't notice that you have comments. You can delete the comments as long as you understand them. #; they all belong to the comments section and can be deleted.

Now let's try to view

[Root @ game/] # testparm
We will not write it out.
[Game $]
Path =/game
Read only = No

Restart an smb server
[Root @ game/] #/etc/rc. d/init. d/smb restart

Try to connect and use smbclient
[Root @ game/] # smbclient // 202.130.19. */game $-U knuoxy
Params. c: Parameter ()-Ignoring badly formed line in configuration file: bal]
Params. c: Parameter ()-Ignoring badly formed line in configuration file: save $]
Password:
Domain = [KNUOXY] OS = [Unix] Server = [Samba 3.0.2-6.3E]
Smb: \> ls

It indicates that the connection is successful and linux can be ended.

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.