Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strategerizing my Gentoo explorations...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Sun Jan 07, 2024 7:43 pm    Post subject: Strategerizing my Gentoo explorations... Reply with quote

I've been thinking. TLDR; help me come up with a workable strategy to move from my fresh install to a polished working environment.

Gentoo is a great learning experience for me. I've only been using it for the last week or so, and I've already learned a bunch of new things. It's slow to have to build software from source, but it gives me time to think about what I've done and that has some value, for sure, so I'm not knocking it. I figure, if I really want the convenience of binaries, I can either turn that on in Gentoo and see what it's like, or more likely, at least until I have a great deal more Gentoo experience, just use MX. Which brings me to the point - I really like Linux Mint and MX Linux. Mint because it just works so much of the time compared to anything else and MX cuz it does too and without ubuntu, systemd or cinnamon. But, I like the minimalism and straightforwardness of Gentoo. I like that it's not systemd (at least that's the illusion, I'm subscribing to) and that it doesn't drag in lots of dependencies by default. What I'd really like though, even more then Mint or MX is a system I build from the ground up that works similarly to Mint and MX.

Hence, the question, what's a good strategy for me to implement that'll move me from noob to running my homegrown Mint/MX?

Not Mint or MX in a canonical (not to be confused with Canonical TM) sense, but in a functional desktop with audio, video, zoom obs studio, shotcut, rhythmbox, printer niftiness, working together awesomeness sense :).

So far, I've done several installs on several systems and vms and stuff seems to just work for the base system. I hit the occasional, "why isn't my screen blanking?," type question, but a little digging usually nets me an answer. I have a long way to go yet, but here's what I'm thinking - suggestions welcome!

Figure out how to get things installed - done enough - several different platforms and approaches, all pretty much the same process - get, burn, and boot the install medium, put it onto the system, unpack stage 3, get a kernel, install stuff, yay. The handbook provides the roadmap to follow on this.

Figure out the proper workflow to keep the system updated, as it grows in complexity - no idea yet.
Q1. Is there a best practice here? Everything I read is different, with different frequencies, different incantations, and different workflows, all very confusing.

Grow the system towards the goal - add things in a reasonable order in a way that I can track (in my mind) what's going on - definitely a work in progress. Lots of questions:
Q2. Is there a best practice here? Customizable beyond belief is great, but are there reasonable guidelines or order?
Q3. Are there ways not to do the growth?
Q4. If something goes off the rails with a lot of packages having been added, is there a way to return to the state prior to the installs?

Snapshot progress along the way - no idea how.
Q5. Is there a way to do system snapshots?

A short rant: It appears that Gentoo supports ZFS, but root on zfs isn't really a supported thing. Further, my favorite curmudgeon (Linus) and his minions hate ZFS and don't even see the point. Which is fine, if a bit weird... over on FreeBSD, where I use ZFS all the time, I am able to make changes willy-nilly and I can rollback precisely to where I left off, make perfect backups, copies of backups, etc, without any fuss or hiccups or loss of data. I haven't trusted BTRFS since losing a handful of large disks with important content on them with my various attempts to use it over a number of years (It's been at least 5 years since). So, I'm not really interested in hearing how it works the same or is "better". the simple fact is that I've never lost a bit (to my knowledge) on ZFS in more than a decade of continuous operation including numerous OS upgrades, OS changes (FreeBSD to Linux and back again), disk failures, configuration changes, system changes, etc. In a word, I'm sold on ZFS and the OS has to support it or I'm not interested in the OS :). That said, Gentoo appears to support ZFS (I haven't quite gotten that far in to the configruing the system yet, but it seems likely). So, I'm not complaining about Gentoo. But, I am curious what the snapshot options are for the root FS (other than BTRFS).

In a nutshell, I'd like to start down a path of installing Gentoo, customizing it towards an MX-like experience, while keeping up to date, experimenting with packages/groups of packages, that move towards a progressively more complex operating environment with a reasonable expectation of not hosing things along the way and having no other way of fixing things than reinstalling.

I would appreciate any answers to the questions I've posed, alternative strategies, or even just tips to keep me from the road to destruction you might have to offer.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3140

PostPosted: Sun Jan 07, 2024 8:01 pm    Post subject: Reply with quote

IMO you only need answer to 1 question out of the bunch you asked: easy rollbacks. This is the one thing that will be quite annoying to fix later (No, not impossible. Just annoying).
LVM snapshots do pretty good job, if you have lvm, it doesn't really matter what FS you use. Good, old, boring ext is good because it's good, old and boring.
Put /home on a different partition, so you don't rollback your user data along with the system, and try not to oversize root partition too much. You can always grow it later. Actually, don't oversize /home too much either. There may be some other, application specific data paths too, like /var/lib/mysql for example. There's a good chance you'll know if you have any valuable data outside of /home though.

Regarding the rest... Don't worry about it. Roll up your sleeves and go. The road will present itself to you as you walk it, one step at a time.
Back to top
View user's profile Send private message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Sun Jan 07, 2024 8:07 pm    Post subject: Reply with quote

szatox wrote:
IMO you only need answer to 1 question out of the bunch you asked: easy rollbacks. This is the one thing that will be quite annoying to fix later (No, not impossible. Just annoying).
LVM snapshots do pretty good job, if you have lvm, it doesn't really matter what FS you use. Good, old, boring ext is good because it's good, old and boring.
Put /home on a different partition, so you don't rollback your user data along with the system, and try not to oversize root partition too much. You can always grow it later. Actually, don't oversize /home too much either. There may be some other, application specific data paths too, like /var/lib/mysql for example. There's a good chance you'll know if you have any valuable data outside of /home though.

Regarding the rest... Don't worry about it. Roll up your sleeves and go. The road will present itself to you as you walk it, one step at a time.


What a great 3000th post :). Thanks. I haven't used LVM recently. I think I tried it when it first came out, but not since. It's a great suggestion and next milestone to go after. Getting an easy rollback environment set up. LVM on root. If I can get that working, I can manage just having home on ZFS. Off to tracking down info on LVM in the modern era!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4162
Location: Bavaria

