ROS Packages Not Found in Ubuntu 20.04 - ros

I wanted to give ROS a try on my Ubuntu 20.04 machine and I installed the ROS packages as per instructions given in the ROS website, but after successful installation, roscd fails with command not found:
joesan#joesan-InfinityBook-S-14-v5:/opt/ros/noetic$ roscd
bash: roscd: command not found
joesan#joesan-InfinityBook-S-14-v5:/opt/ros/noetic$
Here is the content inside the noetic folder:
joesan#joesan-InfinityBook-S-14-v5:~$ cd /opt/ros/noetic/
drwxr-xr-x joesan joesan 4 KB Sat Aug 29 08:46:37 2020  .
drwxr-xr-x joesan joesan 4 KB Fri Aug 28 21:18:54 2020  ..
.rw-r--r-- joesan joesan 0 B Fri Jul 24 18:47:51 2020  .catkin
.rw-r--r-- joesan joesan 55 B Fri Jul 24 18:47:51 2020  .rosinstall
.rwxr-xr-x joesan joesan 13 KB Fri Jul 24 18:47:51 2020  _setup_util.py
drwxr-xr-x joesan joesan 4 KB Fri Aug 28 21:19:38 2020  bin
.rwxr-xr-x joesan joesan 506 B Fri Jul 24 18:47:51 2020  env.sh
drwxr-xr-x joesan joesan 4 KB Fri Aug 28 21:18:54 2020  etc
drwxr-xr-x joesan joesan 4 KB Fri Aug 28 21:19:39 2020  include
drwxr-xr-x joesan joesan 12 KB Fri Aug 28 21:19:39 2020  lib
.rw-r--r-- joesan joesan 283 B Fri Jul 24 18:47:51 2020  local_setup.bash
.rw-r--r-- joesan joesan 346 B Fri Jul 24 18:47:51 2020  local_setup.sh
.rw-r--r-- joesan joesan 293 B Fri Jul 24 18:47:51 2020  local_setup.zsh
.rw-r--r-- joesan joesan 260 B Fri Jul 24 18:47:51 2020  setup.bash
.rw-r--r-- joesan joesan 2.7 KB Fri Jul 24 18:47:51 2020  setup.sh
.rw-r--r-- joesan joesan 270 B Fri Jul 24 18:47:51 2020  setup.zsh
drwxr-xr-x joesan joesan 12 KB Fri Aug 28 21:19:40 2020  share
joesan#joesan-InfinityBook-S-14-v5:/opt/ros/noetic$
As you can see I have this line in my .bashrc as well:
# Source the ROS setup profile
source /opt/ros/noetic/setup.bash
Any ideas why I could not get roscd command working? I installed the full version:
sudo apt install ros-noetic-desktop-full
Is there anything that I'm missing?

So finally I was able to get this resolved! I have a .bash_profile where I have all my user specific commands and shortcuts. In this file I also source additional setup files. So what I did now was to remove the source command for ROS from the .bashrc and put this in the .bash_profile file and source the whole .bash_profile file from within .bashrc like this:
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi
In the .bash_profile, I have the source command like this:
# Source the ROS setup profile
source /opt/ros/noetic/setup.bash
This help me fix the error!

Related

What is the purpose of the directory ".java" (in jenkins home)?

