• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, November 28, 2018

    Linux Backing up btrfs partition using cp -pav

    Linux Backing up btrfs partition using cp -pav


    Backing up btrfs partition using cp -pav

    Posted: 28 Nov 2018 11:07 AM PST

    I need to back up my root partition temporarily because I forgot to set up LVM. I'm going to delete the partition after backing up, set up LVM, then recopy the files. All copying will be done with cp -pav. Will this destroy my filesystem?

    submitted by /u/abelian424
    [link] [comments]

    Every time my eOS juno computer boots up I do a terminal update, it is a bad idea?

    Posted: 28 Nov 2018 11:07 AM PST

    sudo apt -y update && sudo apt upgrade && sudo apt autoremove && sudo apt autoclean

    submitted by /u/dackdel
    [link] [comments]

    Thinking of uninstalling Windows, what should I know beforehand?

    Posted: 28 Nov 2018 11:06 AM PST

    Hi! I'm new to the PC world in general, so please bear with me. I've grown fed up with windows 10, and am thinking of switching to Linux. The thing is, I have a semi-decent laptop (ASUS ROG Strix GL753VD), and I use it for gaming and work, I have a lot of software that I don't think is supported on Linux. Will I still be able to game, to run autocad and stuff like that? How does it all work? Will I still have graphic card drivers and stuff like that? I'm sorry those are extremely basic questions, but I'd really like some help.

    Thank you

    submitted by /u/HypnoFluffy
    [link] [comments]

    Choosing Linux: 2 Awesome Tools To Find Your Perfect Linux OS

    Posted: 27 Nov 2018 07:54 PM PST

    Ffmpeg creating different outputs on each run

    Posted: 28 Nov 2018 01:28 PM PST

    I'm using FFMpeg to convert audio files on a program I'm using. In the past, the files were converted only when required, however I'm moving some stuff around. I used an MD5 hash to check if there were identical files already around. However, running the same FFMpeg command on the same file twice produces two different outputs. Here's the command I used:

    ffmpeg -i assasin.mp3 -map_metadata -1 -f ogg test1.ogg

    assassin.mp3 is just a go-to testing sound, normally this'd be a URL to get. In reality, I'm also going to lower the quality of the file too, which I predicted may have caused these issues, however it has not.

    Any help is appreciated, thanks

    submitted by /u/jellywx
    [link] [comments]

    lost file trying to move it. any help?

    Posted: 28 Nov 2018 09:34 AM PST

    tried moving a document to my dropbox folder through command line instead of doing it the normal GUI way because im trying to get more acquainted with the command line.

    mv ULC.odt Dropbox

    i thought this was the right command and its nowhere to be found. i tried

    find / -iname ULC.odt

    to find it on my laptop and no results.

    any advice on how to recover it?

    submitted by /u/Elite4alex
    [link] [comments]

    rsync over the internet

    Posted: 28 Nov 2018 07:24 AM PST

    Hi all,

    How is it done? Doing it locally is fine but I want to basically snapshot a VPS.

    submitted by /u/saalih416
    [link] [comments]

    If I switch from Plasma DE to Gnome DE in Ubuntu, and remove the other, will it cause missing dependencies even if I run apt update and apt upgrade?

    Posted: 28 Nov 2018 10:27 AM PST

    I'm running Kubuntu 18.04 but would like to switch back to Ubuntu 18.04.

    If I install the gnome DE, and remove the Plasma DE (how do I remove one I'm not using?) would I break programs that I have installed? Would a simple

    sudo apt update sudo apt upgrade 

    fix broken dependencies and such?

    Would permissions get screwed up with anything?

    submitted by /u/Jim539j
    [link] [comments]

    Does one of these new Windows PCs with 10s affect installing dual boot Linux?

    Posted: 28 Nov 2018 01:52 PM PST

    How to compare the contents of two folders, with lots of sub folders and files, based off the MD5 hash of the files?

    Posted: 28 Nov 2018 01:50 PM PST

    I have my data directory /mnt/md0/data and a backup directory that LuckyBackup backs up to every day /mnt/backup/md0.

    I just noticed that a few files that I changed/edited over the past several weeks weren't correctly copied over with LuckyBackup. The files in question were a TV series I ripped. I noticed that I had all the file names right but there were a few duplicate episodes. (Different names but same episode.) I corrected this on the /mnt/md0/data folder but since I guess the names were the same, LuckyBackup didn't catch it and the backup location still contained the wrong episodes.

    All together, this is about 24TB of data. I'm sure that 98% of it is correctly backed up but I need to know for sure.

    Is there a Linux utility that I can point to two folders and it will compare all the files based off their MD5 hash and show me which ones are different? I know that combing through 24TB of files won't be quick and I'm fine with that.

    My alternative is to delete everything on my backup array and look for a different program that I can configured to back up files based solely on a files MD5 value.

    In case it matters, using Linux Mint 19 and this is a home media server.

    I've been using Linux for almost 2 years but still consider myself a noob so I might need spoon fed. :) Thanks!

    submitted by /u/road_hazard
    [link] [comments]

    How can I add entries to bash autocomplete?

    Posted: 28 Nov 2018 01:34 PM PST

    I'm using venv from Python3 with all of my virtual environments in ~/.venv/.

    I have a function called workon in my .bashrc which activates virtual environments e.g. workon myvenv. I'd like to:

    1. Make bash autocomplete based on the results of ls ~/.venvs/
    2. Only do 1. when I have already typed workon

    Could somebody suggest an approach to add these 'conditional autocomplete' entries? Thanks.

    Info: I'm on using Bash with Konsole on the KDE spin of F28

    submitted by /u/lentils_and_lettuce
    [link] [comments]

    Bunsenlabs - ok for noobs?

    Posted: 28 Nov 2018 01:25 PM PST

    As the title says. What are others' experiences/thoughts?

    submitted by /u/kanga39
    [link] [comments]

    Tried to restart my computer and it's stuck on this screen. Anyone know what to do?

    Posted: 28 Nov 2018 01:13 PM PST

    https://m.imgur.com/gallery/ApMKvVq

    It's been stuck on this screen for a couple of hours now. Tried ctrl alt F1, ctrl alt f2, ctrl alt f6, nothing worked.

    If it's of any help, right before my laptop hung, I tried to install a USB WiFi driver.

    submitted by /u/discourseisdead97
    [link] [comments]

    How do I make existing Linux partition dual boot?

    Posted: 28 Nov 2018 06:51 AM PST

    I had Windows 10 (W10) and Linux Mint 19 (LM) set as dual boot on my ASUS laptop. It was fairly simple, I installed LM after W10, it just worked. Few days ago I've got Samsung EVO SSD, so I reinstalled W10 on SSD (I'm using my LM only for some specific tasks, I left it on HDD). It kept using old EFI partition for new install, so I had to nuke W10 system recovery partition and EFI partition to be able to safely delete old system partition on HDD.

    Obviously because of that my LM dualboot isn't working, but its partition is still there. I have sort of understanding that I have to 1) boot from Linux live usb, 2) install grub2 (that's what I used to have, I think) and 3) let grub2 scan partitions and generate settings. I'm not sure if it's supposed to be in chroot, or which disk/partition I have to install grub2 to. Also I've never really touched EFI based boot, except from "press install and it works" point of view, so I'd rather not break things.

    Any advice on how to proceed?

    EDIT STEP 1: After running grub-mkconfig everything was exactly the same as before. So I googled a bit, did mount /dev/nvme0n1p2 /mnt/boot/efi and tried grub-install along with grub-mkconfig. Now I actually have a menu entry in my UEFI, but laptop just shuts down after selecting it. I suspect it has something to do with referenced boot partition being on another physical drive. W10 still works tho

    submitted by /u/vixfew
    [link] [comments]

    May have ruined my Kubuntu installation trying to change my username.

    Posted: 28 Nov 2018 12:44 PM PST

    Hey all.

    For various personal reasons, I wanted to change my username using the instructions found here. I used the accepted answer, but I ran into some problems with the part where you have to fix the files that are hardcoded with your old username on the system.

    Apparently KDE hardcodes a shit ton of filepaths in its config files, and so parts of my system actually broke. For example, I lost ALL of my saved WiFi network information, meaning I have to get the passwords for those again. Additionally, my laptop's brightness and volume buttons will occasionally fail to work upon login (Why not always?).

    I tried some instructions here to try and find all references of my old username using grep and sed, and I let this run overnight. Unfortunately, I don't think it did anything at all, since I still see my old username in most configuration files. I think it also stressed my laptop too much since the brightness couldn't be turned down while it was running, and now my laptop's fan runs full power all the time while idling and nothing open. Scratch that: apparently, the fan running full power all the time is OS-dependent, as the issue does not occur on Windows 10, even with some applications open. It must be something in the config files that isn't functioning correctly due to the username change.

    Is a clean install of Kubuntu the only way to get back to normal? (aside from the fan problem) I didn't

    submitted by /u/Lafojwolf
    [link] [comments]

    Operands for terminal

    Posted: 28 Nov 2018 12:19 PM PST

    I saw this over at r/linuxquestions in the comments section and thought this is very helpful knowledge for those just starting with Linux and wanting to learn more when it comes to terminal. Not sure if this is specific to bash or what.

    ; will run the second command even if the first one fails

    && will run the second command only if the first one succeeds

    || will run the second command only if the first one fails

    submitted by /u/Shukuwuku
    [link] [comments]

    Tilix terminal resizing issue

    Posted: 28 Nov 2018 11:33 AM PST

    So I'm trying to make my Tilix terminal a little bigger. I'm using the CTR+ALT+UP etc but it is not resizing it. Any idea how?

    Thank you!

    submitted by /u/blockchain_dev
    [link] [comments]

    Which tools and strategies do you all use for multiple kernel configs for different computers? What do you use for combining 2 custom configs?

    Posted: 28 Nov 2018 11:14 AM PST

    With multiple computers, VMs, and re-installs with hardware changes, we might want to merge various custom kernels. I'm wondering how you all manage your kernel configs and merge them for evolving computer setups. Which diff tools do you prefer? Which commands do you frequently use?

    (I'm mainly asking for Gentoo, but I use other distros as well, so all suggestions welcome)

    submitted by /u/Eckomute
    [link] [comments]

    Optimising palettes (24 bit > 8 bit)

    Posted: 28 Nov 2018 04:34 AM PST

    I sometimes need to convert true color images into 256 colour images. The GIMP is OK, but sometimes gives poor results. In the past I've used products that give far better results (e.g. the old Alchemy for DOS, or WinImages) but is there something similar for Linux? Something that has excellent default colour reduction and also allows tweaking?

    submitted by /u/clueless-diy
    [link] [comments]

    Brother Printer no longer working after reformat

    Posted: 28 Nov 2018 03:49 AM PST

    So my distro (KDE Neon) crashed hard for some reason. It was probably recoverable but much faster in my case to just reformat.

    So I did and installed the printer drivers that I always do from Brother's website.

    The weird thing is that I can use the built-in scanner (so its not a usb issue or anything like that) using Skanlite.

    But I can't print. Every job seems to go through just ifne but the printer is not printing.

    It can print test pages (so its not busted). But I can't print test pages through my Distro.

    I've tried resetting the printer on its end to see if I somehow didn't hit a funky setting.

    Can someone please help

    Edit: Solved I guess. I saw in the terminal an error, and on whim I told it to install the two things

    sudo apt install lib32ncurses5 lib32z1

    Don't know why it didn't do it automatically. But its working for now

    submitted by /u/fffggghhh
    [link] [comments]

    Making a persistent, repeating, systemd service

    Posted: 28 Nov 2018 06:54 AM PST

    The answers I find to searching 'systemd service loop/recurring' don't work or don't address the right problem - I need to make eternally repeating scripts.

    Simple example: #!/bin/bash

    sleep 10; notify-send hi

    The final goal is one script to keep a reverse ssh connection alive so I can provide IT support to machines I'm not near, and make unison run and wait 5 minutes after it's complete (crontab with 5 minutes set can make this run multiple times).


    Current example:


    [Unit] Description=Alfred After=display-manager.service

    [Service] ExecStart=/home/alfred/.local/bin/random-task.sh Restart=always Type=simple User=ghost Group=ghost

    IgnoreSIGPIPE=no

    [Install]

    Alias=alfred.service

    If I run:

    systemctl status alfred.service

    .... the first time it complained it's starting too often. Now it says it has two running processes but I'm not seeing any output.

    submitted by /u/Andonome
    [link] [comments]

    How can I change password storage (Thunar)

    Posted: 28 Nov 2018 02:59 AM PST

    When you mount an encrypted device Thunar is asking something like: - don't store password - store password for this session - store password forever

    Now, how can I remove an already given permission to store such a password?

    submitted by /u/noolarama
    [link] [comments]

    BASH read command failing on long line?

    Posted: 28 Nov 2018 12:19 AM PST

    I started constructing the script below according to a guide to scrape a downloaded HTML file, and I'm noticing that it finishes with no error message upon reaching a 522,000 character long line, and it fails to echo said line. I thought it might have been my ARG_MAX but getconf ARG_MAX returns 2097152 so that doesn't seem to be the case. Any ideas? ```

    !/bin/bash

    declare -a ARRAY filename="asdf.html"

    exec 10<&0 exec < $filename

    let count=0 while read LINE; do echo $LINE ARRAY[$count]=$LINE ((count++)) done

    exec 0<10 10<&-

    echo ${ARRAY[@]}

    ```

    submitted by /u/NaturalTeacher3
    [link] [comments]

    Dell laptop suddenly lost connection over wifi

    Posted: 28 Nov 2018 03:33 AM PST

    Hello all, hope you can help.

    I have a Dell Vostro series laptop running on ubunt 16.04 that doesn't seem to be able to connect to the internet over my home wifi network (though it's displaying as connected). It works over ethernet on the same network and wifi is fine in my office, hotspot,etc too. This happened just today and I haven't made any changes to any network setting on the laptop .

    ifconfig gives

    TestBR Link encap:Ethernet HWaddr 4e:64:76:d3:49:d3

    inet addr:10.239.174.1 Bcast:0.0.0.0 Mask:255.255.255.0

    inet6 addr: fd42:3537:bef:e51a::1/64 Scope:Global

    inet6 addr: fe80::4c64:76ff:fed3:49d3/64 Scope:Link

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    RX packets:0 errors:0 dropped:0 overruns:0 frame:0

    TX packets:1973 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000

    RX bytes:0 (0.0 B) TX bytes:114373 (114.3 KB)

    enp3s0 Link encap:Ethernet HWaddr 50:9a:4c:c9:eb:fb

    UP BROADCAST MULTICAST MTU:1500 Metric:1

    RX packets:0 errors:0 dropped:0 overruns:0 frame:0

    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000

    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback

    inet addr:127.0.0.1 Mask:255.0.0.0

    inet6 addr: ::1/128 Scope:Host

    UP LOOPBACK RUNNING MTU:65536 Metric:1

    RX packets:5096 errors:0 dropped:0 overruns:0 frame:0

    TX packets:5096 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1

    RX bytes:524488 (524.4 KB) TX bytes:524488 (524.4 KB)

    wlp2s0 Link encap:Ethernet HWaddr f8:34:41:be:4c:2c

    inet addr:192.168.0.109 Bcast:192.168.0.255 Mask:255.255.255.0

    inet6 addr: fe80::eeba:bfde:7aab:5ac4/64 Scope:Link

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

    RX packets:2219 errors:0 dropped:0 overruns:0 frame:0

    TX packets:5650 errors:0 dropped:0 overruns:0 carrier:0

    collisions:0 txqueuelen:1000

    RX bytes:1229953 (1.2 MB) TX bytes:907054 (907.0 KB)

    I have an ubuntu vm running off of a different windows 8 machine with bridged networking (this should be the TestBR you see) and also pi-hole. I tried enable/disable the network adapter in my bios but that led me to no joy.. Strange thing is I can see queries made from the laptop in the pihole logs and they don't appear to be blocked, also if I go in my router admin and check sessions each time I refresh a page the laptop's tcp count rises, yet still nothing comes in the browser.

    Logical names are as follows -

    sudo lshw -C network | grep 'logical name'

    logical name: wlp2s0

    logical name: enp3s0

    Please let me know if you might need additional information and thank you for the help in advance :)

    Edit: forgot to mention my OS version.

    submitted by /u/SvetoslavP
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel