Linux - Reddit – Telegram
Linux - Reddit
753 subscribers
4.17K photos
207 videos
39.8K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
I saw a similar post today so I'll give it a try myself. My personal story, AKA how I stumbled onto Linux.

Sorry if my English isn't spot-on here-and-there, I'm not a native speaker.

## Programming

I was like 13 or 14 at the time, interested in computers and already more invested in them than most of my peers. Of course I was a Windows user, as far as my knowledge went at the time the only two desktop operating systems that existed were Windows and MacOS, tough I didn't have the money for either of them, so I just ~~pirated~~ downloaded Windows instead.

I was doing things like learning basic web development in HTML and CSS, writing l337 h4x0r, 'malicious' powershell noscripts (infinite reboot loop, etc.), and that's about it. I didn't really understand how they worked though, I mostly just copied some base noscript and slightly modified it to my liking.

Later, in high school, we were introduced to our new IT teacher. Keep in mind my school has absolutely nothing to do with IT, in fact, I was in a language-focused class, not sure why to be honest. This teacher basically just taught every boring basic stuff most IT teachers do, which is the MS Office Suite. Until one day, we went into class and he said "Ok kids, let's do something new today". He told us to open up the very first IDE I've ever used, which is Visual Studio.

He taught us (or at least, made an attempt to teach us) C# basics. Like very basics, I mean declaring variables and basic mathematical operations, stuff like that. Nobody in my class was interested at all and most of them had troubles and just gave up and asked me for help. I, on the other hand, was absolutely hooked.

Later that day, at home, I immediately downloaded Visual Studio and started experimenting with C#. It wasn't until the next morning, when I had opened up Visual Studio for the second time, that I was warned that my license was invalid. "No way, I have to pay for this stuff?". Turns out no, only for the non-community editions. Still, I felt restricted already even though I wouldn't have even been able to use the features offered by the paid versions yet. I was, after all, just writing some console applications.

## Linux

I was, more often than not, really annoyed by the sluggish nature of my PC. I didn't really complain, as I thought it's because my computer is a bit old (about 7 years old at the time of writing, this is still the same PC). It was an inconvenience, nothing more, it was still usable.

This went on for a few months, until the PC had become unusably slow. Since I spent lots of time on Discord servers, subreddits and forums relevant to programming in general, I've seen 'Linux' pop up a lot. All I've heard about it before was exactly once, when I was like 11 is that it's this thing on your PC where you can reprogram everything you want, however you want. That's it, I didn't even know it was an operating system, only that is was this thing. I've also heard that it can be ran from a USB without installing. Out of curiosity, I've tried it. It was, different, to say the least. That's what my thoughts were. Sure it was a little faster, but nothing spectacular. That was until I live booted this cool hacker OS, Kali.

I was blown away by what the system was capable of doing. Suddenly, all those restrictions posed by Windows and just generally Microsoft DRM were gone. I could do anything I wanted to.

After looking at many tutorials online, I managed to hack my own WAP at home. I brute forced it using a WPA handshake. I felt so cool, even though I didn't really understood how or why it worked, all I basically did is I copied a bunch of commands, pasted the into the terminal and hit Enter.

I also hacked the school's WiFi, which was reserved for school staff only, then entered the school sysadmin's office and silently slid the password on his desk which was fun I guess, and since he just laughed at the whole situation instead of being mad, we became pretty good friends and still sometimes talk to this day.

## Switching

I heard about dual booting from the previously mentioned
communities before. I was so blown away by Kali that I wanted to install it. So I did. And so my first dual-booted Linux install was born, Kali. Some time after I obviously discovered the drawbacks of Kali compared to other OSs, and I switched to, at first Ubuntu, then Manjaro, and now I'm on Arch.

My curiosity and hunger for learning made me a decent hacker. I learned about new tools to use, I learned about Docker and Metasploitable, combined the two to create magic (I still use that same container to this day), and just experimented a lot in my free time. I also bought some books about hacking, which were really disappointing to be honest. Despite the noscript (translated to English, not the original noscript), Advanced Hacking Techniques, all it really did, mostly, was show me how to secure a Windows system.

I still do a lot of coding, though not just C# anymore. I also know some Java, Python, PHP, as well as MySQL and bash (if you count those). Hacking is something that I always enjoyed, however, from time to time I would take a break for a month or to and focus on coding instead, but it always popped back into my mind and I was back in action again.

## Conclusion

Linux gave me the power and the tools to discover my passion, out of which I have solid plans to make a career. I probably never would have been able to achieve this without Open Source Software. It also technically allowed me to use the same PC to this day without having to buy a new one, so that's cool.

https://redd.it/lbmqcf
@r_linux
Lubuntu Bootable USB

So i switched on Lubuntu 20.04 a while ago,now i would like to get back on Windows 7,i downloaded the Iso and i have the flash drive ready. How do i make a Bootable Windows USB Flash Drive in Lubuntu? I need to write more for this to be posted so yeah,i don't really like Lubuntu because i need to do multiple things in order to play something and i have some problems on this operating system like graphical glitches or apps that just give random errors i can't fix.

