Deutsch English Français Italiano |
<slrnv51ilg.2vc.candycanearter07@candydeb.host.invalid> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> Newsgroups: comp.os.linux.advocacy Subject: Re: Using telinit {1,3,5} with systemd Date: Fri, 24 May 2024 17:15:09 -0000 (UTC) Organization: the-candyden-of-code Lines: 47 Message-ID: <slrnv51ilg.2vc.candycanearter07@candydeb.host.invalid> References: <v2opnf$1vq77$2@dont-email.me> Injection-Date: Fri, 24 May 2024 19:15:09 +0200 (CEST) Injection-Info: dont-email.me; posting-host="bc62fc6b308585f3bdf76211b188c53c"; logging-data="2555798"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mcW8iVK5g+1YEsE+5bj0KkpIDx1HrsHZGedyVwfZu2g==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:s5u+sklMB6cwzwS657QtoBCTiYA= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D Bytes: 2671 vallor <vallor@cultnix.org> wrote at 01:15 this Friday (GMT): > So after building a kernel and booting it, I've found it easiest > to take the system to single-user mode with > > $ telinit 1 > > ...which will take the system to single-user ("rescue") mode and > ask for your root password before proceeding. (Make sure you have > one set.) > > Then I build the open Nvidia drivers, install them, > then remove the existing Nvidia drivers with the > following command (that I've scripted): > > rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia > > ...which removes the modules in the proper order, > accounting for dependencies. > > Finally, everything is ready to go, so: > > # telinit 5 > > ...and the system comes up in all its graphical glory. > > I do it this way rather than rebooting because sometimes, > the drivers don't load right when I boot, and windows tear > when they move. If that happens, I do the > "telinit 1"-"rmmod"-"telinit 5" > dance, which has always solved the problem. > > (I was pleasantly surprised to find out that systemd > knows about init runlevels. Very helpful.) > > Finally, if you want to shutdown the display manager and > just use vty's with getty logins, you could > > $ telinit 3 > > These runlevels are the same as they were with > SysV init on Linux. Wow, I never knew about telinit! That will definitely be handy to remember. -- user <candycane> is generated from /dev/urandom