Iskripthi sokuqala i-KDM (uma kungenzeki)

phiwokuhle

Izolo ngibuyisele i- UDebian Wheezy ngekhosombe lami langokwezifiso le- I-KDE 4.10 futhi kufanele ngithi uma kusebenze kahle ngaphambili, manje sekusebenza kangcono kakhulu.

Inkinga ebenginayo kuphela bekune-KDM, okusobala ukuthi ayifakanga kahle nhlobo, ngoba ibingafuni ukuziqalela yona, into ebamba ukunakwa kwami ​​ngoba ngenza ukufakwa okufanayo, ngamakhosombe afanayo kwenye i-PC nayo yonke into kuhamba kahle.

Ngifuna imbangela yenkinga ngithole ukuthi ifayili alidalwanga /etc/init.d/kdm okufanele ibe nalokhu ngaphakathi:

#! / bin / sh -e ### QALA INIT INFO # Inikeza: kdm # Okudingekayo-Qala: $ local_fs $ remote_fs # Okudingekayo-Misa: $ local_fs $ remote_fs # Kufanele-Qala: console-screen kbd acpid dbus hal krb5- kdc # Kufanele-Stop: console-screen kbd # Okuzenzakalelayo-Qala: 2 3 4 5 # Okuzenzakalelayo-Stop: 0 1 6 # Incazelo emfushane: X ukubonisa umphathi we KDE # Incazelo: I-KDM iphatha iqoqo lamaseva we-X, angahle ube kumgcini wendawo noma kumishini ekude.
 ### END INIT INFO # /etc/init.d/kdm: qala noma umise umphathi wesibonisi se-X # Iskripthi esintshontshiwe ekuqaleni kwephakheji ye-xdm # # incazelo: Umphathi Wokubonisa K # # ngenisa imisebenzi ye-LSB init.  / lib / lsb / init-works # setha indawo uma [-r / etc / default / locale]; lapho-ke.  / etc / default / locale export LANG LANGUAGE fi # to start kdm even if it is not the default display manager, change # HEED_DEFAULT_DISPLAY_MANAGER to "false."
 HEED_DEFAULT_DISPLAY_MANAGER = eyiqiniso DEFAULT_DISPLAY_MANAGER_FILE = / etc / X11 / default-display-manager PATH = / bin: / usr / bin: / sbin: / usr / sbin DAEMON = / usr / bin / kdm PIDFILE = / var / run / kdm.pid UPGRADEFILE = / var / run / kdm.upgrade setup_config () {# parameter to support kdm customization KDMRC = / etc / kde4 / kdm / kdmrc BACKGROUNDRC = / etc / kde4 / kdm / backgroundrc # if configuration is changed by kdmtheme or other tools , ungenzi umlingo uma grep -q "^ [[: space:]] * Theme = @@@ ToBeReplacedByDesktopBase @@@" "$ {KDMRC}; bese i-KDMOVERRIDEDIR = / etc / default / kdm.d KDMCFGDIR = / var / run / kdm KDMCFG = $ KDMCFGDIR / kdmrc BACKGROUNDCFG = $ KDMCFGDIR / backgroundrc DEFAULT_KDM_THEME = / kdmx / ariya-apps / kdmx / share / apps / kdde4 $ IDEMONI || phuma ku-0 # uncomment, uma ufuna ukuthi i-auto-logon ithembele ku-runlevel #test "$ runlevel" || {runlevel = `umgijimo`; i-runlevel = $ {runlevel # *}; } # ukuhlolwa "$ runlevel" = 4 && ARG = -autolog || I-ARG = -noautolog # uncomment, uma ufuna amathani wolwazi lokususa iphutha ku-syslog yakho #ARG = "$ ARG -debug 255" # sisebenzisa enye i-kdm master file file ARG = "$ ARG -config $ KDMCFG" # we kdm amafayela wokumisa i-genkdmconf --in $ KDMCFGDIR 1> / dev / null # sikhipha ukubhala ngaphezulu.  izingxenye zokugijima zihlunga uhlu ngokulandelana okungabikezelwa uma [-d ​​"$ KDMOVERRIDEDIR"]; bese kuba yingxenye ku $ (run-parts - list "$ KDMOVERRIDEDIR" 2> / dev / null || true); c.  "$ part" kwenziwe fi # sivuselela amafayela wokumiswa kwe-kdm (amanani abhalwe ngaphezulu kuphela) [-n "$ USEBACKGROUND"] && sed -i "s | ^ # \? UseBackground =. * | UseBackground = $ USEBACKGROUND |" $ KDMCFG [-n "$ BACKGROUNDCFG"] && sed -i "s | ^ # \? BackgroundCfg =. * | BackgroundCfg = $ BACKGROUNDCFG |" $ KDMCFG [-n "$ USETHEME"] && sed -i "s | ^ # \? UseTheme =. * | UseTheme = $ USETHEME |" $ KDMCFG [-n "$ THEME"] && [-e "$ THEME"] && sed -i "s | ^ # \? Theme =. * | Theme = $ ISIHLOKO |" $ KDMCFG [-n "$ LANGUAGE"] && sed -i "s | ^ # \? Language =. * | Language = $ LANGUAGE |" $ KDMCFG uma grep -q "^ [[: space:]] * Wallpaper = stripes.png" $ {BACKGROUNDRC}; bese [-n "$ WALLPAPER"] && [-e "$ WALLPAPER"] && sed -i "s | ^ # \? Wallpaper =. * | Wallpaper =` readlink -f $ WALLPAPER` | "" $ BACKGROUNDCFG fi # usetheme manje ivulwe "ngokuzenzakalela" ngakho-ke kudingeka siqiniseke ukuthi Itimu ayivumelekile ...
 sed -i "s | @@@ ToBeReplacedByDesktopBase @@@ | $ DEFAULT_KDM_THEME |" $ {KDMCFG} # ukukhishwa kwe-autologin kuyasebenziseka kumvelo ye-debian ebukhoma uma [-n "$ AUTOLOGINUSER"]; bese sed -i "s | ^ # \? AutoLoginEnable =. * | AutoLoginEnable = true |" $ KDMCFG sed -i "s | ^ # \? AutoLoginUser =. * | AutoLoginUser = $ AUTOLOGINUSER |" $ KDMCFG fi [-n "$ AUTOLOGINDELAY"] && sed -i "s | ^ # \? AutoLoginDelay =. * | AutoLoginDelay = $ AUTOLOGINDELAY |" $ KDMCFG [-n "$ AUTOLOGINAGAIN"] && sed -i "s | ^ # \? AutoLoginAgain =. * | AutoLoginAgain = $ AUTOLOGINAGAIN |" $ KDMCFG [-n "$ AUTOLOGINLOCKED"] && sed -i "s | ^ # \? AutoLoginLocked =. * | AutoLoginLocked = $ AUTOLOGINLOCKED |" $ KDMCFG fi return 0} # Uma sithuthukise i-daemon, asikwazi ukusebenzisa ingxabano --exec ku- # start-stop-daemon ngoba i-inode izobe isishintshile. Ingcuphe lapha ukuthi # esimweni lapho kufe khona i-daemon, i-pidfile yayo ayizange ihlanzwe, futhi # enye inqubo manje isebenza ngaphansi kwaleyo pid, start-stop-daemon izothumela amasiginali # enqubweni engenacala. Kodwa-ke, lokhu kubukeka njengecala lasekhoneni.
 # C'est la vie!
 uma [-e $ UPGRADEFILE]; bese i-SSD_ARGS = "- ifayili lefayili $ PIDFILE --startas $ DAEMON" okunye i-SSD_ARGS = "- ifayili $ PIDFILE --exec $ DAEMON" fi still_running () {if expr "$ (cat / proc / $ DAEMONPID / cmdline 2> / dev / null) ":" $ DAEMON "> / dev / null 2> & 1; bese kuba iqiniso # uma i-daemon ingasusi i-pidfile yayo, sizo rm -f $ PIDFILE $ UPGRADEFILE fi fi; } icala "$ 1" ekuqaleni) setup_config uma [-e $ DEFAULT_DISPLAY_MANAGER_FILE] && ["$ HEED_DEFAULT_DISPLAY_MANAGER" = "true"] && ["$ (cat $ DEFAULT_DISPLAY_MANAGER_FILE)"! = "$ DAEMON"]; bese u-log_action_msg "Akuqali Umphathi Wokubonisa we-K (kdm); akuyona imenenja yokubonisa ezenzakalelayo."
 enye i-log_daemon_msg "Ukuqala K Isiphathi Sokubonisa" "kdm" uma i-start-stop-daemon --start --quiet $ SSD_ARGS - $ ARG; bese ungena ku-log_end_msg 0 enye i-log_action_end_msg 1 "esivele isebenza" fi fi ;; qala kabusha) /etc/init.d/kdm yeka uma [-f $ PIDFILE]; bese-ke uma u_usagijima; bese uphuma 1 fi fi /etc/init.d/kdm qala ;; layisha kabusha) log_action_begin_msg "Ilayisha kabusha ukucushwa kwe-K Display Manager ..."
 uma i-start-stop-daemon --stop --signal 1 --quiet $ SSD_ARGS; ke log_action_end_msg 0 else log_action_end_msg 1 "kdm not running" fi ;; phinda ulayishe kabusha) /etc/init.d/kdm reload ;; stop) log_action_begin_msg "Ukumisa Umphathi Wokubonisa K: kdm" uma [!  -f $ PIDFILE]; bese i-log_action_end_msg 0 "ayisebenzi ($ PIDFILE ayitholakali)" phuma ku-0 okunye i-DAEMONPID = $ (ikati $ PIDFILE | tr -d '[: blank:]') KILLCOUNT = 1 uma [!  -e $ UPGRADEFILE]; bese kuthi i-start-stop-daemon --stop --quiet $ SSD_ARGS; bese # unikeza isibambi sesiginali se-kdm umzuzwana ukubamba umoya wayo ulale 1 okunye log_action_cont_msg "ayisebenzi" fi fi ngenkathi [$ KILLCOUNT -le 5]; yenza uma usa_usagijima; bese ubulala i- $ DAEMONPID else break fi sleep 1 KILLCOUNT = $ (($ KILLCOUNT + 1)) kwenziwe uma kusalokhu kusalungiswa; bese u-log_action_cont_msg "ingaphenduli kusiginali ye-TERM (pid $ DAEMONPID)" enye i-rm -f $ UPGRADEFILE fi fi log_action_end_msg 0 ;; isimo) isimo_of_proc -p "$ PIDFILE" "$ DAEMON" kdm && phuma 0 || phuma $?