https://redd.it/lbnqi4
@r_linux
For anyone that thinks "Microsoft loves linux", please read about LiMux
https://en.wikipedia.org/wiki/LiMux

https://redd.it/lbp1m8
@r_linux
Beginning Linux Distros?

My friend wants to get into Linux and doesn't know what to start with. What would be a good recommendation for beginner users?

(Also before people say I'm the beginner I use Manjaro Budgie and planning on switching to Arch sometime soon)

https://redd.it/lbrurb
@r_linux
Microsoft repo installed on all Raspberry Pi’s

In a recent update, the Raspberry Pi Foundation installed a Microsoft apt repository on all machines running Raspberry Pi OS (previously known as Raspbian) without the administrator’s knowledge.

Officially it’s because they endorse Microsoft’s IDE (!), but you’ll get it even if you installed from a light image and use your Pi headless without a GUI. This means that every time you do “apt update” on your Pi you are pinging a Microsoft server.

They also install Microsoft’s GPG key used to sign packages from that repository. This can potentially lead to a scenario where an update pulls a dependency from Microsoft’s repo and that package would be automatically trusted by the system.

I switched all my Pi’s to vanilla Debian but there are other alternatives too. Check the /etc/apt/sources.list.d and /etc/apt/trusted.gpg.d folders of your Pi’s and decide for yourself.

https://redd.it/lbu0t1
@r_linux
ClamAV custom signatures for specific filetypes

Hey all, I'm running ClamAV to scan files uploaded as embedded attachments on my chat server. There aren't any provisions to block specific filetypes, so I'm thinking maybe I can do this with ClamAV, as it'll block malicious files that are attempted to be uploaded. The ClamAV documentation is a bit confusing to me. Does anyone know how I can write a custom filter that will effectively mark anything that's not an image as malicious, so it will be blocked?

TL;DR: Can i use clamav to block all files except images?

https://redd.it/lbusk8
@r_linux
I just created a CPU and RAM monitor

Hi everyone,

This is my first coding project, a cpu and ram monitor for Linux. It uses ncurses C lib to display information and it gathers the information from files on /proc folder using fstream

I know that the coide style, efficency, display style... could be improved, so feel free to let me know what I could change to make it better.

Thanks for reading :)

https://github.com/rocsalvador/pcstats

https://redd.it/lbwrwv
@r_linux
Thinking about switching from Windows to Linux

I’m on the verge of switching from Windows to Linux or possibly be able to switch between the both operating systems each time I boot up my pc between Linux and Windows. Is this possible? Windows has been really messy for me recently and I want to switch between the two operating systems without losing my data or anything on the same computer

https://redd.it/lbw227
@r_linux
OpenVehicleDiag 0.2 - A cross platform open source car diagnostics suite built in rust - Including porting the J2534 adapter API to Linux/OSX and parsing Daimler CBF files to JSON

So this is my final year project for University this year, and has been a massive WIP for the past 9 months.

Now, I know there are some open source diagnostic software suites out there that work on Linux, however they are focused on the ELM327 adapter and OBD2, where as this is focused more on the more advanced diagnostics, essentially building a utility which could have feature parity to OEM diagnostics software such as Daimler's Veidmao/Xentry/Das or VW VAG software.

Currently, OpenVehicleDiag (OVD) tries to accomplish 3 main goals:

1. Open source more complex car diagnostics protocol such as KWP2000 and UDS
2. Creating an open source, cross-platform diagnostic adapter by unofficially porting the J2534 Passthru API to Linux and OSX
3. Converting OEM binary data files which store diagnostic data to a common JSON format.