PostPosted: Sun Jan 07, 2024 8:30 pm    Post subject: Reply with quote

First of all: Everything has advantages and disadvantages. You can use your car to drive to the next store or your bike ... you decide it depending on various factors (distance, transportation of purchases, cost of gasoline, etc.) ... the same with your operating system ;-)


decuser wrote:
Q1. Is there a best practice here? Everything I read is different, with different frequencies, different incantations, and different workflows, all very confusing.


Best would be to update at least once a week (because of security; I know some people do it daily). But not everyone has so much time on their hands - once a month is okay too. The longer the system is not updated, the more likely problems become. Portage must be updated first. There are various tools for this. I prefer "eix-sync", but in the end it's a matter of taste. Before you do the world-update, you can first see what would be done with "emerge -uUDvp @world". Then delete the "p" and submit. Sometimes the message appears that there is new news ... just read it with "eselect news read" ;-)


decuser wrote:
Grow the system towards the goal - add things in a reasonable order in a way that I can track (in my mind) what's going on - definitely a work in progress. Lots of questions:
Q2. Is there a best practice here? Customizable beyond belief is great, but are there reasonable guidelines or order?


Maybe I dont understand your question correct ... so maybe my answer is not what you need. I did a new installation last year and the order was:
- base installation of gentoo with my own configured kernel (no initramfs in the first step) using an UEFI boot
- installation of X11
- installation of KDE/PLASMA
- configuration of Firewall (together with installation proxy: privoxy)
- installation of unbound (doing DNS over TLS)
- installation of KDE-applications and Libre-Office
- installation of AppArmor
- switch to SecureBoot
- installation/configuration Backup (luckybackup)
- installation IMA
This was my order - of course you will do your own ... BUT ... this is my suggestion: Log all your actions ... and update it whenever you change your system ;-)
(Here is my log: https://wiki.gentoo.org/wiki/User:Pietinger/temp/delete_me )

decuser wrote:
Q3. Are there ways not to do the growth?


Sorry, I dont understand this.

decuser wrote:
4. If something goes off the rails with a lot of packages having been added, is there a way to return to the state prior to the installs?


IMHO the easiest method is working with snapshots ... ->

decuser wrote:
Q5. Is there a way to do system snapshots?


I understand your thinking about BTRFS (its mine too :lol: )... I also understand your love for ZFS; I dont like it (because Linus dont like it and it is not a piece of the kernel). I am using rock solid EXT4 ... and our gentoo developers recommend XFS ... both have no native snapshot function ... but ... just work with LVM:

https://en.wikipedia.org/wiki/Xfs#Snapshots
https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)#Basic_functionality
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Jan 08, 2024 6:00 am    Post subject: Reply with quote

The more time you spend USING MX-Linux or Linux Mint, the less time you will spend polishing your Gentoo installation. Additionally, much of what you learn maintaining MX and/or Mint, won't be transferable to mastering portage. Both are excellent. I have many hours invested maintaining both MX and Mint in the enterprise on the desktop, so I'm aware of their goodness for general desktop use.

If your Gentoo system is usable for your day-to-day computing needs, just use it. Then advance one step at a time, going slowly and deliberately.

Two more things. When installing and updating programs, you don't have to watch the terminal. Minimize the terminal window or let it be covered up with other windows and and keep using your computer to meet your computing needs, while occasionally checking the status of terminal windows. In other words, be productive and/or have fun while doing your enhancing or tweaking.

