Assume you are logged in to a remote server via SSH and are running a task which takes longer to complete than you want to wait.
The straight-forward option would be to terminate the task and re-run it at a later time, but that is not always an acceptable option.
Instead you can send the active task to background and leave it running even after you log out.
- Press Ctrl-Z to pause the task
- Type bg to send it to the background and resume running
- Type disown to disassociate the process with your SSH login, so that it does not terminate when you log out
- Type exit to log out
Meet feh – a fast and minimalist image viewer, suitable for quickly scrolling though your collection of resized photos without annoying jerks and delays.
It can be installed from your package repository.
One way to use it is to open the terminal window in the folder where your images are stored and run command:
Here “Z” stands for zoom, and “F” stands for full screen. So it goes full screen and any images smaller than the screen size will be zoomed up. You can also add “r” parameter to recursively scan all subdirectories.
You can also set delay between slides. Read more about it all:
This script generates a system script and associated meta-information for displaying Adobe Photoshop .PSD image thumbnails in Gnome file manager. It is intended to work with Nautilus, but also works with Nemo in Linux Mint 18.2 Sonya Cinnamon, even though “Add GConf Hooks” section of the script fails.
Run the script with sudo and reboot afterwards.
The script was acquired from askubuntu.com here, and it is actually preferable that you get it from there, because here it may be automatically reformatted and fail at execution. It is posted here only for archival purposes.
# — Write psdthumbnailer
sudo cat <<‘EOF’ # bin/bash # Arguments / Parameters %i %o %s f_in=$1 f_out=$2 f_size=$3 # Execute Convert PSD to PNG through ImageMagick exec convert “psd:$f_in” -scale “$f_sizex$f_size” “png:$f_out” EOF ) > $OUTFILE
# — Write photoshop.thumbnailer
sudo cat <<‘EOF’ # bin/bash [Thumbnailer Entry] TryExec=/usr/lib/psdthumbnailer Exec=/usr/lib/psdthumbnailer %i %o %s MimeType=image/vnd.adobe.photoshop; image/x-photoshop; image/x-psd; EOF ) > $OUTFILE
# — Set File Permissions
sudo chmod 0755 /usr/lib/psdthumbnailer
sudo chmod 0644 /usr/share/thumbnailers/photoshop.thumbnailer
# — Add GConf Hooks to parse thumbnails
sudo gconftool-2 –set /email@example.com/enable –type bool true
sudo gconftool-2 –set /firstname.lastname@example.org/command –type string “/usr/lib/psdthumbnailer %i %o %s %i %o %s”
# — Install Dependencies
sudo apt-get install imagemagick
You run a command on command line and receive a mysterious error message:
sh: 0: getcwd() failed: No such file or directory
Possible explanation is that the directory you were working in has been deleted by some other process and indeed just does not exist anymore. Move, for example by typing “cd”, and continue working elsewhere.
After (re-)installation of Apache2 the browser greets you with error 500 “Internal Server Error” and Apache2 error log file contains message “Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration”.
Well, you might want to enable mod_rewrite, which is disabled by default:
service apache2 restart
After (re-)installing PHP and attempting to run a script, you may see an error message saying “PHP Fatal error: Uncaught Error: Call to undefined function mb_strtoupper()”.
Well, you may be missing the php-mbstring extension to PHP. Simply install it by:
sudo apt-get install php-mbstring
It is very irritating that there seems not to be an option for creating links to files in Gnome file manager Nautilus and its derivatives, like Caja. After all, this is such a useful feature, giving the user so much more convenience when working in Linux as compared to Windows.
It turns out, that the feature is actually there, but for some weird reason it is not available from the GUI.
Just press Ctrl+Shift and drag and drop your file between file manager’s windows, and a symbolic link will be created instead of copying the file.
As an alternative, you can do the dragging with the middle mouse button. Then on drop you will be shown a context menu with “Link Here” as an option.