You are not logged in.

#26 2018-07-16 18:10:06

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Application(s) of the Day

^That's a beautiful login screen, slick-greeter looks nice imho. thank you for the steps.

Just came across a CLI tool to write bootable USBs (if someone does not want to use dd directly). It's called bootiso.

bootiso is a bash script. Features: "A confirmation prompt is displayed before erasing and partitioning USB devices; Inspects the ISO file and choose the best copy mode; Checks if the ISO has the correct mime-type and exists if it doesn't; Makes sure the device you select is actually connected via USB and exits if it's not, preventing any possible system damages; Checks if the selected item is a partition and exits if it is; Handles external command failures; The script itself is linted and validated with shellcheck and formatted with shfmt to ensure code quality."

Offline

#27 2018-09-26 07:37:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,232
Website

Re: Application(s) of the Day

ddrescue

This literally rescued some files off a hard drive that was almost dead, just last week. Bit-perfect. It takes some time, but goes in very carefully, trying not to damage the disk any more, and finally does the job, pretty much automatically.

A web search will come up with plenty of returns from the usual places, but not so much about picking out individual files, which is possible, and sometimes (as in my case) what you want, instead of trying to make a clone of the whole drive.

What I did:
1) Boot off a live system, like BL, on a usb drive so the hard drive isn't used.
2) Make sure at the BIOS screen that the HDD is still recognized, even if flagged as BAD. If not, I think you can only take it to a specialist.
3) In the live system, run 'sudo fdisk -l' to see if the system recognizes the HDD. This is necessary because we need the device path in order to mount it. Usually ddrecue runs on unmounted disks (I think) but to rescue an individual file we need the path.
4) Mount the disk read-only to minimize interference from well-meaning system daemons:
sudo mkdir -p /disk
sudo mount -o ro /dev/sdX /disk
5) Plug in a drive to save the rescued file to, and mount that too, if it isn't automatically done.
6) I found you can run ddrecue default mode with no options, and it did the job:

ddrescue /disk/path/to/important_file /path/to/other/mounted/drive/directory /path/to/other/mounted/drive/directory/mapfile

A copy of important_file should eventually end up in directory/.

