• Activity
  • Votes
  • Comments
  • New
  • All activity
  • Showing only topics with the tag "linux". Back to normal view
    1. How can I make "whereis" automatically open the file on Nvim when it is the only result?

      EDIT: SOLVED It looks like it was much simple than I thought and someone solved it on Reddit already. I won't delete, just leave the link if someone is interested. Runtime Environment OS: MX Linux...

      EDIT: SOLVED

      It looks like it was much simple than I thought and someone solved it on Reddit already. I won't delete, just leave the link if someone is interested.

      Runtime Environment

      Issue

      Sometimes I use "whereis" (aliased for "wh", but it doesn't make any difference...) for my own scripts.

      I usually copy their paths manually (using tmux) and paste to the command line resulting in something like this:

      nvim /home/my_username/my_scripts_folder/my_script
      

      Could I make that into a single command?

      Thanks in advance!

      3 votes
    2. Please tell me what you think about this idea for a text editor/Linux Distribution combo

      I know there are similar products I could buy in the US that would give me this experience, but I'm not in the US and I don't have much money. In the old days, my father had some kind of machine...

      I know there are similar products I could buy in the US that would give me this experience, but I'm not in the US and I don't have much money.

      In the old days, my father had some kind of machine that was not a proper laptop and not a proper typewriter. It opened instantly to a text editor. As far as I remember, there was no noticeable boot time. It had a keyboard and an entry for a floppy disk. You typed your stuff, saved it to the floppy disk, probably to send via email or to print in another machine. I loved that machine.

      I love these little gadgets that do one thing and one thing only. And, as someone with severe ADHD, they're often a necessity. If my Kindle had Youtube I would never read a book. If my PS4 had Emacs I would never play a game. The list goes on, but the principle is this: a lot of things are useful to me precisely because of what they cannot do.

      And that is why I wanna recreate my father's crazy computer-typewriter.

      Because I know how to use the command line, it really needs to be in total lockdown: I open it up, it shows a very simple text editor (with a few handy features that make it works even more like a typewriter) that I cannot configure, tinker or alter in any way. It's focused on writing (not editing) literature because that's what I need and other kinds of writing require an internet connection.

      It would save and back up automatically (like a typewriter) to one or more drives at your choice.

      There would need to be a few options because of different screen sizes, the number of screens etc, with an interface to make it easier.

      So the idea is an ultra-minimal, kiosk-mode Linux distribution that can either go on a flash drive or be installed on an old laptop. No package management, no internet connection, no access to the command line, no configuration files, no distractions whatsoever. I wanna forget I'm even using Linux. I wanna recreate my father's typewriter/computer that he never let me touch.

      How do I do this?

      14 votes
    3. Please recommend me a Linux distribution that is super-stable and never make me install again, but at the same time allows me to have some newer packages with ease (xpost /r/FindMeADistro)

      I currently use MX-Linux, which is a great distribution but does require me to reinstall it from time to time. It also comes with all the good/bad Debian legacy, and sometimes things can get...

      I currently use MX-Linux, which is a great distribution but does require me to reinstall it from time to time. It also comes with all the good/bad Debian legacy, and sometimes things can get really fucked up (okay, I admit it: MX IS NOT PERFECT. But nothing is, okay? Settle down.)

      My new Linux Distribution doesn't need to have all the new bells and whistles, but it needs to be able to stay reasonably current with new packages and innovations. I don't mind some manual work, but I also don't wanna spend my days maintaining the system.

      This distro is supposed to be a tool to work with, not a hobby to be pimped, riced or whatever. I will occasionally play and edit videos on it (don't worry, it's all AMD, thank you advice for the Tildes ;)

      I use the i3wm window manager (not the gaps fork), so native support is a must and current versions are preferable (MX's version is from 2016. 2016!). If there's not a current version of Emacs, I'll compile my own. The same is true for Neovim, dmenu, rofi and the suckless terminal.

      Configurations on text files do not scare me, but I don't wanna spend all my time scripting stuff. I don't mind compiling stuff either so Gentoo and other source-based distributions are valid options (as long as they allow me to work on stuff instead of working on the distribution...). That said, I have no preference whatsoever between binary and source-based.

      Unstable distributions like Arch and even Manjaro are a no-no. I need my computer to work 99.99% of the time, like a fucking refrigerator. That said, I would like some newer packages and tools such as Gimp, Inkscape and a video editor like Kdenlive. Maybe flatpak is an option? I was never able to get it to work properly.

      I'm also open to crazy things like Nix, but only if it'll make my life easier: I have no philosophies on the mater.

      Any suggestions?

      21 votes
    4. Should I Get Into Gentoo? (x-post from /r/Gentoo)

      I've been using Linux for the past 5 to 10 years. I'm not a developer, but a mid-to-advanced user. I don't really know bash (or any programming language for that matter), but I got a folder with...

      I've been using Linux for the past 5 to 10 years. I'm not a developer, but a mid-to-advanced user. I don't really know bash (or any programming language for that matter), but I got a folder with 100 bash scripts I wrote myself. I compile my own Emacs (which I configured from scratch and contains more than 200 crudes functions of my own), Neovim (also configured from scratch) and other programs such as suckless terminal. I'm an i3wm user and currently use MX-Linux. I'm very good at Googling and pattern recognition.

      I got a brand new AMD desktop with a Ryzen processor (no dedicated graphics, wifi works fine with a USB adapter). Should I try Gentoo, or maybe I should study more (maybe with something like Linux Journey)in order to get a better experience?

      Reasons to install Gentoo:

      1. Learning experience
      2. A completely customized desktop experience
      3. Never having to reinstall my operating system again
      4. Masochism
      5. Putting my powerful processor to work
      6. It seems cool (and less painful than LFS)
      7. Some hypothetical performance gain
      3 votes
    5. What makes a Linux Distribution Stable instead of Not-Stable? (full-disclosure: I wrote this for Reddit - /r/ManjaroLinux - but I think I'd love to know what you think about the subject))

      Introduction I wanna say that I made several corrections, additions, and improvements just because I love you guys way more than I love the people at Reddit Please note that I'm merely a dedicated...

      Introduction

      I wanna say that I made several corrections, additions, and improvements just because I love you guys way more than I love the people at Reddit

      • Please note that I'm merely a dedicated Linux user, I'm speaking from that point of view. I'm not a developer and not a programmer. These are just my opinions of 10+ years using Linux

      • These are just some commentaries from a dude who happen to love the concept of STABILITY in general (autism represent) and would like to discuss how it works when it comes to Linux distributions. This is all based on my use-cases and on what I think is common sense. I have no knowledge of how open-source projects really work, and make no claims regarding how they should work.

      • Only distributions that claim to be stable are under my scope. So Arch and Debian Unstable are clearly out the scope, but Slackware, CentOS, Debian Buster, and MX-Linux are clearly under the scope.

      • All considerations are void if the malfunctioning is SOLELY a product of hardware, extremely rare conditions or your own lack of knowledge.

      • Except when otherwise noted, non-compliance means the distribution is deemed not stable.

      1 Deal Breakers

      After a correct installation by the user on hardware that is expressly supported by the developers, a stable distribution should, in the period of 1 year (counted from the first boot):

      1. Remains bootable, manageable and fully accessible.
      2. Work with almost no maintenance or intervention (updates excluded)
      3. Present no decrease in performance
      4. Freeze at most once every two weeks
      5. Have no package issue that cannot be solved by a simple command from its own package manager

      2 Major Issues

      Because of the complex nature of major issues, I'm not going to establish any criteria about them. Both stable and unstable distributions have critical problems that cannot have a fixed time-frame.

      3 Minor Issues/Bugs/Annoyances/etc

      Small issues are the ones that do not impede the usage of the machine, but provoke significant annoyances:

      Examples:

      1. Window switching is not working properly
      2. The mouse stops working for 3 seconds every 15 minutes
      3. For some reason, the letter "c" is sending "h" on the terminal
      4. My configurations are not saved after reboot
      5. My configurations are not being saved at all
      6. I must change video output manually every time I switch monitors
      7. I must change audio output manually every time I switch monitors
      8. Some essential configuration is ridiculously hard to find
      9. Configurations have no undo button
      10. Configurations have no reset button
      11. A certain package cannot be installed
      12. A certain dependence cannot be installed (dependency hell)
      13. There's a ridiculously accessible keyboard shortcut that makes your keyboard change layouts all the fucking time

      3.1 Places for Research

      Such minor issues must be solved within 30 days, as long as the user does their part and seek some of the following resources:

      1. Google
      2. Official websites
      3. Official forums
      4. Official warnings, newsletters, etc
      5. Semi-official communities
      6. FAQs
      7. Manuals
      8. Github Issues
      9. Gitlab Issues
      10. Other Venues to post issues

      If the minor issue is not solved in 45+ days, the distribution will be deemed not stable, regardless of the behavior of the user.

      4. Conclusion

      It is my opinion that, if any of the major and minor requirements are not fulfilled according to their particular rules, the distribution in question should not be deemed not Stable.

      4 votes
    6. Linux Distro for an old PC

      I found my grandfathers old PC on the attic and want to revive it for him. He really loved that pc. Sadly that potato barely runs Windows xp so I thought about putting a Linux onto it. My Linux...

      I found my grandfathers old PC on the attic and want to revive it for him. He really loved that pc. Sadly that potato barely runs Windows xp so I thought about putting a Linux onto it. My Linux experience is limited to Mimt and Debian, both way to heavy for this old laptop. I need recommendations for a very light weight Linux Distro!

      Specs:
      256 mb DDR1 Ram
      Intel Celeron M 320 @ 1.4GhZ
      40gb Hard Drive

      It's a small, simple gift and nothing where I want to put money into. Also it won't be my granddads daily driver so please don't recommend me a new one (a lot of people did that on other websites so I am rather careful). Thanks in Advance!

      14 votes
    7. Best cheap GPU for a Linux desktop?

      I'm building my first desktop computer, and Linux is my operating system of choice. I know video cards sometimes can be a pain and wish to avoid any issues. Dollar-priced items are very expensive...

      I'm building my first desktop computer, and Linux is my operating system of choice.

      I know video cards sometimes can be a pain and wish to avoid any issues.

      Dollar-priced items are very expensive down here, and I don't require playing the latest games on the highest configurations. Just something to “put me on the map”, so to speak, so I can have a somewhat current machine that doesn't give me much trouble. Any suggestions?

      9 votes
    8. What's a cheap laptop that works well with Linux and is available wordwide?

      Because I'm in Brazil, highly specific brands that do not ship to my country are out of the question, and even the ones that ship usually cost more than I can pay due to currency exchange rate and...

      Because I'm in Brazil, highly specific brands that do not ship to my country are out of the question, and even the ones that ship usually cost more than I can pay due to currency exchange rate and shipping costs themselves. What are some universal brands and models that I can probably find on my location, that won't give me much trouble running Linux?

      I don't require playing games or top performance (4GB 8GB RAM, a nice/vibrant screeen and an i5 processor would be the minimum requirement. SSD would be nice, but for my budget it's a plus. Just something that is durable (with a good guarantee) and works reliably under Linux, especially when it comes to HDMI output, video graphics adapter support, booting from USB, hibernating, sleeping, power management etc.

      Thanks!

      11 votes
    9. How to build a desktop computer (tower) for Linux with pieces that are easily available worldwide (most especially South-America)?

      This post is related and in some part a repetition of my other topic on how to buy a laptop for Linux. Because I'm in Brazil, many brands and stores that do not ship to my country are out of the...

      This post is related and in some part a repetition of my other topic on how to buy a laptop for Linux.

      Because I'm in Brazil, many brands and stores that do not ship to my country are out of the question, and even the ones that ship usually cost more than I can pay due to currency exchange rate and shipping costs themselves. What are some universal stores, brands and models that I can probably find on my location, that won't give me much trouble running Linux?

      I don't require playing games or top performance (8GB RAM and i5 processor would be the minimum requirements). And SSD would be nice, but, for my budget, it's a plus.

      I just need something that is durable and works reliably under Linux, especially when it comes to audio and HDMI output, video graphics adapter support, booting from USB, hibernating, sleeping and power management.

      Thanks!

      6 votes
    10. Typesetting Markdown Blog: What Next?

      Some of you have read the Typesetting Markdown blog series (https://dave.autonoma.ca/blog/). The plan was to finish the last two parts with Annotated Text (basically markup for Markdown) and...

      Some of you have read the Typesetting Markdown blog series (https://dave.autonoma.ca/blog/). The plan was to finish the last two parts with Annotated Text (basically markup for Markdown) and Figure Drawing (MetaPost); however, people have asked for a post on Markdown to EPUB, others have asked for high-quality PDF theme templates using ConTeXt, and some have requested rendering Markdown into HTML.

      Within the realm of Markdown, digital documentation, typesetting with ConTeXt, R, externalized interpolated strings, and bash scripting, what would interest you for the next post in the series?

      (Please flip through the blog series to see the topics that have been covered.)

      3 votes
    11. First release of my native Markdown notes app, Notementum (v0.1.0)

      Screenshot I posted a few days ago about a notes app I was working on called Notementum, and I'm happy to show you the first release (0.1.0). Installation instructions are available on the Github...

      Screenshot

      I posted a few days ago about a notes app I was working on called Notementum, and I'm happy to show you the first release (0.1.0). Installation instructions are available on the Github repo: https://github.com/IvanFon/notementum

      There's still lots of things I'd like to add, both big and small, and definitely a few bugs here and there, but I've been going for too long without sharing it, and I find it's best to release as early as you can to start getting feedback, and perfect it later.

      One things that's missing is documentation. I'd like to start on this soon, but I'm probably not going to share this anywhere other than Tildes just yet, so this comment will do for now :)

      Right now, the app only runs on Linux. I'd like to add Windows support, and it almost works, the problem is that WebKit2Gtk, the embedded web view I use to show note previews, doesn't support Windows. I'm going to explore some other options in the future, whether that's figuring out how to compile it, or allowing other preview methods (user's web browser, PDF, etc.).

      The app is also very much in alpha, so you shouldn't use this for anything important, there may be bugs that can cause you to lose some of your data. If you do use this for anything, make sure you backup your notes database.

      If you want to use it, here's a wall of text on usage:

      Usage

      The notes database is located at ~/.notes.db. When you launch the app, it'll load it, or automatically create it if it doesn't exist. I'd eventually like to allow choosing different locations, but it's hard coded for now.

      The interface is fairly simple. The leftmost sidebar displays a list of notebooks, and the "middlebar" displays a list of notes. Selecting a notebook will display the notes within it in the notes list. Selecting a note will open it in the editor, which is to the right.

      To create a new note, press Escape to focus on the searchbar above the notes list, and start typing a title. If no existing notes are found, press enter, and a note will be created with the title you entered.

      To rename a note, double-click on it in the notes list.

      The editor has a toolbar with 4 buttons, from left-to-right:

      • Toggle between editor and preview (shortcut: Ctrl+E)
      • Assign the current note's notebook
      • Add an attachment
      • Delete the current note

      The green circle all the way to the right turns into a loading indicator when you have unsaved changes. Once you stop typing for a few seconds, your changes will be saved, and it'll switch back into a green circle.

      Notebooks

      Notebooks aren't created directly, they're based on what notebooks your notes are assigned to. This means that, to create a notebook, assign it to a note. To delete a notebook, just delete all the notes contained within it, or assign them to a different notebook.

      Clicking on the notebook toolbar button brings up this dialog. To create a new notebook, double click on <New notebook> and type in a name.

      Attachments

      The notes database also stores attachments. This means that the entirety your notes can be contained in your database. Clicking on the attachment toolbar button brings up this dialog. The toolbar allows you to upload an attachment or delete it respectively. Pressing Insert Selected will insert the image at your cursor in the editor (![](image.png)).

      Theme

      The screenshots show the app with my desktop Gtk theme, Arc Dark. On your desktop, it'll use whatever your theme is. It should look good with any Gtk theme, but at some point I may bundle Arc Dark with it.

      The note preview currently has it's colours hard coded to look good with Arc Dark, so it may look a bit off on other themes. I'll try to sort that out at some point.

      Planned features
      • load/save database to/from different path
      • Windows support
      • note exports
      • database encryption
      • changing syntax highlighting theme
      • note tags
      • full-text search
      • proper documentation
      • more keyboard shortcuts
      • integrated sync
        • although you should already be able to use Git, Synthing, Dropbox, etc.
      • Vim mode for editor
        • maybe somehow embed a terminal to allow using vim/emacs/whatever
      Boring technical stuff

      The app was made with Python and Gtk+ 3. I've done this before and I really enjoy the development experience, especially with Glade to design the interface. There are still some Gtk features that I should really be using to make things simpler (GtkApplication, actions, and accelerators) that I'll be adding later.

      The database uses sqlite 3. This is convenient, as it allows for storing everything in one file, and will make fast searches easier in the future. Attachments are stored as base64 directly in the database. This makes it easy to have all your notes be contained entirely in the one database, but I may have to think about a more efficient method in the future.

      Markdown rendering is done using mistletoe, which has been great to use. Syntax highlighting and MathJax renderers were already available, so it was just a matter of combining both and adding custom image loading from the database, which was very easy. Mistletoe has a very easy to use API, so this was no problem.

      For LaTeX math rendering, I'm using MathJax. It supports pretty much everything, which is nice, but it can take a while to load. I'm currently loading it from a CDN in a <script> tag, so I'm hoping once I load it from a local file it'll be a bit faster. If not, I may have to find another solution.

      Like I said, the app still has a few bugs that need to be fixed. If you find any problems, it would be great if you could leave a comment here or open a Github issue (or if you have any feature requests).

      21 votes
    12. What is your least favourite window manager or desktop environment and why?

      Can be something current or ancient, and if you've really got an axe to grind feel free to drag in Windows or macOS or other proprietary operating systems. Personally after using i3 for around...

      Can be something current or ancient, and if you've really got an axe to grind feel free to drag in Windows or macOS or other proprietary operating systems.

      Personally after using i3 for around half a decade now (though I switched to sway about a year ago) everything else I try just seems to add friction.

      25 votes
    13. Looking for game recommendations to tickle my Tempest itch

      For those who do not know it, Tempest is a classic arcade vector-based game, and I urge you to check it out. It is highly addictive and nowadays should fall well within the fast-paced retro...

      For those who do not know it, Tempest is a classic arcade vector-based game, and I urge you to check it out. It is highly addictive and nowadays should fall well within the fast-paced retro fashion.

      The problem is that for quite some years, I had nothing to scratch that itch. The last proper Tempest-like game that I played was Typhoon 2001 on Linux, which was a free/gratis clone of Tempest 2000.

      Now it seems that in 2018 Tempest 4000 came out, but only for PC (a.k.a. Windows), PlayStation 4 and XBox One. As a Linux and Nintendo Switch gamer, that doesn’t help me one bit.

      There are two FOSS versions: Arashi, which works only on old Macs, and Arashi-js, which is a JavaScript re-implementation of the former. Unfortunately, none of the two seem to work on my laptop.

      So, here I am, itching for that Tempest fix, yet without a clue how to get something on either Switch on Linux (apart from perhaps Typhoon if it still works). Any suggestions would be more then welcome.

      7 votes
    14. Has Wine begun to remove the need for linux software?

      I started using wine in about 2013 and I remember back then it was quite patchy and only worked on some programs/games. I used to have a rule that I stuck hard to that I would not buy any games...

      I started using wine in about 2013 and I remember back then it was quite patchy and only worked on some programs/games. I used to have a rule that I stuck hard to that I would not buy any games that did not have a linux version. But now in 2019 I have found that everything I have tried to run in wine has been so seamless and close to flawless that I hardly know its running in wine. I semi regularly buy games that only have windows version because I am mostly sure it will work and can get a refund if it doesn't.

      What does everyone else think about this?

      8 votes
    15. Please recommend me a video game

      I've never really been that into video games. When I was young, I played a lot of RPGs on the SNES and PS1. Within the last couple of years, I dipped my toes back in the water and tried a few out....

      I've never really been that into video games. When I was young, I played a lot of RPGs on the SNES and PS1. Within the last couple of years, I dipped my toes back in the water and tried a few out. I tried Skyrim on a friend's recommendation, but it was just a little too involved and open-world for me. I got Cities:Skylines, which I love because I love city builder sims, but that game just does not run well on any of my underpowered computers. And I loved Ori and the Blind Forest, a beautiful platformer, and I'd play it again right now if it wasn't Windows-only.

      Here are my requirements. First, it needs to run well on a low-powered machine without making the fan go insane. I've got a MacBook Air 2012 and a ThinkPad x250 (Linux). Neither of these are the ideal gaming experience, I know, but I'm not looking for amazing graphics or bleeding edge technology or something super immersive. Pixel graphics are fine with me. It reminds me of my youth, anyway. I played both Skylines and Ori on my Intel NUC 4th Gen and while it worked, they both really taxed that little machine. I was able to finish Ori, but once a city reaches a certain size in Skylines, it gets unplayable.

      I'm not looking for stress. I like RPGs and sims. But it doesn't have to be really hard or frustrating. I don't want to feel chased in a game. I prefer to feel that I'm driving the action and I can go at my pace. I want to feel like if I look away for a moment, I'm not going to lose everything. I'm a casual. I also don't mind if there's no defined ending of a game. For me, I'm more looking for a diversion and a slow build over some kind of constant progression/achievement type scenario.

      If it has full controller support, that would be ideal. I've got a Steam controller, and I prefer using a controller to play a game. I've never liked using the keyboard to play. I'm not totally against it, but I guess I just never got into computer gaming. I pretty much always played on consoles in the past.

      Linux or macOS only, please. I did have Windows installed once so that I could play games, but I'm not bothering with that anymore. I don't want to have to boot into another operating system just to play a game. I want to be able to hop in and out of a game while using my daily driver computer.

      So in my research, I've looked into Terraria and Stardew Valley. These might be what I'm looking for. But I really don't know. Do either of these scratch my itch? Is there another game that I would enjoy based on what I've told you? Thanks in advance for any advice you can offer.

      EDIT: Thank you everybody for your awesome suggestions. I'm still happy to hear more, as I plan to add the ones that really interest me to my wishlist and revisit later. I ended up getting Hollow Knight yesterday and I spent the whole day playing it. It's very engrossing, and it's the perfect game for me. It's so much like Ori, and that game blew me away. Chilled out, go at your own pace, exploring dungeons, challenging but not impossible (though the first Hornet fight was pretty tough for me). The game runs fine on my ThinkPad x250 (i5-5300U) in Pop!_OS Linux, apart from the initial movie scene stuttering--I just had to skip past it, unfortunately. It's such an awesome game, and I'm glad to see they've already announced a sequel. If you know of any other games that are like Ori and Hollow Knight, let me know.

      23 votes
    16. Friendly Linux Chat

      I'm having some problems with a notebook I want to set up for a friend. And its the first time in a long time I'm not able to solve it just by myself. So I tried asking at #manjaro and...

      I'm having some problems with a notebook I want to set up for a friend. And its the first time in a long time I'm not able to solve it just by myself. So I tried asking at #manjaro and #archlinux-newbies but I got no answer at all. It just seems that IRC changed a lot in the last 15 years. Or maybe my IRC manners are not up to date?
      Anyway, do you know a place where there is a nice Linux-crowd? What are your favourite Places to get help? (besides the archwiki) ;-) I'm out of the loop for 10-15 years now because most places got pretty toxic.

      12 votes
    17. Linux gamers: let's help test Proton compatibility before the Steam summer sale

      I made this an "event" over on reddit, and I figured I'd also mention it here. The Steam summer sale is alleged to start on June 23rd, and I figured it would be nice if people could go into it...

      I made this an "event" over on reddit, and I figured I'd also mention it here.

      The Steam summer sale is alleged to start on June 23rd, and I figured it would be nice if people could go into it with current information on Proton compatibility for games so we can better know what to buy and avoid. As such, it would be great if we could all submit a bunch of ProtonDB reports this coming week.

      I plan to go through my library and test high-leverage games: either ones that lack reports or games whose reports are quite old. Let me know if you're wanting to join in the "fun!"

      14 votes