The J2534 adapter code can be viewed [here](https://github.com/rnd-ash/MacchinaM2-J2534-Rust/), and is designed for the Macchina M2 open source OBD-II adapter.

## Reasoning behind this

I've been noticing for a long time how generic OBD scan tools can only touch the engines ECU and not run any advanced diagnostic commands on more control units in a car. This came to bite me in March last year when I did some work to my cars transmission (W203 Mercedes C Class), and it threw an error code. I had to use an Arduino to write custom CAN Frames to the TCM module to clear them, which took ages, as my local Mercedes dealer was charging me £100 just to clear the error code. This is what inspired me to create a car diagnostic application that is free, open source and can work with a common JSON format, in contrast to OEM's proprietary software which only works with their own files and only their hardware (Or approved hardware).

## Current features

OVD is far from finished, but includes a ton of cool features as it stands:

1. CAN analyzer view to view CAN packets that are visible from the OBD-II port
2. Automated UDS/KWP2000 scanner - Tries to locate ECUs within a vehicle that support the UDS or KWP2000 protocol, which in turn lets you run standard protocol commands on them to do a lot more than a generic scan tool can do
3. Advanced JSON Session - This is demoed in the last video in the playlist linked below, but essentially allows you to define DTC error code denoscriptions and diagnostic functions that can be ran on an ECU and executes them
4. Parsing of CBF files - For demo purposes, I have proved that (3) is possible by de-compiling Daimler's CBF file format and converting it to my open JSON schema, which allows me to run all sorts of cool diagnostic functions on the ECU, such as querying positions and adjustments of components in the engine.
5. J2534 Support - OVD currently works with any diagnostic adapter that uses the J2534 Passthru adapter! - However, for Linux and OSX, you will have to use Macchina's M2 driver linked above as my custom driver is currently the only one that supports Linux and OSX unofficially.

## Future plans

I do plan on continuing this project long into the future as part of my free time, as long as there is a demand to try and keep car diagnostics open rather than letting OEMs capitalize on letting only their expensive software do this kind of diagnostics.

Main features I intend to add within a year:

* SocketCAN Support - Useful for Desk testing of ECUs, and means you could theoretically run this on nothing more than a RPI and CAN shield!
* Decoding more OEM formats - My next goal is to decode Daimler's SMR-D file format and begin looking at VAG's data formats which is used for Scoda, VW and Audi ECUs.

Links:[Youtube playlist showing updates and features](https://www.youtube.com/watch?v=kaBEisuXCd8&list=PLxrw-4Vt7xtty50LmMoLXN2iKiUknbMng&index=4)

[Source code link for both CBF parser and the app](https://github.com/rnd-ash/OpenVehicleDiag/)

https://redd.it/lbxu15
@r_linux
Is there a way to dual boot Windows 10 and Linux without the storage drives showing for the other OS?

I want to dual boot Windows 10 for gaming and Linux for everything else, but I don't want my disk volumes showing on either OS.

I have 3 volumes on Windows 10 and 1 volume for Linux, however, I don't want the 3 volumes to be seen when I use Linux and I don't want the 1 volume for Linux to be seen when I'm using Windows 10.

Is there a way this can be done?

Cheers.

https://redd.it/lc1gxn
@r_linux
My OneNote alternative for Linux

Hi everyone, long time lurker here.

A few years ago, I wanted to switch to Linux as my primary OS, but after finding alternatives to almost every other proprietary app I used without native support, I couldn't find anything that accurately replicated OneNote's structure. I'm not a fan of the fact that the web version of OneNote prevents you from saving notebooks locally (and I also just prefer native software), and although wiki editors like Zim and similar programs are very well made and great for subdividing your workspace like a notebook, they lack OneNote's distinctive "click anywhere to type" feature.

After learning the basics of QT and a lot more development time than I initially planned for, I've been using my program, Spiral, as my primary note-taking app for college since last fall, and I thought I'd share it here in case anyone else happens to be looking for this type of program.

I should note a few things, though.

First and foremost, I don't personally use handwriting tools, so, unfortunately, if you require that in a OneNote alternative, you'll probably want to look elsewhere. That's not to say handwriting support will never be added, just that it's not on my radar right now.

Second, although I haven't lost any data while using Spiral, I would strongly advise that you make frequent backups just in case since the amount of testing I've done is probably not exhaustive of everything that could go wrong in a program like this. (Personally, I use abraunegg's OneDrive client for Linux, so OneDrive's revision history is always there for me in case I need it.)

Since this is mainly just something I've worked on in my free time (and since I'm still relatively new to this type of software development), I really only focused on implementing the features I needed from OneNote, so if there are any super important features I missed, I welcome any and all feedback.

Anyway, if my disclaimers haven't scared you away and you're craving this type of program for Linux as much as I was a year and a half ago, you can download Spiral at http://spiral.augustin.tech.

https://redd.it/lc3si5
@r_linux
File Block ins stat command

Hello 👋,

Can someone explain what really happens when we choose to compress a file. When I created a file with fallocate 10M the blocks in stat command shows "20480"

I used lzma -a 'file' and compressed the file now the file showed only "8" blocks in the stat command

Now I decompressed the file but the blocks in stat command remains as "8" and it didn't show as previously shown "20480" blocks

Can someone explain this ?

https://redd.it/lc4089
@r_linux
Can I create a "clone" or full back up of the distro that I'm using?

So I have to send my laptop off for a repair. When I do, I know they're gonna reformat it and put slow ass battery draining windows 10 back on. I don't like Windows much. Prefer Linux & Mac OS X way more. So can I create a bootable clone or back up of my entire computer right now? Apps, settings, etc., everything! I would like to pop the USB drive in. Boot up. Start install. And be right back to using this computer like nothing ever happened?

Is this possible? I mean, I feel like it would be a bit like creating a live distro of your own system. BUT! I'm not sure where to begin with that.

As I'm sure that this will be important. My flavorful distro of choosing is Ubuntu Budgie.

Any recommendation is welcome. I'm not necessarily needing anyone to like walk me thru it. Just maybe a little guidance in how I can go about accomplishing this.

Thanks in advance everyone! Even if you can't help. Got a good community here that is pretty helpful. And it's greatly appreciative. Thanks again!

https://redd.it/lc6xe4
@r_linux
Where’s my history.txt file? Ubuntu

Hi all,

So I’ve been working on all day typing commands for s school project and I have to submit the txt file that shows all the command that I typed.
I used the command:

history >> history.txt

The problem is I don’t know where to find that text file. I looked everywhere. Can you help me please?

P.S. I’m using Windows 10

https://redd.it/lc8rgx
@r_linux