When I install Blender from the Ubuntu repositories with
sudo apt-get install blender
I can run Blender with just
blender
However, I asked around the IRC channels and they recommend against using Blender from the repositories. Besides, I couldn’t get the latest Blender from there. I should download from the official site instead. I have several questions about what to do with the resulting .tar.bz2 file
Which directory should I untar the file?
How can I run Blender from anywhere in the command line? I tried setting the PATH variable in .bashrc and also using the export command, but I can’t still can’t run Blender from anywhere.
This question is closely related to #2. Somehow, despite setting the PATH variable, I still can’t run Blender from anywhere since it requires
./blender
as opposed to the apt-get install where I can just do
Hello
if you really want to run “run Blender from anywhere” ( I don’t see the need?), you can do a quite ugly hack:
sudo ln -s /path_to_new_Blender_directory/blender /usr/bin/blender2
this command makes a symbolic link in /usr/bin directory to the new Blender executable
The “blender2” name is to avoid conflict to the existing one
Then you can type in a terminal blender2 and it should work…I hope!
Bye
Open .bashrc and add something like this(you can check somewhere like ubuntuforums.org to make sure I got this right):-
blender = ‘path/to/blender/executable/./blender’
Then whenever you enter blender in the terminal it will run the command for you.
You might want to call it something other than blender in case you ever want to install Blender in the future but it is of course up to you.
Another option would be to make a Desktop or panel launcher and set its properties as ‘Application in Terminal’, browse to the Blender executable you want to launch and job done.
@rawpigeon
I think I should have rephrased the question to “Which (default, or best practices) directory should I untar the file?” It does make a difference, in terms of consistency and standards
@OTO
I’m working on a render farm (hence my interest in learning Linux). The queue manager I might be using might need to somehow call Blender “from anywhere”.
I also asked this question over at the Ubuntu Forums (here’s the thread), and based on the community’s suggestions, I’ve formulated a solution:
Okay, for everybody’s benefit, absolute beginner style, here’s what I did:
Create a directory in my home folder for any archives that I download manually
mkdir tars
cd into the newly created tars directory
cd tars
Download the .tar.bz2 Blender archive from the official site with wget