Ubuntu HowTo: Can’t open ZIP file with double click

Original Source Link

If I double click ZIP file in Nautilus in mounted media like this path /media/martinb/Data/soft/Programas/01-joomla/extensiones/Componentes/Formularios/RSForm%20Pro/rsform-v2.3.16/Plugins/pkg_payment-v2.3.0.zip causes File Roller to miss path like the screenshot
enter image description here

Is there something I have to configure in Nautilus or File Roller to fix this?

Tagged : / /

Ubuntu HowTo: When saving files to the desktop, how can I control which side of the screen they default to?

Original Source Link

I’m a Mac user at home, new Linux user at work. I’m trying to do my best to get my Dell laptop running Ubuntu to behave like my Mac wherever possible.

One small, but annoying thing is that files save to the left side of my screen by default. I’ve got all my windows positioned to leave about an inch of space on the right side of my screen so that I can quickly access a few common files and folders.

I’d like to know if there’s a way to automatically have newly created files positioned to the right side of the screen.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

One possible and quite ugly workaround would be to keep creating / copying dummy files or folders in the desktop to saturate all but the “right side” of the screen (maybe leaving out one or two rightmost columns). Then your newly created useful files and folders would start occupying the right side.

Also if those few common files and folders that you want to access easily are unchanging, then you can simply drag and drop them to the right end of your desktop manually.

Tagged : / /

Ubuntu HowTo: Hide files and directories starting with ‘.’ in Nautilus [duplicate]

Original Source Link

When viewing the home directory with Nautilus, files and directories starting with ‘.’ are now visible.

Some examples of files/dirs that could earlier only be viewed by running ls -a, but are now even visible in Nautilus are – .bashhistory, .git, .gitignore, .config etc.

I am not sure how this happened and could not find an option to revert this under Nautilus preferences menu.

Help in reverting to old system would be appreciated.

To toggle hide/unhide hidden files and directories in Nautilus press Ctrl+H.

Tagged : /

Ubuntu HowTo: Disable auto-opening nautilus window after auto-mount

Original Source Link

Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?

The simplest option is to open a terminal with Ctrl+Alt+T, and type:

gsettings set org.gnome.desktop.media-handling automount-open false

Turns out, it is. You will need dconf-editor tool, which can be installed by with sudo apt-get install dconf-tools. Run dconf-editor in your terminal. Browse to org -> gnome -> desktop – media-handling. Uncheck automount-open.

The setting corresponding to izx’s to disable automatically launching nemo in the cinnamon desktop is:

gsettings set org.cinnamon.desktop.media-handling automount-open false

For MATE Desktop Environment, which uses the Caja file manager:

gsettings set org.mate.media-handling automount-open false

or use Caja File Management Preferences (caja-file-management-properties) – on Media tab uncheck Browse media when inserted checkbox.

Not for Gnome or Cinnamon desktop environments, however MATE/Caja is a close relative.

Using GUI in debian gnome desktop:

Open dconf-editor then go to org -> gnome -> desktop - media-handling.
There uncheck automount.

Tagged : / / / /

Ubuntu HowTo: How do I recursively copy/download a whole webdav directory?

Original Source Link

When I attempt to copy a folder from a webdav server to a local disk using Nautilus, it copies what appeas to be a manifest file (xml with the directory listing etc..). With cadaver I get an empty file.

I would like to be able to recursively copy a whole directory tree. Does anyone know how I can do this?

ps: I’m using Ubuntu 11.04 with Nautilus and Cadaver 0.23.3

This answer summarises suggestions given in comments by @Ocaso and @Rinzwind.

I used this:

wget -r -nH -np --cut-dirs=1 --no-check-certificate -U Mozilla --user={uname} 
    --password={pwd} https://my-host/my-webdav-dir/my-dir-in-webdav

Not perfect (downloaded lots of ‘index.html?C=M;O=D’ and the like) but otherwise worked ok.

The “-r” downloads recursively, following links.

The “-np” prevents ascending to parent directories (else you download the whole website!).

The “-nH” prevents creating a directory called “my-host” (which I didn’t want).

The “–cut-dirs=1” prevents creating a directory called “my-webdav-dir”.

