The Official Linux Thread

BaKardi Slang

Caribbean-Canadian 🇦🇬
Joined
May 24, 2022
Messages
518
Reputation
295
Daps
1,185
Reppin
Canada 🇨🇦
^Good for the noobs like myself lol

I'm just getting into it. I have Pop!_OS (initially was Zorin 16) on an old Acer Spin with an Intel Pentium which doubles as a drink coaster, and I'm dual-booting Windows 11/Ubuntu 22.04 (LTS Jammy Jellyfish) on one of my Ryzen laptops. I love the customization. I might consider removing Windows when I get R/RStudio and Python running.
 
Last edited:

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,507
Reputation
1,372
Daps
21,227
Copped a few more Udemy courses (I'm addicted smh). Got one on Bash Scripting. Not sure I'll be able to use it regularly, but if I can automate some work stuff, it will pay off pretty quickly

 

boogers

cats rule, dogs drool
Supporter
Joined
Mar 11, 2022
Messages
7,718
Reputation
3,009
Daps
22,742
Reppin
#catset
Copped a few more Udemy courses (I'm addicted smh). Got one on Bash Scripting. Not sure I'll be able to use it regularly, but if I can automate some work stuff, it will pay off pretty quickly


i prefer using zsh for my shell. i write most of my bangs for sh anyways.. i dont think ive ever had a bash script NOT work in zsh. anyways

videos are cool i guess but the best way to learn for me is to just do. i use my terminal for everything.. any beginners out there should try fish shell.

one problem ive always had is memorizing keyboard shortcuts. vi is a nightmare for me. im forcing myself to use neovim over nano.

it was the vertical select mode that really sold it for me:

IFt7d.png
 

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,507
Reputation
1,372
Daps
21,227
So Chromebooks run Debian in a container & I configured that to SSH into my W10 Desktop.

The plan now is to automate Debian backups & push them to an external hard drive on my W10 desktop to save space.

The issue is I can't get the damn ssh to stop prompting me for a password, so I can't automate the steps. I followed instructions online and created an authorized_keys file, but no dice

My desktop has two ssh locations, one is buried inside WSL2 (ie /home/macallik/.ssh/authorized_keys), and the other is in Windows (C/Users/macallik/.ssh/authorized_keys). I duplicated the key info in both but no dice.

Might just have to settle for running chron monthly and then just manually pushing the files via rsync :jbhmm:
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
55,936
Reputation
8,234
Daps
157,550
So Chromebooks run Debian in a container & I configured that to SSH into my W10 Desktop.

The plan now is to automate Debian backups & push them to an external hard drive on my W10 desktop to save space.

The issue is I can't get the damn ssh to stop prompting me for a password, so I can't automate the steps. I followed instructions online and created an authorized_keys file, but no dice

My desktop has two ssh locations, one is buried inside WSL2 (ie /home/macallik/.ssh/authorized_keys), and the other is in Windows (C/Users/macallik/.ssh/authorized_keys). I duplicated the key info in both but no dice.

Might just have to settle for running chron monthly and then just manually pushing the files via rsync :jbhmm:

snippet:

What is the purpose of SSH authorized_keys file

ssh authorized_keys file is private. The ssh authorized_keys file should be placed in a directory which is only accessible by the user. For example, the ~/.ssh directory.

ssh authorized_keys file permissions should be set to 600 which means that only the user who owns the file can read and write to it.

ssh server daemon usually looks into ssh authorized_keys file for ssh key fingerprint. ssh authentication protocol uses ssh keys to verify that the user is authorized to login.

~/.ssh permissions should be set to 700
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
55,936
Reputation
8,234
Daps
157,550


been using rdfind on a server for like a month now and it's saved me so much time and diskspace.
 

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,507
Reputation
1,372
Daps
21,227
So Chromebooks run Debian in a container & I configured that to SSH into my W10 Desktop.

The plan now is to automate Debian backups & push them to an external hard drive on my W10 desktop to save space.

The issue is I can't get the damn ssh to stop prompting me for a password, so I can't automate the steps. I followed instructions online and created an authorized_keys file, but no dice

My desktop has two ssh locations, one is buried inside WSL2 (ie /home/macallik/.ssh/authorized_keys), and the other is in Windows (C/Users/macallik/.ssh/authorized_keys). I duplicated the key info in both but no dice.

Might just have to settle for running chron monthly and then just manually pushing the files via rsync :jbhmm:
Figured it out. Upgrading from WSL -> WSL2 breaks SSH abilities. Reverted today and it is working as expected
 

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,507
Reputation
1,372
Daps
21,227
Linux command line + <insert your fave GPT model> is a game-changer. I highly recommend everyone jump on board ASAP. There's something about talking to these Large Language Models via a command prompt that feels equal parts minimalistic and futuristic.

This dude reverse-engineered the websites so that you can connect to it very easily:

One of my fave tasks is just getting shorthand code/explanations on errors or even translating a normal request into a linux command:
Tv53eQf.png

(I do have some aliases in bash to ask questions more concisely btw)

Also, I want to mention Shell_GPT as well. It requires an OpenAI API Key for usage, but unlike the other options (AFAIK), it allows you to create numerous different chats (read: contexts) for conversations as well as set the role/backstory that you want ChatGPT to play in the convo. You can technically do this via prompt engineering, but if you want the context to remain in perpetuity, then roles are a Godsend (and saves you tokens if you are on a pay-as-you-go plan).
Edit: Shell_gpt also has the most detailed readme, along w/ a video example showing some capabilities and ideas for the more tech-savvy users

My current workflow is using one of the free versions at the top to ask general questions, and using the pay-as-you-go ShellGPT one for personal projects that require more attention-to-detail or that give the AI a more-detailed context.
 
Last edited:

Macallik86

Superstar
Supporter
Joined
Dec 4, 2016
Messages
6,507
Reputation
1,372
Daps
21,227
Anybody tried out Debian Bookworm yet?
For some reason, I only figured out in the past week that many front-end Linux OS are built w/ Debian in the backend. I was thinking it was a standalone CLI-only tool this whole time :dead:

Now I'm lowkey itching to try Debian. Gonna play around w/ it once I get the hang of this Docker Course I'm taking.
 

Obreh Winfrey

Truly Brehthtaking
Supporter
Joined
Nov 18, 2016
Messages
20,852
Reputation
25,252
Daps
131,941
i need to learn this docker shyt too. i just been letting the leads set up the dockerfiles and i just build/up and down/exec when i need to. yeah im a lazy fukk :russ:
Docker is probably one of the most straightforward tools I've used. The biggest roadblock was figuring out permissions issues when copying files in - files lose execution privileges on copy so you gotta remember to add them back.
 
Top