Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to change the .minecraft directory to root but I can't figure out directory structure...Please help! Also need to add this to script to run it every time.
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
here is a thread I been trying to use...just doesn't work....
Code:
Re: Cannot start minecraft with FML
« Reply #4 on: September 26, 2012, 02:14:32 PM »
had similar problem with my debian dedicated server. FML tries to load some files.
i managed this by start minecraft this as root. after that u have give rights back to the user...
u know this stuff like:
Code: [Select]
chown -R userxyz:userxyz /home/minecraft
chmod -R 755 /home/minecraft
here is a thread I been trying to use...just doesn't work....
That thread wasn't clear at all plus it mentions copying files as alternative. So before you follow that advice I think you should know if that will solve your problems. What are the actual errors you've been getting?
So what exactly the problem is? if you want to change owner and group of the dir. to root:root, then you can do it in same way as you did with tylor:tylor, as-
Code:
chown root:root <dir>
Quote:
chown -R tyler:tyler /home/minecraft
Pl make sure is it "minecraft" or ".minecraft"!
Also post output of ls -la, instead of just ls.
Quote:
tyler@tyler-Inspiron-531s:~/.minecraft$
I am not sure, but ain't you asking to change it in your shell prompt (asking just because of my doubt)?
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
When I wrote this last night i don't think I knew what I really needed but i've had some time to think about it so I hope i can get a better scenario. I'm not a gamer, My grandson askes me from time to time to help him set up stuff on his Minecraft game...so I'm asking for help!
Apparently for this game to load properly, I'm assuming because it updates everytime it loads, it needs to be run as the root or home...(make sense?...I hope so cause it doesn't to me!) I have a script file that loads the proper java settings and starts his Minecraft game so I just need to add the commands that make the .minecraft folder the root or home folder and that is supposed to solve the loading issue...(the game freezes now when it tries to load a program called FML or Forge Mod Loader, that it needs to update everytime it loads.)
In the threads I've been reading the commands needed to load this game properly ar chown and chmod but I do not know how to comunicate the path I need. I know the Minecraft folder is in tyler-home-.mincraft but there is also all this stuff that makes no sense to me...tyler@tyler-Inspiron-531s:. I don't understand basic directory structure in Linux...I know, you guys are saying how stupid I am, but I'm not..I'm reasonably intelligent. The only drawback I have noticed in Linux is the basic directory structure. It is just plain confusing to me. Other than that, It is wonderful!
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
Quote:
Originally Posted by unSpawn
That thread wasn't clear at all plus it mentions copying files as alternative. So before you follow that advice I think you should know if that will solve your problems. What are the actual errors you've been getting?
Yea I tried just the copy files instead of the update...only thing is it tells you to put the files in your lib folder and no such folder exists. I created it in the .minecraft folder and did that..still nothing. Thanks though...
Apparently for this game to load properly, I'm assuming because it updates everytime it loads, it needs to be run as the root or home
What do you mean by "it needs to be run as root or home"? It should be run normally - on user privilages. This game is programmed that way, it needs to be in ".minecraft" in user home directory. And user running this game needs to have write access to this directory. The simplest way is just install it with user account who want to play it.
The some harder (if you as administrator want to block changing executable files of this game and resources) you can use an union mounting. That way basic files to start a game, mods and for example default settings will be maintained by you on read only directory and files changed by game wil be stored somewhere else in user home diectory.
In this script you have written "home/tyler/.minecraft" it should be absolute path "/home/tyler/.minecraft".
I'm not a gamer, My grandson askes me from time to time to help him set up stuff on his Minecraft game...
I don't know if he's old (and responsible) enough to be interested in (and capable of) more than point-and-click stuff because it would benefit you (less stress) and him (self-reliance, immersion, understanding) if he got to the point where he can take care of this himself.
Quote:
Originally Posted by EODSteven
In the threads I've been reading the commands needed to load this game properly ar chown and chmod
If that's all you need then look at shivaa's post.
Quote:
Originally Posted by EODSteven
Apparently for this game to load properly, I'm assuming because it updates everytime it loads, it needs to be run as the root or home...(make sense?...I hope so cause it doesn't to me!) I have a script file that loads the proper java settings and starts his Minecraft game so I just need to add the commands that make the .minecraft folder the root or home folder and that is supposed to solve the loading issue...(the game freezes now when it tries to load a program called FML or Forge Mod Loader, that it needs to update everytime it loads.)
Making the ~/.minecraft folder the root or home folder for the process and running Minecraft as root are two completely different things. If it's more than just chmod / chown commands then it would be good to know what actual errors you've been getting and debug screen output, crash information or running the client in debug mode could provide more information.
Alternatively you could (have your grandson) follow the FML installation instructions or the Forge installation instructions and build a new Minecraft installation in another location (say "~/.minecraft_new") and if that doesn't work out you could (have your grandson) ask in the Minecraft forum.
Quote:
Originally Posted by EODSteven
you guys are saying how stupid I am, but I'm not
If you say you're not then who would we be to doubt that?..
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
Quote:
Originally Posted by eSelix
What do you mean by "it needs to be run as root or home"? It should be run normally - on user privilages. This game is programmed that way, it needs to be in ".minecraft" in user home directory. And user running this game needs to have write access to this directory. The simplest way is just install it with user account who want to play it.
The some harder (if you as administrator want to block changing executable files of this game and resources) you can use an union mounting. That way basic files to start a game, mods and for example default settings will be maintained by you on read only directory and files changed by game wil be stored somewhere else in user home diectory.
In this script you have written "home/tyler/.minecraft" it should be absolute path "/home/tyler/.minecraft".
It appears your not familiar with Game Modding either....Basically, everytime this game loads it reinstalls itself to run the Mods but in linux in order to install there is some privilage that must be invoked such as home or root. This has to be done every time He starts the game not just once. Thanks anyway....
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
There are lots of ways to say it's not gonna work by saying my skills aren't good enough, but I bet someone can figure this out. Obviously the guy who wrote the other thread who can barely speak english was on to something. I don't know how to post a debug screen and I wouldn't think that would be a skill appropriate for a Linux Newbie. Constructive crticism please ...not just bashing.
Distribution: Ubuntu 14.04, Windows 8, Windows Server 2012. Ubuntu Server 14.04
Posts: 196
Original Poster
Rep:
Can anyone figur out what this guy is saying?
Quote:
Originally Posted by EODSteven
here is a thread I been trying to use...just doesn't work....
Code:
Re: Cannot start minecraft with FML
« Reply #4 on: September 26, 2012, 02:14:32 PM »
had similar problem with my debian dedicated server. FML tries to load some files.
i managed this by start minecraft this as root. after that u have give rights back to the user...
u know this stuff like:
Code: [Select]
chown -R userxyz:userxyz /home/minecraft
chmod -R 755 /home/minecraft
Well, I am also not familiar with this game, but after reading all the threads above, it sounds some inappropriate permissions/ownership set on the directories, which are causing the pb.
Also you've made some mistakes in your script with paths & directory names. So once invoke following series of cmds:
If it cannot help, then pl share the error message, if any. Be careful about paths, directory names & their spelling, when you're using them. Also take a note, if there're any link files for .minecraft inside /home/tyler or inside /home/tyler/.minecraft directory, because chown & chmod cmds with -R option will not change permissions/ownership of links. For that you'll need to mention "-h" option with -R.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.