Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Ubuntu starten via startx? hoe?  (gelezen 5926 keer)

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Gepost op: 2007/11/27, 00:35:49 »
ik wil graag instellen dat me ubuntu 7.10 opstart in terminal mode
zo dat ik gnome-destop kan starten via startx? wat moet ik dan allemaal
uitzeggen ik heb gdm uitgezet bij het opstarten maar dan als ik
me computer opstart krijg ik een zwart scherm met een streepje links boven
ik zie geen terminal venster waar ik commandos kan opgeven

Ubuntu starten via startx? hoe?
« Reactie #1 Gepost op: 2007/11/27, 01:42:14 »
Gewoon in veilige modes opstarten.

en dan pas je X starten :P
I don't suffer from insanity, I enjoy every minute of it.
Microsoft geeft je een raam, Linux geeft je een heel huis :D

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #2 Gepost op: 2007/11/27, 14:55:06 »
Maar hoe start ik mijn computer op in veilige modes zo dat ik altijd ( startx ) kan gebruiken
om de destop te starten ik gebruik namelijk ook me destop als server! en heb niet altijd
me graphice destop nodig daarom wil ik graag de destop kunnen starten met startx

Offline Tecumseh

  • Lid
    • http://tecumseh.homeip.net
Ubuntu starten via startx? hoe?
« Reactie #3 Gepost op: 2007/11/27, 15:14:06 »
Je moet volgens mij je runlevel verlagen van 7 naar 3, als je daar een beetje op googled dan moet je een eind komen.

Ik heb het al voor elkaar gekregen op deze manier met Xubuntu.

Offline Duckie

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #4 Gepost op: 2007/11/27, 15:15:32 »
Citaat van: Gandyman
Gewoon in veilige modes opstarten.

en dan pas je X starten :P
Is het niet zo dat je in veilige modes automatisch super-user bent?
Lijkt me niet zo verstandig in dat geval.

Ik weet dat het op een andere manier heel makkelijk te wijzigen is, maar ik ben even vergeten waar precies.
Waarschijnlijk weet iemand anders het je zo meteen wel te vertellen. Zo niet dan zal ik als ik straks wat meer tijd heb het even opzoeken.
____________________________________________

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #5 Gepost op: 2007/11/27, 15:19:22 »
Bedankt hopelijk begrijpt iemand me ik dacht gewoon simpel
GDM uitzetten bij het opstarten zo dat ik in een sort terminal
beland waar ik dan startx kan typen maar dit werkt zo te zien niet
omdat ik een zwarte scherm krijg met een streepje links boven

Sisco88

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #6 Gepost op: 2007/11/27, 15:39:12 »
volgens mij kan je dat aanpassen in het bestand /etc/event.d/rc-default daarin staat het default runlevel waarin ubuntu opstart (2). deze moet je dus (volgens mij) veranderen naar 1.

Offline Duckie

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #7 Gepost op: 2007/11/27, 15:45:32 »
Wat ik tot nu toe heb gevonden, maar nog niet zelf heb uitgeprobeerd is bij "Systeem">"Beheer">"Services" het vinkje weg te halen bij "Grafische aanmelding (gdm). Als je dan opnieuw opstart zou je de situatie krijgen die jij wilt.


Ondertussen heb ik het even geprobeerd en het lijkt te werken. Ik krijg netjes een zwart scherm waar ik kan inloggen met mijn eigen gebruikersnaam en wachtwoord en bij "startx" start netjes Gnome op. Alleen kreeg ik een melding van de userswitcher en die werd afgesloten.

Overigens sluit wel onmiddellijk gdm en dus ook gnome af als je dat vinkje weghaalt. Lijkt me niet zo netjes dus, maar zolang je maar geen programma's open hebt denk ik niet dat er problemen van zullen komen.
____________________________________________

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #8 Gepost op: 2007/11/27, 16:24:01 »
ik ga het proberen jongens! ik heb GDM nu uitgezet
met opstarten krijg ik zwart beeld met streepje links boven? wat moet
ik nu presies in /etc/event.d/rc-default veranderen


