GMod Dedicated Server: Can't Mount CS:S (Linux)

I’m having trouble mounting CS:S on Linux,

My mount.cfg looks like:



"mountcfg"
{
	 "cstrike"	"/home/cssds/cstrike"
}


The folder structure is as follows,

GMod: /home/gmodds/garrysmod

CS:S /home/cssds/cstrike

There are no errors, but the CS:S content just doesn’t seem to be showing.

Are all the files and folders under cstrike lowercase? Look especially in the models folder among the different subfolders.

Yeah, I think so.

http://puu.sh/39TaL/cae7099267.png

[editline]6th June 2013[/editline]

Just noticed, I can’t see anything to do with models there though.

Are you sure your “server” user has access to the cssds home folder?

I believe you setup one user for your Garry’s Mod server and one user for your cssds installation. The GMod user doesn’t have access to the cssds’s home folder. Simply move over the cssds folder to the home folder of your GMod user.

the user owns both the cssds and gmodds directories

Run these two commands please and send me the result.:



ls -l /home/gmodds
ls -l /home/cssds


-snip-



[root@test1 ~]# ls -l /home/gmodds
total 52
drwx------  4 gmodds root  4096 Jun  6 05:20 bin
drwx------  4 gmodds root  4096 Jun  5 19:23 e7e62b75c8b67cdb592657b06c4b91a183408c29
drwx------ 24 gmodds root  4096 Jun  6 13:22 garrysmod
-rwx------  1 gmodds root   226 Jun  5 19:13 install.sh
drwx------  9 gmodds root  4096 Jun  5 19:23 platform
drwx------  6 gmodds root  4096 Jun  5 19:23 sourceengine
-rwx------  1 gmodds root  7796 Jun  5 19:23 srcds_linux
-rwx------  1 gmodds root 10712 Jun  5 19:23 srcds_run
-rwx------  1 gmodds root   156 Jun  6 09:21 start.sh
-rwx------  1 gmodds root     6 Jun  6 13:22 steam_appid.txt
[root@test1 ~]# ls -l /home/cssds
total 92
drwx------  4 gmodds root  4096 Jun  5 19:18 87642a5936a1dd0ae3f905e40551e67e3dbfe3d8
drwx------  2 gmodds root  4096 Jun  5 19:18 bin
drwx------ 10 gmodds root  4096 Jun  6 17:35 cstrike
drwx------  5 gmodds root  4096 Jun  5 19:18 hl2
drwx------  6 gmodds root  4096 Jun  5 19:18 platform
-rwx------  1 gmodds root  6731 Jun  5 19:18 srcds_linux
-rwx------  1 gmodds root  9729 Jun  5 19:18 srcds_run
-rwx------  1 gmodds root     5 Jun  5 19:20 steam_appid.txt
-rwx------  1 gmodds root 47205 Jun  5 19:18 thirdpartylegalnotices.txt


Alright, folder permissions looks good. Have you tried removing /home from the path?

Just tried, still not working. :frowning:

What exactly do you want to mount? Since there’s no materials, models or sound folder in the cstrike folder, the only thing that gets mounted are the maps.

I am having the same issue, I am looking for the models & textures as they do not work from the spawn menu in Garry’s Mod. I am using Centos 6, done everything properly and permissions are fine but nothing from TF2 or Counter Strike Source will spawn. I don’t care about the maps… I run sandbox build.

I am hosting a DarkRP server and its telling me counterstrike is incorrectly installed, how do I get the counterstrike models materials and sounds with steamcmd?

Run the following commands:



cd /home/gmodds
ln -s /home/cssds/cstrike


Now, change your mount.cfg to this:


"mountcfg"
{
	 "cstrike"	"cstrike"
}

And that should do it.

EDIT: (START HERE IF YOU WERE LINKED HERE)
Since I’m linking to this post in other topics for other people’s server setups, let me explain. What we’re doing is creating a symbolic link (like a shortcut on Windows) to the cs:s directory, which lets us simplify the file path in a way that works.

The steps are to first navigate in a shell prompt to the directory that your “srcds_run” file is located for your Garry’s Mod install. Then run “ln -s /<PATH_TO_CSS_INSTALL>/cstrike”. This creates the symbolic link, which should show up in the gmod directory as “cstrike”. After that, just like above, replace your mounting directory in mount.cfg as simply “cstrike”.

The same applies for all other games. I assume garry will fix the path issues eventually, but this should get things working until then.

Hmmm…



[root@test1 gmodds]# ln -l /home/cssds/cstrike
ln: invalid option -- 'l'
Try `ln --help' for more information.


[editline]7th June 2013[/editline]

-L Maybe?

Sorry, meant -s. Updated.

Also, I don’t think the CS:S DS contains the models either.

[editline]7th June 2013[/editline]

Yeah, just tried, still not working.

Run “ls -l /home/gmodds” again and post the output?

P.S.
I don’t know if this will fix DarkRP, but I know it will mount CS:S content. We fixed our TTT and ZS servers this way, and it let us spawn CS:S props and models in a sandbox test.



[root@test1 ~]# ls -l /home/gmodds
total 52
drwx------  4 gmodds root  4096 Jun  6 05:20 bin
lrwxrwxrwx  1 root   root    19 Jun  7 03:25 cstrike -> /home/cssds/cstrike
drwx------  4 gmodds root  4096 Jun  5 19:23 e7e62b75c8b67cdb592657b06c4b91a183408c29
drwx------ 24 gmodds root  4096 Jun  7 03:31 garrysmod
-rwx------  1 gmodds root   226 Jun  5 19:13 install.sh
drwx------  9 gmodds root  4096 Jun  5 19:23 platform
drwx------  6 gmodds root  4096 Jun  5 19:23 sourceengine
-rwx------  1 gmodds root  7796 Jun  5 19:23 srcds_linux
-rwx------  1 gmodds root 10712 Jun  5 19:23 srcds_run
-rwx------  1 gmodds root   156 Jun  6 09:21 start.sh
-rwx------  1 gmodds root     6 Jun  7 03:26 steam_appid.txt


Does your CS:S DS installation have a materials and models folder?

[editline]7th June 2013[/editline]

I’m thinking this might not be due to the CS:S content failing to mount and more due to the lack of models and materials to find.

Looks like the symbolic link is there and valid… And you changed you mount.cfg as well?

No, my cstrike does not contain materials or models.