The “–no-check-certificate” is because I’m using a self-signed certificate on the webdav server (I’m also forcing https).

The “-U Mozilla” sets the user agent in the http request to “Mozilla” – my webdav server didn’t actually need this, but I’ve included it anyway.

Actually with Cadaver you can cd to directory from which you want to download files and mget *.

You can use dav2fs to mount the webdav server, and then you can access it as you would a local directory.

Alternatively you can mount it as a path to be accessed as part of your own file system.

sudo mount -t davfs https://your.remote/path /your/local/mount/point

Note: /your/local/mount/point has to be a real existing directory for this to work.

As far as I know you only need to run the following to get the command to work:
sudo apt-get install davfs2 (If more configuration is required I apologise, it was a long time ago that I did this.)

(I added this as an answer because I feel Liam’s answer didn’t give enough info.)

I realize that this is an old question, but I was wanting to do this and I found rclone which is like rsync for the cloud and supports a lot of different protocols including WebDAV. You use rclone config to configure a remote and then just do rclone copy remote:path . and int will download everything. You can also use rclone sync remote:path . and it will do checking of the files and only copy updates. It is a golang program so it is very portable.

Tagged : / /

Ubuntu HowTo: Traditional search-as-you-type on newer Nautilus versions

Original Source Link

Until now I was using a “traditional” version of Nautilus: that that comes with Ubuntu 10.10. Now I’m using 3.6.3, included with Ubuntu 13.04 (most likely any recent version is equivalent for the scope of my question, anyway).

One major difference between the two is the search-as-you-type behavior: in classic versions of Nautilus, when you typed an input, the file with the closest alphabetical match would become the selected one, the eligible files/folders being restricted to the current directory.

The new behavior is to perform an optionally-global search instead.

Can one configure Nautilus to provide the previous functionality ?

Ubuntu 17.10 and later

As the type-ahead search was a Ubuntu-specific patch, it got dropped together with Unity in 17.10. However there is a package called nautilus-typeahead in the Arch repository. Someone took it, compiled for Ubuntu and made a PPA. You can install it by these three commands:

sudo add-apt-repository ppa:lubomir-brindza/nautilus-typeahead
sudo apt dist-upgrade
nautilus -r

There is an issue on Launchpad about bringing this behavior back to official Ubuntu.

Ubuntu 14.04 to 17.04

Since the Ubuntu 14.04 LTS release type-ahead-find was the default behaviour in Nautilus again.

You can use a dconf key to switch between the different search modes:

  • enable type-ahead-find:

    gsettings set org.gnome.nautilus.preferences enable-interactive-search true

  • disable type-ahead-find in favor of recursive search:

    gsettings set org.gnome.nautilus.preferences enable-interactive-search false

Ubuntu 13.04 and 13.10

Nautilus 3.6.X cuts many features from the 3.4 and older versions. Canonical decided to keep using nautilus 3.4.2 in Ubuntu 12.10 because if this even though Nautilus 3.6 was already released. I don’t think it is possible to get the old search behaviour in 3.6 but what I did was to install the SolusOS patched Nautilus (also works for Ubuntu 13.04) which includes all the features from 3.4.2 (it really is Nautilus 3.4.2) while maintaining the Nautilus 3.6 skin. I’ve tested this particular package and it works fine in Ubuntu 12.10 and 13.04.

Alternatively you could install the Nemo File Explorer which is a fork of Nautilus 3.4 that was made due to the Cinnamon dev team being disappointed with Nautilus 3.6, you can get the install instructions here.

Making it your default file browser is a bit more tricky, this blog post worked for me in Ubuntu 12.10 but some users reported the method not to work properly.

There are alternative methods however. See the following question:

Ubuntu 18.04 and newer

Well, this issue has motivated me enough to finally check out Ubuntu’s PPA submission process; you can find Nautilus packages with the Arch community patch applied here: https://launchpad.net/~lubomir-brindza/+archive/ubuntu/nautilus-typeahead
and install it by running:

sudo add-apt-repository ppa:lubomir-brindza/nautilus-typeahead
sudo apt dist-upgrade

ed: PPA now contains package for focal fossa (20.04)

