Linux - Reddit – Telegram
Linux - Reddit
751 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
reconnect (2 of 20)`

`[14:55:51:289] [7729:7805] [INFO][com.freerdp.channels.rdpdr.client] - Loading device service drive [home] (static)`

`[14:55:51:289] [7729:7806] [INFO][com.freerdp.channels.rdpsnd.client] - Loaded fake backend for rdpsnd`

`[14:55:51:289] [7729:7730] [INFO][com.freerdp.channels.drdynvc.client] - Loading Dynamic Virtual Channel disp`

`[14:55:51:193] [7729:7805] [INFO][com.freerdp.channels.rdpdr.client] - registered device` [`#1`](https://github.com/Fmstrat/winapps/pull/1)`: home (type=8 id=1)`

`[14:55:57:608] [7729:7730] [INFO][com.freerdp.core] - ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server.`

`mc2@MERCURE:~/winapps$`

https://redd.it/ll4gaq
@r_linux
Max number of open files

Recently I have been reading up on maximum number of websockets a server can support. Naively, I would expect 65,536 (i.e., the max number of file denoscriptors). Posts like [1\][2\] claim they can achieve 600k and >1M concurrent connections. The "trick" they both rely on is increasing the limits on the number of files to very large values.

My question: I cannot find a syscall of open that returns anything larger than an int. How does the OS track open files beyond 65,536? Are these blog posts really creating more than 65,536 fds?

[2\] mentions the limit of 65,536, saying the practical limit is closer to 20k. However, they say this is per IP address. They then go on to discuss that they listen on multiple IP addresses to open up over 1M connections. My intuition is that file denoscriptors are unique across the OS and I am guessing this is the missing link in my understanding. Is it possible to open up more than 65,536 fds? If so, how does the OS resolve collisions that refer to different files? Or is the "trick" that we don't need the files to be different, we just need a lot of handles to the files (i.e., multiple writers to the same buffer)?

Any recommendations to books, blogs, or documentation that can help me wrap my mind around this are greatly appreciated!

Update: int on Linux is guaranteed to be at least 32 bits, which gives on the order of 2B fds. Thanks for all the great responses!

[1\] https://blog.jayway.com/2015/04/13/600k-concurrent-websocket-connections-on-aws-using-node-js/

[2\] https://alexhultman.medium.com/millions-of-active-websockets-with-node-js-7dc575746a01

https://redd.it/ll5etn
@r_linux
How hard is it to make Icon packs?

Yea I'd like to make one in my free time, I've been making pixel art for a few years and i wanted to experiment with some retro themed icons

I noticed you get 16x and 32x in some of them, any pointers on getting started?

https://redd.it/llduan
@r_linux
What Linux should I use?

Hello,

I have recently gotten the Lenovo t60 for free, it has windows 8 rn, but I was wondering which is would fit the laptop the best, like Linux. Is would like it to be fast, but also kinda good looking.

Kind regards,
Jayden

https://redd.it/llf5wg
@r_linux
I made a CLI tool to wrap any website into a single executable AppImage.

https://github.com/sarweshparajuli/appnativefy

sudo npm i -g appnativefy

Star it if you like it, README is in detail.:)

​

https://i.redd.it/1eq2eoaa4yh61.gif

I've made a CLI tool, using Node.JS and Shell noscripting to wrap any website into an executable AppImage format, by making an AppImage there is no further execution required. Just click and run.

Plus, it also changes the scrollbar to minimal black style make it look a little less hideous than the standard one present.

Created AppImages will be built to \~/appnativefy

Currently tested on Gentoo, Ubuntu, KDE Neon, Garuda.

https://redd.it/lljhcl
@r_linux
What relatively simple program would you like to see on Linux?

I'm doing my undergraduate final project next semester, and I'm thinking of doing something that is actually beneficial.

I'm thinking of something on the scale of a project manager or a note taking app (like Evernote, but without all the features).

It shouldn't be too simple, like just a GUI for an already made CLI program, and not too complicated. I have 5 months to work on it.

So what is something you feel is missing on Linux? Or already exist, but you feel that it can be better?

https://redd.it/llisi6
@r_linux
Linux Razer Core X EGPU / GPU Switcher AMD only

I noticed there wasnt a write up for switching AMD GPUs on a Razer Core x.

I wrote a simple noscript to accomplish this with details in the Readme.md

Github link: https://github.com/Ralph-Fonz/eGPU\_Switcher

Follow the steps listed, I also added Gnome application instructions

Make sure to Switch back to integrated gpu before restarting and leaving w/ the laptop*

https://redd.it/lliq90
@r_linux
Script to rename file name/content

Hello all,

My job has made strides for our team to be more efficient at programming. I am a bit familiar with Linux.

I want to create a program where I can upload a file : “0001.jar” , and it would create an xml file called “0001.xml” and a trigger file called “0001.trigger”. After this is done, I want the xml files I have created to have a specific field called <ID>0001<ID>, reflecting the file name.

How should I go about this as a novice programmer?

https://redd.it/llkgx5
@r_linux
[Events] vBeer online Party - Tomorrow 18th Feb at 3PM GMT

Fellow opensource fans, I invite you to **3mdeb's vBeer event** to discuss the open/libre firmware/hardware and other nice embedded things you have in mind! We could

* look through the growing family of opensource coreboot-based distros,
* explore the real possibilities of coreboot BIOS on the modern PCs,
* figure out what can we do to bring back the KGPE-D16 server support to a coreboot master,

