|
apropos man posted:If I try and copy a scrap file into /opt on my laptop it won't allow me without sudo, so why was scp allowed to do it? Likely different permissions on /opt on your server vs. a difference in scp.
|
# ? Feb 19, 2017 14:45 |
|
|
# ? May 30, 2024 12:15 |
|
apropos man posted:Bingo! Although I haven't got a clue how the syntax works here. When I see a regex I want to use I usually copy and paste and think "I dunno how it works, but it works". Cheers! The regex is whatever is between the / marks, which in this case is just the string "magnet". So not much of a regex . Then the d at the end means "Delete whatever lines matched this".
|
# ? Feb 19, 2017 15:41 |
|
evol262 posted:Sure. Set up a docker container with whatever base image you want, add on dependencies (ruby/Python/whatever). Check out the git repo. Install nginx. Start the webserver and export the port. Great! If I can avoid using up the space a full vm would need then I'm all for it.
|
# ? Feb 19, 2017 18:00 |
|
There's suddenly a lot of bash frameworks floating around. How do they compare to oh-my-zsh or prezto? I really like both of those zsh options, but the performance on each one sucks in a different way.
|
# ? Feb 20, 2017 16:14 |
|
drat that's eye opening. I had no idea that universe existed. And I'm not sure I like it. I mean I can see the value of making scripting easier, but a major benefit of shell scripts is they have no dependencies. Making a framework a dependency for basic server administration seems like it could be risky.
|
# ? Feb 20, 2017 16:33 |
|
xzzy posted:drat that's eye opening. I had no idea that universe existed.
|
# ? Feb 20, 2017 17:18 |
|
Vulture Culture posted:There's suddenly a lot of bash frameworks floating around. How do they compare to oh-my-zsh or prezto? I really like both of those zsh options, but the performance on each one sucks in a different way. You could always try something like Antigen or ZGen. There's no shortage of zsh configuration managers designed to provide the benefits of OMZ without the performance hit. Although depending on what you use, some performance degradation may be unavoidable; syntax hilighting, for example, is going to noticeably slow things down (especially pasting large amounts of code into the terminal) no matter what you use to load it.
|
# ? Feb 20, 2017 17:30 |
Vulture Culture posted:There's suddenly a lot of bash frameworks floating around. How do they compare to oh-my-zsh or prezto? I really like both of those zsh options, but the performance on each one sucks in a different way. People seem to really love fish shell. Try that out and then come back here with a trip report!
|
|
# ? Feb 21, 2017 06:02 |
|
What actually is emacs and is it worth learning? Every time I do some digging all I find is basic editing features and org mode todo lists, but some people talk about it like it's an OS in the OS or some crazy poo poo like that.
|
# ? Feb 22, 2017 15:08 |
|
Robo Reagan posted:What actually is emacs and is it worth learning? Every time I do some digging all I find is basic editing features and org mode todo lists, but some people talk about it like it's an OS in the OS or some crazy poo poo like that. You should learn vi instead.
|
# ? Feb 22, 2017 15:29 |
|
emacs is a text editor where some programmer decided it should be able to to everything and spent 40 years hacking features into it.
|
# ? Feb 22, 2017 15:33 |
|
spacemacs is pretty bananas but I ended up with vim and 240 distinct plugins instead
|
# ? Feb 22, 2017 15:55 |
|
Robo Reagan posted:What actually is emacs and is it worth learning? I"d recommend learning Vim. If you're going to put in the time to learn an antiquated and unintuitive text editor, Vim ends up being much more productive in the end.
|
# ? Feb 22, 2017 16:11 |
|
Robo Reagan posted:What actually is emacs and is it worth learning? Every time I do some digging all I find is basic editing features and org mode todo lists, but some people talk about it like it's an OS in the OS or some crazy poo poo like that. it's a text editor. what are you trying to do? sure you can do email/irc/tetris with it but there's zero reason to pick it up with the intent of using it for something other than editing text I'd say open each one up (emacs is a gui application, do not open it in the terminal unless your computer is a terminal), figure out how to move around by single characters then words then chunks of text, split windows and navigate between them, open up the built in help, and one of them should grab your fancy by then. anyone mentioning program size or how things were in the 80s or graphics is just repeating what they read on wikipedia/reddit
|
# ? Feb 22, 2017 17:39 |
|
Robo Reagan posted:What actually is emacs and is it worth learning? Every time I do some digging all I find is basic editing features and org mode todo lists, but some people talk about it like it's an OS in the OS or some crazy poo poo like that. My second programming course in university used Scheme language with emacs. As my final exercise of the course I created a Core Wars game with GUI that ran inside emacs. So I guess it is an operating system. It used some XDRAW extension for the graphics that I haven't found any information about and I have no idea what it would require to make it work anymore.
|
# ? Feb 22, 2017 19:30 |
|
http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00515.html
|
# ? Feb 22, 2017 20:56 |
|
quote:I think LibreOffice is a pretty good model for WYSIWYG, apart from not being Emacs. owns
|
# ? Feb 22, 2017 23:01 |
|
I'm looking at getting a new laptop. Is there anything I need to consider as far as installing linux is concerned? I haven't looked at hardware since I got this in 2011, so I don't know if there are any bad combos of things that would make problems for linux. I apologize if this is the wrong place to ask, but the Laptop megathread seems to be geared toward windows.
|
# ? Feb 23, 2017 01:27 |
|
mwdan posted:I'm looking at getting a new laptop. Is there anything I need to consider as far as installing linux is concerned? I haven't looked at hardware since I got this in 2011, so I don't know if there are any bad combos of things that would make problems for linux. Buy something with as many Intel components as possible. HiDPI support still isn't perfect on any hardware, but it's decent. All the major big players make Linux compatible laptops. You can even buy a Dell XPS13 with Linux pre-installed.
|
# ? Feb 23, 2017 01:36 |
|
I'll have to check out manufacturer's websites then, I didn't see anything that said "Designed for Linux" or had it as an OS option on sites like Amazon or Best Buy. Thanks !
|
# ? Feb 23, 2017 01:45 |
mwdan posted:I'm looking at getting a new laptop. Is there anything I need to consider as far as installing linux is concerned? I haven't looked at hardware since I got this in 2011, so I don't know if there are any bad combos of things that would make problems for linux. I speak from experience when I say absolutely do not get one with AMD switchable graphics if you're planning on actually using the discrete card with Linux.
|
|
# ? Feb 23, 2017 01:50 |
|
There is a specific common wifi vendor with lovely linux support, isn't there? If your laptop doesn't have intel wifi...
|
# ? Feb 23, 2017 01:58 |
other people posted:There is a specific common wifi vendor with lovely linux support, isn't there? If your laptop doesn't have intel wifi... You're right, and that vendor is Broadcom. Usually if the driver you need isn't built in with your kernel you can usually grab it from their site and compile it but it's still super annoying.
|
|
# ? Feb 23, 2017 02:06 |
|
whomupclicklike posted:You're right, and that vendor is Broadcom. Usually if the driver you need isn't built in with your kernel you can usually grab it from their site and compile it but it's still super annoying. And Broadcom is super common.
|
# ? Feb 23, 2017 04:46 |
RFC2324 posted:And Broadcom is super common. Broadcommon, if you will.
|
|
# ? Feb 23, 2017 04:48 |
|
This might be a silly question but here goes: one of the computers I'm using has gcc v4.8 with appropriate openmpi and blas libraries. I now need gcc v4.9 to build a newer version of the library I'm using. Do I need to build a new version of openmpi and blas with the new version of gcc or can I just use the existing ones?
|
# ? Feb 23, 2017 16:58 |
|
Boris Galerkin posted:This might be a silly question but here goes: one of the computers I'm using has gcc v4.8 with appropriate openmpi and blas libraries. I now need gcc v4.9 to build a newer version of the library I'm using. Do I need to build a new version of openmpi and blas with the new version of gcc or can I just use the existing ones?
|
# ? Feb 23, 2017 18:13 |
|
I'm going to try my hand at using Linux again, as a hobbyist. I'd like to build a solid foundation of knowledge this time, instead of blindly pasting commands into the terminal. How is the http://www.linuxfromscratch.org regarded? Is it worthwhile reading the book and walking through the steps?
|
# ? Feb 24, 2017 00:46 |
|
Hughmoris posted:I'm going to try my hand at using Linux again, as a hobbyist. I'd like to build a solid foundation of knowledge this time, instead of blindly pasting commands into the terminal. You'll learn very little practical knowledge from doing this. You're much better to pick a project and try and implement it. E.g. work out how to build a simple lamp stack and setup wordpress, set up a file server, learn about virtualisation, provision a stack using configuration management .....
|
# ? Feb 24, 2017 00:50 |
|
No one builds software anymore, it's all software config these days. If you really insist on getting your hands dirty do one of the more bare installs like arch or slackware or something. Otherwise just pick one of the big ones like Ubuntu or one of the RedHat versions.
|
# ? Feb 24, 2017 00:58 |
|
Blindly copying things from the LFS/Gentoo documentation or Arch wiki won't really teach you anything either. Do real things, as above. 99% of people have no real need to know the "guts" of Linux to do productive things with it in 2017, including development. Otherwise, install whatever, set up KVM, and put a BSD on (which have great "core" documentation and absolutely no info about how to do much else) a VM, and almost all of it is broadly applicable to the way the "guts" of Linux work. Except you're forced to learn it to do anything.
|
# ? Feb 24, 2017 01:52 |
|
Learn what's in /bin and /sbin. You'll be good to go for every basic Linux job.
|
# ? Feb 24, 2017 04:43 |
|
Nothing?
|
# ? Feb 24, 2017 05:26 |
|
Thanks for the advice. I installed Virtualbox and then Ubuntu, so I'm fiddling with that now. I have my first rookie question... I dabble in Perl, and want to install Perlbrew. The website says to run this command to install: code:
code:
|
# ? Feb 24, 2017 05:51 |
|
Hughmoris posted:Thanks for the advice. I installed Virtualbox and then Ubuntu, so I'm fiddling with that now. I have my first rookie question...
|
# ? Feb 24, 2017 05:56 |
|
curl | bash is also fine if 1) https 2) you trust the source It's literally no worse than installing a package you download, people like to out about it, as if it's some revelation that you're running code you Downloaded! From The Internet! (!!!) Hughmoris posted:Thanks for the advice. I installed Virtualbox and then Ubuntu, so I'm fiddling with that now. I have my first rookie question... specifically to redirect the output to a file, you want to redirect the output, not pipe it so: curl https://url > file not: curl https://url | file (this would try to execute 'file', and I mean that literally, not generally) Mao Zedong Thot fucked around with this message at 07:54 on Feb 24, 2017 |
# ? Feb 24, 2017 07:51 |
|
Vulture Culture posted:There's a lot of room for things to go wrong in the details, but between 4.8 and 4.9 it should work fine. If I understand versioning numbers right... in theory 4.9 should be fully compatible with 4.8 but might have new features that 4.8 doesn't, right?
|
# ? Feb 24, 2017 08:21 |
|
VOTE YES ON 69 posted:curl | bash is also fine if 1) https 2) you trust the source
|
# ? Feb 24, 2017 08:37 |
|
Theoretically, a source you trust wouldn't do that. Just like you wouldn't expect redhat or debian to put malicious stuff in their signed packages. They could, but you trust them not to. Same goes for a file on a website. As long as you don't have some sort of man-in-the-middle thing going on.
|
# ? Feb 24, 2017 09:36 |
|
|
# ? May 30, 2024 12:15 |
|
Boris Galerkin posted:If I understand versioning numbers right... in theory 4.9 should be fully compatible with 4.8 but might have new features that 4.8 doesn't, right? Mr. Fix It posted:Theoretically, a source you trust wouldn't do that. Just like you wouldn't expect redhat or debian to put malicious stuff in their signed packages. They could, but you trust them not to. Same goes for a file on a website. As long as you don't have some sort of man-in-the-middle thing going on. The more pressing, realer problem is when you copy and paste that information, because it's very easy to inject hidden text into what you're copying into your clipboard even if you've reviewed the visible text character by character. Vulture Culture fucked around with this message at 15:25 on Feb 24, 2017 |
# ? Feb 24, 2017 15:19 |