jaeger changed the topic of #crux to: CRUX 3.7 | Homepage: https://crux.nu/ | Ports: https://crux.nu/portdb/ https://crux.ninja/portdb/ | Logs: https://libera.irclog.whitequark.org/crux/
Guest54 has joined #crux
<Guest54> hey guys
<Guest54> im having a problem
<Guest54> im trying to run crux on virtualbox just to try it out
<Guest54> let me explain the details
<SiFuh> Good
<Guest54> after Copying files from rootfs.tar.xz it says kernel panic
<Guest54> i am using CRUX 3.7
<SiFuh> More than 1GB of ram in Virtual Box?
<Guest54> let me check
<Guest54> can't find anything that says anything relating to RAM forgive me if i sound stupid but, is it base memory?
<Guest54> its currently 1024 MB
<Guest54> Video Memory is 16MB if you wanted to know that
<SiFuh> Jack up your ram in your virtual machine to something like 2GB. Then do your install. After you can drop the RAM back to what ever you want.
<Guest54> ok
<Guest54> i'll reinstall it
<SiFuh> The rootfs.tar.xz requires more than 1GB to boot the ISO
<SiFuh> Reinstall? You should be able to just reconfigure the amount of RAM when the VM is off.
<Guest54> ah well its blocked for me
<Guest54> for some reason
<Guest54> alright it worked
<Guest54> thank you
<Guest54> also just asking
<Guest54> can i customize the UI of Crux Linux freely?
<SiFuh> Whatever you want ;-)
<Guest54> nice
<Guest54> thank you for your help
<Guest54> got a question
<SiFuh> Just ask
<Guest54> how do i check available partitions?
<Guest54> i saw online
<Guest54> fdisk
<Guest54> and it was available there
<Guest54> though not used in the same way?
<Guest54> oh nevermind
<Guest54> it has a setup command
<SiFuh> You do the partitioning with fdisk first.
<Guest54> oh i see
<SiFuh> Then mount the partitions and create the mount points if needed then run setup
<SiFuh> Oh and I forgot, you need to make the filesystems between fdisk and mounting
<Guest54> filesystems?
<Guest54> thank you
<SiFuh> Someone installing 3.6
<Guest54> i notice in the video he runs some commands
<Guest54> mkfs.ext4 /dev/sda5
<Guest54> is it neccessary i make as much partitions he did?
<Guest54> necessary*
<Guest54> or can i just mount it immediately after creating one
<Guest54> oh i see
<Guest54> he makes the file system
<Guest54> alright i think i got installation going?
<Guest54> partition is made
<Guest54> alright installation is done
<Guest54> um but i probably should've done more packages
<Guest54> anyway
<Guest54> so i'll restart
<Guest54> he checks the boxes for the packages in the video
<Guest54> what key does he use? It seems it is not enter since that is for something else
<Guest54> or
<Guest54> what key does he press*
<Guest54> nevermind
<Guest54> i got it figured out
<Guest54> you press spacebar
<Guest54> it sounds obvious but i have been told to post the solution here
<Guest54> instead of not
<cruxbot> [core.git/3.7]: zstd: update to 1.5.5
<cruxbot> [core.git/3.7]: cmake: update to 3.26.3
<cruxbot> [opt.git/3.7]: ppp: update to 2.5.0
<cruxbot> [opt.git/3.7]: hpcups: update to 3.23.3
<cruxbot> [opt.git/3.7]: maildrop: update to 3.1.2
<cruxbot> [core.git/3.7]: python3: update to 3.10.11
<Guest54> it seems a lot of this installation seems to just be configuration
<SiFuh> Yep
<SiFuh> And compiling a kernel
<SiFuh> [Guest54> can i customize the UI of Crux Linux freely? <-- You can customize everything
<Guest54> well i sure like how customizable this is, only downside is it might take a while.
<Guest54> anyway i have another question which is about resolv.conf
<Guest54> so
<Guest54> i notice in the video
<Guest54> the domain is removed
<Guest54> it has been replaced with search
<Guest54> for nameserver do i just put a typical router ip address thing
<Guest54> like 192.168.0.1
<SiFuh> Whatever DNS servers you want. Your router may even issue it with a DHCP request
<Guest54> if i put my router address there would it be normal?
<Guest54> no downsides
<Guest54> or anything
<SiFuh> You using DHCP or static?
<Guest54> the guy in the video seems to use his router
<Guest54> uh let me check
<SiFuh> Also depends on the setup of the Virtual Machine.
<SiFuh> If you are using the 192.168.0.0/24 address then probably it is your router IP. But if you run DHCP the chances are your router will tell you what the DNS address is and edit the resolv.conf automatically.
<Guest54> i checked
<Guest54> it says dchp enabled: yes
<Guest54> i see
<Guest54> so can i just leave it empty?
<Guest54> back to the <ipaddress>
<SiFuh> Usually
<Guest54> state
<Guest54> alright thanks
<SiFuh> If you have internet when you boot into the main system, you know where to start
<SiFuh> have no internet*
<Guest54> got a question
<SiFuh> To be honest, most of the configuration of the config files doesn't really need to be done during install. They can always be done later on. I usually focus more on building the kernel.
<Guest54> i see
<Guest54> so i can just go with the quick installation
<Guest54> instead of the 56 min vidoe?
<Guest54> or i can skip to a
<Guest54> kernel installation part
<Guest54> by quick installation i mean the stuff on the wiki
<SiFuh> You need fdisk, filesystems, mount, install, compile kernel. Usually that is all.
<SiFuh> That's a very very old hanbook
<SiFuh> Then once you have compiled your kernel, you configure your bootloader
<Guest54> i see
<Guest54> this is a lot easier than i thought it'd be but slightly confusing
<SiFuh> It'
<SiFuh> It's a piece of cake
<SiFuh> After a few installs not only do you learn the basics it will become super easy. Skills that can be used accross multiple distros.
<Guest54> i see
<Guest54> i heard arch came from crux linux later after i searched it up on the internet
<Guest54> is that true?
<SiFuh> Basically
<Guest54> it says
<Guest54> Go to /usr/src/linux-5.15.x, configure and compile a new kernel.
<Guest54> in the video he uses cd
<Guest54> so i use cd but i can't do the .x par
<Guest54> so i just go to the 5.15 thing
<Guest54> what does the .x part mean?
<Guest54> is it like how .conf is short for configuration?
<SiFuh> A number
<SiFuh> You better stick to the manual
<Guest54> well "Go to /usr/src/linux-5.15.x, configure and compile a new kernel. " was in the handbook
<Guest54> i think
<SiFuh> 5.15.55
<Guest54> tried that too
<farkuhar> Guest54: the x was a placeholder, we weren't sure when writing the handbook which precise kernel version would be bundled on the ISO.
<Guest54> oh
<Guest54> thank you
<Guest54> i thought it was a literal file type
<Guest54> now i realize
<Guest54> what he means by a number
<farkuhar> Also we wanted the handbook to be general enough for users who install from the updated ISO (which might include linux 5.15.86 for example).
<Guest54> i see
<Guest54> my fstab has nothing in it
<Guest54> should i put the following in?
<Guest54> # dev> mountpoint>         type> options> dump> pass>
<Guest54> [..]
<Guest54> devpts  /dev/pts      devpts noexec,nosuid,gid=tty,mode=0620  0      0
<Guest54> i may have gotten this confused
<farkuhar> no, that looks fine for a line in fstab.
<SiFuh> Copy and pasted from the handbook :-P
<Guest54> yes
<Guest54>  but i was asking if i should put it in
<Guest54> since nothing is there
<Guest54> no idea what to do here
<Guest54> sorry if i sound rude
<SiFuh> Remember that fdisk thing? What partitions did you make and what partition number are they?
<Guest54> 1 partition
<SiFuh> No swap?
<Guest54> no
<Guest54> ext4 file system
<Guest54> on sda1
<SiFuh> /dev/sda1 / ext4 defaults 0 0
<Guest54> do i put that in there?
<SiFuh> Of course
<Guest54> alright just put it in fstab right
<Guest54> just making sure
<Guest54> oh wait
<Guest54> no i did the wrong file i think
<Guest54> i confused /fstab/ with /etc/fstab
<Guest54> sorry
<Guest54> i forgot i edited the thing earlier
<Guest54> sorry for wasting your time on this one thing
<farkuhar> Yes, the file /etc/fstab should definitely not be empty, if you've completed setup and installed all the core ports. It might need some editing to ensure the correct line for your rootfs, but it will at least have some content.
<Guest54> well it has the thing he said in it i just confused the file names
<SiFuh> Are you in chroot?
<Guest54> yes
<Guest54> im at the menuconfig menu currently
SiFuh has quit [Remote host closed the connection]
SiFuh has joined #crux
<Guest54> my question is
<Guest54> can i leave the menuconfig settings as it is?
<Guest54> or do i have to select some
<SiFuh> So I am pretty sure I know the answer. You don't know how to configure a kernel do you?
<Guest54> nopw
<Guest54> heres a list of linux distros i've run in a vm
<SiFuh> Don't care
<Guest54> ok
<SiFuh> Change to another terminal
<SiFuh> So alt+cntrl+F2 or F3 or something
<Guest54> uh alright it brought me
<Guest54> to the login
<Guest54> ok
<Guest54> im back
<Guest54> to normal
<SiFuh> You will now no longer be under chroot
<Guest54> so uh
<Guest54> what now
<SiFuh> You need to copy the config-5.15.55-modular to /mnt/usr/src/linux-5.15.55/.config
<SiFuh> Should be under kernel/contrib/config-5.15.55-modular
<Guest54> ok
<SiFuh> farkuhar: Do you know the exact path?
<Guest54> i think i saw it in the handbook
<SiFuh> Okay, cool.
<Guest54> it is /crux/kernel/contrib
<Guest54> from the handbook
<SiFuh> Once you copied it over go back to the first terminal alt+cntrl+F1. You should be still in that chroot environment
<Guest54> ok
<SiFuh> Exit your menuconfig but do not save it when it asks.
<SiFuh> Then re-run menuconfig again. It will pick up the new .config file. So your kernel will be configured. You can exit, save and do your compiling (build)
<SiFuh> Then follow the CRUX handbook for the rest.
<Guest54> ok
<Guest54> for copying its cp /crux/kernel/contrib/config-5.15.55-modular /mnt/usr/src/linux-5.15.55/.config
<Guest54> right
<Guest54> i don't wanna mess anything up
<SiFuh> Correct
<Guest54> ok thanks
<Guest54> it doesn't seem to recognize  /crux/kernel/contrib/config-5.15.55-modular as a directory
<Guest54> did i do the setup wrong
<farkuhar> Guest54: where did you mount the ISO?
<Guest54> let me find it hold on
<Guest54> i htink i did
<Guest54> mount /dev/sda1 /mnt
<Guest54> that was the command i did
<Guest54> oh wait
<Guest54> no
<Guest54> thats the partition
<Guest54> uhhh
<Guest54> do you mean
<Guest54> in virtualbox?
<Guest54> i used virtualbox
<Guest54> as a vm
<SiFuh> Guest54: Which screen are you on? The first one alt+cntrl+F1 or alt+cntrl+F2?
<Guest54> i pressed alt+control+F2
<SiFuh> And there is no /crux ?
<Guest54> nope
<SiFuh> You are not chrooted right?
<SiFuh> On that terminal
<Guest54> no
<Guest54> im out of chroot
<SiFuh> Type the command 'mount '
<Guest54> uh ok
<Guest54> done
<SiFuh> And where is the ISO mounted?
<Guest54> i don't see anything about an ISO here
<Guest54> do you want me to post the results here
<SiFuh> Are you able to copy and paste into https://dpaste.com/ or something?
<Guest54> oh wait i just realized i can't copy and paste it
<Guest54> but i can type it manually
<Guest54> which would take a while
<SiFuh> You could take a screenshot or a photo and upload to https://snipboard.io/
<SiFuh> sr0 is your ISO
<Guest54> oh
<Guest54> so /dev/sr0 is its location?
<SiFuh> /media/crux/kernel/contrib/config-5.15.55-modular exist?
<Guest54> let me check
<Guest54> yes
<Guest54> it does
<SiFuh> Then copy that over to /mnt/usr/src/linux-5.15.55/.config
<Guest54> alright thanks
<SiFuh> Make sure there it is .config and not config
<Guest54> ok copied finally
<farkuhar> the naming convention for block devices is not newbie-friendly. If the installation media is guaranteed to mount itself at /media, maybe it would be better to prepend that mountpoint to the modular config path indicated in the handbook.
<SiFuh> Go back to the first screen you are chrooted in. Is menuconfig still running?
<SiFuh> farkuhar: Yeah I was thinking about that
<Guest54> well no because i exited before i did that
<SiFuh> Good
<Guest54> just incase
<SiFuh> Okay run menuconfig.
<Guest54> as in make menuconfig?
<SiFuh> Yes
<Guest54> alright
<Guest54> done
<SiFuh> Then exit it. If it asks you to save, then select yes now
<Guest54> done
<Guest54> thank you
<SiFuh> Now compile your kernel
<Guest54> make all right
<Guest54> and the other cmds
<SiFuh> As the handbook says
<Guest54> ok
<SiFuh> So yes, you are now at the 'make all' section
<Guest54> currently compiling
Guest54 has quit [Ping timeout: 260 seconds]
<cruxbot> [opt.git/3.7]: nvidia: updated to version 525.105.17
<cruxbot> [compat-32.git/3.7]: nvidia-32: updated to version 525.105.17
ardo has quit [Ping timeout: 276 seconds]
ukky has quit [Ping timeout: 248 seconds]
ardo has joined #crux
maledictium has quit [Ping timeout: 252 seconds]
maledictium has joined #crux
z812 is now known as undefined
undefined has quit [Remote host closed the connection]
Guest7598 has joined #crux
Guest7598 has quit [Changing host]
Guest7598 has joined #crux
Guest7598 is now known as z812
<jaeger> ukky: uploaded a new ISO to https://crux.ninja/updated-iso/
<cruxbot> [contrib.git/3.7]: kodi-addon-inputstream-adaptive: 20.3.5 -> 20.3.6
<cruxbot> [contrib.git/3.7]: u-boot-tool: 2023.01 -> 2023.04 ; moved from opt
<cruxbot> [contrib.git/3.7]: certbot: 2.4.0 -> 2.5.0
<cruxbot> [contrib.git/3.7]: certbot-dns-rfc2136: 2.4.0 -> 2.5.0
<cruxbot> [contrib.git/3.7]: certbot-nginx: 2.4.0 -> 2.5.0
<cruxbot> [contrib.git/3.7]: python3-acme: 2.4.0 -> 2.5.0
<cruxbot> [contrib.git/3.7]: p5-image-exiftool: 12.59 -> 12.60
<cruxbot> [contrib.git/3.7]: foot-terminfo: 1.13.1 -> 1.14.0
<cruxbot> [contrib.git/3.7]: hwloc: 2.9.0 -> 2.9.1
<cruxbot> [contrib.git/3.7]: python3-tox: 4.4.8 -> 4.4.9
<cruxbot> [contrib.git/3.7]: vala: 0.56.5 -> 0.56.6
<cruxbot> [contrib.git/3.7]: wayland: 1.21.0 -> 1.22.0
<cruxbot> [xorg.git/3.7]: mesa-demos: fix for gitea #1
<cruxbot> [xorg.git/3.7]: xorg-xf86-input-libinput: 1.2.1 -> 1.3.0
<cruxbot> [opt.git/3.7]: u-boot-tools: moved to contrib
<cruxbot> [opt.git/3.7]: tree-sitter: 0.20.7 -> 0.20.8
Guest5499 has joined #crux
<Guest5499> how is it still compiling
<SiFuh> Depnds, on the system, how many cores you are compiling with, how many 'modules' the kernel has compiled in ;-)
<cruxbot> [opt.git/3.7]: linux-firmware: 20230310 -> 20230404
<SiFuh> Guest5499: That's the full modular kernel config I put together. Usually used for beginners, the lazy or those who want to see if they are missing anything when they decide to build their unique kernel
<SiFuh> Guessing you are probably compiling with 1 core
<Guest5499> yeah
<Guest5499> i set cpu to 1
<Guest5499> i guess i can just run this thing overnight
<SiFuh> Besides, your in a VM as well. It will take a while for sure.
<jaeger> Or give it more cores
<SiFuh> I wouldn't cancel 5 hours in though to change the cores ;-)
<jaeger> I would
<SiFuh> It'll probably be done in like 10 minutes :-P
<joacim> if you charge by the hour, you compile on just one core
<SiFuh> :-P
<Guest5499> well as long as it installs correctly i'll be happy
<SiFuh> By the way, what bootlader did you choose?
<Guest5499> don't know the exact one but it was grub
<jaeger> It's hard to imagine even a single core taking 5 hours to compile the kernel unless it's a raspberry pi or something... but I haven't done that in years, maybe I'm out of touch
<SiFuh> Guest5499: curious about your fstab. You should upload an image of it.
<Guest5499> currently compiling rn
<Guest5499> i don't think i can access it at the moment
<SiFuh> jaeger: I am pretty sure on my old box it was 5 hours and 20 minutes.
<Guest5499> there are so many drivers
<SiFuh> Guest5499: alt + cntrl + F2 and then cat /mnt/etc/fstab
<Guest5499> can i use nano?
<jaeger> I'm curious now, going to try it
<Guest5499> thats what i used as the text edit
<SiFuh> Use what you want.
Stx has left #crux [#crux]
<SiFuh> jaeger: Pentium E5700 (2) @ 3.000GHz with 1GB of RAM
<jaeger> Currently testing on an i5-8250u @ 1.6GHz
ecp18 has joined #crux
<SiFuh> Guest5499: okay, cool
<Guest5499> is it good?
<Guest5499> i mean
<Guest5499> good enough
<Guest5499> to run correctly
Stx has joined #crux
<SiFuh> Seems so. You will need a swap file I guess, since you have no swap partition
<Guest5499> what is the swap useful for?
<SiFuh> Just search What is a Linux swap partition
<Guest5499> oh i get it
<Guest5499> its just storage
<Guest5499> for unused stuff?
<jaeger> It's not always required, depends on your workload
<Guest5499> well i think i set the partition to 8gb
<Guest5499> for some reason my max thing for the memory was 2TB
<Guest5499> i don't remember having that much
<SiFuh> Usually in a VM that 2TB is not actually 2TB unless you fill it with 2TB of data.
<cruxbot> [compat-32.git/3.7]: wayland-32: 1.21.0 -> 1.22.0
<cruxbot> [compat-32.git/3.7]: zstd-32: 1.5.4 -> 1.5.5
<SiFuh> Guest5499: by the way, is it still compiling alt+cntrl+F1 ?
<Guest5499> yes
<Guest5499> still compiling
<Guest5499> its been so long
Guest5499 has quit [Ping timeout: 260 seconds]
Guest5437 has joined #crux
<Guest5437> yep still compiling
<Guest5437> whats the last thing it installs
<Guest5437> i wanna know how close i am
<SiFuh> Doesn't install anything
<SiFuh> make modules_install <-- this one installs
Guest5447 has joined #crux
<Guest5447> wait so is make all even reequired
<Guest5447> can i run modules_install in another terminal
<SiFuh> No
<SiFuh> You can't install what you haven't compiled yet.
<SiFuh> Looks like sound modules are the ast to compile
<Guest5447> whats the typical waiting time
<Guest5447> for 1 core?
Guest5437 has quit [Ping timeout: 260 seconds]
<SiFuh> jaeger: I just compared bzImage with .config and starting time was 13:25 and finish time was 16:47
<SiFuh> So 3 hours and 20 minutes. Not in a VM though.
<jaeger> A VM with proper hardware accel won't change that appreciably... in either case way better than 5+ hours
<SiFuh> Definitely
<SiFuh> In a few minutes it will be 7 hours for the Guest to compile
<Guest5447> i'll just leave it running while im doing stuff
<Guest5447> OH
<Guest5447> ITS DONE COMPILING
<Guest5447> FINALLY
<Guest5447> it took 5 hours-ish
<Guest5447> now i have to do the module install right
<SiFuh> Guest5447: 21:14 - 04:10
<Guest5447> whats that timestamp for? the video?
<SiFuh> 6 hours and 56 minutes
<Guest5447> oh
<Guest5447> well i was sleeping so it felt shorter to me
<SiFuh> 21:14 you said you started to compile and 04:10 you said it finished
<Guest5447> yep
<Guest5447> its all easy from here right
<Guest5447> doing modules_install right now
<Guest5447> finished
<SiFuh> I thought the easiest part was letting it compile for 6 hours
<Guest5447> i guess yeah
<Guest5447> alr i finished copyign ovre the stuff it told me to uh
<Guest5447> i think i compiled the kernel
<Guest5447> next step is installing the bootloader?
<Guest5447> wasn't that part of the setup?
<SiFuh> No idea, not a grub guy
markov_twain has joined #crux
maledictium has quit [Ping timeout: 248 seconds]
maledictium has joined #crux
<Guest5447> it says "Install grub2 into the EFI system partition using a command like grub-install /boot/efi (replace /boot/efi with the location of the mounted ESP). "
<Guest5447> where can i find the location of the EFI System Partition?
<SiFuh> You are looking at the wrong one
<SiFuh> 3.2.1.2. GRUB, in legacy (non-UEFI) boot mode:
<Guest5447> oh
<Guest5447> i see
<Guest5447> thank you
<SiFuh> This is assuming that you did a non-UEFI boot in the VM and that you did fdisk as a DOS drive and NOT GPT
<Guest5447> uh i chose gpt
<Guest5447> at the start
<Guest5447> im pretty sure
<SiFuh> Should still work with a GPT disk.
<Guest5447> so
<SiFuh> Did you set sda1 as bottable?
<Guest5447> uh
<SiFuh> bootable*
<Guest5447> i don't think so
<Guest5447> where can i edit that
<SiFuh> fdisk
<Guest5447> ok
<Guest5447> would cfdisk work
<Guest5447> thats what i've been using
<SiFuh> Should do, I don't see why not
<Guest5447> just making sure
<Guest5447> can't seem to be able to do it with fdisk
<Guest5447> online it says to do
<Guest5447> fdisk /dev/sda1
<Guest5447> then enter a
<Guest5447> to set bootable
<Guest5447> but it doesn't work
<Guest5447> any command except quit i think just does no partition defined yet
<SiFuh> Your disk is GPT so you may need to do that in the expert menu
<Guest5447> i aww
<Guest5447> i see
<Guest5447> where can i find that
<SiFuh> m = help
<SiFuh> x = expert menu
<Guest5447> alright what now
<SiFuh> A = toggle the legacy BIOS bootable flag
<Guest5447> when i enter A it doesn't do anything either'
<SiFuh> Are you in expert menu?
<Guest5447> yes
<SiFuh> Is it a capital A?
<Guest5447> yes
<Guest5447> says unknown command
<Guest5447> A: unkown command
<SiFuh> x A 1 r w q
<SiFuh> Are you doing it outside of chroot?
<SiFuh> Could always use parted parted /dev/sda set 1 boot on
<SiFuh> But I have never attempted it on a running system that has already been installed
<jaeger> 118m 39s for a single core in my test
<SiFuh> Good thing you didn't cancel 5 hours in ;-) HAHAHA that was a joke
Guest5447 has quit [Ping timeout: 260 seconds]
ecp18 has quit [Quit: WeeChat 3.5]
Guest5426 has joined #crux
<Guest5426> ok back
<Guest5426> SiFuh no its in chroot
<cruxbot> [opt.git/3.7]: nvidia: fixed .footprint
<cruxbot> [contrib.git/3.7]: python3-psycopg2: updated to version 2.9.6
<cruxbot> [contrib.git/3.7]: go: updated to version 1.20.3
tilman has quit [Ping timeout: 255 seconds]
tilman has joined #crux
<cruxbot> [contrib.git/3.7]: docker: updated to version 23.0.3
<cruxbot> [contrib.git/3.7]: xorg-font-terminus: updated homepage URL to use HTTPS
<cruxbot> [contrib.git/3.7]: console-font-terminus: updated homepage URL to use HTTPS
Guest5426 has quit [Ping timeout: 260 seconds]