\- and much more! There’ll be a lot of interesting talk with a cosy atmosphere and good vibes - so, feel invited and take your beer! ;) [http://live.evenea.com/3mdeb-vbeer](http://live.evenea.com/3mdeb-vbeer) , **Tomorrow** 18th Feb **at 3PM GMT**

https://redd.it/llt9sz
@r_linux
All my achievements in 2 month journey of being Linux Youtuber

This is my 0 to \~1k Subs journey where I provided Lot of goods to community without spamming my channel videos. This is why I Love Reddit. You can get recognized even with 0 followers.

**About Me -**

* I am Suraj Kushwah (aka **BugsWriter**)
* Distro - I hop between Arch & Gentoo (with dwm)
* I love **Linux**\-**libre kernel** and I am a big GNU fan.
* I started a Linux YT channel. Because Technology is getting shit everyday and I believe I have to save the world.

# Here my Past 2 months Achievements -

&#x200B;

* [myyt](https://github.com/Bugswriter/myyt) \- One command to search (with dmenu) and play YouTube videos from terminal. This was my first simple noscript, my purpose was just to teach but, surprisingly this got lot of attention and I got 1.7k total Upvotes on multiple subreddits. This motivated me a lot because I was used to live in dark, I was very good with Linux and computers but it was my hidden talent, because I had really shitty communication skills.

&#x200B;

* [redyt](https://github.com/bugswriter/redyt) \- Simple noscript to download images of top posts of any Sub Reddit and open it with sxiv. I made this just to show people power of terminal and again noscript also got lot of attention (1k+) Upvotes (total).

&#x200B;

* **After this I got shout out from** [Mental Outlaw](https://youtu.be/xogxETRXN4k) for myyt and redyt.. and I was so shocked because I was used to watch him to learn about gentoo.

&#x200B;

* [pirokit](https://github.com/Bugswriter/pirokit) \- Script to search torrents from dmenu and start download them instantly. This got lot of attention on r/piracy and some other Linux subreddits. (1k+ Upvotes)

&#x200B;

* [Unixporn Compilation](https://youtu.be/upCemv2UaLc) \- I believe everyone of you watched this video. I created this for my channel. People on r/unixporn loved this video. (5.5k+ Upvotes)

&#x200B;

* [Wallpaper Downloader](http://0x0.st/-zNM.bin) \- A Script to search and download wallpapers from Wallhaven in bulk. This got lot of attention on r/unixporn. (600+ Upvotes)

&#x200B;

* [Youtube Automation](https://www.reddit.com/r/linux/comments/l5awi1/automating_an_entire_youtube_channel_with/) \- I shared this technique of making compilation video by editing with ffmpeg and uploading it with simple shell magic. This got lot of attention on r/linux (1.6k upvotes)

&#x200B;

* [Tuxi](https://github.com/Bugswriter/tuxi) \- A program which scrape google to give question answer or any question on terminal. Now this one is one of my best. People are keep adding cool stuff to this. Got lot of attention on r/unixporn (2k+ Upvotes Total)

&#x200B;

* **Today I Got another** [**Shout Out**](https://youtu.be/PLwtX_gflAA) **from Mental Outlaw for Tuxi.**

&#x200B;

Besides all this I also shared some really good ideas which convince people why to learn using terminal. Like -

* Sharing files online quickly with dmenu.
* Why you need to learn awk.
* Gilfoyle's remote rig toggling program in BASH
* and some real life example of saving time with terminal.

Getting all these ideas, writing noscripts, recording & editing Video, Communicating with all response I get .. It's a lot of work for a lazy guy like me (after all that's why I write noscripts). But my passion for Linux and all the good response I get truly changed my personality.

With all this, I overcome my fear of speaking English. I remember during my first video I was so nervous in front of mic. Spending hours just to say one paragraph properly.

It's like dream come true. Showing people why to use Linux. Convince them to learn programs like **awk, sed, cut, paste, grep**.

My life is changed .. I hope my 2 month journey will motivate you to share your knowledge and providing goods to community.

I never spam any of my youtube video on any Linux subreddit. I always did text based post or posted demo video. I just share my video link in comments silently which I have to, since Youtube hardly promote good Linux YouTuber and If I don't share how people are going to know about
How to recover formatted ext4 created on lvm partition

I need to recover a ext4 that was created on a lvm filesystem as I accidentally formatted it by mistake from ext4 to ntfs using disks in Ubuntu desktop The lvm is a 7tb partition made up of 1tb, 2tb and 4tb drives. The lvm was created using gpart and webmin lvm management tool as I'm a noob when it comes to command line stuff

https://redd.it/lluxhr
@r_linux
Finally decided to install Linux again after years!

Three years ago I was DONE with Windows, I had jusr found out about Linux and it only took me 5 minutes to tell myself "woah this is so much better than Windows 10!", so I installed it immediately.

I am obsessed with customizing my OS', needless to say both my phone and PC look nothing like stock Android and Linux, even on Windows I did my best to change everything (but obvioulsy there is a limit... ew).

I loved being able to customize Linux so much, that's when I understood what freedom really was (lol), heck you can even change the bootsplash?!?

But I was younger and dumber than now, and I didn't really know how to use the terminal, so that's pretty much where the pros for Linux ended, I couldn't use Photoshop, many videogames and school programs... Sure, there were Wine (which mostly didn't work) and alternatives, but it wasn't the same thing, so there I was installing Windows 10 back.

But 3 years later, Linux's distros improved so much since then, and I miss being able to do all that stuff, I just decided to install it again, but on a partition, so I can have fun with Linux (geez it looks to good!!) and switch to Windows for a few programs.

I know many things have changed since 3 years ago, when I used Ubuntu, and I'm planning on installing it again, is that still a good distro to install in 2021? Is there something I should know? Any tips? :)

https://redd.it/llwrgm
@r_linux