In Ubuntu Gnome 14.04, open dconf-editor. Go to

Check the box next to enable-interactive-search. Restart nautilus

There is actually a way to get this in Nautilus 3.26 (the current version in Ubuntu 17.10). Which is building your own version from source, using a patch provided by the awesome arch-linux community. Luckily, the great build system in Ubuntu makes this quite easy. Here’s the steps. I’ll assume you’ll be working in ~/bld-nautilus-typeahead. Start a console and do the following:

# install some necessary tools
sudo apt-get install git

# Create your work directory and go there
mkdir bld-nautilus-typeahead ; cd bld-nautilus-typeahead

# Clone the repository holding the needed patch: 
git clone https://aur.archlinux.org/nautilus-typeahead.git

# Make sure the source repositories for the main archives are available:
sudo nano /etc/apt/sources.list

# If the deb-src line for the main repository (usually around line 6) is commented out (starts with a #), un-comment it (remove the #) and save the file
sudo apt-get update

# Install the build dependencies
sudo apt-get build-dep nautilus

# Retrieve the sources for Nautilus
apt-get source nautilus

# Source should now be in the 'nautilus-3.26.0/' folder. Go there
cd nautilus-3.26.0/

# and Apply the patch from arch-linux
patch -p0 < ../nautilus-typeahead/nautilus-restore-typeahead.patch

# Build the package from source
dpkg-buildpackage -rfakeroot -uc -b

# This will take a little time. If everything goes well, the related packages will end up in the parent directory. Go there
cd ..

# and install the required packages
sudo dpkg -i nautilus_3.26.0-0ubuntu1_amd64.deb nautilus-data_3.26.0-0ubuntu1_all.deb

Start a new Nautilus. Type some letters. Experience that feeling of joy that happens whem the file you intended gets selected.

Ubuntu 18.04+, Nautilus native solution

You can get a close behavior to search-as-you-type if you change the following options in the Nautilus Menu -> File -> Preferences -> Search & Preview:

  • Change “Search in subfolders” to “Never
  • Uncheck the “Full Text Search“: “Set as default” option

Now the visual interface will still be as the new Nautilus (tested with v3.26.4), while the functionality will be similar to the search-as-you-type as in the older Nautilus.

Ubuntu has updated the Nautilus repository, as a result the accepted answer no longer works. Use the command below to get the correct version of PPA Nautilus.

sudo add-apt-repository ppa:lubomir-brindza/nautilus-typeahead
sudo apt-get install nautilus=1:3.26.4-0~ubuntu18.04.4.ppa1 libnautilus-extension1a=1:3.26.4-0~ubuntu18.04.4.ppa1 nautilus-data=1:3.26.4-0~ubuntu18.04.4.ppa1
sudo apt-mark hold nautilus libnautilus-extension1a nautilus-data
nautilus -q

This works on Ubuntu 18.04, if you are using another version use the apt-cache policy nautilus to find the correct version of PPA.

The answer for Nautilus 3.25 and above is it’s gone & not coming back unless someone totally rewrites the ubuntu patch & odds of that are extremely slim to none.

It is not something that can be configured in nautilus itself.

Not quite what I wanted but the following limits the search to the current directory and is a very lightweight compromise:

# Get the previous setting in case I want to revert.
gsettings get org.gnome.nautilus.preferences recursive-search &&

# Only search the current directory. Do not go deeper.
gsettings set org.gnome.nautilus.preferences recursive-search 'never'

Tested on Ubuntu v18.10.

Tagged : /

Ubuntu HowTo: Can’t copy paste or mkdir in a partition without root permission after creating it with gparted

Original Source Link

This was the photo of my gparted from hdd:


I wanted to increase the hdd space by unmounting and deleting the extended partition sdb1,then creating a new partition…

Now in gparted,I have this:


So i wanted to open the hdd from nautilus,but i couldn’t open that…

I faced with an error which says:

This location could not be displayed

You do not have the permissions necessary to view the contents of “lost+found”.

Now,What should i do?
I can do nothing from nautilus(copy paste a file or folder or open a new folder in hdd),but i can do anything from terminal with root permission.

Check this:


Create one or more directories in your partition using