vi /etc/event.d/rc-default

start on stopped rcS

script
        runlevel --reboot || true

        if grep -q -w -- "-s\|single\|S" /proc/cmdline; then
            telinit S
        elif [ -r /etc/inittab ]; then
            RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
            if [ -n "$RL" ]; then
                telinit $RL
            else
                telinit 2
            fi
        else
            telinit 2
        fi
end script
verde kan ik niks doen?

Ubuntu starten via startx? hoe?
« Reactie #9 Gepost op: 2007/11/27, 16:24:37 »
Citaat
Is het niet zo dat je in veilige modes automatisch super-user bent?
Nee.
Als je met je gebruikers ww en naam inlogt ben je nog steeds gewoon gebruiker en moet je sudo ed gebruiken.

Je bent dit wel wanneer je met een root ww inlogt uiteraard.
I don't suffer from insanity, I enjoy every minute of it.
Microsoft geeft je een raam, Linux geeft je een heel huis :D

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #10 Gepost op: 2007/11/27, 16:38:13 »
zou het kunnen zijn dat ik nog iets moet uitzetten of? aan mishien omdat ik zwartbeeld krijg met streepje

Offline Menno_

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #11 Gepost op: 2007/11/27, 17:21:02 »
Je kan ook na het opstarten je gewoon aanmelden op 1 van de terminals. Je laat dan de naam en wachtwoord dialoog voor wat het is en de typt ctrl+alt+F1...F6(een van de F toetsen gebruiken, je hebt op deze manier 6 (paralelle) terminals beschikbaar)
Je logt dan in in een terminal (dit kan je ook doen wanneer je je wel hebt aangemeld op de desktop). Wil je nu terug dan kan je ctrl+alt+F7intypen (je mag in dit geval ctrl ook weglaten, beide gaat goed), daarna kan je je aanmelden cq verder werken op je desktop.
X draait dus wel met deze methode, maar het opbouwen van je desktop kan je je dus hiermee besparen.
6x Ubuntu 10.04 server op VM-Ware // Ubuntu 8.04 server op Dell SC1425

mcsnakes

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #12 Gepost op: 2007/11/27, 17:34:48 »
het werkt niet zo te zien? ik zie een zwart scherm met een streepje links boven
ik heb nu alle f1 toetsengeprobeerd in combinatie van ctrl+alt  geprobeerd als ik GDM
aanzet start alles perfect op als ik het uit zet krijg ik alleen zwart scherm waar ik niks meer
kan doen ik hoor toch eigelijk een terminal te zien

