Suppose you have a folder with a lot of empty subfolders; in fact you don't know in which folder is the content you are looking for.
One way is to use a gui application baobab or qdirstat
But even then creating order in the chaos will be a tedious job.
Go in terminal to the main folder and do
$find . -type d -empty -delete
STumbling In Linux Land, STupid and Unlucky Pablo? The tribulations and happy discoveries of a Linux former Newbie, now bit more experienced user
Thursday, July 7, 2016
Extract image from pdf file without quality loss to jpgs
Move in terminal to folder which contains the pdf file.
$pdfimages -j file.pdf page
This will leave you with .jpgs for the image files
and .pbm for the text pages.
Convert wit imagemagick installed the pbm files:
$convert *.pbm *.jpg
pkgcaccheclean replaces cachelean
Make room with pkgcacheclean in Arch
All installed packages will be cached in /var/cache/pacman/pkg
If you look in this cache you will be surprised to find as much as four or five versions of the same program.
If you want to make room than it is useful to purge the cache of too many versions of the same program with pkgcacheclean: https://aur.archlinux.org/packages/pkgcacheclean/
Do as root: #pkgcacheclean -v
to actually do it.
If you look in this cache you will be surprised to find as much as four or five versions of the same program.
If you want to make room than it is useful to purge the cache of too many versions of the same program with pkgcacheclean: https://aur.archlinux.org/packages/pkgcacheclean/
Do as root: #pkgcacheclean -v
to actually do it.
more infoUsage: pkgcacheclean [options] [number]The default number is 2. That means, for all installed packages, the currently used version and the newest of the remaining cache is retained. All caches of not-installed packages are removed.
Currently, supported options only includes -v/--verbose, -q/--quiet, -n/--dry-run, -k/--all-as-installed.
Thursday, June 16, 2016
how to connect to your tablet using mtp
This is clearly explained here.
First check this out: are following packages installed?
I had to install necessary packages need for file managers:
# pacman -S gvfs-mtp gvfs-gphoto2
Now start up your file manager with gvfs support for instance Thunar up to check if your Android device is mounted.
If you are not lucky, I will repeat what I have done to get it working;
Checked if my Asus memo tablet was noticed:
$mtp-detect
Response:
Device 0 (VID=0b05 and PID=7773) is a Asus Fonepad 7 (FE375CXG).
I choose to install jmtpfs via packer
$packer -S jmtpfs
Created a mtp folder in /home/paul/
In Openbox I created a new keybinding keybind key="W-m" in .config/openbox/rc.xml with this as command:
xterm -e "jmtpfs ~/mtp"
So after creating that and restarting openbox with
$openbox --restart
I start up Thunar. I now see in /homepaul/mtp/ two folders Internal Storage and SD Card and the files can be copied etc.
First check this out: are following packages installed?
I had to install necessary packages need for file managers:
# pacman -S gvfs-mtp gvfs-gphoto2
Now start up your file manager with gvfs support for instance Thunar up to check if your Android device is mounted.
Checked if my Asus memo tablet was noticed:
$mtp-detect
Response:
Device 0 (VID=0b05 and PID=7773) is a Asus Fonepad 7 (FE375CXG).
and a lot of other lines. You also can use lsusb to check.
$packer -S jmtpfs
Created a mtp folder in /home/paul/
In Openbox I created a new keybinding keybind key="W-m" in .config/openbox/rc.xml with this as command:
xterm -e "jmtpfs ~/mtp"
So after creating that and restarting openbox with
$openbox --restart
I start up Thunar. I now see in /homepaul/mtp/ two folders Internal Storage and SD Card and the files can be copied etc.
Subscribe to:
Posts (Atom)