Search Debian Channel Logs

Saturday, March 4, 2017

#debian channel featuring BluesKaj, thecha, nkuttler, aZz7eCh, Alina-malina, tw,

babilen 2017-03-04 00:45:35
nezZario: As I said: Use nginx from jessie-backports
tw 2017-03-04 00:48:15
How do I properly set up a user service unit to kill itself prior to sleep/hibernation/hybrid and execute a restore function after wake if it was killed this way? I guess more simply, how do I define units that execute some action prior to PM stops and after PM wakes?
tw 2017-03-04 00:53:12
More specifically I need to unmount/unlock network resources like SMB and kill some 3rd party programs that don't like hibernation or cause restores to take a really long time until they time out.
Alina-malina 2017-03-04 00:53:37
I need to convert some pdf file to html, but i get encoding messup with pdftohtml, is there anyway to convert it correctly?
thyriaen 2017-03-04 00:54:38
i am trying to get f.lux ( https://justgetflux.com/ ) to work - but it does not change anything when i hit preview :: no errors - do you guys know what could be the issue or whom i could ask about it ? :)
nkuttler 2017-03-04 00:56:36
Alina-malina: just set the encoding to whatever it is in the html head
Alina-malina 2017-03-04 01:02:33
nkuttler, where?
tw 2017-03-04 01:03:40
in the browser or in the http.
tw 2017-03-04 01:03:49
*httpd
sherm 2017-03-04 01:03:52
https://www.w3schools.com/html/html_charset.asp
Alina-malina 2017-03-04 01:04:37
its a pdf file in
Alina-malina 2017-03-04 01:04:40
local directory
Alina-malina 2017-03-04 01:04:45
i need to convert it to html
Alina-malina 2017-03-04 01:05:10
when i do this the html file text becomes unreadable
Alina-malina 2017-03-04 01:05:18
and it is content="text/html; charset=UTF-8"
Alina-malina 2017-03-04 01:05:43
how to check the encoding of pdf file instead? the problem is in pdf side not html
sherm 2017-03-04 01:05:59
what program are you using to do the convert?
Alina-malina 2017-03-04 01:06:12
pdftohtml
StoBrendo 2017-03-04 01:08:18
Hi there . I would want to backup my debian jessie/8 system easily. Could someone point me to the easiest (safest) way?
sherm 2017-03-04 01:09:43
I think there may be a problem with your input PDF. There is another PDF conversion prog that may be worth trying: pdf2htmlex
Alina-malina 2017-03-04 01:10:03
ok let me try it
sherm 2017-03-04 01:10:48
StoBrendo: this is a massive topic and depends on lots of factors. Take a look at rsync.
thecha 2017-03-04 01:11:23
is there any proprietary software in debian?
thecha 2017-03-04 01:11:37
or is there only some in the repositories
StoBrendo 2017-03-04 01:13:03
thecha: i think you only fetch propietary software in debian if you add non-free to your sources.list
StoBrendo 2017-03-04 01:15:30
sherm: my best bullet atm is, https://wiki.debian.org/FrontPage?action=fullsearch&titlesearch=0&value=backup&context=180 . Give me a shot if there is something you know that could save me some time
sherm 2017-03-04 01:19:07
StoBrendo: my preferred technique is to run a nightly cron script, using rsync, to do the backup. Mirrored discs (RAID) are good too but don't prevent against human error. This may be useful for you: https://ubuntuforums.org/showthread.php?t=639979
StoBrendo 2017-03-04 01:22:01
sherm: rsync does not seem a good choice to me, since its just a directory tree copy. I would rather preffer tar with xz compression. But I was thinking in something like dar , I usually find nice debian's wiki articles that help you to not end having a frankestein system ( ej: https://wiki.debian.org/WordPress ) , but right now ... nope xD
tw 2017-03-04 01:22:54
raid, even mirroring, is not backup. anecdotally, I've recently had a raid1 failure that replicated errors to both disks.
sherm 2017-03-04 01:23:25
you want to image your entire disc each time you make a backup?
sherm 2017-03-04 01:24:01
yes, i know RAID doesn't protect you against file corruption or doing something stupid!
tw 2017-03-04 01:24:30
This was a hardware controller failure.
sherm 2017-03-04 01:24:47
ah, that's a bugger, sorry to hear
tw 2017-03-04 01:24:56
Wasn't a problem, backups were there.
StoBrendo 2017-03-04 01:25:05
sherm: could you share what do you understand for the word: backup ?
StoBrendo 2017-03-04 01:25:26
backup isn't just a copuy
StoBrendo 2017-03-04 01:25:32
s/copuy/copy/g
sherm 2017-03-04 01:25:46
making sufficient copies of data to avoid data loss in the future
sherm 2017-03-04 01:26:00
i guess it depends on what sufficient means for you requirements
StoBrendo 2017-03-04 01:26:01
the same way software versioning isn't a bunch of directory with different names organized by date
StoBrendo 2017-03-04 01:26:13
s/directory/directories/
StoBrendo 2017-03-04 01:27:33
sherm: to me what you say is "if i would have to write a large project i wouldn't use neither git nor subversion not anything like that but just a naming pattern for a huge number of directories that would keep track of what each thing is"
StoBrendo 2017-03-04 01:27:48
s/write a large project/write a large software project/
StoBrendo 2017-03-04 01:28:01
s/not anything/nor anything/
sherm 2017-03-04 01:28:08
you would need version control for a large project
StoBrendo 2017-03-04 01:28:23
you would need a real backup for a real not frankestein system
StoBrendo 2017-03-04 01:28:38
or your backup flow would frankestein-ize your system
sherm 2017-03-04 01:29:21
are you taking incremental backups nightly then more substantial backups weekly?
StoBrendo 2017-03-04 01:30:23
the frequency of the backup is irrelevant to determine whether its a good way of doing it or not
sherm 2017-03-04 01:30:54
how are you hoping to implement it?
StoBrendo 2017-03-04 01:31:08
I don't hope the things i do.
StoBrendo 2017-03-04 01:31:27
but i surely will use a bash/python script
BluesKaj 2017-03-04 01:31:38
Hiyas all
StoBrendo 2017-03-04 01:31:45
\o
sherm 2017-03-04 01:32:28
i'm interested in your plans for the design of this backup system?
StoBrendo 2017-03-04 01:33:33
sherm: the plan is , collect information > do the proccess manually > automatize it
StoBrendo 2017-03-04 01:33:48
i'm in step 1 right now
StoBrendo 2017-03-04 01:34:16
and multitasking , thus the urge of backup what i already have
StoBrendo 2017-03-04 01:34:32
humans commit failures when multitasking xP
aZz7eCh 2017-03-04 01:43:45
If i have a script in cron.hourly ... and i chmod -x it, leaving it in that folder, and reboot machine, its no longer run, correct ?
aZz7eCh 2017-03-04 01:44:00
i can just +x it later if i want it back, being my plan ...