Hier effe mijn proces lijstje
acpi-support                 No INIT script to check whether we're on batteries, and so start with laptop mode etc enabled. BUGS: unless we start *really* late, we have no way of throttling xscreensaver, since it won't be there to command.
acpid                                      Yes Check for daemon presence
alsa-utils                               No This script stores and restores mixer levels on
anacron                            No /etc/init.d/anacron: start anacron
apache2                            Yes
apmd                                    Yes Advanced Power Management (APM) daemon
apparmor                             No AppArmor rc file. This rc script inserts the apparmor
apport                                      No automatic crash report generation
atd                                       Yes Debian init script for the atd deferred executions
avahi-daemon                          No Zeroconf daemon for configuring your network
bastille-firewall                      No Load/unload ipchains rulesets
bind9                                      Yes
bluetooth                             No Start bluetooth daemons
bootclean                             No
bootlogd                              No Starts or stops the bootlogd log program
bootmisc.sh                             No
brltty                                         No
checkfs.sh                             No Check all filesystems.
checkroot.sh                           No Check to root file system.
console-screen.sh                  No Prepare console
console-setup                            No Set console font and keymap
consolekit                             Yes The ConsoleKit maintains a list of sessions,
courier-authdaemon               Yes
courier-imap                           Yes courier-imap is an IMAP Mail Delivery Agent.
courier-imap-ssl                   Yes courier-imap is an IMAP Mail Delivery Agent with SSL.
courier-pop                             Yes courier-pop is an POP3 Mail Delivery Agent.
courier-pop-ssl                   Yes courier-pop-ssl is an POP3 Mail Delivery Agent with SSL support.
cron                                       Yes cron is a standard UNIX program that runs user-specified
cupsys                                    Yes
dbus                                     Yes D-Bus is a simple interprocess messaging system, use
dhcdbd                                     No dhcdbd provides a D-DBus interface to dhclient,
dns-clean                            No 0dns-up often leaves behind some cruft. This Script is meant
fetchmail                             Yes init-Script for system wide fetchmail daemon
gdm                                      No Originally based on: Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
glibc.sh                             No
hal                                        Yes The HAL daemon collects and maintains information about
halt                                        No
hdparm                                    No
hostname.sh                          No
hotkey-setup                           Yes
hwclock.sh                            No
hwclockfirst.sh                   No
ispconfig_server                  Yes All rights reserved.
keyboard-setup                       No Set the console keyboard as early as possible
killprocs                               No executed by init(8) upon entering runlevel 1 (single).
klogd                                     Yes Kernel logger
laptop-mode                          No Enable laptop-mode-tools power management functions
libpam-foreground               No Clean old status files during boot.
loopback                            No - brings up the loopback (127.0.0.1) network device so that DHCP and other such things will work
makedev                         Yes Creates device files in /dev
module-init-tools                No Load the modules listed in /etc/modules.
mountall-bootclean.sh             No Clean temporary filesystems after
mountall.sh                          No
mountdevsubfs.sh             No Mount the virtual filesystems the kernel provides
mountkernfs.sh                     No Mount initial set of virtual filesystems the kernel
mountnfs-bootclean.sh             No Clean temporary filesystems after
mountoverflowtmp              No Mount a tmpfs on /tmp if there would
mtab.sh                            No Update the mount program's mtab file after
mysql                                      Yes Controls the main MySQL database server daemon "mysqld"
mysql-ndb                          Yes Controls the MySQL NDB Data Node daemon "ndbd".
mysql-ndb-mgm                     Yes Controls the MySQL NDB Management Node daemon "ndb_mgmd".
networking                           No Raise network interfaces.
ntp                                      Yes Start NTP daemon
pcciautils                             No This service provides PCMCIA hardware support for
postfix                             Yes Start or stop Postfix
powernowd                         Yes
powernowd.early                  Yes Set DO_MODULES to yes which will trigger the module loading part of the powernowd init script instead of the daemon part.
pppd-dns                            No Restore resolv.conf if the system crashed.
procps.sh                           No
proftpd                            Yes Start the proftpd FTP daemon.
quota                                    No Enable user quota
quotarpc                         Yes Starts rpc process for remote quota handling
rc.local                           Yes
readahead                        No init script for readahead Check the package is still installed
readahead-desktop           No init script for readahead (second stage) Check the package is still installed
reboot                                 No
rmnologin                        Yes This script removes the /etc/nologin file as the
rsync                                  Yes rsync is a program that allows files to be copied to and
saslauthd                        Yes This script starts the saslauthd daemon. It is
screen                                  No screen sessions cleaning
sendsigs                         No
single                                   No executed by init(8) upon entering runlevel 1 (single).
ssh                                   Yes OpenBSD Secure Shell server
stop-bootlogd                      No See the bootlogd script
stop-bootlogd-single            No See the bootlogd script
stop-readahead                    Yes init script for stopping readahead profiling Check the package is still installed
sysklogd                        Yes System logger
udev                                   No init script for udev Check the package is still installed
udev-finish                        No init script to finish up udev Check the package is still installed
umountfs                         No
umountnfs.sh                     No Also unmounts all virtual filesystems (proc, devfs, devpts,
umountroot                       No Mount the root filesystem read-only.
urandom                         No Save and restore random seed between restarts.
usplash                          Yes This script deals with some awkward details of integrating
vbesave                        Yes
waitnfs.sh                         No Network file systems are mounted in the background when
webmin                                Yes Start/stop Webmin
wpa-ifupdown                      No Run ifdown on interfaces authenticated via
x11-common                     No
xserver-xorg-input-wacom   Yes

Ubuntu starten via startx? hoe?
« Reactie #13 Gepost op: 2007/11/28, 07:53:28 »
Op een normaal Linux systeem:
Verander het standaard runlevel van 5 naar 3

Op een Ubuntu-systeem
Ga klagen bij canonical dat je runlevels wilt
Verander het standaard runlevel van 5 naar 3

Simpel, nietwaar?

- SeySayux
I use a Unix-based system, that means I'll get laid as often as I have to reboot.
LibSylph
SeySayux.net

Offline vanadium

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #14 Gepost op: 2007/11/28, 08:51:32 »
Het zou mij verbazen dat je de runlevel moet veranderen. Je moet er gewoon voor zorgen dat je grafische shell niet automatisch gestart wordt (wellicht terhoogte van de opstart scripts), en dan wanneer gewenst de X server starten. Spijtig genoeg ken ik ook de details niet: je zal er vrees ik eens een goede Linux administration guide moeten op nalezen (bijvoorbeeld op www.tldp.org)

Offline DarkStar

  • Lid
    • Mijn persoonlijke website
Ubuntu starten via startx? hoe?
« Reactie #15 Gepost op: 2007/11/28, 09:01:04 »
Als je dat zwart scherm krijgt met het witte streepje, druk dan gewoon een keer op ENTER, en dan zou je de vraag moeten krijgen om je username en paswoord in te geven... Is misschien dom maar bij Ubuntu server gebeurt er inderdaad helemaal niets tot je een keer op enter drukt...

° Bezoek mijn blog Digital (in)Sanity °

steven

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #16 Gepost op: 2007/11/28, 10:23:00 »
@mcsnakes

In het volgende stukje wordt uitgelegd hoe je in een shell kan booten.(voor Feisty)Of dit ook werkt in Gutsy ?
 
Citaat
If you’re really in love with the shell, you can choose to boot into it, avoiding the GUI completely (although
you can later start the GUI by typing startx at the command line).
      Booting into the shell is done by defining a custom run level. A run level is how the operating mode
that Ubuntu is currently running in is described. For example, one particular run level might start a GUI,
while another might start only a command prompt.
      There are usually seven run levels under Linux, numbered from 0 to 6. Not all of them do something
interesting. On Ubuntu, run levels 2 through 5 are all the same. Each runs the GUI. Run level 1 runs a
command prompt, so it might seem ideal for booting into the shell, but it also shuts down a few essential
services. This means it isn’t suitable for day-to-day use.
      The trick is to take one of the existing run levels and alter it slightly so that it doesn’t run a GUI by
default. On many distributions, run level 3 is reserved for this purpose, so it makes sense to alter it under
Ubuntu. (For what it’s worth, the default Ubuntu run level is 2.)
      Stopping Ubuntu from running a GUI upon booting is simply a matter of stopping the program that
appears when Ubuntu boots—GDM. This provides the login window that appears and starts the whole
graphical subsystem. Type the following command at the shell to remove the shortcut to GDM within the
run level 3 configuration:
sudo rm /etc/rc3.d/S13GDM
      After this, you’ll need to tell Ubuntu to boot straight to run level 3, rather than the default of 2. You
do this by creating the /etc/inittab file, which then becomes one of the first configuration files
Ubuntu reads when booting. Issue the following command at the shell to create and then open the file in
the Gedit text editor:
gksu gedit /etc/inittab
      Then add the following line at the top of the file:
id:3:initdefault:
      Then save the file. From now on, you’ll always boot straight to a BASH prompt. To restore things to
the way they were, simply delete the /etc/inittab file by typing the following at the prompt:
sudo rm /etc/inittab

Offline vanadium

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #17 Gepost op: 2007/11/28, 11:13:25 »
Weer bijgeleerd vandaag. De methode hierboven beschreven lijkt mij zeer elegant, want gemakkelijk "om te keren". De link die GDM start is niet noodzakelij /etc/rc3.d/S13GDM: bij mij (Gutsy) is het S30gdm.

Als je de situatie helemaal wil ongedaan maken, d.w.z., je derde runlevel herstellen naar de oorspronkelijke toestand, dan moet je ook de link terugplaatsen.

Ubuntu starten via startx? hoe?
« Reactie #18 Gepost op: 2007/11/28, 16:59:58 »
Voor wie er zich in interesseert, dit zijn de gebruikelijke runlevels op Linux:

0: halt
1: single user
2: multi user no networking
3: multi user with networking
4: undefined
5: graphical environment
6: reboot
7-9: undefined

- SeySayux
I use a Unix-based system, that means I'll get laid as often as I have to reboot.
LibSylph
SeySayux.net

Sisco88

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #19 Gepost op: 2007/11/29, 11:13:29 »
volgens mij moet je de telinit 2 veranderen naar telinit 1.

zoals in de gebruikelijke linux telinit 5 de grafische omgeving is is telinit 2 de grafische omgeving in ubuntu.

maak uiteraard wel eerst even een backup van het bestand, gewoon voor de zekerheid ;)

