VictualSquid posted:That reminds me: While cleaning up I found a simple sed script that I used to use to help organize some :files: back then. VostokProgram posted:Emacs is great, I don't use it as much anymore but it was my main editor for a while It's a shame about the lack of a good editor. RFC2324 posted:vi(m) is the default editor that exists on basically every unix-like system in existence. if you are gonna janitor servers, you need to know it. Unless, of course, you're a (t)csh user, because it uses vi line editing - which isn't really very surprising. waffle iron posted:I do all my coding in cat and output redirection. Jokes aside, I found it pretty useful to at least know how to use ed enough to rescue a system, which got had its termcap (terminfo-equivalent for Linux users) blown up by someone who probably shouldn't have had superuser access, without bringing the system down for maintainable.
|
|
# ? Oct 19, 2021 12:09 |
|
|
# ? Jun 6, 2024 20:31 |
|
Am I the only dude who still uses Sublime?
|
# ? Oct 19, 2021 13:18 |
|
BlankSystemDaemon posted:Real system operators use ed. But the one time I almost needed it, ed wasn't actually installed. The gentoo minimal install (of 15 years ago) didn't come with either ed or vi. It had nano instead.
|
# ? Oct 19, 2021 13:45 |
|
Bob Morales posted:Am I the only dude who still uses Sublime? I use it every day for work.
|
# ? Oct 19, 2021 14:51 |
|
drunken officeparty posted:Please tell me these are relics of the late 80s and nobody actually uses these anymore.
|
# ? Oct 19, 2021 15:19 |
|
The other nice thing about using the same tools for decades is they never really go obsolete. Are Eclipse, Sublime, whatever obsolete now? I don't know, never used them.
|
# ? Oct 19, 2021 15:29 |
VictualSquid posted:I once learned the basics of ed to win a bet. It is pretty easy if you are already up on vi and regex. So the Gentoo minimal installation is not POSIX compatible? BlankSystemDaemon fucked around with this message at 15:47 on Oct 19, 2021 |
|
# ? Oct 19, 2021 15:43 |
|
Gentoo minimum installation has always been... Creatively non-standard in some way. Its part of the challenge. Gentoo is linux hardmode
|
# ? Oct 19, 2021 18:03 |
|
Mr. Crow posted:I had to lookup what this means is this still what people do? Whats the use-case that ansible or some other configuration management tool doesn't do better? Look at this guy using automation like his infrastructure isn't built on decades of tech debt and cruft. I do what I can with what I have. Automation is coming, but I've got to fix everything else first. In any case, I think I've settled on MobaXTerm for the time being. It seems to do everything I want and it's not crazy expensive. Thanks for the advice everyone.
|
# ? Oct 19, 2021 18:33 |
Speaking of shells (or not, as the case may be): FreeBSD switched the default shell for root to be /bin/sh.
|
|
# ? Oct 20, 2021 09:59 |
|
I was asked in an interview about my preferred editor and I almost reported them to the EEOC for asking about religion. vim is the correct answer.
|
# ? Oct 20, 2021 14:40 |
|
Its so nice to see that the editor wars are finally over And emacs so resoundingly lost
|
# ? Oct 20, 2021 16:52 |
|
I use sublime for most text related stuff, nano on the command line, and an IDE (phpstorm) to do actual work I hate vim and found emacs way over my head when I tried it decades ago
|
# ? Oct 20, 2021 17:07 |
|
Bob Morales posted:Am I the only dude who still uses Sublime? Kinda regret renewing my key for ST4 but yeah I still use it. Day job big project coding I've switched back to Vim for since I'm already in the terminal all day for that. But Sublime's my default GUI text editor, it's still nice for quick edits. May as well make use of the license.
|
# ? Oct 20, 2021 17:28 |
Atom is my usual go-to GUI text editor, though I sometimes use Visual Studio Code. Atom's got pretty much all the plugins I need though. I rarely use the command line editor if I can avoid it, so it's not worth it to install a new one. I usually just stick with whatever the distro ships with, usually Nano.
|
|
# ? Oct 20, 2021 18:18 |
|
For GUI I use sublime text on my work mac, and on the rare occasion I find myself on a Linux GUI I favor Kate.
|
# ? Oct 20, 2021 18:26 |
|
Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? Why would you do that to yourself? To look like a CSI hacker mashing away on the keyboard?
|
# ? Oct 20, 2021 18:31 |
|
drunken officeparty posted:Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? Why would you do that to yourself? To look like a CSI hacker mashing away on the keyboard? Why not Methanar posted:Here's what typical vim use looks like. good luck
|
# ? Oct 20, 2021 18:35 |
|
drunken officeparty posted:Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? Why would you do that to yourself? To look like a CSI hacker mashing away on the keyboard? What do you think people use it for
|
# ? Oct 20, 2021 18:46 |
|
When I need to edit a text file, I use vim. Linux administration involves many text files because the system is configured with text files. Though these days I edit those config files less, and do more work writing puppet manifests to edit the config files for me. I still do all that in vim.
|
# ? Oct 20, 2021 18:55 |
|
Bob Morales posted:What do you think people use it for I don’t know. That’s what I’m wondering. Like I don’t have a clue how to program. Can’t write a line of it in any language, don’t particularly want to learn. But compare that video posted to something like this https://www.youtube.com/watch?v=PGuxfdyaKJU drunken officeparty fucked around with this message at 19:28 on Oct 20, 2021 |
# ? Oct 20, 2021 18:56 |
drunken officeparty posted:Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? Why would you do that to yourself? To look like a CSI hacker mashing away on the keyboard? For example, the vast majority of code for the BSDs, from the late 70s and to now, has been written in vi(m) or emacs. Part of it is also just that an IDE is the antithesis of the old Unix philosophy of doing one thing and doing it well. Using vi(m), (BSD)make (and /usr/share/mk), LLVM, kyau/ATF, git, ctags, and cscope gets you basically everything that an IDE can do. As an example, here's a FreeBSD committer working on some stuff: https://www.youtube.com/watch?v=5tF8tT0DIi4 BlankSystemDaemon fucked around with this message at 19:09 on Oct 20, 2021 |
|
# ? Oct 20, 2021 18:58 |
|
drunken officeparty posted:Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? Why would you do that to yourself? To look like a CSI hacker mashing away on the keyboard? Vi is perfect for making small edits to config or script files. You install some new software, have to change a few lines and values, and vi is perfect for that. There are a few enormously effective commands, like ctrl-x crtl-f or cE or especially (embarrassingly):w !sudo tee %, that would need you to hunt supprisingly long to find an alternate editor. Especially because it works through a ssh login. For actual coding of large projects I use an ide. Now you can turn vi into an ide using plug-ins and settings, but it is surprisingly system dependent in my experience and not really worth the trouble. I did write my master's thesis in vi and loved things like the fold system, which is somehow superior to what more modern ides offer for some reason. But that was mostly because I wanted to use the same editor in linux at home and in solaris at uni. And I actually did most of the actual coding in matlab's official ide. And then there is vimdiff, which many people use despite not using vi otherwise. The question is more, what do you want to use instead? VictualSquid fucked around with this message at 19:16 on Oct 20, 2021 |
# ? Oct 20, 2021 19:14 |
|
drunken officeparty posted:Maybe I am misunderstanding what a person who’s job is using linux/vim actually does. Surely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? vim reduces the friction between intention and action, so I can work faster. If I want to move a line of code up 2 lines then I move the cursor there, hit dd to delete the line and copy it to the buffer, kk to move up 2 lines, and p to paste. Done in less than a second (and without moving my hands off the keyboard) and then I'm onto the next thing. Compare with a mouse-based IDE, where I'd (presumably) move my hand to the keyboard to the mouse, select the whole line, Ctrl-X, reposition the mouse at the start of the target, Ctrl-V, and then twiddle with any messed up newlines that were added/removed by mistake. Maybe 5 seconds if I'm fast. All this extra time not only adds up, it just feels worse; I'm spending time aiming a cursor, not thinking about what I want to do next.
|
# ? Oct 20, 2021 19:24 |
|
I never code fast enough for vim to be an improvement over normal keyboard shortcuts like pgup/pgdown, home/end, etc
|
# ? Oct 20, 2021 19:44 |
|
i do all my coding in notepad.exe running on wine
|
# ? Oct 20, 2021 19:58 |
|
MustardFacial posted:Look at this guy using automation like his infrastructure isn't built on decades of tech debt and cruft. Wasn't trying to be a dick. Ansible supports ad-hoc commands if you're not aware which might help you migrate towards a more modern architecture and avoid spending the money.
|
# ? Oct 20, 2021 20:38 |
|
minato posted:vim reduces the friction between intention and action, so I can work faster. If I want to move a line of code up 2 lines then I move the cursor there, hit dd to delete the line and copy it to the buffer, kk to move up 2 lines, and p to paste. Done in less than a second (and without moving my hands off the keyboard) and then I'm onto the next thing. I think every code editor made since like 2010 has had Alt+up/down arrow to move line(s) of text up and down
|
# ? Oct 20, 2021 20:50 |
|
drunken officeparty posted:urely you don’t mean that you are actually doing fully fledged programming, creating applications that people will use? drunken officeparty posted:Why would you do that to yourself? Realistically most large software projects involve as much debugging/editing of existing code as much as writing new code and VIM's modal interface is especially good at the former. Also, my primary desktops since 2014 have been Chromeboxes/Chromebooks and I do (and have always done) all programming over a terminal. This works well because my daily hardware is cheap, disposable, and easily replaceable. Also I can push fixes in a pinch over my phone. ExcessBLarg! fucked around with this message at 22:06 on Oct 20, 2021 |
# ? Oct 20, 2021 21:56 |
|
I would love to do fixes on my phone, if only someone would come out with an iOS client with kerberized ssh. I should probably set up an ssh gateway on my home lan where I can kinit to get access to work but that kind of irritates me. Am also pretty nervous about having ingress to my home network.
|
# ? Oct 20, 2021 22:10 |
|
It also depends on what kind of work you're doing. For moderately sized fullstacky web apps I've never found any IDE like Jetbrains particuarly better (in fact kind of worse) than just an editor + standard CLI tools. If I worked on some enterprise java.net monstrosity yeah okay. I don't even use that many plugins, LSP, fzf, and a few miscellaneous things. VostokProgram posted:I never code fast enough for vim to be an improvement over normal keyboard shortcuts like pgup/pgdown, home/end, etc New code? Maybe not. But I can refactor so much faster with just the basic vim-isms.
|
# ? Oct 20, 2021 22:53 |
|
whats the best tool for reading logs? I've been kinda digging the new journalctl stuff. the -u switch is pretty loving useful
|
# ? Oct 20, 2021 23:42 |
|
journalctl is fine, but it's slower than traditional /var/log/messages if the log is large and you want to jump to the newest entries. The -r option works around it, but it's kinda annoying the issue exists at all. Being able to filter with -u is pretty great, yes.
|
# ? Oct 20, 2021 23:55 |
|
decided to start messing around with linux again. last time i tried out antergos, kinda liked it but not enough to keep it going when it broke on me (so that didnt last long). i initially installed garuda (which is like a hyped up kinda bloated arch "for gaming" distro i guess?) on my laptop, but wasnt impressed. then i got the idea (from reading this thread a fair few pages back i think?) to try openSUSE tumbleweed. ive been an on-and-off linux user for many years, but only ever with debian. and more recently: arch based distros. i really like it. it might be the case that its the norm for stuff these days to be this stable and well functioning but i have yet to encounter an issue at all pretty much (non self-imposed issues). running kde wayland, spent a ton of time trying get a tiling wm kinda thing going (managed to do it with a kwin extension called bismuth), spent a lot of time getting up to date on how nvidia drivers for laptops work these days (it was very easy and pain-free, but it took me a coupe of hours to learn that it was), now im deep down a rabbit hole of getting proper fan control to work (which i now realize i want to try to automate in some way), all in service of the ultimate goal of running a game for like 10 minutes without overheating/throttling, just to see that it works, and then probably never touch a game ever again also, is it possible to use a bash script to control system functions like turning on/off a network adapter or disonnect/connect to a wifi network
|
# ? Oct 21, 2021 00:02 |
RFC2324 posted:whats the best tool for reading logs? being able to &pattern is such an eye-opener to anyone i've ever showed it to and -g is pretty helpful too
|
|
# ? Oct 21, 2021 00:15 |
|
I use most
|
# ? Oct 21, 2021 01:08 |
|
RFC2324 posted:whats the best tool for reading logs? git diff --no-index <(cat /var/log/kern.log) /dev/null
|
# ? Oct 21, 2021 01:26 |
|
minato posted:vim reduces the friction between intention and action, so I can work faster. If I want to move a line of code up 2 lines then I move the cursor there, hit dd to delete the line and copy it to the buffer, kk to move up 2 lines, and p to paste. Done in less than a second (and without moving my hands off the keyboard) and then I'm onto the next thing. Install vsvim (or whatever your IDE of choice vim extention is called). Best of both worlds.
|
# ? Oct 21, 2021 07:08 |
|
I've found vim emulation plugins are never good enough. They always seem to be missing something that make me go "eh gently caress it, back to vim". I suppose I could make PRs to add the functionality but to me, one of the main appeals of using a Not Vim is not having to janitor plugins.
|
# ? Oct 22, 2021 05:06 |
|
|
# ? Jun 6, 2024 20:31 |
|
So this is on MacOS, but I was hoping someone here could help me. I'm trying to run two apps installed through the command line, SUDO GUI and Netedit, but keep getting errors. Some Linux related forums have suggested it's because the programme gets cranky with 'localhost' in the display variable, but I don't know how to change that? Especially, as this is just running on my laptop. I get the below errors when using Terminal. ~ % sumo-gui FXApp::openDisplay: unable to open display :0.0 ~ % netedit FXApp::openDisplay: unable to open display :0.0 ~ % Suggestions welcome.
|
# ? Oct 22, 2021 12:21 |