jenkins home (JENKINS_HOME) directory contains ".java" with the following contents.
What is the purpose, who creates this?
[jenkins#jenkins data]$ ls -R -la .java
.java:
total 12
drwxr-xr-x 4 jenkins jenkins 47 Sep 24 2021 .
drwxr-xr-x 32 jenkins jenkins 8192 May 26 11:23 ..
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 fonts
drwx------ 3 jenkins jenkins 88 Sep 24 2021 .userPrefs
.java/fonts:
total 16
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 .
drwxr-xr-x 4 jenkins jenkins 47 Sep 24 2021 ..
drwxr-xr-x 2 jenkins jenkins 4096 Oct 22 2021 11.0.12
drwxr-xr-x 2 jenkins jenkins 4096 Feb 10 08:21 11.0.13
drwxr-xr-x 2 jenkins jenkins 4096 Mar 8 16:10 11.0.14
drwxr-xr-x 2 jenkins jenkins 4096 Apr 11 09:28 11.0.14.1
.java/fonts/11.0.12:
total 204
drwxr-xr-x 2 jenkins jenkins 4096 Oct 22 2021 .
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 ..
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-040d00baa2eb-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 14 2021 fcinfo-1-20ca101e47b5-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-21c8cfa68082-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-37affa299e53-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-5711e7474638-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-6b1683e97998-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 14 2021 fcinfo-1-728bf3c61133-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 30 2021 fcinfo-1-7b86df010aaf-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 28 2021 fcinfo-1-832b491f4c04-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-86aba7d01298-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-8932a30d6877-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 14 2021 fcinfo-1-96bd7f94e38b-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 14 2021 fcinfo-1-a1583396148a-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-a1bb55b4d274-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 13 2021 fcinfo-1-a7f7f4177010-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-b12b7fd6f0c7-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 28 2021 fcinfo-1-b1b0d9227a50-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 13 2021 fcinfo-1-b503c6b64359-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 1 2021 fcinfo-1-bc04fbd5ff6c-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 13 2021 fcinfo-1-dfeccf9ddb48-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 28 2021 fcinfo-1-e3c99d9e381b-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 13 2021 fcinfo-1-e8da60a9a257-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-eaebb37b5977-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Sep 14 2021 fcinfo-1-f32e3c0ebecd-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Oct 22 2021 fcinfo-1-f9d0aa853241-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
.java/fonts/11.0.13:
total 172
drwxr-xr-x 2 jenkins jenkins 4096 Feb 10 08:21 .
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 ..
-rw------- 1 jenkins jenkins 7299 Nov 22 2021 fcinfo-1-097221e8a108-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Feb 10 07:58 fcinfo-1-41845738ebe1-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 4 12:34 fcinfo-1-46e0ccd45a88-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Nov 12 2021 fcinfo-1-474a19c2cce4-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Dec 7 09:09 fcinfo-1-614acd73e811-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 31 17:36 fcinfo-1-6962f56c161d-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Dec 30 10:55 fcinfo-1-85261a0f7ec2-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Nov 26 11:35 fcinfo-1-85956c8d5f07-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 27 10:22 fcinfo-1-88d1b31b3765-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Dec 7 08:50 fcinfo-1-8f030abd9c75-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Nov 24 2021 fcinfo-1-99beaa989281-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Feb 10 07:23 fcinfo-1-ace5ac3b63e6-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Feb 1 09:40 fcinfo-1-b0b039be646a-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 13 09:05 fcinfo-1-b2d98a3161f6-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Nov 12 2021 fcinfo-1-c22fc2f4765b-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Dec 7 09:00 fcinfo-1-d522e357e0ae-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 13 08:57 fcinfo-1-d8918f1e34ac-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Nov 19 2021 fcinfo-1-dcb3e5ad8a04-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Feb 10 07:37 fcinfo-1-f553c95bca98-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Jan 13 09:13 fcinfo-1-f9e9b7738fab-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Feb 10 08:21 fcinfo-1-facf3dc3fd74-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
.java/fonts/11.0.14:
total 36
drwxr-xr-x 2 jenkins jenkins 4096 Mar 8 16:10 .
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 ..
-rw------- 1 jenkins jenkins 7299 Mar 8 08:06 fcinfo-1-3d402af251bf-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Mar 8 08:19 fcinfo-1-4c7ea1c83a38-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Mar 8 16:10 fcinfo-1-ccb90ea5dcfc-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Mar 8 14:37 fcinfo-1-d59c3d909628-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
.java/fonts/11.0.14.1:
total 28
drwxr-xr-x 2 jenkins jenkins 4096 Apr 11 09:28 .
drwxr-xr-x 6 jenkins jenkins 84 Apr 11 08:11 ..
-rw------- 1 jenkins jenkins 7299 Apr 11 08:16 fcinfo-1-05e5f5147559-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Apr 11 08:11 fcinfo-1-7d587d1071d0-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
-rw------- 1 jenkins jenkins 7299 Apr 11 09:28 fcinfo-1-837bffc706fb-Linux-3.10.0-1160.6.1.el7.x86_64-en.properties
.java/.userPrefs:
total 0
drwx------ 3 jenkins jenkins 88 Sep 24 2021 .
drwxr-xr-x 4 jenkins jenkins 47 Sep 24 2021 ..
drwxr-xr-x 3 jenkins jenkins 49 Sep 24 2021 org
-rw------- 1 jenkins jenkins 0 Sep 24 2021 .user.lock.jenkins
-rw------- 1 jenkins jenkins 0 Sep 24 2021 .userRootModFile.jenkins
.java/.userPrefs/org:
total 4
drwxr-xr-x 3 jenkins jenkins 49 Sep 24 2021 .
drwx------ 3 jenkins jenkins 88 Sep 24 2021 ..
drwxr-xr-x 3 jenkins jenkins 47 Sep 24 2021 codehaus
-rw-r--r-- 1 jenkins jenkins 148 Sep 24 2021 prefs.xml
.java/.userPrefs/org/codehaus:
total 4
drwxr-xr-x 3 jenkins jenkins 47 Sep 24 2021 .
drwxr-xr-x 3 jenkins jenkins 49 Sep 24 2021 ..
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 groovy
-rw-r--r-- 1 jenkins jenkins 148 Sep 24 2021 prefs.xml
.java/.userPrefs/org/codehaus/groovy:
total 4
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 .
drwxr-xr-x 3 jenkins jenkins 47 Sep 24 2021 ..
-rw-r--r-- 1 jenkins jenkins 148 Sep 24 2021 prefs.xml
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 tools
.java/.userPrefs/org/codehaus/groovy/tools:
total 4
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 .
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 ..
-rw-r--r-- 1 jenkins jenkins 148 Sep 24 2021 prefs.xml
drwxr-xr-x 2 jenkins jenkins 30 Sep 24 2021 shell
.java/.userPrefs/org/codehaus/groovy/tools/shell:
total 4
drwxr-xr-x 2 jenkins jenkins 30 Sep 24 2021 .
drwxr-xr-x 3 jenkins jenkins 46 Sep 24 2021 ..
-rw-r--r-- 1 jenkins jenkins 148 Sep 24 2021 prefs.xml

Orphaned subvolumes, owned by nobody, can't do anything with them

I'm running Debian Buster inside of Crostini on a Pixelbook, and am using Docker. I'd backed-up my Linux container, performed a power wash on the Chromebook, then restored the Linux container.
That's when I started getting permission-denied issues when building containers, during the mkdir calls in my Dockerfile.
So I did the typical troubleshooting:
uninstall/reinstall docker
uninstall docker and run rm -rf /var/lib/docker
kill all processes that might be using those subvolmes
check mount for active mounts
check /etc/fstab (which is empty?) for mounts
check /etc/mtab (is this new?) for mounts
reinstall docker and run docker system prune (which also didn't touch those directories)
even tried running btrfs subvolume delete XXXXXX
...all of which squawk at me due to a lack of permissions... this is even when I sudo su root to run the comands.
I'm a complete newbie to both Docker and definitely to BTRFS... so I'm completely stumped now.
I'm able to build containers again... since it's building them into NEW subvolumes now... but now it's personal... I want the following subvolumes gone!
Here they are (all inside of /var/lib/docker/btrfs/subvolumes):
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 f96f6fbdbfd84db115c253880a0e8919b63d758d4a3f9e2645bcf959657f6c45-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 f547c01038e1479c65383ee4baba4f9212c2ca42ab9536931b1df9d8149d004f-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 efff78d70c412ad613d88e58ae0a84c058d1ccce63a588f2da8612cda2099ecc
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 e1b8aacd80a48e400052fb921cc52567a75ae210aa005519671bbf3cc1e7d3e5-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 c928040adbd4fe7ec8e71643d66c7a036436fcf52318573038153bf2d73e000e-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 bc0a723bece1df18eaf4fbc2deb108909546e2088ed4cff5c29d473881061bde
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 b52f2bf1a1404a773f6ed7bdfe1cfabb1c241e74ce846da65afbdce18b021502-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 aacc82c84f1aee572a20325d5ea3ff6ccd0604dfeecf34efc6af952d62926012-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 a5a6cd588f4995f5e8517d31bce652235bfc920ba694cc681eb5dfe4e1c24192-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 9cc9807d3c3d036f38086f52ceb2d9ebc87a14a4e3f0ba41bb4e1d89f965bf99-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 9aef1d128a4608916c01c44accc883a6069a4b8131e35568337fc5b5b4c4998e
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 8de3efc8c709f46a46362e60fcc4d948cbe543f4f1a1615ccfb21d83decb7e3e
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 815d91c859262e5e556191a03438761d97bd21556cdd3b4d75d2fbdfcbb4082c-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 7c27d56096add6bb0352dc4d8d8d9c0613d79fdf370bed04c2dfe90e90215569-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 72fb7e0f7732f59c45b7872140dc64d59aaa1e719266d3e299398d7a8040f57c
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 6e284d02177f0a6fa6aea122086a3934c0e6b8498d862df718f333bf50fd77db
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 617f090a6c681e1345fb32af0aa76d410c7e3b5353bceda11c266efaafaca09e
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 5312ab94752a8ad47a222e98c7633c0d3ca650242505ab7530f531782bffd6b1
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 4ffd4a084cac545b680fd879a891f20db814bc4b74901e26fbe1676b5a29ade1
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 4658094e3d4aeadec4e1d70023c8b20970c98543a569c5c0e3edc4caee4277c5
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 46438c1226b4684f69512bc2829e32a4e2420ae2cb1e8ab516c3439f2988bcdc-init
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 1a618f110ebebf2423780b6ee030b1e357ce9f426f877f55a1606caa0bbc107e
drwx--x--x 1 nobody nogroup 78 Jul 26 13:25 02ba91d136afc3790be35ae35c5ad022b68377edc3963cf757e4e0b6da0d3414
I was just having a similar problem, but this method solved it. What do you think?
$ btrfs subvolume delete /var/lib/docker/btrfs/subvolumes/*
$ apt remove docker-ce
$ rm -rf /var/lib/docker/
$ apt install docker-ce
Same here. And my workaround is...
# systemctl stop docker
# mv /var/lib/docker/btrfs/subvolumes /var/lib/docker/btrfs/delme
# systemctl start docker
Files are still alive. But your Docker will work again.
apt install thunar
then refer to the
/var/lib/
and open terminal there then
write
sudo thunar
and delete docker folder
and then reinstall docker from scratch it did work to me with manjaro

Install Neo4j 2.1 on redhat 6.x

I downloaded and unzipped the package on redhat.
ls
bin conf lib LICENSE.txt plugins system
CHANGES.txt data LICENSES.txt NOTICE.txt README.txt UPGRADE.txt
bin ls -lt
drwxr-xr-x. 2 root root 4096 Jan 25 00:04 lib
-rwxr-xr-x. 1 root root 10521 Jul 24 2014 neo4j
-rwxr-xr-x. 1 root root 4404 Jul 24 2014 neo4j-installer
-rwxr-xr-x. 1 root root 3443 Jul 24 2014 neo4j-shell
-rwxr-xr-x. 1 root root 478 Jul 24 2014 org.neo4j.server.plist
-rw-r--r--. 1 root root 138 Jul 24 2014 README.txt
-rwxr-xr-x. 1 root root 10263 Jul 24 2014 utils
bin ./neo4j-installer install
WARNING: this installer is deprecated and may not be the optimal way to install Neo4j on your system.
Please see the Neo4j Manual for up to date information on installing Neo4j.
Any suggestions?
Instead of using the install script you can simply start the Neo4j server by running path/to/neo4j/bin/neo4j start.
There is also an experimental YUM package here

Not able to access shared data volume

I have been trying to share data between my host and docker container. I am using this command to mount data volume:
sudo docker run -it -v /home/peeyush/Docker/docker/:/opt/test/:rw ubuntu /bin/bash
Now, when I run docker and try to access /opt/test/, it says I don't have the permission. But I have already specified permission as read-write and I am root. Here is the output:
root#d61b3bfe0aab:/# ls /opt/test/
ls: cannot open directory /opt/test/: Permission denied
Any idea what am I doing wrong here?
Update: Here is the output of ls -al /home/peeyush/Docker/docker:
[peeyush#localhost docker]$ ls -al /home/peeyush/Docker/docker/
total 308
drwxrwxr-x. 29 peeyush peeyush 4096 Feb 24 14:14 .
drwxrwxr-x. 5 peeyush peeyush 4096 Feb 23 15:38 ..
drwxrwxr-x. 5 peeyush peeyush 4096 Feb 23 11:53 api
-rw-rw-r--. 1 peeyush peeyush 28898 Feb 23 11:53 AUTHORS
drwxrwxr-x. 4 peeyush peeyush 4096 Feb 23 11:53 builder
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 builtins
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 13:36 bundles
-rw-rw-r--. 1 peeyush peeyush 61942 Feb 23 11:53 CHANGELOG.md
drwxrwxr-x. 11 peeyush peeyush 4096 Feb 23 11:53 contrib
-rw-rw-r--. 1 peeyush peeyush 13305 Feb 23 11:53 CONTRIBUTING.md
drwxrwxr-x. 5 peeyush peeyush 4096 Feb 23 11:53 daemon
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 docker
-rw-rw-r--. 1 peeyush peeyush 5423 Feb 24 14:14 Dockerfile
-rw-rw-r--. 1 peeyush peeyush 16 Feb 23 11:53 .dockerignore
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 dockerinit
drwxrwxr-x. 5 peeyush peeyush 4096 Feb 23 11:53 docs
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 engine
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 events
drwxrwxr-x. 8 peeyush peeyush 4096 Feb 24 14:14 .git
-rw-rw-r--. 1 peeyush peeyush 489 Feb 23 11:53 .gitignore
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 graph
lrwxrwxrwx. 1 peeyush peeyush 7 Feb 23 11:53 hack -> project
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 11:53 image
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 11:53 integration
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 integration-cli
-rw-rw-r--. 1 peeyush peeyush 10763 Feb 23 11:53 LICENSE
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 links
-rw-rw-r--. 1 peeyush peeyush 7171 Feb 23 11:53 .mailmap
-rw-rw-r--. 1 peeyush peeyush 18599 Feb 23 11:53 MAINTAINERS
-rw-rw-r--. 1 peeyush peeyush 3400 Feb 23 11:53 Makefile
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 nat
-rw-rw-r--. 1 peeyush peeyush 638 Feb 23 11:53 NOTICE
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 opts
drwxrwxr-x. 39 peeyush peeyush 4096 Feb 23 11:53 pkg
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 11:53 project
-rw-rw-r--. 1 peeyush peeyush 10624 Feb 23 11:53 README.md
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 11:53 registry
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 runconfig
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 trust
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 utils
drwxrwxr-x. 3 peeyush peeyush 4096 Feb 23 11:53 vendor
-rw-rw-r--. 1 peeyush peeyush 10 Feb 23 11:53 VERSION
drwxrwxr-x. 2 peeyush peeyush 4096 Feb 23 11:53 volumes
And of ls -al /opt/:
root#d61b3bfe0aab:/# ls -al /opt/
total 12
drwxr-xr-x. 3 root root 4096 Feb 25 06:22 .
drwxr-xr-x. 21 root root 4096 Feb 25 06:58 ..
drwxrwxr-x. 29 1000 1000 4096 Feb 24 08:44 test
Thanks.
Using a distro with SELinux? You can try turning it to passive (setenforce 0) or try a :Z/:z at the end of the -v command like (/home/peeyush/Docker/docker:/opt/test:Z)
Would be interested to see if it works without the trailing '/'s on the directory paths, as I have never used them and never had this issue.
sudo docker run -it -v /home/peeyush/Docker/docker:/opt/test ubuntu /bin/bash

GVM does not install products on linux mint

I have a recent version of GVM - in fact, my entire machine is very recent as I wiped off Windows and installed Linux Mint 17 at the end of May or beginning of June. GVM does not install software, doesn't even create the directory (in the example, no 2.4.2 directory - as you can see, the mv fails for this reason). I have had to install the products manually. The "current" points to a non-existent instance if I fail to do so. This has been true of Grails, Groovy and Gradle.
Here is an example:
worldwidewilly#hal9000 ~ $ gvm install grails 2.4.2
Downloading: grails 2.4.2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
100 131M 100 131M 0 0 1208k 0 0:01:51 0:01:51 --:--:-- 2092k
Installing: grails 2.4.2
mv: target ‘/home/worldwidewilly/.gvm/grails/2.4.2’ is not a directory
Done installing!
Do you want grails 2.4.2 to be set as default? (Y/n): y
Setting grails 2.4.2 as default.
What need I do to not fail on the install? Are there dependencies in Linux that I need install?
EDIT #1 - adding requested ls
worldwidewilly#hal9000 ~ $ \ls -la ~/.gvm
total 64
drwxr-xr-x 16 worldwidewilly worldwidewilly 4096 Jun 15 12:27 .
drwxr-xr-x 53 worldwidewilly worldwidewilly 4096 Jul 9 22:11 ..
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jul 9 07:58 archives
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 bin
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 crash
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 etc
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 ext
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 gaiden
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 glide
drwxr-xr-x 3 worldwidewilly worldwidewilly 4096 Jun 28 20:54 gradle
drwxr-xr-x 3 worldwidewilly worldwidewilly 4096 Jul 9 08:11 grails
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 griffon
drwxr-xr-x 3 worldwidewilly worldwidewilly 4096 Jun 15 12:27 groovy
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:26 src
drwxr-xr-x 6 worldwidewilly worldwidewilly 4096 Jul 9 08:00 tmp
drwxr-xr-x 2 worldwidewilly worldwidewilly 4096 Jun 15 12:27 var
EDIT #2 - adding second second ls
worldwidewilly#hal9000 ~ $ ls -la ~/.gvm/grails
total 12K
524305 drwxr-xr-x 3 worldwidewilly worldwidewilly 4.0K Jul 9 08:11 .
59776162 drwxr-xr-x 16 worldwidewilly worldwidewilly 4.0K Jun 15 12:27 ..
19138378 drwxr-xr-x 10 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 2.4.1
524458 lrwxrwxrwx 1 worldwidewilly worldwidewilly 38 Jul 9 08:11 current -> /home/worldwidewilly/.gvm/grails/2.4.2
EDIT #3 - showing contents of 2.4.1 directory
worldwidewilly#hal9000 ~ $ ls -la ~/.gvm/grails/2.4.1
total 284K
19138378 drwxr-xr-x 10 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 .
524305 drwxr-xr-x 3 worldwidewilly worldwidewilly 4.0K Jul 9 08:11 ..
19267975 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 bin
19138379 -rw-r--r-- 1 worldwidewilly worldwidewilly 22 Jun 17 09:30 build.properties
19267980 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 conf
19267984 drwxr-xr-x 2 worldwidewilly worldwidewilly 64K Jun 17 10:10 dist
19138380 -rw-r--r-- 1 worldwidewilly worldwidewilly 117 Jun 17 09:20 INSTALL
19138382 drwxr-xr-x 62 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 lib
19138381 -rw-r--r-- 1 worldwidewilly worldwidewilly 171K Jun 17 09:20 LICENSE
19267653 drwxr-xr-x 4 worldwidewilly worldwidewilly 4.0K Jun 17 09:20 media
19267952 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 plugins
19138931 -rw-r--r-- 1 worldwidewilly worldwidewilly 2.5K Jun 17 09:20 README
19267876 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Jun 17 10:10 scripts
19267676 drwxr-xr-x 5 worldwidewilly worldwidewilly 4.0K Jun 17 10:09 src
EDIT #4 - adding zip info
worldwidewilly#hal9000 ~ $ which zip
/usr/bin/zip
worldwidewilly#hal9000 ~ $ zip -h
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
The default action is to add or replace zipfile entries from list, which
can include the special name - to compress standard input.
If zipfile and list are omitted, zip compresses stdin to stdout.
-f freshen: only changed files -u update: only changed or new files
-d delete entries in zipfile -m move into zipfile (delete OS files)
-r recurse into directories -j junk (don't record) directory names
-0 store only -l convert LF to CR LF (-ll CR LF to LF)
-1 compress faster -9 compress better
-q quiet operation -v verbose operation/print version info
-c add one-line comments -z add zipfile comment
-# read names from stdin -o make zipfile as old as latest entry
-x exclude the following names -i include only the following names
-F fix zipfile (-FF try harder) -D do not add directory entries
-A adjust self-extracting exe -J junk zipfile prefix (unzipsfx)
-T test zipfile integrity -X eXclude eXtra file attributes
-y store symbolic links as the link instead of the referenced file
-e encrypt -n don't compress these suffixes
-h2 show more help
The problem was that I had improperly aliased my mv command, which caused mv to break. See http://forums.linuxmint.com/viewtopic.php?f=90&t=174548 for a deeper explanation.

Resources