Nakhu okushiwo yifayela kwenye i-PC, kepha angibonanga izolo ebusuku, ngikukhombisa enye indlela yami

Isixazululo engisitholile ngaleso sikhathi bekuwukwakha umbhalo wami wokuqala, osetshenziselwa i-KDM noma olunye uhlelo lokusebenza esifuna ukuqala ngalo, oluqukethe lokhu:

#! / bin / sh INDLELA = / sbin: / bin. /lib/init/vars.sh. / lib / lsb / init-works case "$ 1" ekuqaleni | "") / usr / bin / kdm ;; misa) # Cha-op ;; *) echo "Ukusetshenziswa: kdm [qala | misa | qala kabusha]"> & 2 phuma 3 ;; ukuthi uC

Manje, ukuze i-KDM iqale ngokuzenzakalela, kuyadingeka ukwenza kusebenze iskripthi esishiwoyo, ngakho-ke ngisebenzisa RCConf ngakho. Futhi ngomumo. Kodwa-ke, ngincoma ukusebenzisa i-original 😛


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   vicky kusho

    Ngisebenzisa enye indlela eya ku-kdm ebizwa nge-sddm.

    1.    izinga kusho

      Hmm. Bengingamazi .. Ngizobheka.

    2.    izinga kusho

      Ubulembu !!! Idinga i-GLIBC 2.14 naku-Debian ngine-2.13 ¬_¬

  2.   umagazine kusho

    Ummm, kubukeka kukuhle: D .. elav, ukufaka ezinye izindawo nokwenza ukusetshenziswa okuvumelekile kweskripthi esishiwoyo, kufanele sishintshe igama lemenenja yefasitela esifuna ukulisebenzisa kahle?

    Ukubingelela!

  3.   umagazine kusho

    Sawubona!
    Yize kungahlangene nakancane nendatshana uqobo lwayo, bengifuna ukukubuza: ungakwenza yini "okumele ukwenze ngemuva kokufaka i-Wheezy"?
    Ngoba ngihlangabezane nezinkinga ezithile ukuyifaka. Ngokwesibonelo:
    1-Noma kuthatha inethiwekhi ye-Wi-Fi ukuzifaka, lapho iqeda ukufaka akukho ukuxhumana kwe-Wi-Fi futhi akukho nohlelo lokuphatha amanethiwekhi. (Ngayixhuma ekugcineni ngesandla kusuka kukhonsoli eqondile ... kepha kwabonakala kimi ukuthi noma ngubani uxhuma ku-wifi ngenkathi ifakiwe bese engafaki ngisho umphathi wenethiwekhi ...
    2-yize ukufakwa kungolimi olukhethayo, khona-ke uhlelo lufakwe ngesiNgisi? Angazi ukuthi ungakulungisa kanjani lokho ...

    Futhi, niente piu ... uma unganweba lokhu ngolwazi lwakho futhi wenze okuthunyelwe kungangisebenzela kahle hehe ... (Ngicabanga nabanye).
    Ukubingelela!

    1.    izinga kusho

      Hmm, iyiphi imvelo yedeskithophu oyisebenzisayo? Ngicabanga ukuthi i-KDE ..

      1.    umagazine kusho

        Uqagela kahle. Yebo, ngisebenzisa i-KDE kepha empeleni ngiyawela ezweni le-Debian ... ngabe uncoma muphi imvelo
        Ngaphambi kokuba ngibe seCrunchbang isikhashana ... futhi ngakhangwa yindlela eyayizinzile ngayo, ngacabanga ukuthi ngoba yayisuselwa kuDebian futhi yingakho ngaziphonsa ku-debian ... ngakhetha i-KDE ukuthi ikhethe ... eyodwa ongayincoma?
        Futhi engikushoyo kwenzeka kuphela ku-KDE?

        Ukubingelela nokubonga

  4.   Jairo kusho

    Sawubona,
    Ngifunde i-athikili yakho futhi ngifuna ukuphawula ukuthi nginenkinga ku-Debian wheezy ne-KDE futhi angazi ukuthi kuyafana yini. Ngifune isisombululo njengohlanya futhi ngabuza ezinkundleni kodwa akekho ongangitshela ukuthi kungani. iphutha ukuthi ngemuva kokudlula eGrub, kwesinye isikhathi i-debian ayiqali ngoba ihlala esikrinini esimnyama ngemuva kokuthi lo mugqa wombhalo uvele (ungowesithathu):

    Ukulinda i-dev / dev Ukugcwala Ngokugcwele

    Ikhompyutha yami yi-ASUS K93SV Notebook
    I-Intel Core i7 2670QM
    iphutha alihlali lenzeka njalo. Uma kwenzeka, kufanele ngivale ngamandla bese ngiqala kabusha.

    1.    izinga kusho

      Ukusesha okusheshayo kwe-Google kubuyisele lokhu kimi:

      http://www.esdebian.org/foro/28882/waiting-for-dev-to-be-fully-populated

      Ngitshele uma ikuxazulula.

      1.    Jairo kusho

        Ngikufunde konke okuthunyelwe, kepha angilokothi ukukwenza ngoba ngibheke imenyu yami.uhlu futhi kuhluke ngokuphelele kulokho okuvela kuleyo ngxoxo.

  5.   oper15 kusho

    Le Elav ihlale ishicilela izinti ezithokozisayo, ngiba naleyo nkinga ngakho-ke ngisebenzisa i-LightDM esebenza ngendlela efanelekile, kepha ake sibone ukuthi lo mbhalo (i-KDM engajwayelekile) uyangisebenzela, ngiyabonga ngeqhaza 😉