accessing MATLAB from a different user account [closed] - matlab

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have MATLAB installed in my home directory on a linux machine which has multiple users. I want to allow one specific user and not all users to be able to run MATLAB from his user login. How can I do this?
I believe that one way to do this is to change the permissions of my home directory so that it's accessible to all users but I don't want to do that.

You can change the permissions on just the MATLAB install.
If MATLAB is installed to /home/*squirly*/MATLAB, you could run the command below to make it accessible to all users.
chmod -R a+rw /home/*squirly*/MATLAB
If you do not own the directory you will need to prepend the command with sudo.
BONUS:
If you want to allow only some users to use MATLAB.
Make a group called matlab:
sudo groupadd matlab
Make matlab the group owner of the matlab install:
sudo chgrp -R matlab /home/*squirly*/MATLAB
Allow the group to read/write to the matlab directory:
sudo chmod -R g+rw /home/*squirly*/MATLAB
Add users who will use matlab to the matlab group:
sudo usermod -aG matlab *squirly*

Related

unkillable process id on macOS port 5432- [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I am to re-install postgresql as something I was not able to log in anymore(lost password). However, every time I am trying to kill the process on corresponding port (5432), the PID changes and the port is still does not get freed. I am getting frustrated, this is taking over 2 weeks now.
Here is what I am doung:
#find the PID on 5432
sudo lsof -i: 5432 # this gives me a line where I can identify the process ID
sudo kill -9 <PID> # I use the PID given by the previous function
The last command gives a prompt asking me whether I want postgres to accept incoming network connections. Whichever option I choose (deny or allow) leads to the same thing. When I try to start postgres is still tells me that port 5432 is busy and indeed it is busy. When I re-use the first command above I notice that postgres is still there and the PID has changed.
I sorted the problem. I had other instances of postgres(9.5 I believe running in the background). I found it in my Library. now that port is completely free.

How to create multiple directory inside docker volume [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Actually i need to create directories inside volume & have to use that directories to mount container.
i need example commands for this.?
mkdir ~/first
mkdir ~/second
touch ~/first/file1
touch ~/second/file2
docker run -it -v ~/first:/first -v ~/second:/second ubuntu find / -name file*`
/second/file2
/first/file1
using this you can mount multiple files in an containers

how to install mongodb on unix server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to install mango DB in FreeBSD sever.In mango DB documents they are not telling about UNIX servers.
Please let me know the step by step guide.
Here's a link for that:
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-freebsd-10-1
But since links-alone is poor stackoverflow.com protocol, this is essence of what you need to do when logged in on that server:
sudo pkg update -f
sudo pkg install mongodb
sudo service mongod start
P.S. mongo, not mango.

Difference between authorized_keys and id_rsa.pub [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am experimenting with vagrant and I see that when I run vagrant, the vagrant box already has an authorized_keys file in ~/.ssh/
Inside is an rsa key. What is the difference in this key and if I create an id_rsa.pub public key myself using
ssh-keygen -t rsa -b 4096 -C "your_email#example.com"
id_rsa.pub is a public key that you add to other hosts' authorized_keys files to allow you to log in as that user. Vagrant has one so it can be added to other hosts' authorized_keys files so it can log in automatically. The one you generated with ssh-keygen is for you to use, not Vagrant.
authorized_keys is a list of public keys that are allowed to log into that specific account on that specific server.
Think of id_rsa.pub as a signature for a specific user and authorized_keys as a list of authorized signatures who can log into that account on that specific host without a password (assuming they can prove they own the signature).

Start Raspberry Pi without login [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I would like to ask you if there is any way to start raspberry pi (using Raspbian) without login and password and to move directly to the GUI. Like Windows for example.
Raspbian Wheezy:
Following was taken from eLinux.org RPi Debian Auto Login page:
Auto Login:
In Terminal:
sudo nano /etc/inittab
Scroll down to:
1:2345:respawn:/sbin/getty 115200 tty1
and change to
#1:2345:respawn:/sbin/getty 115200 tty1
Under that line add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Ctrl+X to exit, Y to save followed by enter twice
Auto StartX (Run LXDE):
In Terminal:
sudo nano /etc/rc.local
Scroll to the bottom and add the following above exit 0:
su -l pi -c startx
Raspbian Jessie:
Use raspi-config. If, for some magic reason this tool is not present on your system, install it:
sudo apt-get install raspi-config
Hard way:
Link. Link.
UPDATE 2019.05
In recent distro there's a simpler way to fix this:
At command prompt, type sudo raspi-config, then:
select option 3 in menu (Boot Options)
select option B1 (Desktopp/CLI)
select option B2 (Console Autologin)
Hit OK, exit all the way and restart.
Update 2019.05 credit belongs to Hasan A Yousef.