Finally, establish a plan and schedule for making backups. The backups you didn't make yesterday, will be gone forever on some tomorrow. There are many choices of programs with which to make regular backups. Do this NEXT. Everybody needs a disaster/human error recovery system. If you leave your computer running 24/7, backups can be made while you sleep. There are threads in the forums about backup systems. Consider creating a stage4 tarball. I've posted my stage4 scripts here so not too hard to find. With a proper stage4 tarball, a full system can be restored to a different partition or hard drive or even a replacement computer.

Welcome to Gentoo.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Mon Jan 08, 2024 6:15 am    Post subject: Reply with quote

szatox wrote:
LVM snapshots do pretty good job,...


Woohoo - got it working with LVM for root. Other than formatting my boot partition as vfat and putting ext4 in fstab, it went swimmingly. I guess mounting boot is kinda superfluous as it didn't stop it from booting, but I just edited fstab and rebooted. All's well that ends well. Now, I'm gonna play around with rollbacks until I get the hang of things, but I think it's gonna be fine. Thanks for the tip, @szatox.
Back to top
View user's profile Send private message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Mon Jan 08, 2024 6:19 am    Post subject: Reply with quote

@pietinger, you may not have understood everything I was asking, but your answers are quite informative and helpful. I'll put most of it into practice - weekly updates, lvm snapshots, etc. I appreciate your letting me know what order you installed stuff. I was wondering. What I meant by the confusing bit was - what should I definitely not do :).
Back to top
View user's profile Send private message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Mon Jan 08, 2024 6:24 am    Post subject: Reply with quote

figueroa wrote:
The more time you spend USING MX-Linux or Linux Mint, the less time you will spend polishing your Gentoo installation. Additionally, much of what you learn maintaining MX and/or Mint, won't be transferable to mastering portage. Both are excellent. I have many hours invested maintaining both MX and Mint in the enterprise on the desktop, so I'm aware of their goodness for general desktop use.

If your Gentoo system is usable for your day-to-day computing needs, just use it. Then advance one step at a time, going slowly and deliberately.

Two more things. When installing and updating programs, you don't have to watch the terminal. Minimize the terminal window or let it be covered up with other windows and and keep using your computer to meet your computing needs, while occasionally checking the status of terminal windows. In other words, be productive and/or have fun while doing your enhancing or tweaking.

Finally, establish a plan and schedule for making backups. The backups you didn't make yesterday, will be gone forever on some tomorrow. There are many choices of programs with which to make regular backups. Do this NEXT. Everybody needs a disaster/human error recovery system. If you leave your computer running 24/7, backups can be made while you sleep. There are threads in the forums about backup systems. Consider creating a stage4 tarball. I've posted my stage4 scripts here so not too hard to find. With a proper stage4 tarball, a full system can be restored to a different partition or hard drive or even a replacement computer.

Welcome to Gentoo.


Thanks, good advice, for sure. I am getting closer to having a functional Gentoo install that I can work with for the majority of what I do, but I'm not quite there yet. Otherwise, I would just use it and figure stuff out on it (that's exactly how I learned FreeBSD). I am excited because over the last few days, I've figured out a lot of things... just a little more and then I can switch the desktop machine over and that'll motivate even more investigate, fix, refine cycles.

Next up, after I get my second laptop installed with LVM with GPT/UEFI through XFCE will be audio, then video... if I can run zoom (or zoom in browser), I'll be able to use it as my daily driver.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4162
Location: Bavaria

PostPosted: Mon Jan 08, 2024 4:20 pm    Post subject: Reply with quote

decuser wrote:
@pietinger, you may not have understood everything I was asking, but your answers are quite informative and helpful. [...]

You are very Welcome ! :D

decuser wrote:
[...] What I meant by the confusing bit was - what should I definitely not do :).

Yes, there is one thing where new Gentoo users can stumble: When updating to a specific package (*) instead of updating to world, you should always use the -1 (--oneshot) parameter. If this parameter is not used, the package will end up in the /var/lib/portage/world file and this will lead to problems over time. Read more here:
https://forums.gentoo.org/viewtopic-t-1143543-highlight-.html

P.S.: *) ONLY when you do an update; NOT when you want install a NEW package with "emerge -v PACKAGE"; "emerge -uUDv @world" DONT need "-1"; my recommendation is: Always do a world-update ;-)

Have fun with Gentoo ! 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
decuser
n00b
n00b


Joined: 23 Jan 2003
Posts: 60
Location: Godley, Texas

PostPosted: Mon Jan 08, 2024 6:22 pm    Post subject: Reply with quote

got LVM snapshots to work and tested, yay. Ready to move from the N4110 to the Thinkpad... hopefully, I can get a brower (firefox) up pretty quickly. I think I'll go with basic desktop install, add ctwm and firefox, maybe hexchat (or even irssi). I figure an hour or two. Then I can tackle the hard stuff.
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Mon Jan 08, 2024 7:37 pm    Post subject: Reply with quote

decuser wrote:
hopefully, I can get a brower (firefox) up pretty quickly.

Just in case you didn't know about it, www-client/firefox-bin will save you time, especially on old hardware.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum