[sles-beta] Changing "run level" post built (Going from Graphical to text and vice versa)

Darren Thompson darrent at akurit.com.au
Thu Jul 24 19:12:44 MDT 2014


Dolt

Please allow for typos etc.... also factual error, when I said "GUI.target"
I actually meant "Graphical.target"

I really should start proof reading before clicking the "send button" ;-)

Darren


On 25 July 2014 11:09, Darren Thompson <darrent at akurit.com.au> wrote:

> Gregory
>
> Thanks for replying.
>
> I'm aware that both init 3 and init 5 are "multi-user"
>
> Since SLES12 is now using systemd as the 'init' system, the old "run
> levels, e.g. Init 3, init 5  etc" do no longer actually exist. Instead
> there are now "target run levels"
>
> The "fully graphical" target level (functionally equivalent to the old
> init 5 level) is now called "GUI.target"
> The "fully networked but command shell only" target level (functionally
> equivilent to the old init 3 level) in now called "muti-user.target"
>
> It is in this context that I use the terms "GUI" and "Muti-user"
>
> The previous email was the process to change the default "target run level"
>
> But in any case, the build process for a machine that is installed/run
> only at "multi-user" target level is still not correct 9I have not fully
> tested SLES12B10 yet so this could have changed). I centrainly could not
> get a reliable "muli-user target: build running with autoyast.
>
> Regards
> Darren
>
>
>
> On 25 July 2014 09:53, Gregory D. Rosenberg <gregg at ricis.com> wrote:
>
>> Darren,
>>
>> Even graphical mode is still multi-user. It is just multi-user with
>> X-windows. All my servers are running in run level 3. I can’t say that I
>> have tried to build one from scratch to start in run level 3. We have
>> certainly done that with SLES 11 SP3 using autoyast. I will take a closer
>> look at the installer tomorrow and see what I can discover and let you know.
>>
>> On Jul 24, 2014, at 17:16 CDT, Darren Thompson <darrent at akurit.com.au>
>> wrote:
>>
>> Team
>>
>> I posted this some time ago. The process to change run levels from
>> "graphical" (init 5) to "Multi-user (init 3) in a server "post build".
>>
>> I still have not successfully "built" a server that install/starts in
>> "Muti-user" mode.
>>
>> Darren
>>
>>
>> On 18 June 2014 18:13, Darren Thompson <darrent at akurit.com.au> wrote:
>>
>>> Frederic
>>>
>>> Good Point...
>>>
>>> Team, do it the way he says... ;-)
>>>
>>> e.g.
>>>
>>> 1. Login to graphical console as root user.
>>> 2. run a "terminal" session (the yast service manager process is currently
>>> broken, it would be Best/easier to just run that).
>>> 3. systemctl set-default --force multi-user.target
>>> - This will "tell" systemd that you want to run in "multi-user" mode
>>> (e.g. the old init 3 level, without a X-server/GUI).
>>> *** reboot ***
>>> 4 shutdown -r now
>>> (you can achieve the same result by typing: 'init 3' if you prefer not
>>> to reboot).
>>>
>>>
>>> If you want to reverse this and run the full "graphical" (X) console
>>> again
>>> 1. Login to test console as root user.
>>> 2. systemctl set-default --force graphical.target
>>> - This will "tell" systemd that you want to run in "Graphical" mode
>>> (e.g. the old init 5 level, with a X-server/GUI).
>>> *** reboot ***
>>> 4 shutdown -r now
>>> (you can achieve the same result by typing: 'init 5' if you prefer not
>>> to reboot).
>>>
>>> I hope this is found to be helpful.
>>>
>>> Darren
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 18 June 2014 17:52, Frederic Crozat <fcrozat at suse.com> wrote:
>>>
>>>> Le mercredi 18 juin 2014 à 10:50 +1000, Darren Thompson a écrit :
>>>> > Team
>>>> >
>>>> >
>>>> > I have been doing some testing on getting a "default graphical build"
>>>> > SLES12B8 server to become a "multi-user" server.
>>>> >
>>>> >
>>>> > It's harder than you would think, mainly due to the way
>>>> > display-server.service seems to be erroneously activated, even on
>>>> > multi-user target boots.
>>>> >
>>>> >
>>>> > I have found this process works:
>>>> > 1. Login to graphical console as root user.
>>>> > 2. run a "terminal" session (the yast service manager process is
>>>> > currently broken, it would be Bets/easier to just run that).
>>>> > 3. cd /etc/systemd/system
>>>> > 4. rm default.target
>>>> > 5. ln -s /usr/lib/systemd/system/multi-user.target default.target
>>>> > 6. cd /usr/lib/systemd/user
>>>> > 7. rm default.target
>>>> > 8. ln -s /usr/lib/systemd/system/multi-user.target default.target
>>>> > 9. cd /usr/lib/systemd/system
>>>> > 10. rm default.target
>>>> > 11. ln -s /usr/lib/systemd/system/multi-user.target default.target
>>>> > **** I have no idea why default.target is in these three locations, I
>>>> > would expect 2 of them are redundant but am not familiar enough with
>>>> > systemd to guess which ****
>>>>
>>>> Sorry but you are doing this the wrong way.
>>>>
>>>> NEVER ever change stuff in /usr/lib/systemd/system. /etc/systemd/system
>>>> has ALWAYS precedence over /usr/lib/systemd/system, which means file
>>>> with the same name in /etc/systemd/system will "hide" the one
>>>> in /usr/lib/systemd/system.
>>>>
>>>> The proper way to do it is :
>>>> run as root: systemctl set-default --force multi-user.target
>>>>
>>>> (or if you want to do it manually: ln -s
>>>> -f /usr/lib/systemd/system/multi-user.target
>>>> /etc/systemd/system/default.target)
>>>>
>>>> That's it.
>>>>
>>>> --
>>>> Frederic Crozat
>>>> Project Manager Enterprise Desktop
>>>> SUSE
>>>>
>>>> _______________________________________________
>>>> sles-beta mailing list
>>>> sles-beta at lists.suse.com
>>>> http://lists.suse.com/mailman/listinfo/sles-beta
>>>> <http://cp.mcafee.com/d/avndzgO92hJ5yXyr5TXFCXCQrFKc8Lf3DzqdQT64jhOyMOrhKMqekPhOYqem3hOrhKCU-qekS6nPp6fAi8azaQGsKrzaQGsKrvtsuhgpvW_9zDS76muLsKCOyVP2qtXT7sJt6OaqJXEYG7DR8OJMddECSjtPtPo0c-l9QWztfVv1dnoovaAVgtHB3_En8vfjt3_En8vfiV2Hsbvg57OFeDkrF_bCQQSkPhOrdbt3_En8vfjiWq818DI2cE4jh0q8EJMd41_Cvfd4hEwmHipEw8dOfCq83hg4GOwhd43IqGCy09hRoDaSDCy2tjh1fM-pEwS21EwcOJVEwc_6CCyASYqejuceRMSftb59X>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Darren Thompson
>>>
>>> Professional Services Engineer / Consultant
>>>
>>>  *<image003.jpg>*
>>>
>>> Level 3, 60 City Road
>>>
>>> Southgate, VIC 3006
>>>
>>> Mb: 0400 640 414
>>>
>>> Mail: darrent at akurit.com.au <steve at akurit.com.au>
>>> Web: www.akurit.com.au
>>> <http://cp.mcafee.com/d/1jWVIi6x8i6zqb5T4SbLTjdTdETjsohuu7f6QrFKc8CzB5xASztwQsFCzBUQsI6zASztdNYQsFIcLCOcv8Agl6lFkVsT6lFkVsS-WUYywO_R-j7fIecIZuVtdB5PC4QXTKeVqWdAkRrThVkffGhBrwqrjdICXCXCM0mBmUODO_qTxKx_QbAfDFsxlK5LE2zVkDjGdQ_BPqqrapEVdCBKx_QbAfDFFtd40AjS16k29Ewd4kmU6y0_PfDCy8QgblFcQg46V7Pd41EE2lpg8Cy1Sdljh04EWIjBrjPh1eFEwDUvcQgr10Qg6pmYQg6vzjjhirud79IvZ5Ffc3>
>>>
>>
>>
>>
>> --
>>
>> Darren Thompson
>>
>> Professional Services Engineer / Consultant
>>
>>  *<image003.jpg>*
>>
>> Level 3, 60 City Road
>>
>> Southgate, VIC 3006
>>
>> Mb: 0400 640 414
>>
>> Mail: darrent at akurit.com.au <steve at akurit.com.au>
>> Web: www.akurit.com.au
>> <http://cp.mcafee.com/d/1jWVIi4wUSyNtNdyXZQPtPqdQT64nDxPNJ6Wrz29EVhopdETod7apEVud7b1EVdETjsvd7ar3bVIz7O945hBqlendNBqlendLKKf8EcLZvANPX3zbfnKnjphsVxdeZXzKmKzp5dmZQul3PWApmU6CSjr9KVKVI05FlKcFYLSJUrEvZ2V3VWn8lrxrW0E-l9QWztfVsSCCOCqejpFrEvZ2V3VWqnjh094ZwhB0yq83h55K1EwfYPVVEyd42Rqjd411KhYPh0qa0Bmk29EwtzlkQg1aeH4VmQYQgjGq89-7Pd46Mgd41ClLd41DUQQQkCTzhOrYWfL>
>>  _______________________________________________
>> sles-beta mailing list
>> sles-beta at lists.suse.com
>>
>> http://cp.mcafee.com/d/k-Kr40USyNtNdyXZQPtPqdQT64nDxPNJ6Wrz29EVhopdETod7apEVud7b1EVdETjsvd7ar3bVIz7O945hBqlendNBqlendLKKf8EcLZvANPX3zbfnKnjphsVxdeZXzKmKzp5dmZQul3PWApmU6CQjq9KVKVI06vaAWthKDYLwCHIcfBisEeROx_QbAfDFKx_QbAfDFsxlK5LE2zVkDjGdQ_BPqqrapEVdCBKx_QbAfDFFtd40AjS16k29Ewd4kmU6y0_PfDCy8QgblFcQg46V7Pd41EE2lpg8Cy1Sdljh04EWIjBrjPh1eFEwDUvcQgr10Qg6pmYQg6vzjjhirud79Jd3V
>>
>>
>>
>>
>> P.S. Text the word BLIND to 85944 to donate $10 to the NFB Imagination
>> Fund via your phone bill.
>>
>> The National Federation of the Blind knows that blindness is not the
>> characteristic that defines you or your future. Every day we raise the
>> expectations of blind people, because low expectations create obstacles
>> between blind people and our dreams. You can have the life you want;
>> blindness is not what holds you back.
>>
>> --
>> 73' & 75'
>> Gregory D. Rosenberg AB9MZ
>> gregg at ricis.com
>>
>> RICIS, Inc.
>> 7849 Bristol Park Drive
>> Tinley Park, IL 60477-4594
>> http://www.ricis.com
>>
>> 708-267-6664 Cell
>> 708-444-2690 Office
>> 708-444-1115 Fax
>> (Please call before sending a fax)
>>
>>
>>
>>
>
>
> --
>
> Darren Thompson
>
> Professional Services Engineer / Consultant
>
>  *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*
>
> Level 3, 60 City Road
>
> Southgate, VIC 3006
>
> Mb: 0400 640 414
>
> Mail: darrent at akurit.com.au <steve at akurit.com.au>
> Web: www.akurit.com.au
>



-- 

Darren Thompson

Professional Services Engineer / Consultant

 *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*

Level 3, 60 City Road

Southgate, VIC 3006

Mb: 0400 640 414

Mail: darrent at akurit.com.au <steve at akurit.com.au>
Web: www.akurit.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140725/74b50e92/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 3692 bytes
Desc: not available
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140725/74b50e92/attachment.jpg>


More information about the sles-beta mailing list