gvfs | Read-only mirror of https : //gitlab.gnome.org/GNOME/gvfs | File Utils library
kandi X-RAY | gvfs Summary
kandi X-RAY | gvfs Summary
GVfs is a userspace virtual filesystem implementation for GIO (a library available in GLib). GVfs comes with a set of backends, including trash support, SFTP, SMB, HTTP, DAV, and many others. GVfs also contains modules for GIO that implement volume monitors and persistent metadata storage. There is also FUSE support that provides limited access to the GVfs filesystems for applications not using GIO. For more info about GVfs, see
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gvfs
gvfs Key Features
gvfs Examples and Code Snippets
Community Discussions
Trending Discussions on gvfs
QUESTION
I want to filter lines of oc rsh du -shc
output like this:
ANSWER
Answered 2022-Apr-14 at 17:05It's very odd that your oc rsh broker-amq-1-15-snd64 du -shc / 2>/dev/null | od -c
output shows no blanks or tabs, e.g. between cannot
and read
in:
QUESTION
I was going through disassembly of elf executables and understanding the elf format. In there, I saw lib64/ld-linux-x86-64.so.2
used as program interpreter in the generated executable.
My guess is: I had used printf
in the source code, which had to be dynamically linked. When I checked through dynamic section, I was able to find a reference to libc.so.6
shared library (tag:DT_NEEDED). In my system, I found multiple files with that name in different directories:
ANSWER
Answered 2022-Feb-13 at 15:47So, I guess purpose of program interpreter is to resolve these names to the proper libraries and load them during execution. Is this correct?
Yes, but that that's a bit minimalistic. Loading dynamic libraries involves locating them, loading or mapping them into memory if necessary, and resolving dynamic symbols within, possibly lazily, for multiple kinds of relocations. It involves recursively loading the libraries' own needed libraries. Also, in a dynamically linked executable, the program interpreter provides the program entry point (from the kernel's perspective), so it is also responsible for setting up and entering the program-specific entry point (for example, main()
in a C or C++ program).
It seems, we can also have executables with no program interpreter (which is the case for program interpreter itself). In that case, does system/os itself loads the shared library? If so, how does it resolves the path of library?
You can have ELF executables without a program interpreter, but they are not dynamically linked, at least not in the ELF sense. There are no shared libraries to load, and certainly the system does not load any.
Is it possible to generate executable with no program interpreter using gcc? My gcc version is 'gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)'.
If you have static versions of all needed libraries available then you should be able to achieve that by including the -static
option on the command line when you link the program. It is entirely possible, however, that you do not have the needed static libraries, even if libc is the only library you need.
QUESTION
What am I missing?
I have Ubuntu 20.04.3 LTS with an AMD® Ryzen 5 2600 six-core processor × 12 and 15.6 GiB memory
and GNU bash, version 5.0.17(1)-release-(x86_64-pc-linux-gnu)
I am using rsync with parameters in an array as follows:
...
ANSWER
Answered 2021-Aug-24 at 22:58You see this behaviour because you used --one-file-system
but your /home
directory is a different filesystem from /
.
QUESTION
I have a local application with laravel 5.5 using a mysql databse on my ubuntu18.04.1. It is hosted on a server with php7.2, and I had the same version of php in my system. All was working fine. Yesterday, I tried to connect my app with SQL Server to get data from a database, and my nightmare started.
I added the data base connection info to the database.php file in my laravel app following this format
...ANSWER
Answered 2020-Dec-14 at 11:56I updated my post with my progress solving my own question, with the help of bhucho in the comments of my post, I was able to fix my php7.2.
Looking for solutions for install the correct sqlsrv driver for my php version, I checked again the microsoft webpage to find out which sqlsrv drivers I needed to run sql queries with php7.2, and I tried again to run sudo pecl install sqlsrv
and sudo pecl install pdo_sqlsrv
, but it didn't worked for me. Then I found another way to install the drivers without pecl, and i ran sudo apt-get install php7.2-dev
and downloaded the packages with wget http://pecl.php.net/get/sqlsrv-5.3.0.tgz
and wget http://pecl.php.net/get/pdo_sqlsrv-5.3.0.tgz
(5.3.0 was my sqlsrv version for php7.2), after this I installed with pear install pdo_sqlsrv-5.3.0.tgz
and pear install sqlsrv-5.3.0.tgz
. This time it worked for me (first time it throwed to me an error telling me that there was an installed version of pdo_sqlsrv, but I ran sudo pear uninstall pecl/pdo_sqlsrv
and ran again the install order, then it worked for me). Then, I tried again to run sudo pecl install sqlsrv
and sudo pecl install pdo_sqlsrv
and this time it worked! After this I ran sudo phpenmod -v 7.2 sqlsrv pdo_sqlsrv
and finally I finished the php7.2 sqlsrv drivers installation in my ubuntu! I tried to run again the connection to my database on sql server and it worked.
Thank you all for the help!
QUESTION
I have heard its a conventional practice to store program dependent files in /usr/share/application-folder
in linux. So I'm trying to do it in my c program in a function called load_interface_files()
for example. I am not sure if this is a good practice or not, I've heard about creating configuration files for this kind of issues.
Anyways, here's the the code I wrote to make a directory in /usr/share
.
ANSWER
Answered 2020-Dec-01 at 04:25use ls -ld /usr/share
to see what the permissions on the directory are (without -d
, you get the contents and their permissions).
Use code like:
QUESTION
I've been trying to get this very simple buffer overflow to work on my local kali machine, and after a lot of trial and error I finally got it to the point that it executes my shellcode and opens a /bin/bash shell - however, it's just a regular user's shell (i.e. my own "kali" user) and not a "root" shell. Very disappointing!
I've read two similar (older) questions here on SO, and tried all the suggestions for them (such as making sure the executable is owned by root, has the +s flag set, is not under an nosuid mount, ASLR is disabled etc.) but without any luck.
Here's the source code for the vulnerable program:
...ANSWER
Answered 2020-Oct-05 at 19:12When your program's executable has the setuid bit, the program is run with the UID of the original user and EUID of the file owner. This means that, until the program does setuid(0)
, it won't gain the actual root privileges (the UID=0), and will run as normal user. In particular, its child processes will be not run as root.
So, you'll have to either modify your vulnerable program to run setuid(0)
, or add the equivalent system call to the shell code payload, to get the root shell.
QUESTION
As per Change gnome-terminal title to reflect the current directory? I have tried to use:
...ANSWER
Answered 2020-Aug-13 at 23:08Why are you trying to escape your double quotes?
QUESTION
I have an Apache Spark 3.0
set up on a multi-node cluster through SSH.
I'm using a network drive which I have all nodes connected to however the file directory is different on Mac OSX
than the Ubuntu
which fails.
For example, the MAC OsX
accesses the network drive by /Volumes/
The Ubuntu
access the network drive by /run/user/1000/gvfs/
The problem with this is that if use the Mac as the host and tell it to read the network driver
, the other machines won't be able to access it even though they're all connected to it so it errors out with failures on the Ubuntu nodes. Is there a way I can have the same address so all the machines can intepret it in pyspark
.
ANSWER
Answered 2020-Jul-24 at 16:48Just create symlinks to the same location on all machines and use that symlink instead of the actual location. something like this:
QUESTION
I am trying to add support for per-directory viewing settings to the Thunar file browser of the Xfce desktop. So for example if a user chooses to view the contents of a directory as a list rather than as a grid of icons, this setting is remembered for that directory and will be used whenever that directory is viewed.
Now Thunar is built on GLib, and the mechanism we have chosen to use to implement this is to store metadata using GFile attributes, using methods like g_file_set_attributes_async to store keys with names such as "metadata::thunar-view-type". The per-directory feature can be turned on or off by the user via a checkbox in a preferences dialog. My knowledge of GIO and GLib is pretty limited, but I have now managed to get this all working as desired (you can see my merge request here if you are interested).
Now as I understand it, the functionality that I am using here relies on something called "GVfs metadata", and as I understand it this might not be available on all systems. On systems where GVfs metadata is not available, I want to turn this functionality off and in particular make the checkbox in the preferences dialog insensitive (i.e. greyed out). Thus I need to write a function to detect if gvfs metadata support is available, by which I mean whether I can use functions like g_file_set_attributes_async to successfully save metadata so that it will be available in future.
Thunar is written in C, so this function needs to be written in C using the C API for GLib, GIO, etc. The function I have come up with (from much reading of API documentation, modifying code scraps I have found, and experimentation) is as follows.
...ANSWER
Answered 2020-Jul-15 at 10:23Call g_file_query_settable_attributes()
and g_file_query_writable_namespaces()
on the GFile
, as described in the GFileInfo
documentation:
However, not all attributes can be changed in the file. For instance, the actual size of a file cannot be changed via
g_file_info_set_size()
. You may callg_file_query_settable_attributes()
andg_file_query_writable_namespaces()
to discover the settable attributes of a particular file at runtime.
QUESTION
I'm trying to deploy a Python script on Heroku that utilizes Selenium. I have my Python script file, Procfile, requirements.txt(created via pipfreeze), and runtime.txt files all created in my root directory. I've successfully deployed everything to Heroku, have installed the 2 necessary Chrome buildpacks, and set config variables for both paths, but when I try to execute heroku run python3 my_script.py
on my command line, I receive an error message saying ImportError: No module named selenium
.
My code works locally, but I cannot seem to get it to run on Heroku. I tried executing heroku run bash
-> python3
-> import selenium
to check to see if it was installed and it's not. My Procfile reads web: python3 my_script.py
, my requirements.txt file includes selenium, and my rutime.txt file reads python-3.7.3
so I'm not sure what I'm missing here.
My goal is to use Heroku's scheduler to run my python file at intervals, but right now I can't even figure out how to run the code manually.
For reference of what the beginning of my_script.py
looks like:
ANSWER
Answered 2020-Jul-01 at 18:15As TinNguyen mentioned below, the problem was that my project required the Python buildpack. I had previously added 2 buildpacks for Chrome and since those were prioritized, Heroku must not have run its automatic check for the default language buildpacks. My solution was to add the heroku/python buildpack and set it as index 1 before the other 2 Chrome buildpacks.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gvfs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page