You are not logged in.

#1 2012-10-20 15:02:05

nil
Member
Registered: 2012-10-15
Posts: 33

[SOLVED] Accidentally deleted graphical.target. Any way to resto..

Hello all. So here's the story: I was trying to get SLiM to run via `systemd` and was following the instructions detailed here:

# systemctl enable kdm.service

This should work out of the box. If not ....

/etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target

Simply delete the symlink and systemd will use its stock `default.target` (i.e.`graphical.target`).

# rm /etc/systemd/system/default.target

By some strange form of dyslexia, instead of writing the code on the last step, I had written

# rm /usr/lib/systemd/system/graphical.target

Of course, without this file, I'm now unable to boot succesfully. I'm also quite sure that it's impossible (or at least extremely impractical) to recover a file removed in this fashion. Is there a default `graphical.target` that I could download or see the lines of text, so that I can remake it?

If I recall correctly, it was just 8-10 lines of text like other `.target` files, where half of it was commented out with some

 [ 'something'] = something 

written inbetween some of the comment lines. I appreciate your help!

Last edited by nil (2012-10-20 15:25:32)

Offline

#2 2012-10-20 15:05:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,635
Website

Re: [SOLVED] Accidentally deleted graphical.target. Any way to resto..

Does reinstalling systemd not give you back that file?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-10-20 15:07:40

nagaseiori
Member
Registered: 2012-09-22
Posts: 72

Re: [SOLVED] Accidentally deleted graphical.target. Any way to resto..

This is my graphical.target

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Graphical Interface
Documentation=man:systemd.special(7)
Requires=multi-user.target
After=multi-user.target
Conflicts=rescue.target
Wants=display-manager.service
AllowIsolate=yes

[Install]
Alias=default.target

Offline

#4 2012-10-20 15:08:13

nil
Member
Registered: 2012-10-15
Posts: 33

Re: [SOLVED] Accidentally deleted graphical.target. Any way to resto..

WorMzy wrote:

Does reinstalling systemd not give you back that file?

Ah, I was under the assumption that `systemd` comes installed from the LiveCD/LiveUSB and not from `pacman`. I could definitely try reinstalling it with `pacman` right now and see what happens.

nagaseiori wrote:

This is my graphical.target

...

Thanks! I'll see if that works first.

EDIT: For anyone else as dumb as me in the future, the config works.

Last edited by nil (2012-10-20 15:24:20)

Offline

#5 2012-10-20 15:39:53

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] Accidentally deleted graphical.target. Any way to resto..

nil wrote:

Ah, I was under the assumption that `systemd` comes installed from the LiveCD/LiveUSB and not from `pacman`. I could definitely try reinstalling it with `pacman` right now and see what happens.

The livecd/usb uses pacman to install, so... wink


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB