This is a discussion on starting startx automatically within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi friends. I am new to Slackware. I want to start my x-window automatically when system boots it goes ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi friends. I am new to Slackware. I want to start my x-window automatically when system boots it goes to console login and after that i type kdm or startx to start my server. Is there any way to start it automatically.Pls help me Thanks in advance |
| |||
| On Thu, 03 Mar 2005 20:03:32 -0800, Raghul wrote: > Hi friends. > I am new to Slackware. I want to start my x-window > automatically when system boots it goes to console login and after that > i type kdm or startx to start my server. Is there any way to start it > automatically.Pls help me > > Thanks in advance As root edit /etc/inittab change the default runlevel from 3 to 4 ie. # Default runlevel. (Do not set to 0 or 6) id:4:initdefault: HTH -- Hardware, n.: The parts of a computer system that can be kicked |
| |||
| On Thu, 03 Mar 2005 21:50:23 -0800, Raghul wrote: > thanks ya it works and one more when I shutdown thw computer the > system is not totatly powered off it is in the power mode with > system halted .how to power off the system edit /etc/rc.d/rc.modules and change: #### APM support ### # APM is a BIOS specification for saving power using several different # techniques. This is mostly useful for battery powered laptops. #/sbin/modprobe apm to #### APM support ### # APM is a BIOS specification for saving power using several different # techniques. This is mostly useful for battery powered laptops. /sbin/modprobe apm |
| |||
| ok well i changed the file so that it starts x automaticly but i always starts gnome and my pc doesnt have the resources to support i so it goes VERY slow...how can i get fluxbox to start. i have chose it like 3 times in xwmconfi Message posted via ==================== www.linuxpackages.net/foru www.linuxpackages.ne Expanding the world of Slackwar ===================== |
| |||
| eneph wrote: > ok well i changed the file so that it starts x automaticly but it > always starts gnome and my pc doesnt have the resources to support it > so it goes VERY slow...how can i get fluxbox to start. i have chosen > it like 3 times in xwmconfig > > Message posted via: > ===================== > www.linuxpackages.net/forum > www.linuxpackages.net > Expanding the world of Slackware > ===================== Check to see if you have a file xinitrc in you home directory. If you do remove it, then from your home directory create a new symlink to which ever wm you would like to start, like this: $ cd ~ $ ln -s /etc/X11/xinitrc.fluxbox xinitrc This will change the default for your user name only. If you want to change the entire systems default, then do the same, only in the folder /etc/X11/xinit. $ su $ cd /etc/X11/xinit $ rm xinitrc $ ln -s xinitrc.fluxbox xinitrc good luck! Dan L |
| |||
| Dan L <cheboyganmanomithispart@yahaoo.com> wrote: >eneph wrote: > >> ok well i changed the file so that it starts x automaticly but it >> always starts gnome and my pc doesnt have the resources to support it >> so it goes VERY slow...how can i get fluxbox to start. i have chosen >> it like 3 times in xwmconfig .... > Check to see if you have a file xinitrc in you home directory. If you do >remove it, then from your home directory create a new symlink to which ever >wm you would like to start, like this: > >$ cd ~ >$ ln -s /etc/X11/xinitrc.fluxbox xinitrc $ ln -s /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc Better yet, $ cp /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc And then edit it as desired. For example, regardless of which of the xinitrc files is used, the last line to be executed exec's a window manager. So changing window managers is just a matter of putting which ever wm is desired there, or setting up a menu to select one of many. But before the window manager is exec'd, it is sometimes nice to initialize a few things, or even start programs. I run xcalc, and used to run three instances of xterm, from ~/.xinitrc. Before doing that I run xhost, xset to change the console bell and the mouse rate, plus xsetroot to set the background color. YMMV for what is useful or necessary. Do note that the way to execute any of those programs is like this, # # run the calculator on the right screen # if [ -x /usr/X11R6/bin/xcalc ]; then /usr/X11R6/bin/xcalc -g 390x480--0+-0 & fi Note that is verifies the existance and permissions, and then runs the program with '&' so that it is asynchronous. That last is essential, because if for some reason the program hangs, it won't hang the startup of X (in a way that would be very hard to determine the cause for too). -- Floyd L. Davidson <http://web.newsguy.com/floyd_davidson> Ukpeagvik (Barrow, Alaska) floyd@barrow.com |
| |||
| Floyd L. Davidson wrote: > Dan L <cheboyganmanomithispart@yahaoo.com> wrote: >>eneph wrote: >> >>> ok well i changed the file so that it starts x automaticly but it >>> always starts gnome and my pc doesnt have the resources to support it >>> so it goes VERY slow...how can i get fluxbox to start. i have chosen >>> it like 3 times in xwmconfig > ... > >> Check to see if you have a file xinitrc in you home directory. If you do >>remove it, then from your home directory create a new symlink to which >>ever wm you would like to start, like this: >> >>$ cd ~ >>$ ln -s /etc/X11/xinitrc.fluxbox xinitrc > > $ ln -s /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc > > Better yet, > > $ cp /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc > > And then edit it as desired. For example, regardless of which > of the xinitrc files is used, the last line to be executed > exec's a window manager. So changing window managers is just a > matter of putting which ever wm is desired there, or setting up > a menu to select one of many. > > But before the window manager is exec'd, it is sometimes nice to > initialize a few things, or even start programs. I run xcalc, > and used to run three instances of xterm, from ~/.xinitrc. > Before doing that I run xhost, xset to change the console bell > and the mouse rate, plus xsetroot to set the background color. > YMMV for what is useful or necessary. > > Do note that the way to execute any of those programs is like > this, > > # > # run the calculator on the right screen > # > if [ -x /usr/X11R6/bin/xcalc ]; then > /usr/X11R6/bin/xcalc -g 390x480--0+-0 & > fi > > Note that is verifies the existance and permissions, and then > runs the program with '&' so that it is asynchronous. That last > is essential, because if for some reason the program hangs, it > won't hang the startup of X (in a way that would be very hard > to determine the cause for too). > right, I missed that, the file needs to be .xinitrc not xinitrc. |
| |||
| On Sat, 23 Apr 2005 19:29:35 -0800, Floyd L. Davidson wrote: > Better yet, > > $ cp /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc > > And then edit it as desired. For example, regardless of which > of the xinitrc files is used, the last line to be executed > exec's a window manager. So changing window managers is just a > matter of putting which ever wm is desired there, or setting up > a menu to select one of many. > > But before the window manager is exec'd, it is sometimes nice to > initialize a few things, or even start programs. I run xcalc, > and used to run three instances of xterm, from ~/.xinitrc. > Before doing that I run xhost, xset to change the console bell > and the mouse rate, plus xsetroot to set the background color. > YMMV for what is useful or necessary. > > Do note that the way to execute any of those programs is like > this, > > # > # run the calculator on the right screen > # > if [ -x /usr/X11R6/bin/xcalc ]; then > /usr/X11R6/bin/xcalc -g 390x480--0+-0 & > fi > > Note that is verifies the existance and permissions, and then > runs the program with '&' so that it is asynchronous. That last > is essential, because if for some reason the program hangs, it > won't hang the startup of X (in a way that would be very hard > to determine the cause for too). Floyd, The above is one of the best explanations of "How do I do this or that?" that I've seen in a very long time. I just recently started reading this group, though I've been using Slackware for several years now. I've already helped to solve a sound problem for myself as well as at least one other that I know about. I think I'm going to find this group very educational. Matthew ..... |
| ||||
| lh <lh@adsl.net> wrote: >On Sat, 23 Apr 2005 19:29:35 -0800, Floyd L. Davidson wrote: > >> Better yet, >> >> $ cp /etc/X11/xinit/xinitrc.fluxbox ~/.xinitrc .... >Floyd, > >The above is one of the best explanations of "How do I do this or that?" >that I've seen in a very long time. Thank you! To be honest, I think you'll find that a large number of people here regularly contribute superb technical articles. >I just recently started reading this group, though I've been using >Slackware for several years now. I've already helped to solve a sound >problem for myself as well as at least one other that I know about. I >think I'm going to find this group very educational. This newsgroup is a wierd place, to put it mildly. Even though the signal to noise ratio is poor, the quality of some of the signal is indeed just fabulous. Listening to the noise between bursts of signal can be really trying though. And unfortunately a killfile won't work well because some of the same people produce the worst noise as well as the best signal. Even at that, the noise here is certainly less offensive now than it was a couple years ago. Whatever... the filter between your ears is the one that counts here! -- Floyd L. Davidson <http://web.newsguy.com/floyd_davidson> Ukpeagvik (Barrow, Alaska) floyd@barrow.com |