steven

  • Gast
Ubuntu starten via startx? hoe?
« Reactie #20 Gepost op: 2007/11/29, 13:06:29 »
@Sisco88

 
Citaat van: Sisco88
zoals in de gebruikelijke linux telinit 5 de grafische omgeving is is telinit 2 de grafische omgeving in ubuntu.
Dat klopt.
Staat ook in het stukje #17  van dit draadje.
 
There are usually seven run levels under Linux, numbered from 0 to 6. Not all of them do something
interesting. On Ubuntu, run levels 2 through 5 are all the same. Each runs the GUI. Run level 1 runs a
command prompt, so it might seem ideal for booting into the shell, but it also shuts down a few essential
services. This means it isn’t suitable for day-to-day use.
      The trick is to take one of the existing run levels and alter it slightly so that it doesn’t run a GUI by
default. On many distributions, run level 3 is reserved for this purpose, so it makes sense to alter it under
Ubuntu. (For what it’s worth, the default Ubuntu run level is 2.)

Offline rman

  • Lid
Ubuntu starten via startx? hoe?
« Reactie #21 Gepost op: 2008/03/02, 15:52:04 »
Ik heb de bovenstaande wijzigingen aangebracht;

bestaande uit:
de @S13kdm verwijderd uit /etc/rc.3 (ik gebruik kubuntu 7.10 dus kdm i.p.v. gdm)
en een /etc/inittab aangemaakt met als inhoud  id:3:initdefault:

Na deze wijzigingen is er helaas toch een grafische inlogscherm (de kdm).
Wat zou ik nog kunnen doen om niet grafisch in te loggen?

Zou ik de @S98usplash ook uit rc.5 doen?
steunpunt: Delft
Happy throngs, where ever you go

Ubuntu starten via startx? hoe?
« Reactie #22 Gepost op: 2008/03/02, 20:13:41 »
Gutsy maakt gebruik van Upstart en niet van Init. Dat betekent dat /etc/inittab geen effect heeft. Hoe je het wel moet doen, zou ik zelf ook niet weten.

- SeySayux
I use a Unix-based system, that means I'll get laid as often as I have to reboot.
LibSylph
SeySayux.net