To start, lets install Mono first. As of posting this guide, this will install Mono 3.4.0. Open /etc/yum.repo.d/mono.repoin your favorite editor. The file probably does not exist you need to create it! Add the following text to the above file: [home_tpokorra_mono] name=mono and monodevelop (CentOS_CentOS-6) type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/tpokorra:/mono/CentOS_CentOS-6/ gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/tpokorra:/mono/CentOS_CentOS-6/repodata/repomd.xml.key enabled=1 Save the file and exit your editor. Run an update on yum first before we try to install anything via: yum update Next, lets install the needed Mono packages with: yum install mono-*opt Accept any downloads it requires and such, you should only need to say yes to 1 prompt. Next we need to register executables to the binfmt via the following command: *echo ':CLR:M::MZ::/usr/local/bin/mono:' > /proc/sys/fs/binfmt_misc/register* Next we need to adjust our PATH variable. I personally edit the .bashrc file for this. Open ~/.bashrc in your favorite editor. Near the top (above the current alias' if any) add the following line: *export PATH=/opt/mono/bin:$PATH* Mono should now be installed and working. You can type mono --version to print out the version info. Help, my map does not show up! Players just fall endlessly! This is due to missing libs. Shutdown your server and run the following command: *find / -name libMonoPosixHelper.so* This should locate the library within 1 or more directories. For example like this: *[root@root /]# find / -name libMonoPosixHelper.so /opt/mono/lib/libMonoPosixHelper.so /usr/local/src/mono-3.4.0/support/.libs/libMonoPosixHelper.so [root@root /]#* We need to add the /opt/mono/lib folder to our environment variables library path. To do that, do the following: Open ~/.bashrc in your favorite editor. Locate were we added export PATH and under that add: *export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH* Be sure to change the /opt/mono/lib to the folder that was found in your find results!
首先.介绍一下专用服与在游戏内使用创建游戏的区别： 1.专用服可以更方便的安装一些插件以及进行一些设置等. 2.专用服相对于游戏来说.更省资源.因为它只是一个cmd窗口. 3.专用服适合建立24小时服务器. 如何建立一个Gmod专用服: 1.首先你需要下载Steamcmd：http://media.steampowered.com/installer/steamcmd.zip 将它解压至一个文件夹中(路径不能有中文). 2.打开steamcmd.第一次打开会下载一些文件. 3.这时输入login anonymous进行登录.登录成功之后输入force_install_dir F:\server\gmod 这里地址可以自定..不打这个命令的话会下到Steamcmd根目录.然后会很乱 接着输入app_update 4020 接着就会开始下载了.大概需要1小时左右 4.下完之后基本就大功告成了 下载下来应该有这些文件.接下来写一个start.bat 里面的内容如下： srcds.exe -console -game garrysmod +map gm_construct +maxplayers 8 +gamemode sandbox +maxplayer意思是最大玩家数.可以自己调.不过不建议太高.除非你是专业服务器 +gamemode sandbox这是指建立的模式是最平常的沙盒模式.当然也可以弄其他模式..这个我会另开一贴介绍 5.还有一些设置.打开garrysmod\cfg\server.cfg 写下下面的内容 hostname "这里是显示在服务器列表的服务器名" rcon_password "管理员密码" sv_password "进服密码" sv_lan 0 sv_allowupload 0 sv_allowdownload 0 sbox_noclip 1 是否能穿墙 sbox_godmode 0 上帝模式 sbox_weapons 0 sbox_plpldamage 1 PVP伤害 sbox_maxprops 300 最大物品数 sbox_maxragdolls 5 sbox_maxnpcs 0 最大NPC数 sbox_maxballoons 25 sbox_maxeffects 5 sbox_maxdynamite 15 sbox_maxlamps 10 最大灯数 sbox_maxthrusters 20 sbox_maxwheels 40 sbox_maxhoverballs 20 sbox_maxvehicles 5 最大车辆 sbox_maxbuttons 20 最大按钮 sbox_maxemitters 0 sbox_maxspawners 0 sbox_maxturrets 4 最大炮塔 net_maxfilesize 64 5.接下来就可以运行你的start.bat了 下面显示的IP.如果你用路由器.需要进行内网映射 这里显示的是端口.一般是27015.但是如果你是自家电脑而且先开gmod的话可能会变成27016.
Steam on EL6 (RHEL6 / Scientific Linux 6 / CentOS 6)
The fact that Steam have decided to only officially support .deb based distributions, and only relatively recent ones at that has been a pet peeve of mine for quite some time. While there are ways around the .deb only official package availability (e.g. alien), the library requirements are somewhat more difficult to reconcile. I have finally managed to get Steam working on EL6 and I figure I’m probably not the only one interested in this, so I thought I’d document it. Different packages required to do this have been sourced from different locations (e.g. glibc from fuduntu project, steam src.rpm from steam.48.io (not really a source rpm, it just packages the steam binary in a rpm), most of the rest from more recent Fedoras, etc.). I have rebuilt them all and made them available in one place: http://ftp.redsleeve.org/pub/steam/ You won’t need all of them, but you will need at least the following: glibc-2.15-60.el6.i686.rpm glibc-2.15-60.el6.x86_64.rpm glibc-common-2.15-60.el6.x86_64.rpm glibc-devel-2.15-60.el6.x86_64.rpm glibc-headers-2.15-60.el6.x86_64.rpm libtxc_dxtn-1.0.0-2.1.i686.rpm SDL2-2.0.3-2.el6.i686.rpm steam-126.96.36.199-2.i686.rpm xz-5.0.5-1.el6.x86_64.rpm xz-compat-libs-5.0.5-1.el6.x86_64.rpm xz-libs-5.0.5-1.el6.x86_64.rpm xz-lzma-compat-5.0.5-1.el6.x86_64.rpm First install some the dependencies from the standard distribution packages:[download] yum install gtk2-engines.i686 \ openal-soft.i686 \ alsa-plugins-pulseaudio.i686 \ gtk+.i686 The install the updated packages: rpm -Uvh glibc-2.15-60.el6.i686.rpm \ glibc-2.15-60.el6.x86_64.rpm \ glibc-common-2.15-60.el6.x86_64.rpm \ glibc-devel-2.15-60.el6.x86_64.rpm \ glibc-headers-2.15-60.el6.x86_64.rpm \ libtxc_dxtn-1.0.0-2.1.i686.rpm \ SDL2-2.0.3-2.el6.i686.rpm \ steam-188.8.131.52-2.i686.rpm \ xz-5.0.5-1.el6.x86_64.rpm \ xz-compat-libs-5.0.5-1.el6.x86_64.rpm \ xz-libs-5.0.5-1.el6.x86_64.rpm \ xz-lzma-compat-5.0.5-1.el6.x86_64.rpm If you have pyliblzma from EPEL installed (required by, e.g. mock), updated xz-lzma-compat package will trigger a python bug that causes a segfault. This will incapacitate some python programs (yum being an important one). If you encounter this issue and you must have pyliblzma for other dependencies, reinstall the original xz package versions after you run steam for the first time. Updated xz only seems to be required when the steam executable downloads updates for itself. Finally, run steam, log in, and let it update itself. One of the popular games that is available on Linux is Left 4 Dead 2. I found that on ATI and Nvidia cards it doesn’t work properly in full screen mode (blank screen, impossible to Alt-Tab out), but it does work on Intel GPUs. It works on all GPU types in windowed mode. Unfortunately, it runs in full screen mode by default, so if you run it without adjusting its startup parameters you may have to ssh into the machine and forcefully kill the hl2_linux process. To work around the problem, right click on the game in your library, and go to properties: Steam Game Properties Click on the “SET LAUNCH OPTIONS…” button: Steam Game Properties 2 You will probably want to specify the default resolution as well as the windowed mode to ensure the game comes up in a sensible mode when you launch it. Add “-windowed -w 1280 -h 720″ to the options, which will tell L4D2 to start in windowed mode with 1280×720 resolution. The resolution you select should be lower than your monitor’s resolution. Steam Game Launch Options If you did all that, you should be able to hit the play button and be greeted with something resembling this: Left4Dead 2 with Steam on Linux ATI cards using the open source Radeon driver (at least with the version 7.1.0 that ships with EL6) seem to exhibit some rendering corruption, specifically some textures are intermittently invisible. This leads to invisible party members, enemies, and doors, and while it is entertaining for the first few seconds it renders the game completely unplayable. I have not tested the ATI binary driver (ATI themselves recommend the open source driver on Linux for older cards and I am using a HD6450). Nvidia cards work fine with the closed source binary driver in windowed mode, and performance with a GT630 constantly saturates 1080p resolutions with everything turned up to maximum. I have not tested with the nouveau open source driver. With Intel GPUs using the open source driver, everything works correctly in both windowed and full screen mode, but the performance is nowhere nearly as good as with the Nvidia card. With all the settings set to maximum, the performance with the Intel HD 4000 graphics (Chromebook Pixel) is roughly the same at 1920×1200 resolution as with the Radeon HD6450, producing approximately 30fps. The only problem with playing it on the Chromebook Pixel is that the whole laptop gets too hot to touch, even with the fan going at full speed. Not only does the aluminium casing get too hot to touch, the plastic keys on the keyboard themselves get painfully hot. But that story is for another article. This entry was posted in Uncategorized and tagged linux, nvidia, steam by altechnative. Bookmark the permalink. 16 THOUGHTS ON “STEAM ON EL6 (RHEL6 / SCIENTIFIC LINUX 6 / CENTOS 6)” : http://pan.baidu.com/s/1hqhGa4s
fix Samsung SSD 1Gb
Working with more than 64 CPUs in Powershell
C++ 字符串与字符数组 详解
Windows server 2012 激活教程
IPv4 Subnetting & Prefixes
VC14(VC2015)安装失败,0x80240017 - 未指定的错误，解决办法
Copyright ©2022 由