sudo mkdir directory-name

and change the ownershĂ­p to your regular user ID using

sudo chown "$USER":"$USER" directory-name

Then you should be able to use the directories (in my example “directory-name”) as your regular user. In these directories you will be able to create and delete subdirectories and files without restrictions.

Note for other users: Please notice that this is a linux ext4 file system. If you have a Microsoft file system, FAT32, exFAT or NTFS, the permissions and ownership for linux is set when mounting the file system. The permissions and ownership will be inherited by all subdirectories and files. If the automatic mounting does not provide write access you can try according to the following link,

How to change default permissions on automounted usb flash, formatted in NTFS?

Run the following commands

$ sudo fdisk -l

You will find list of partitions, so you can identify the partition in which you are not able to copy paste or make new folder.

Run second command

$ sudo ntfsfix /dev/sdb3 

Replace /dev/sdb3 by your drive

Now run third command

$ sudo mount -o remount,rw /media/dravinash/General/

Replace /media/dravinash/General/ by your drive name

Now restart the system.

I am not an expert but I found these commands on web and it worked for me…..

Tagged : / / / /

Ubuntu HowTo: How does Nautilus populate the list with shortcuts in the top right corner?

Original Source Link

My Nautilus is showing the “Desktop” entry twice. I assume that it is using some kind of configuration mechanism, maybe there is a .desktop file sitting somewhere in my home folder that is creating this but I am not sure where to look.

So which file locations or dconf keys is nautilus using to populate this list?

Nautilus Top-Right Shortcut List

You can edit them by modifying ~/.config/user-dirs.dirs.

Moreover, you can also check if the second Desktop link is a bookmark by opening the bookmarks file in ~/.config/gtk-3.0/bookmarks.

According to How do I remove ‘Places’ entries from the Nautilus sidebar? user-dirs.dirs file is generated from the user-dirs* files in /etc/xdg.

The following screenshot shows one of the “Desktop” entries to be renamed to “Download” after I changed the entry XDG_DOWNLOAD_DIR to something different than $HOME/Desktop. As can be seen, the Desktop entry with the downward arrow changed its label back to Downloads.

Nautilus shortcuts

Tagged :

Ubuntu HowTo: How to change nautilus title bar background color?

Original Source Link

I want the titlebar background color of Nautilus (when active window) to be significantly different from the title bars of background windows. By default, the background color is too similar to background windows.

I’m using Ubuntu 20.04 and default Yaru theme.

This is what I want to change

I tried modifying the file /home/ubuntu/.config/gtk-3.0/gtk.css like below. The changes below are successful at changing the titlebar background color for most windows (Firefox, Thunderbird and more) but have no affect on Nautilus, System Monitor or Settings:

/* use blue when ACTIVE */
.nautilus-window .titlebar, .titlebar {
    background: #1856dd;
/* use dark grey when NOT active */
.nautilus-window .titlebar:backdrop, .titlebar:backdrop  {
    background: #3E3D3A;

Any suggestions?

Tagged : / / /

Ubuntu HowTo: How to Keep Focus of File-Browser when Previewing Thumbnails in Sushi?

Original Source Link

A report done here already 2011 in bugzilla.gnome.org but no proposals for improvement. It is possible that this is not a gnome-sushi issue but dependent on the packages on the test environment

  • How can you monitor execution times started by space?
  • Why does the focus change after space in the file-manager?

Test environment

  • sudo apt-get gnome-sushi unoconv. Press Space on any .ppt file.
    Output: slow visualization of the first page as a thumbnail.
    Expected output: rapid visualization of the thumbnail.

Current process is slow (5-11 seconds for generation)

  1. Space on file name for slow visualisation of the first page of the document.
  2. Space again to stop visualization.
  3. Left arrow key to see the next document.
  4. Repeat (1-2) again.

Faster approach proposal

  1. Press Space – slow visualization of the first page of the document starts.
  2. Press the Right arrow key which I would like to moves the document in the file-browser.
  3. Repeat (2) to view files fast.
  4. Press Space to stop previews.

Can the proposal be technically possible in Ubuntu 16.04? Here to maintain the focus in the file-manager.

Tagged : / / / /