Be sure to specify a mapfile name in the third argument (it needn't exist yet) because that lets you re-run the ddrescue command with other options that you might have found on the net and want to try. (I found the --reverse mode seemed to speed it up at one point.) Multiple runs won't overwrite good sections, but gradually build up the file till it reports 100% success. Maybe an hour, maybe a day, and some people reported ddrecue running for months! I got back 20~30GB of data in 2~3 hours.

You can't do a recursive rescue of a directory, though some people suggested running a find command to rescue all the files in a directory. To get a bunch of downloaded music files (after doing the more important stuff) I just used a for loop, something like:

src=/disk/path/to/youtube_downloads
trgt=/path/to/other/mounted/drive/saved_music
for file in "$src"/*; do [[ -d $file ]] && continue; ddrescue "$file" "$trgt" "$trgt/music_mapfile"; done

I hope you never have to use ddrescue, but I was quite impressed with it.

NOTE: There is another ddrescue (not in Debian) whose command is dd_rescue. I know nothing about that one.

Last edited by johnraff (2018-10-03 03:38:45)


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#28 2018-09-26 08:20:17

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 119

Re: Application(s) of the Day

Really good to know; I hope I'll remember ddrescue exists if I ever have to use it!

Offline

#29 2018-10-19 15:04:00

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Application(s) of the Day

I would like to nominate ReText

ReText is a simple but powerful editor for Markdown and reStructuredText markup languages. ReText is written in Python language and works on Linux and other POSIX-compatible platforms.

https://github.com/retext-project/retext

Im learning how to create my own website/blog etc and this has come in very handy.
I was getting to know atom but i found it slow and a bit too feature rich for my liking. Give me retext and geany any day over atom.

Last edited by S7.L (2018-10-19 15:05:44)

Offline

#30 2018-10-19 15:23:18

vasa1
Member
Registered: 2015-09-29
Posts: 173

Re: Application(s) of the Day

Thanks, grapefruit & ohnonot for the posts about sct! Love it!


Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)

Offline

#31 2018-12-17 11:52:22

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Application(s) of the Day

Hi again Bunsenlabs.

Finally found a way to read pesky PDF's in better view on my rather small screened smartphone.It is a program run from the terminal called K2pdfopt.What it does is converts PDFs so they are easier to read on small screens (PDF Re flow tool). Ive tried converting pdf's to epub/mobi format using calibre but i just cant figure it out properly so this is the next best thing in my opinion.

Read about it here: http://www.willus.com/k2pdfopt/

Download and build from source and install here: http://www.willus.com/k2pdfopt/download/

Im on arch Linux for now, couldn't find it in Debian stable but it is available in testing/unstable: https://packages.debian.org/unstable/utils/k2pdfopt

The version i built and installed was from the arch aur and it is not a GUI program, not sure if that is the same for the Debian version but i think it is. Anyhow I can now read a PDF file i have been wanting to read without having to squint, hope someone finds this post helpful.

Offline

#32 2018-12-19 06:59:04

ohnonot
...again
Registered: 2015-09-29
Posts: 3,674
Website

Re: Application(s) of the Day

^ my last phone came with an app preinstalled that did that on the fly (called it Mobile View), i think it was called WXOffice.
i thought there were some apps on f-droid that also do that, but i don't seem to have any installed.

Offline

#33 2018-12-22 05:59:31

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Application(s) of the Day

sorry for the late reply ohnonot, been away from the forums for a few days.

My phone is a just a rather cheapy huawei brand, probably 3 year old entry level model, runs the android lollipop 5.1 cant update it any more than that, so i think maybe yours might have a later release that has that mobile view added maybe or just your provider added it?

I couldnt find wxoffice in google play or fdroid, did you mean wps office maybe?

Last edited by S7.L (2018-12-22 06:00:28)

Offline

#34 2018-12-22 10:21:10

ohnonot
...again
Registered: 2015-09-29
Posts: 3,674
Website

Re: Application(s) of the Day

yes maybe it was wps office and it was on kitkat.
it came preinstalled. maybe it's this one here: https://play.google.com/store/apps/deta … cn.wps.pdf

Offline

#35 2019-01-29 23:49:35

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,000

Re: Application(s) of the Day

Just that, the reason for this stupe thread is what I think is a decent disk usage utility. It's called ncdu and is in the standard software repositories.

Well, noticed my main OS was about twice the size it should've been and thought, hmmmm. Being an uber l33t nix ninja I knew what to do immediately. Google !!! The culprit turned out being a bunch of .iso's in my users Downloads directory. smile

Wound up stumbling over this sucker during said l33t google session, while like most things gnu/Linux there's 40 gazillion ways to do about anything but like this and so wanted to mention it. Using ncdu.

Without any other options, looks like the thing just shows the total disk used  and size of the files in the current working directory. Which of course tends to be your /users/home when you launch a terminal. To run it just type "ncdu".

ie: For this install that's ...

124.7 MiB [#######   ] /.cache
   58.0 MiB [###       ] /Downloads
   48.7 MiB [##        ] /.mozilla
    9.5 MiB [          ] /.config
  148.0 KiB [          ] /.local
   76.0 KiB [          ] /.pki
   48.0 KiB [          ] /.fluxbox
   24.0 KiB [          ] /.thumbnails
   24.0 KiB [          ]  .xsession-errors
   16.0 KiB [          ] /.gconf
   12.0 KiB [          ] /.icons
    8.0 KiB [          ] /.gnupg
    8.0 KiB [          ]  .bash_history
    8.0 KiB [          ]  tint2rc.bak
e   4.0 KiB [          ] /Videos
e   4.0 KiB [          ] /Templates
e   4.0 KiB [          ] /Public
e   4.0 KiB [          ] /Pictures
e   4.0 KiB [          ] /Music
e   4.0 KiB [          ] /Documents
e   4.0 KiB [          ] /.nano
    4.0 KiB [          ]  .bashrc
    4.0 KiB [          ]  .profile
    4.0 KiB [          ]  .xinitrc
    4.0 KiB [          ]  .gtkrc-2.0
    4.0 KiB [          ]  .bash_logout
    4.0 KiB [          ]  .gmrun_history
    4.0 KiB [          ]  .Xauthority
    4.0 KiB [          ]  .fehbg
    4.0 KiB [          ]  .bash_aliases

Total disk usage: 413.4 MiB  Apparent size: 406.4 MiB  Items: 4773

 

Think it's cool and you can also do something like "ncdu /var/log" or any other location in the file system you have an interest in.

Have mentioned it before but here it is again. It's called "apt-show-versions", you can check which packages you have installed, are from which source repository or branch, such as stable, testing, unstable etc. To check which are installed from the repo in sources named stretch-backports.

apt-show-versions |grep /stretch-backports

Which is what it'll do, show all the packages installed on that OS from that repository and whether or not they are up to date.

Some which supposedly help speed up upgrades and installing packages from software repositories you have enabled.

netselect-apt: Haven't used it in awhile, it's use is really straight-forward. Here's a link just for the sake of it. Then there's this sucker, it's called apt-fast , notice that the source is github, I don't necessarily endorse this, haven't used it from there or for that matter haven't bothered using it at all but the thing is supposed to give apt a real boost in terms of speed and some use bash aliases with it.

Then the good ole namebench (available in stock repositories), used for the purpose of testing and seeing which DNS server is fastest, can also include censorship checks. Which is supposed to see if that DNS server maintainer is censoring websites on it. For me when I ran it ended up being 8.8.4.4 Google Public DNS ipv4. Run it in run dialogue or terminal or whatever just by typing out it's name, "namebench".

That's it for this nonsense, any comments, additions of other cool appage/utils etc all welcome.

Last edited by BLizgreat! (2019-01-30 00:14:53)

Offline

#36 2019-01-30 00:03:10

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,000

Re: Application(s) of the Day

Going back to oops. tongue

Last edited by BLizgreat! (2019-01-30 03:22:58)

Offline

#37 2019-01-30 07:18:50

ohnonot
...again
Registered: 2015-09-29
Posts: 3,674
Website

Re: Application(s) of the Day

nice.
installed ncdu & apt-show-versions on my non-gui server.

on my gui system, i like to use QDirStat.
It's surprisingly responsive, and quickly gives a deeper overview of where stuff is taking up (too much) space.

Offline

#38 2019-01-30 07:53:23

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,232
Website

Re: Application(s) of the Day

@BLizgreat! ncdu is well worth a bit of publicity - thanks!

Could this thread perhaps be merged with Application(s) of the Day though? Seems to be on the same topic, and could use some new blood.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#39 2019-01-30 09:46:22

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: Application(s) of the Day

ohnonot wrote:

on my gui system, i like to use QDirStat.
It's surprisingly responsive, and quickly gives a deeper overview of where stuff is taking up (too much) space.

I put that on my LXQt system, where it sits very nicely, looks almost exactly like WinDirStat on windows, but seems to work way faster. Though that may be a function of just how much stuff & cruft is on my Windows box.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#40 2019-01-30 12:46:38

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,737

Re: Application(s) of the Day

ncdu's lil brother, duh version 2
https://github.com/brontosaurusrex/stre … r/bin/duh2
Unlike in ncdu, bottom is fatter here.

(version 1 was just : du -hca --max-depth=1 "$@" | sort -h )

Usage example:

cd somedir
duh2

Last edited by brontosaurusrex (2019-01-30 12:49:53)

Offline

#41 2019-01-30 15:33:33

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Application(s) of the Day

nnn fm

Im thinking of switching to this terminal only file manager, it seems like it has the configuration you would want from such a program albeit it slimmed down/less bloat etc, i like the fact it uses xdg-open.

https://github.com/jarun/nnn

https://www.youtube.com/watch?v=U2n5aGqou9E

Last edited by S7.L (2019-01-30 15:33:56)

Offline

#42 2019-01-30 16:38:13

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 639

Re: Application(s) of the Day

^I seldomly install random recommended programs, but this one I tried instantly smile Nice find. Although, I think I'm too used to ranger now, and have no desire to switch to 'nnn'.

EDIT: after seeing the video about 'nnn', I'm more and more interested in 'nnn'  big_smile if it only had cpiture previewer as ranger has ... and yet, there are also lf (terminal file manager written in Go, heavily inspired by ranger with some missing and extra features) and fff (Fucking Fast File-Manager, written in bash)  devil Ah ... one lifetime is not enough to try all file managers alone  big_smile

Last edited by iMBeCil (2019-01-30 19:57:28)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#43 2019-01-31 06:45:42

ohnonot
...again
Registered: 2015-09-29
Posts: 3,674
Website

Re: Application(s) of the Day

Bearded_Blunder wrote:

I put that on my LXQt system, where it sits very nicely, looks almost exactly like WinDirStat on windows, but seems to work way faster. Though that may be a function of just how much stuff & cruft is on my Windows box.

i think i once compared QDirStat to a similar tool for the gnome desktop (gnome-disks?), and it really is much, much lighter.
in fact, comparing it to ncdu, it seems equally quick and responsive.

Offline

#44 2019-01-31 06:59:35

ohnonot
...again
Registered: 2015-09-29
Posts: 3,674
Website

Re: Application(s) of the Day

fwiw, nnn has been vetted & recommended by quite many people across forums.
I believe it is very, very, veryvery fast because coded in C.
it's been around almost 5 years now and very active with 40 developers.

if i'd ever consider using a cli filemanager fulltime, i think i would choose that over something Go or python based.

Last edited by ohnonot (2019-01-31 06:59:51)

Offline

#45 2019-01-31 10:33:26

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 639

Re: Application(s) of the Day

^Personally, I gave up GUI file managers a few years ago ... I keep Thunar around only to mount USB disks and SDcards (being lazy to fire up terminal and write 'lsblk' and 'sudo mount') ... I know, I know <facepalm>  big_smile


Postpone all your duties; if you die, you won't have to do them ..

Offline

#46 2019-01-31 11:27:02

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: Application(s) of the Day

yep nnn is pretty damn fast, it doesnt really matter to me regarding pictures that is what an image browser is for.

Last edited by S7.L (2019-01-31 12:31:24)

Offline

#47 2019-01-31 16:18:47

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,000

Re: Application(s) of the Day

Thanks for the feedback and adds. Sure John, merge this if you like. Meant to look for an existing thread on the topic but was lazy.

Offline

#48 2019-02-01 06:34:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,232
Website

Re: Application(s) of the Day

BLizgreat! wrote:

Sure John, merge this if you like.

Done.
I hope the interleaving isn't too confusing.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#49 2019-02-01 15:41:09

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,000

Re: Application(s) of the Day

Hey thanks John. Will post anything related to this, in this thread. Do think ncdu is a good utility.

Offline

#50 2019-02-02 02:20:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,232
Website

Re: Application(s) of the Day

ncdu +1
If I use it often enough I'll start to remember the command... roll


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

Board footer

Powered by FluxBB