Re: [PLUG] Suggestions for featherweight laptop
Tom- Following your idea I bought an HP Stream 14 from WalMart for $229. To be used as a featherweight Mint only machine for coming up to speed in Linux (wy overdue) and learning Python while sitting in an easy chair watching football (with the sound off). So far, so good. :-D. I've had dozens of PCs over 4 decades starting with Altair and Imsai. Then one of the 3 wire-wrap prototypes of the TRS-80 Model I. And run everything from OS/2 to BEoS and more but have not yet found the perfect PC. This little HP is no exception, but for the low price and decent performance it's good. It's close to the target of 3 lbs and $200 with a large enough screen and ultra long battery life. Tried installing MINT alongside the Windows 10 for fun but the Linux mouse pad drivers were apparently not installed yet so was unable to adjust the HD partition. By the time I added a USB mouse I had apparently crossed a no return install point and HD space adjust was no longer an option. So I tried a dual-boot using the default partition but there was not enough space. So I wiped the HD and moved on. No serious documentation is included but critical information is on the net; like to bring up the Setup screen tap ESC repeatedly during the fast boot, select F10 to enter BIOS Setup, then System Config, then Boot Options, and enable Legacy Support. To install Linux from an ISO burned to a USB thumb drive enter Setup again and select F9, then Boot From USB Hard Drive (UEFI). (I still don't know which if any USB ports are really 3.0 and which are 2???) My MINT 18.2 MATE 64 install was uneventful. No quirks noted so far and performance is good. Like most portables the Stream 14 runs very hot beneath the CPU when running hard, but cool enuf otherwise. I assume the HP Stream 11 operates the same as the 14. Thanks for the good suggestions, Tom. This should work out fine. And I hope this info helps others. -Dave On 9/4/2017 2:54 PM, Tomas Kuchta wrote: > I have it as general use shared laptop for the kids, anyone. Got it new > about 2 years ago for $199 new. It is light, surprisingly well constructed, > it has no fan, 2xUSB, HDMI and SD card slot. It lasts about 8 hours on > battery. > > The new/latest version has 4GB RAM and faster WiFi which would be nice, > but it is good enough for browsing, Netflix, basic stuff. > > Note: It comes in funny blue color only. I do not believe that it is > upgradable beyond plugging stuff to USB ports, or SD card. It is the only > laptop I have not opened. > > It survived a lot of abuse, fully drained batteries, lot of car/plane > travel, sticky fingers, Don't get me started! > > I run stock Ubuntu on it, currently 16.04 > > I like it and would buy it again for this purpose. > > Tomas > > On Sep 4, 2017 1:17 PM, "Dave Lien - W7DAL"wrote: > > Thanks, Tom. I think you found the sweet spot with the HP Stream 11. No > problem here giving up dual-boot. I'd rather have a good dedicated > inexpensive lightweight RELIABLE Linux portable that has current > hardware and will be good for a few years. > > If you have had a good experience with the HP Stream 11 as a dedicated > no-hassle Linux machine I'm tempted to go with it. WalMart has them from > ~$135 as does NewEgg for refurbs. What specific model have you had good > luck with? I see there are many variations at different prices...? > > Any model to avoid? > > I presume it will boot USB and external USB DVD drive. > > And finally, is there any magic I need to know about when installing > MINT and overwriting Windows and other crapware? I see some people have > had problems installing MINT. (But I'll settle for any decent version of > Linux.) > > -Dave > > > On 9/4/2017 11:58 AM, Tomas Kuchta wrote: >> If you decide to go for used thikpad X2x0 laptop. I cannot recommend >> anything older than x220/x230 for many reasons - performance, power >> consumption, too old architecture and age (you would be buying almost 10 >> years old laptop). >> >> In used Thinkpads, there is pretty awesome selection on Newegg Outlet. >> Example for 2 years old x250: >> https://www.newegg.com/Product/ProductList.aspx?Submit=ENE=0= > BESTMATCH=X250=0=-1=1 >> You could get refurbished x250 for about $350 and over time upgrade RAM > and >> replace hard drive with SSD. You should be able to get at least 3 more >> years out of that laptop. >> >> For new item in around $200 - you can look into HP Stream 11. It works >> great with Linux and it is sturdy with good battery life. However it >> doesn't have enough storage to run both Linux and windows, and it is not >> upgradable. The only way to add storage is to use SD card or USB stick. >> >> For $200 and decent hardware, you will have to make significant > compromises >> unless you give up Windows or Linux. >> >> Tomas >> >> On Sep 4, 2017 10:34 AM, "Chuck Hast" wrote: >> >> I have dualbooted the X200 with both Linux and Win7 pro. Worked quite well >> but I
Re: [PLUG] Troubleshooting ssh [FIXED]
On Sun, 10 Sep 2017, Ken Stephens wrote: > Thanks for sharing your findings. You come up with interesting problems > and solutions in Linux. I learn from them. Ken, I'd much prefer my computers to be stultifyingly boring. > I find that if I don't find a solution after diligent searching, the > problem is usually something very obvious that I have missed. My forehead > is much flatter after discovering what I did from the slap that reflexibly > happens at that time. In this case, emptying known_hosts and letting openssh refill it was not obvious to me. Since the key on the server has not changed in years I didn't think it's presence in the client known_hosts was the cause of these errors > Thanks, again, You're welcome. Regards, Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Troubleshooting ssh [FIXED]
Rich Shepard wrote: > On Tue, 5 Sep 2017, Rich Shepard wrote: > >> I'm out of ideas of what to test so I can fix this issue, and seek advice >> from experienced network admins. > Having tried all suggestions from my thread on LQ I re-read openssh web > pages, particularly the sections on authorized_keys and known_hosts. It > occurred to me that for reasons known only to computers, the server's entry > in ~/.ssh/known_hosts was FUBAR. > > Yep. That was the problem. Cleaned out all known_host entries on each > portable, then entered the command $ ssh salmo. Told openssh to connect to > the unknown server, correctly entered my passphrase, and the connection was > established for each portable. > > My web searches did not find any result that suggested cleaning > known_hosts when a client refuses to connect to a server. This is a lesson > I'll not soon forget. > > Rich > Rich, Thanks for sharing your findings. You come up with interesting problems and solutions in Linux. I learn from them. I find that if I don't find a solution after diligent searching, the problem is usually something very obvious that I have missed. My forehead is much flatter after discovering what I did from the slap that reflexibly happens at that time. Thanks, again, Ken ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Troubleshooting ssh [FIXED]
On Tue, 5 Sep 2017, Rich Shepard wrote: > I'm out of ideas of what to test so I can fix this issue, and seek advice > from experienced network admins. Having tried all suggestions from my thread on LQ I re-read openssh web pages, particularly the sections on authorized_keys and known_hosts. It occurred to me that for reasons known only to computers, the server's entry in ~/.ssh/known_hosts was FUBAR. Yep. That was the problem. Cleaned out all known_host entries on each portable, then entered the command $ ssh salmo. Told openssh to connect to the unknown server, correctly entered my passphrase, and the connection was established for each portable. My web searches did not find any result that suggested cleaning known_hosts when a client refuses to connect to a server. This is a lesson I'll not soon forget. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] clone old home to new machine home
You can verify the meaning of * by: ls -ld * If that displays correct files and directories, cp -pr * ../ will the same files and directories into the destination directory. If you want to be even more sure, use dry rsync run: rsync -an --progress * ./ If you like the print out, just repeat the command without option n: rsync -a --progress * ./ Hope it helps, Tomas On Sep 10, 2017 1:35 PM, "Denis Heidtmann"wrote: > OK. What I used when I copied my home folders/files to the external drive > was cp -pR . /media/household/oldhome. What was copied were all folders > and files, recursively. So instead of using the dot to indicate that the > source is the current folder (which was /home/household) I had used * I > would get no dot files or folders at the top level but all dot and regular > files and folders below the top level. But what I did is fine for copying > to the external drive. They are all available if needed. > > Now you say avoiding the top level dot folders and files is what I should > do. > > >From the top level in the external drive I execute cp -pR * > /home/household/ should do this. Does the presence or absence of the / > after household matter? > > Thanks so much for your patience. > > -Denis > > On Sun, Sep 10, 2017 at 10:16 AM, Tomas Kuchta < > tomas.kuchta.li...@gmail.com > > wrote: > > > No it will not. > > > > * Is for all files and directories, exclusive of dot files. Dot files > might > > be included in the subdirectories, but that does not matter when you are > in > > home. > > > > If you would want to address dot files, you would have to say: .* > > > > > > > > On Sep 10, 2017 8:19 AM, "Denis Heidtmann" > > wrote: > > > > > cp -pr * /home/household/ will bring all the dot folders in > > > /home/household, numbering about 24 dot folders and 19 dot files. The > > > exclude option in rsync will do it when I can figure out how to write > the > > > PATTERN --exclude requires. The shell gets first shot at it. > > > > > > On Sat, Sep 9, 2017 at 10:35 PM, Tomas Kuchta < > > > tomas.kuchta.li...@gmail.com> > > > wrote: > > > > > > > Just copy back (or restore) your data only. Surely you know what and > > > where > > > > you have it: Documents, Videos, Music, etc. Re-install is always an > > > > opportunity to clean up and organize old suff. > > > > > > > > Alternatively, you could copy everything, but the dot files > preserving > > > > chaos. :-) > > > > cd toYourBackupDirectory > > > > cp -pr * /home/$USER/ > > > > > > > > This will copy all your old (non-dot) files and directories to your > new > > > > home. > > > > I forgot the name for your username, hence the $USER variable. > > > > > > > > If you prefer rsync, the command woul look this way: > > > > rsync -a --progress * /home/$USER/ > > > > > > > > Hope it helps, > > > > Tomas > > > > > > > > > > > > On Sep 9, 2017 9:59 PM, "Denis Heidtmann" > > > > > wrote: > > > > > > > > Tomas, > > > > > > > > Thanks for the advice. Avoiding the . files sounds safest. I can > have > > > them > > > > available if it looks like I need what is in them in particular > cases. > > > Now > > > > I need to understand how to avoid including them. I do not see that > cp > > > > offers that, but perhaps rsync does. > > > > > > > > -Denis > > > > > > > > On Sat, Sep 9, 2017 at 9:41 PM, Tomas Kuchta < > > > tomas.kuchta.li...@gmail.com > > > > > > > > > wrote: > > > > > > > > > I would avoid copying files and directories starting with . Unless > I > > > know > > > > > why I want the old file/directory. Example of what to copy over > > > .Mozilla > > > > if > > > > > you want your old browser config or emails Would try to avoid > > > > > kde/gnome/config files and directories, unless I need some of them. > > > > > > > > > > Tomas > > > > > > > > > > > > > > > > > > > > On Sep 9, 2017 6:55 PM, "Denis Heidtmann" < > denis.heidtm...@gmail.com > > > > > > > > wrote: > > > > > > > > > > > It occurs to me that the source being 14.04 and the target being > > > 16.04 > > > > is > > > > > > likely a complications. See > > > > > > http://eggsonbread.com/2010/01/28/move-ubuntu-to-another- > > > > > > computer-in-3-simple-steps/ > > > > > > > > > > > > I could upgrade the old 14.04 to 16.04 first to comply with the > > > linked > > > > > > instructions. (But note that those are from 2010.) If I ignore > > this > > > > > little > > > > > > complication I worry that things will break badly. Matching the > > > > versions > > > > > > is not a huge pain. > > > > > > > > > > > > I do not see that cp requires special handling for . files. > True? > > > > > > > > > > > > On Sat, Sep 9, 2017 at 2:26 PM, Rich Shepard < > > > rshep...@appl-ecosys.com > > > > > > > > > > > wrote: > > > > > > > > > > > > > On Sat, 9 Sep 2017, Denis Heidtmann wrote: > > > > > > > > > > > > > > > Would rsync make my first question moot? > > > > > > > > > > > > > > Denis. > > > > > > > > >
[PLUG] clone old home to new machine home
OK. What I used when I copied my home folders/files to the external drive was cp -pR . /media/household/oldhome. What was copied were all folders and files, recursively. So instead of using the dot to indicate that the source is the current folder (which was /home/household) I had used * I would get no dot files or folders at the top level but all dot and regular files and folders below the top level. But what I did is fine for copying to the external drive. They are all available if needed. Now you say avoiding the top level dot folders and files is what I should do. >From the top level in the external drive I execute cp -pR * /home/household/ should do this. Does the presence or absence of the / after household matter? Thanks so much for your patience. -Denis On Sun, Sep 10, 2017 at 10:16 AM, Tomas Kuchtawrote: > No it will not. > > * Is for all files and directories, exclusive of dot files. Dot files might > be included in the subdirectories, but that does not matter when you are in > home. > > If you would want to address dot files, you would have to say: .* > > > > On Sep 10, 2017 8:19 AM, "Denis Heidtmann" > wrote: > > > cp -pr * /home/household/ will bring all the dot folders in > > /home/household, numbering about 24 dot folders and 19 dot files. The > > exclude option in rsync will do it when I can figure out how to write the > > PATTERN --exclude requires. The shell gets first shot at it. > > > > On Sat, Sep 9, 2017 at 10:35 PM, Tomas Kuchta < > > tomas.kuchta.li...@gmail.com> > > wrote: > > > > > Just copy back (or restore) your data only. Surely you know what and > > where > > > you have it: Documents, Videos, Music, etc. Re-install is always an > > > opportunity to clean up and organize old suff. > > > > > > Alternatively, you could copy everything, but the dot files preserving > > > chaos. :-) > > > cd toYourBackupDirectory > > > cp -pr * /home/$USER/ > > > > > > This will copy all your old (non-dot) files and directories to your new > > > home. > > > I forgot the name for your username, hence the $USER variable. > > > > > > If you prefer rsync, the command woul look this way: > > > rsync -a --progress * /home/$USER/ > > > > > > Hope it helps, > > > Tomas > > > > > > > > > On Sep 9, 2017 9:59 PM, "Denis Heidtmann" > > > wrote: > > > > > > Tomas, > > > > > > Thanks for the advice. Avoiding the . files sounds safest. I can have > > them > > > available if it looks like I need what is in them in particular cases. > > Now > > > I need to understand how to avoid including them. I do not see that cp > > > offers that, but perhaps rsync does. > > > > > > -Denis > > > > > > On Sat, Sep 9, 2017 at 9:41 PM, Tomas Kuchta < > > tomas.kuchta.li...@gmail.com > > > > > > > wrote: > > > > > > > I would avoid copying files and directories starting with . Unless I > > know > > > > why I want the old file/directory. Example of what to copy over > > .Mozilla > > > if > > > > you want your old browser config or emails Would try to avoid > > > > kde/gnome/config files and directories, unless I need some of them. > > > > > > > > Tomas > > > > > > > > > > > > > > > > On Sep 9, 2017 6:55 PM, "Denis Heidtmann" > > > > > wrote: > > > > > > > > > It occurs to me that the source being 14.04 and the target being > > 16.04 > > > is > > > > > likely a complications. See > > > > > http://eggsonbread.com/2010/01/28/move-ubuntu-to-another- > > > > > computer-in-3-simple-steps/ > > > > > > > > > > I could upgrade the old 14.04 to 16.04 first to comply with the > > linked > > > > > instructions. (But note that those are from 2010.) If I ignore > this > > > > little > > > > > complication I worry that things will break badly. Matching the > > > versions > > > > > is not a huge pain. > > > > > > > > > > I do not see that cp requires special handling for . files. True? > > > > > > > > > > On Sat, Sep 9, 2017 at 2:26 PM, Rich Shepard < > > rshep...@appl-ecosys.com > > > > > > > > > wrote: > > > > > > > > > > > On Sat, 9 Sep 2017, Denis Heidtmann wrote: > > > > > > > > > > > > > Would rsync make my first question moot? > > > > > > > > > > > > Denis. > > > > > > > > > > > >Perhaps. Read the rsync man page to better understand it. > > Briefly, > > > > > rsync > > > > > > will compare the same file name on source and target and copy the > > > > former > > > > > > version over the latter version if the source is newer. If there > > are > > > > > files > > > > > > on the source that are not on the target, rsync will copy the > > source > > > to > > > > > the > > > > > > target so both directories have the latest version of all files. > > > > > > > > > > > >Be aware, however, that specifying the source directory only > > > regular > > > > > > files > > > > > > and subdirectories are examined and synchronized; e.g., if the > > source > > > > ~/ > > > > > is > > > > > > the pwd, 'rsync *
[PLUG] Please God have someone change the subject. cloning old home tree
I am sorry, Michael. Until a couple of days ago I would get messages from PLUG. On Topic and Respectful, or something like that. Now all I am getting is the digest, and I am not accustomed to having to change the subject. Is there a way to get back to the usual behavior? -Denis On Sun, Sep 10, 2017 at 12:38 PM, Michael Rasmussenwrote: > > On 2017-09-09 12:18, David Phillips wrote: > > Why not use rsync to dupe the data? > > > > > >> On Sep 9, 2017, at 12:00 PM, plug-requ...@lists.pdxlinux.org wrote: > >> > >> Send PLUG mailing list submissions to > >> plug@lists.pdxlinux.org > >> > >> To subscribe or unsubscribe via the World Wide Web, visit > >> http://lists.pdxlinux.org/mailman/listinfo/plug > >> or, via email, send a message with subject or body 'help' to > >> plug-requ...@lists.pdxlinux.org > >> > >> You can reach the person managing the list at > >> plug-ow...@lists.pdxlinux.org > >> > >> When replying, please edit your Subject line so it is more specific > >> than "Re: Contents of PLUG digest..." > >> > >> > >> Today's Topics: > >> > >> 1. Old home xfer to new? (Denis Heidtmann) > >> > >> > >> -- > >> > >> Message: 1 > >> Date: Fri, 8 Sep 2017 17:05:36 -0700 > >> From: Denis Heidtmann > >> Subject: [PLUG] Old home xfer to new? > >> To: "General Linux/UNIX discussion and help, civil and on-topic" > >> > >> Message-ID: > >> mail.gmail.com> > >> Content-Type: text/plain; charset="UTF-8" > >> > >> I hopefully have what is needed to put what is in home on my old > >> machine > >> into the new machine. I have an external drive into which I > >> transferred > >> using cp -R the contents of home. (I believe the uid is the same on > >> both > >> machines: 1000 > >> > >> The new machine home folder is /home/household which has about 35 > >> items in > >> it--11 "dot" files, 13 "dot" folders, and 8 other folders and 1 file. > >> With > >> only a couple of exceptions these were created when installing Ubuntu > >> 16.04. > >> > >> The old machine home folder has about 85 items in it. It is a 14.04 > >> machine. > >> > >> On the external drive resides those 85 items + the folders below. > >> They > >> need to go into /home/household on the new machine. > >> > >> Two questions: > >> > >> Many of the system folders/files on the two machines have the same > >> names, > >> as do the sub-folders. How do I decide which to use: those from the > >> old or > >> those from the new? (This strikes me as an opportunity to break some > >> stuff > >> either way.) > >> > >> What cp command do I use to transfer the files so that they end up in > >> the > >> /home/household folder? (I was surprised that when transferring the > >> data I > >> did not end up with a top folder called household.) > >> > >> Thanks, > >> -Denis > >> > >> > >> -- > >> > >> ___ > >> PLUG: http://pdxlinux.org > >> PLUG mailing list > >> PLUG@lists.pdxlinux.org > >> http://lists.pdxlinux.org/mailman/listinfo/plug > >> > >> > >> End of PLUG Digest, Vol 156, Issue 17 > >> * > >> > > > > ___ > > PLUG mailing list > > PLUG@lists.pdxlinux.org > > http://lists.pdxlinux.org/mailman/listinfo/plug > > -- >Michael Rasmussen, Portland Oregon > Be Appropriate && Follow Your Curiosity > ___ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] PLUG Digest, Vol 156, Issue 17 - Please God have someone change the subject. cloning old home tree
On 2017-09-09 12:18, David Phillips wrote: > Why not use rsync to dupe the data? > > >> On Sep 9, 2017, at 12:00 PM, plug-requ...@lists.pdxlinux.org wrote: >> >> Send PLUG mailing list submissions to >> plug@lists.pdxlinux.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.pdxlinux.org/mailman/listinfo/plug >> or, via email, send a message with subject or body 'help' to >> plug-requ...@lists.pdxlinux.org >> >> You can reach the person managing the list at >> plug-ow...@lists.pdxlinux.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of PLUG digest..." >> >> >> Today's Topics: >> >> 1. Old home xfer to new? (Denis Heidtmann) >> >> >> -- >> >> Message: 1 >> Date: Fri, 8 Sep 2017 17:05:36 -0700 >> From: Denis Heidtmann>> Subject: [PLUG] Old home xfer to new? >> To: "General Linux/UNIX discussion and help, civil and on-topic" >> >> Message-ID: >> >> Content-Type: text/plain; charset="UTF-8" >> >> I hopefully have what is needed to put what is in home on my old >> machine >> into the new machine. I have an external drive into which I >> transferred >> using cp -R the contents of home. (I believe the uid is the same on >> both >> machines: 1000 >> >> The new machine home folder is /home/household which has about 35 >> items in >> it--11 "dot" files, 13 "dot" folders, and 8 other folders and 1 file. >> With >> only a couple of exceptions these were created when installing Ubuntu >> 16.04. >> >> The old machine home folder has about 85 items in it. It is a 14.04 >> machine. >> >> On the external drive resides those 85 items + the folders below. >> They >> need to go into /home/household on the new machine. >> >> Two questions: >> >> Many of the system folders/files on the two machines have the same >> names, >> as do the sub-folders. How do I decide which to use: those from the >> old or >> those from the new? (This strikes me as an opportunity to break some >> stuff >> either way.) >> >> What cp command do I use to transfer the files so that they end up in >> the >> /home/household folder? (I was surprised that when transferring the >> data I >> did not end up with a top folder called household.) >> >> Thanks, >> -Denis >> >> >> -- >> >> ___ >> PLUG: http://pdxlinux.org >> PLUG mailing list >> PLUG@lists.pdxlinux.org >> http://lists.pdxlinux.org/mailman/listinfo/plug >> >> >> End of PLUG Digest, Vol 156, Issue 17 >> * >> > > ___ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug -- Michael Rasmussen, Portland Oregon Be Appropriate && Follow Your Curiosity ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] PLUG Digest, Vol 156, Issue 17
No it will not. * Is for all files and directories, exclusive of dot files. Dot files might be included in the subdirectories, but that does not matter when you are in home. If you would want to address dot files, you would have to say: .* On Sep 10, 2017 8:19 AM, "Denis Heidtmann"wrote: > cp -pr * /home/household/ will bring all the dot folders in > /home/household, numbering about 24 dot folders and 19 dot files. The > exclude option in rsync will do it when I can figure out how to write the > PATTERN --exclude requires. The shell gets first shot at it. > > On Sat, Sep 9, 2017 at 10:35 PM, Tomas Kuchta < > tomas.kuchta.li...@gmail.com> > wrote: > > > Just copy back (or restore) your data only. Surely you know what and > where > > you have it: Documents, Videos, Music, etc. Re-install is always an > > opportunity to clean up and organize old suff. > > > > Alternatively, you could copy everything, but the dot files preserving > > chaos. :-) > > cd toYourBackupDirectory > > cp -pr * /home/$USER/ > > > > This will copy all your old (non-dot) files and directories to your new > > home. > > I forgot the name for your username, hence the $USER variable. > > > > If you prefer rsync, the command woul look this way: > > rsync -a --progress * /home/$USER/ > > > > Hope it helps, > > Tomas > > > > > > On Sep 9, 2017 9:59 PM, "Denis Heidtmann" > > wrote: > > > > Tomas, > > > > Thanks for the advice. Avoiding the . files sounds safest. I can have > them > > available if it looks like I need what is in them in particular cases. > Now > > I need to understand how to avoid including them. I do not see that cp > > offers that, but perhaps rsync does. > > > > -Denis > > > > On Sat, Sep 9, 2017 at 9:41 PM, Tomas Kuchta < > tomas.kuchta.li...@gmail.com > > > > > wrote: > > > > > I would avoid copying files and directories starting with . Unless I > know > > > why I want the old file/directory. Example of what to copy over > .Mozilla > > if > > > you want your old browser config or emails Would try to avoid > > > kde/gnome/config files and directories, unless I need some of them. > > > > > > Tomas > > > > > > > > > > > > On Sep 9, 2017 6:55 PM, "Denis Heidtmann" > > > wrote: > > > > > > > It occurs to me that the source being 14.04 and the target being > 16.04 > > is > > > > likely a complications. See > > > > http://eggsonbread.com/2010/01/28/move-ubuntu-to-another- > > > > computer-in-3-simple-steps/ > > > > > > > > I could upgrade the old 14.04 to 16.04 first to comply with the > linked > > > > instructions. (But note that those are from 2010.) If I ignore this > > > little > > > > complication I worry that things will break badly. Matching the > > versions > > > > is not a huge pain. > > > > > > > > I do not see that cp requires special handling for . files. True? > > > > > > > > On Sat, Sep 9, 2017 at 2:26 PM, Rich Shepard < > rshep...@appl-ecosys.com > > > > > > > wrote: > > > > > > > > > On Sat, 9 Sep 2017, Denis Heidtmann wrote: > > > > > > > > > > > Would rsync make my first question moot? > > > > > > > > > > Denis. > > > > > > > > > >Perhaps. Read the rsync man page to better understand it. > Briefly, > > > > rsync > > > > > will compare the same file name on source and target and copy the > > > former > > > > > version over the latter version if the source is newer. If there > are > > > > files > > > > > on the source that are not on the target, rsync will copy the > source > > to > > > > the > > > > > target so both directories have the latest version of all files. > > > > > > > > > >Be aware, however, that specifying the source directory only > > regular > > > > > files > > > > > and subdirectories are examined and synchronized; e.g., if the > source > > > ~/ > > > > is > > > > > the pwd, 'rsync * target/home/me/'; if the pwd is your target > > > directory, > > > > > 'rsync source/home/me/ .'. To synchronize the dot files you need to > > > > specify > > > > > '.*' to indicate all dot files instead of '*' to specify all normal > > > > files. > > > > > I > > > > > got caught once by thinking that '*' copied dot files, too. It > don't. > > > > > > > > > > Rich > > > > > > > > > > ___ > > > > > PLUG mailing list > > > > > PLUG@lists.pdxlinux.org > > > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > > > > > ___ > > > > PLUG mailing list > > > > PLUG@lists.pdxlinux.org > > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > > > ___ > > > PLUG mailing list > > > PLUG@lists.pdxlinux.org > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > ___ > > PLUG mailing list > > PLUG@lists.pdxlinux.org > > http://lists.pdxlinux.org/mailman/listinfo/plug > > ___ > > PLUG
Re: [PLUG] PLUG Digest, Vol 156, Issue 17
On Sun, 10 Sep 2017 08:17:56 -0700 Denis Heidtmanndijo: >cp -pr * /home/household/ will bring all the dot folders in >/home/household, numbering about 24 dot folders and 19 dot files. The >exclude option in rsync will do it when I can figure out how to write >the PATTERN --exclude requires. The shell gets first shot at it. Here is the command that I use to back up the folder /Movies on a USB drive to my Synology network drive: rsync -rptog --progress --stats --delete --exclude-from=/media/jjj/Movies/rsync_exclusions /media/jjj/Movies/ /media/jjj/Synology I added the --delete option because I want the network drive to be a mirror of the USB drive, so if I delete anything from the USB drive I want it deleted from the Synology as well. The --progress and --stats options just give me reports of what rsync is doing / did and are not necessary for the successful operation of the command. Note that my command uses --exclude-from rather than just --exclude, where I have a text file to tell rsync not to include certain files and folders. ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] PLUG Digest, Vol 156, Issue 17
cp -pr * /home/household/ will bring all the dot folders in /home/household, numbering about 24 dot folders and 19 dot files. The exclude option in rsync will do it when I can figure out how to write the PATTERN --exclude requires. The shell gets first shot at it. On Sat, Sep 9, 2017 at 10:35 PM, Tomas Kuchtawrote: > Just copy back (or restore) your data only. Surely you know what and where > you have it: Documents, Videos, Music, etc. Re-install is always an > opportunity to clean up and organize old suff. > > Alternatively, you could copy everything, but the dot files preserving > chaos. :-) > cd toYourBackupDirectory > cp -pr * /home/$USER/ > > This will copy all your old (non-dot) files and directories to your new > home. > I forgot the name for your username, hence the $USER variable. > > If you prefer rsync, the command woul look this way: > rsync -a --progress * /home/$USER/ > > Hope it helps, > Tomas > > > On Sep 9, 2017 9:59 PM, "Denis Heidtmann" > wrote: > > Tomas, > > Thanks for the advice. Avoiding the . files sounds safest. I can have them > available if it looks like I need what is in them in particular cases. Now > I need to understand how to avoid including them. I do not see that cp > offers that, but perhaps rsync does. > > -Denis > > On Sat, Sep 9, 2017 at 9:41 PM, Tomas Kuchta > > wrote: > > > I would avoid copying files and directories starting with . Unless I know > > why I want the old file/directory. Example of what to copy over .Mozilla > if > > you want your old browser config or emails Would try to avoid > > kde/gnome/config files and directories, unless I need some of them. > > > > Tomas > > > > > > > > On Sep 9, 2017 6:55 PM, "Denis Heidtmann" > > wrote: > > > > > It occurs to me that the source being 14.04 and the target being 16.04 > is > > > likely a complications. See > > > http://eggsonbread.com/2010/01/28/move-ubuntu-to-another- > > > computer-in-3-simple-steps/ > > > > > > I could upgrade the old 14.04 to 16.04 first to comply with the linked > > > instructions. (But note that those are from 2010.) If I ignore this > > little > > > complication I worry that things will break badly. Matching the > versions > > > is not a huge pain. > > > > > > I do not see that cp requires special handling for . files. True? > > > > > > On Sat, Sep 9, 2017 at 2:26 PM, Rich Shepard > > > > wrote: > > > > > > > On Sat, 9 Sep 2017, Denis Heidtmann wrote: > > > > > > > > > Would rsync make my first question moot? > > > > > > > > Denis. > > > > > > > >Perhaps. Read the rsync man page to better understand it. Briefly, > > > rsync > > > > will compare the same file name on source and target and copy the > > former > > > > version over the latter version if the source is newer. If there are > > > files > > > > on the source that are not on the target, rsync will copy the source > to > > > the > > > > target so both directories have the latest version of all files. > > > > > > > >Be aware, however, that specifying the source directory only > regular > > > > files > > > > and subdirectories are examined and synchronized; e.g., if the source > > ~/ > > > is > > > > the pwd, 'rsync * target/home/me/'; if the pwd is your target > > directory, > > > > 'rsync source/home/me/ .'. To synchronize the dot files you need to > > > specify > > > > '.*' to indicate all dot files instead of '*' to specify all normal > > > files. > > > > I > > > > got caught once by thinking that '*' copied dot files, too. It don't. > > > > > > > > Rich > > > > > > > > ___ > > > > PLUG mailing list > > > > PLUG@lists.pdxlinux.org > > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > > > ___ > > > PLUG mailing list > > > PLUG@lists.pdxlinux.org > > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > > > ___ > > PLUG mailing list > > PLUG@lists.pdxlinux.org > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > ___ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug