- 21 Posts
- 544 Comments
I don’t share mine. I manage them with gnu stow and my private gitforge on my server (with 3-2-1 backup in place)
I don’t have an objection to sharing them. I don’t think it’s too personal, I just don’t use a public facing gitforge.
Edit to add: I have branches for my different machines in my dotfiles repo for variations
harsh3466@lemmy.mlto
Linux@lemmy.ml•The worst mistake I could have possibly made with Linux...
1·10 months agoI run arch on my laptop (btw), and Ubuntu server on my server. I like how reliable and stable Ubuntu server is. Gives me piece of mind.
harsh3466@lemmy.mlto
Linux@lemmy.ml•Useful CLI tools like ffmpeg, ani-cli, yazi, etc.?
1·11 months agoI’ve already aliased
glfor git log with my flags, but have been too lazy to add more aliases.
harsh3466@lemmy.mlto
Linux@lemmy.ml•Useful CLI tools like ffmpeg, ani-cli, yazi, etc.?
1·11 months agoOh. I did not know that. Gonna try that right now.
harsh3466@lemmy.mlto
Linux@lemmy.ml•Useful CLI tools like ffmpeg, ani-cli, yazi, etc.?
4·11 months agojqis indispensable.
harsh3466@lemmy.mlto
Linux@lemmy.ml•Useful CLI tools like ffmpeg, ani-cli, yazi, etc.?
3·11 months agozoxide. It’scdbut better. It remembers which directories you’ve navigated to, and fuzzy finds them.So instead of typing:
cd /really/long/path/to/sime/dirYou can type:
zoxide dirAnd it’ll take you right to the directory.
I’ve got it aliased to
zdso I type:zd dirAnd I’m there.
harsh3466@lemmy.mltoHacker News@lemmy.bestiver.se•Cops say criminals use a Google Pixel with GrapheneOS – I say that's freedomEnglish
23·11 months agoI guess I’m a criminal?
harsh3466@lemmy.mlOPto
Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI
1·11 months agoThank you for the link!
I do understand the logic and the difference between
;,&&, and `||. What was confusing me was the command grouping and my misunderstanding of the curly brace grouping rule that the command list has to END with a semicolon. @SheeEttin@lemmy.zip pointed out to me with the link in the comment they left.I had read that same link and misunderstood it. On second read I got it, and see now why my script is working, as the newlines serve the same purpose as the semicolon, so the curly braced groups are terminated correctly.
harsh3466@lemmy.mlOPto
Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI
2·11 months agoMy environment is just my homelab. Ubuntu server on my server, Arch (btw) on my laptop. So I could go with any language , but right now I’m choosing Bash. I know stuff I’m doing would probably be easier in a different language, and maybe I’m a glutton for punishment. I just want to get really good with Bash.
The logic is Bash is gonna be available on just about any computing environment I encounter (linux especially, but even Windows with WSL and zsh on macOS (which I know is different, but still very similar). But really, I am just enjoying the hell out of learning and scripting with Bash. I’ll move on to Python or something someday.
harsh3466@lemmy.mlOPto
Linux@lemmy.ml•Question About Bash Command Grouping Behavior in Script vs CLI
1·11 months agoAh! I misinterpreted what I read! I found that exact same reference link when looking into this and I misinterpreted this:
The semicolon (or newline) following
listis requiredto mean that it required the semicolon as the command separator. That explains why my script works. The newline closes each group, and the other operators are allowed, the list just needs to be closed. Thank you!
harsh3466@lemmy.mlto
Linux@lemmy.ml•My first installation of linux on a 5 year old laptop
2·11 months ago+1
I’m having a ton of fun learning and scripting in bash!
harsh3466@lemmy.mlto
Linux@lemmy.ml•My first installation of linux on a 5 year old laptop
1·11 months agoOne of my main workstations is a 2014 iMac running arch (btw). According to Apple it’s unusable ewaste.
harsh3466@lemmy.mlto
Linux@lemmy.ml•My first installation of linux on a 5 year old laptop
2·11 months agoWelcome!
harsh3466@lemmy.mlto
Linux@lemmy.ml•What do you prefer: icon view or detailed list view?
8·11 months agoList. I hate icon view. Hate it
harsh3466@lemmy.mlto
Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS
2·1 year agoPerfect. So you’ve got separate
/bootand/boot/efipartitions, which means dual booting will be much easier if you want to do that.The
ubuntu--vg-ubuntu-lvis the logical volume you’ll want to resize. So now we need to see how much space is available on the volume. To get that, run the commandsudo df -hand paste that output into a comment.From there we can figure out how much space you have and how you might want to resize the volume to prep for a new install.
What is challenging about this is that your data is under your root (
/) mount, which is also the ubuntu os. If in the end you want to entirely remove ubuntu, it’ll be a little trickier than if your data was in a separate logical volume that you mounted into your root system during boot.For example many people have a separate logical volume for
/home, which makes it easier to switch distros while preserving your home folder with all of your user data, config files, etc…But that’s getting a little ahead of ourselves. Start with
sudo df -hfor the filesystem usage info and we can go from there.
harsh3466@lemmy.mlto
Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS
3·1 year agoHappy to help!
lsblkwill give exactly the info needed. Copy the output oflsblkand paste it into a reply and that will be perfect. Or a screenshot. Whatever’s easier for you
harsh3466@lemmy.mlto
Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS
1·1 year agoOkay, more details will be required, but here’s what I’m thinking will work.
One of the benefits of an LVM is its pretty easy to resize it.
The outline of what you can do is this (and we can refine the steps with more details)
Right now you’ve got your 8TB physical volume, and within that, you should have your volume group, and within that volume group, you should have one or more logical volums that are mounted for your system. The idea is to resize the existing logical volume by shrinking it, creating addition space within the volume group that can be used to create a new logical volume. Then, that new logical volume can be used to install Fedora.
Depending on how much free space you have on the entire physical volume, you could potentially dual boot Fedora and Ubuntu. Roughly speaking, the steps would look like this:
WARNING: These steps are not exhaustive because I don’t know the full details of your system. This is not meant to be a guide for you to immediately implement and follow, but to help get you down the right path DO NOT FOLLOW THESE STEPS WITHOUT FIRST FULLY UNDERSTANDING HOW THIS WILL APPLY TO YOUR UNIQUE SYSTEM SETUP.
- Download a Linux ISO of your choice. Ubuntu, Fedora, it doesn’t really matter. This one is going to be used to live boot on your server so you can make adjustments to your lvm without having the lvm mounted.
- Boot into the live usb
- Once you get to the desktop environment of the live usb dismiss any installation prompts, etc and open a terminal
- Install the logical volume tools with
sudo whatever-the-package-manager-install-command-is lvm2 - If your volume group is encrypted (typically with LUKS), you’ll need to decrypt it to make sizing changes to the lvm(s) in the volume group. You can decrypt it with:
cryptsetup open /dev/your-disk-here name-of-your-volume-group- For example, on my system if I were doing this it would be
cryptsetup open /dev/nvme0n1p2 server(I very creatively named my server volume groupserver)
- Once you can access your volume group, you can use the
dfcommand to see how much space is free in your volume group. The full command you’ll want to run is:sudo df -h- This command will list all mounted disks along with filesystem usage data. With this you should be able to determine how much free space you have in your volume group.
- Once you’ve determined how much free space you have, you can decide how big you want to make your new logical volume. For example, if your current usage is 6TB out of the 8TB total, you could resize the current logical volume down to 7TB, and then create a new logical volume that’s 1TB in size for the Fedora install
- You will do the resize using the
lvm2tools installed. The command to shrink the logical volume looks like this:sudo lvreduce --resizefs --size -1TB /dev/your-volume-group/the-lvm-name
- Once you’ve shrunk the lvm, You can create your new lvm
IMPORTANT NOTES:
- If at all possible, you should really back up the data. If you don’t have any kind of backups in place, you’re risking losing all of your data, not just in doing this operation, but in general.
- If you want to dual boot, things are more complicated because of where your
/bootexists
harsh3466@lemmy.mlto
Linux@lemmy.ml•Advice on migrating from Ubuntu server to another server OS
3·1 year agoCan you detail the storage and is drives and mounts as well as the lvm structure? Knowing that will help people give useful advice.





What do you like about chezmoi vs stow?