Search Results for 'xinitrc'

Forum Forums Search Search Results for 'xinitrc'

Viewing 15 results - 61 through 75 (of 96 total)
  • Author
    Search Results
  • #29005
    Member
    rej

      anticapitalista –

      Thank you for your help.

      # Path, X server and arguments (if needed)
      # Note: -xauth $authfile is automatically appended
      #
      default_path        /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
      default_xserver     /usr/bin/X11/X
      xserver_arguments -dpi 130 -nolisten tcp
      
      # Commands for halt, login, etc. on antiX
      halt_cmd            /usr/local/bin/persist-config --shutdown --command halt 
      reboot_cmd          /usr/local/bin/persist-config --shutdown --command reboot 
      console_cmd         /usr/bin/urxvt -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue.net; exec /bin/login"
      #suspend_cmd        /usr/sbin/suspend
      
      # Full path to the xauth binary
      xauth_path         /usr/bin/X11/xauth
      
      # Xauth file for server
      authfile           /var/run/slim.auth
      
      # Activate numlock when slim starts. Valid values: on|off
      # numlock             on
      
      # Hide the mouse cursor (note: does not work with some WMs).
      # Valid values: true|false
      # hidecursor          false
      
      # This command is executed after a succesful login.
      # you can place the %session and %theme variables
      # to handle launching of specific commands in .xinitrc
      # depending of chosen session and slim theme
      #
      # NOTE: if your system does not have bash you need
      # to adjust the command according to your preferred shell,
      # i.e. for freebsd use:
      # login_cmd         exec /bin/bash -login /etc/X11/Xsession %session 
      #################OLD COMMAND####################
      # login_cmd         exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors$DISPLAY 2>&1
      ################################################
      #LOGIN COMMAND FOR DESKTOP SESSION BELOW#
      #############################################################################################
      login_cmd   setsid /usr/local/bin/desktop-session %session
      #############################################################################################
      
      # login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1
      
      # Commands executed when starting and exiting a session.
      # They can be used for registering a X11 session with
      # sessreg. You can use the %user variable
      #
      # sessionstart_cmd	some command
      # sessionstop_cmd	some command
      
      # Start in daemon mode. Valid values: yes | no
      # Note that this can be overriden by the command line
      # options "-d" and "-nodaemon"
      # daemon	yes
      
      # Available sessions (first one is the default).
      # The current chosen session name is replaced in the login_cmd
      # above, so your login command can handle different sessions.
      # see the xinitrc.sample file shipped with slim sources
      #sessions rox-fluxbox,space-fluxbox,fluxbox,rox-icewm,space-icewm,icewm,rox-jwm,space-jwm,jwm,herbstluftwm
      sessiondir /usr/share/xsessions
      
      # Executed when pressing F11 (requires scrot)
      screenshot_cmd      scrot /root/slim.png
      
      # welcome message. Available variables: %host, %domain
      welcome_msg         (Press F1 to toggle sessions)
      
      # Session message. Prepended to the session name when pressing F1
      # session_msg         Session: 
      
      # shutdown / reboot messages
      shutdown_msg 	The system is shutting down...
      reboot_msg 		The system is rebooting...
      
      # Focus the password field on start when default_user is set
      # Set to "yes" to enable this feature
      #focus_password      no
      
      # Automatically login the default user (without entering
      # the password. Set to "yes" to enable this feature
      auto_login          yes
      
      # default user, leave blank or remove this line
      # for avoid pre-loading the username.
      default_user        rj
      
      # current theme, use comma separated list to specify a set to 
      # randomly choose from
      current_theme 	BlueLines
      #current_theme 	BlueLinesLight
      #current_theme 	antiXIce
      #current_theme 	DarkCity
      #current_theme 	PrettyPink
      #current_theme 	SunnyDay
      
      # Lock file
      lockfile            /var/run/slim.lock
      
      # Log file
      logfile             /var/log/slim.log
      
      #25644
      Member
      VW

        As root user, startx gives the following:

        As root user you shouldn’t even be trying to run ‘startx’.

        You run startx as a a normal user. Just to help you out:

        The startx script is a front end to xinit that provides a somewhat nicer user interface for running a single session of the X Window System. It is often run with no arguments.

        Arguments immediately following the startx command are used to start a client in the same manner as xinit. The special argument “–” marks the end of client arguments and the beginning of server options. You may need to specify server options with startx to change the color depth, dots-per-inch, or a different server layout, as permitted by the Xorg server and xorg.conf.

        To determine the client to run, startx first looks for a file called .xinitrc in the user’s home directory. If that is not found, it uses the file xinitrc in the xinit library directory. If command line client options are given, they override this behavior and revert to the xinit behavior. To determine the server to run, startx first looks for a file called .xserverrc in the user’s home directory. If that is not found, it uses the file xserverrc in the xinit library directory. If command line server options are given, they override this behavior and revert to the xinit behavior. Users rarely need to provide a .xserverrc file.

        The system-wide xinitrc and xserverrc files are found in the /etc/X11/xinit directory.

        H.T.H.

        “These are the times that try men's souls" - Thomas Paine

        #23806

        In reply to: antiX-19 ps_mem.py

        Anonymous

          I always wondered why antiX uses Slim.
          I still don’t understand it and I am also curious if I can remove it.
          I always used startx when learning with Slackware.

          Have you ever read the code for startx? If not, go check it out (it’s just a shell script):
          leafpad /usr/bin/startx
          or, maybe better, for the moment just
          head -12 /usr/bin/startx

          So, imagine you have been tasked with writing a “nicer version” of startx, toward architecting a desktop linux distribution in which users will have multiple window managers available to choose from. Additionally, must (per specs) provide users an opportunity to elect use of a desktop manager (or not) and, because some users are running resource-strapped machines, must provide an opportunity to forego loading of any autostarted niceties enumerated within the default ~/.xinitrc

          Umm, oops, sorry… forgot to mention that your “nicer version” actually needs to accommodate user choice to elect use of {multiple available} desktop managers (or not). Also, the “nicer version” must provide a way for us to setup, and users to edit later, differing sets of “global” items to be autostarted regardless which window manager has been selected for the current session. Oh, and one more thing ~~ that ROX thing, it doesn’t parlayvoo XDG. We need to provide a way for users to assign preferred handlers for mail, for html documents, for text documents, and probably several additional mimetypes.

          Time passes and… and a (confusingly similarly named) XDG “desktop session manager” spec becomes prevalent, and it becomes necessary for your “nicer version” to swing by and talk to PAM and pickup an authkey for the session manager, in case users wish to sideload additional WMs/DEs which actually provide a session manager module.

          quick-like, skimread these if you’re wondering “Who’s PAM, and does she have a sister?”
          pam-easy-guide/#Linux-PAM-Benefit
          linuxjournal.com/article/5940

          Together, the SLiM + desktop-session-antix package serve as the “nicer version” to provide that functionality, and more.
          (splitting hairs, it’d be more accurate to also credit desktop-session-*-antix, desktop-defaults-antix)
          If you prefer to remove SLiM from the flow and, instead “startx desktop-session {sessionname plus options}”, your alternative nicer solution might not suffer from failing to visit PAM, considering that the gnomes have have stolen her auth keyring. If you care to replace (or skip the step of invoking) desktop-session, you may need to rewire the logout and/or shutdown buttons and menu commands.

          If you want to keep (I’m accustomed to paring down, vs building up from core) use antix ControlCenter in the absence of desktop-{defaults,session}-antix, need to edit its script and search/replace “desktop-defaults -t” with a suitable launchstring for your terminal emulator of choice. Similarly, need to replace “desktop-defaults -e” with your chosen text editor. Hmm, the ds-mouse cc item (encompasses multiple scripts in /usr/local/bin)(and …/lib/) and the set-dpi(?) script and probably a few others would need to be amended.

          #23641

          In reply to: Launching ratpoison

          Member
          macondo

            Did you overlook the availability of antiX “core” version?
            No SliM, and as far as I can tell… it would fit what you described.
            If you check it out, and it too misses the mark, please post back and provide a list of its unwanted (or missing) packages vs what you think would be ideal.

            I will try the core, but I don’t think it will be different from the net one. In an attempt to look geeky it fails, errors appear when there is no need for it IMHO.
            The regular installer (base and full) is perfect. For net and core just leave the base apps in and the rest of the apps out, including xorg. After reboot, the user installs xorg and whatever he wants, but use the SAME installer, do not invent the wheel or like we say in my neck of the woods: don’t look for a fifth leg in a cat.
            I find the menus cumbersome and with too many apps some of them repeated.

            Whatever hapenned to “lean and mean”? You cannot be everything to everybody, lean and bloated with apps to make life easier for windoze refugees who will not learn Linux because we are trying to make life similar to what they had before. They continue “pointing and clicking” without understanding anything.
            I have to use slim, I cannot get rid of it without locking myself outta the OS,
            and leaving .xinitrc unusable because slim controls most of the options that otherwise would go there. If you want to use slim fine, but let the user be able to use startx.

            The way it is now, you got things networked together with the (xxxxxx.antix)dependencies, you can’t get rid of something without the .antix dependencies, it’s endemic, reminds me of systemd in a way. I will probably be thrown out of the forum, but you wanted to know what I thought 🙂

            I cannot resist asking:
            What is appealing in antiX?
            What was lacking from the devuan+ratpoison system you already had (or still have) up-and-running?

            I like:
            1.No systemd
            2.Installer is great.

            Nothing was lacking. Curiosity. I use the bsd distros (freebsd and openbsd) to see, compare… Been using antiX on and off for many years, since anti was a
            tongue-wagging revolutionary fluxbox addict. 🙂

            Of course, I’m ignorant of the repercussions and politics that are involved in single-handled creating a distro, a man has to do what a man has to
            do. Peace!

            • This reply was modified 3 years, 10 months ago by macondo.
            • This reply was modified 3 years, 10 months ago by macondo.

            antiX Core 64 Bit Runit IceWM

            "Sometimes a man finds his destiny on the road he took to avoid it."

            #23632

            In reply to: antiX-19 ps_mem.py

            Member
            macondo

              BobC: I don’t think the .xinitrc will be necessary as long as you got Slim rooted in antiX
              Go to slim.conf and configure it to your taste.

              #nano /etc/slim.conf

              and choose what you can, iow, uncomment what you want (erase the initial hash mark #)

              These are the ones I chose:

              # Activate numlock when slim starts. Valid values: on|off
              numlock on

              # Hide the mouse cursor (note: does not work with some WMs).
              # Valid values: true|false
              hidecursor true

              # see the xinitrc.sample file shipped with slim sources
              sessions icewm

              antiX Core 64 Bit Runit IceWM

              "Sometimes a man finds his destiny on the road he took to avoid it."

              #23622

              In reply to: antiX-19 ps_mem.py

              Member
              macondo

                Sorry BobC I forgot about the .xinitrc,

                $ nano .xinitrc

                #!/bin/sh

                firefox &
                setxkbmap -option terminate:ctrl_alt_bksp
                xsetroot -solid black
                unclutter -idle 2 &
                numlockx &

                exec icewm

                save/exit the editor

                logout to test it 🙂

                antiX Core 64 Bit Runit IceWM

                "Sometimes a man finds his destiny on the road he took to avoid it."

                #23619

                In reply to: antiX-19 ps_mem.py

                Member
                macondo

                  Hi BobC, I failed miserably at that. Usually, you just deinstall it with apt-get or dpkg. I am now in freebsd and installing some hd. I wrote my experience in another post which I cannot find but basically this is what I remember:
                  # dpkg -P slim
                  IIRC, gave me an error and some dependencies of slim, so I tried it again,

                  #dpkg -P slim dependency1.antix dependency1.antix etc
                  then it worked, next I went to /etc/inittab and changed the run level from 5 to 3

                  #nano /etc/inittab

                  #rebooted

                  no dice, I could not get in, then reverse-engineered everything and insstalled slim went to /etc/inittab and changed the run level back to 5 and rebooted.
                  No luck. Ended up reinstalling antix-base, in other distros this would have worked.

                  I found the post:

                  https://www.antixforum.com/forums/topic/launching-ratpoison/

                  “1. Thank you gents, went to slim.conf and put rp as the default.
                  It appeared on the F1 list, but never started, gave me an error, back to icewm.

                  2. Yesterday, I deleted/purge slim and rox-filer, conky says it is not installed, and chose “3” in the default run level at /etc/innitab, rebooted
                  nothing! re-installed slim, changed the run level back to 5 and rebooted, zip.
                  Did a quick reinstall and that’s how I am here.

                  3. Forgive me, am an old man, “lean and mean” to me, means no eye candy and superfluous stuff. Why slim? you still need a username and password to be entered, which can be done in startx, save space and headaches. That conky, I need it like another hole in my head, KISS it.

                  4.Net installation CD, is a mess! All you need is the regular installation CD (base or full) but without the apps just the base ones, the user installs xorg and whatever he wants, use .xinitrc and startx. antiX has one of the best installers hands down, quick. Grub does not fail like in other distros.
                  Being modern and flashy doesn’t necesarily means advanced. Just my opinion, no insult intended, last thing I want is to ruffle some feathers.”

                  • This reply was modified 3 years, 10 months ago by macondo.
                  • This reply was modified 3 years, 10 months ago by macondo.

                  antiX Core 64 Bit Runit IceWM

                  "Sometimes a man finds his destiny on the road he took to avoid it."

                  #23617

                  In reply to: antiX-19 ps_mem.py

                  Moderator
                  BobC

                    Macondo,

                    Could you tell me how to eliminate slim? That would certainly help with the memory footprint on my machines. I wonder if it would break anything else? I have some newer machines with lots of memory, but also have older 32 bit ones with as low as 512 mb where a few mb does count.

                    Could you please post what you put in .xinitrc and startx and how you eliminated Slim?

                    Thanks 🙂

                    #23589

                    In reply to: antiX-19 ps_mem.py

                    Member
                    macondo

                      I have my multimedia keys mapped as well, and for laptops thats fine, but these days most newbie users coming from windoze are used to finding icons for wifi and volume in the toolbar so they don’t have to remember the keys.

                      Antix standard keys for volume are ctrl+alt / and * so i leave those alone as they should be the same for all of the desktop window managers supported.

                      You are lucky, slin is taking 34 mb in its default configuration on my I7. I am working on reducing that somehow.

                      Why should we cater to the windoze crowds, shouldn’t they learn from us?
                      Linux is becoming windows?
                      that Slim takes as much ram as IceWM itself (5 megs ram) and for what? you could put the info in .xinitrc and startx…

                      • This reply was modified 3 years, 10 months ago by macondo.

                      antiX Core 64 Bit Runit IceWM

                      "Sometimes a man finds his destiny on the road he took to avoid it."

                      #23566

                      In reply to: Launching ratpoison

                      Anonymous

                        ratpoison?
                        strange but true
                        when I checked whether I’ve gathered any ratpoison tips in my browser bookmarks, I found two
                        https://dev1galaxy.org/viewtopic.php?id=1695
                        http://www.debianuserforums.org/viewtopic.php?f=9&t=2934
                        and both were authored by a fella named Lou
                        aka macondo, which would be… YOU !

                        Each O/S has a different approach to handiling xinit and Xsession startup, eh?

                        went to slim.conf and put rp as the default.
                        It appeared on the F1 list, but never started, gave me an error
                        . . .
                        I deleted/purge slim and [..] chose “3” in the default run level at /etc/innitab, rebooted
                        nothing! re-installed slim, changed the run level back to 5 and rebooted, zip.

                        In another (possibly related) topic, anticapitalista pointed to a debian forum post:

                        http://forums.debian.net/viewtopic.php?f=6&t=134425
                        Problem solved.
                        After installing xserver-xorg-legacy I needed to add the following line to /etc/X11/Xwrapper.config:
                        needs_root_rights=yes

                        After this startx works for normal users. Running dbus is not necessary.

                        EDIT: Also need to add user to video group or /dev/dri fails to open due to lack of permission.
                        man Xwrapper.config

                        .

                        I’m unsure which version of which antiX release you’re using (your post mentions 3 versions)

                        Why slim? you still need a username and password to be entered, which can be done in startx
                        . . .
                        Net installation CD, is a mess! All you need is the regular installation CD (base or full)
                        but without the apps just the base ones, the user installs xorg and whatever he wants, use .xinitrc and startx.

                        Did you overlook the availability of antiX “core” version?
                        No SliM, and as far as I can tell… it would fit what you described.
                        If you check it out, and it too misses the mark, please post back and provide a list of its unwanted (or missing) packages vs what you think would be ideal.

                        I cannot resist asking:
                        What is appealing in antiX?
                        What was lacking from the devuan+ratpoison system you already had (or still have) up-and-running?

                        #23403

                        In reply to: Launching ratpoison

                        Member
                        macondo

                          1. Thank you gents, went to slim.conf and put rp as the default.
                          It appeared on the F1 list, but never started, gave me an error, back to icewm.

                          2. Yesterday, I deleted/purge slim and rox-filer, conky says it is not installed, and chose “3” in the default run level at /etc/innitab, rebooted
                          nothing! re-installed slim, changed the run level back to 5 and rebooted, zip.
                          Did a quick reinstall and that’s how I am here.

                          3. Forgive me, am an old man, “lean and mean” to me, means no eye candy and superfluous stuff. Why slim? you still need a username and password to be entered, which can be done in startx, save space and headaches. That conky, I need it like another hole in my head, KISS it.

                          4.Net installation CD, is a mess! All you need is the regular installation CD (base or full) but without the apps just the base ones, the user installs xorg and whatever he wants, use .xinitrc and startx. antiX has one of the best installers hands down, quick. Grub does not fail like in other distros.
                          Being modern and flashy doesn’t necesarily means advanced. Just my opinion, no insult intended, last thing I want is to ruffle some feathers.

                          antiX Core 64 Bit Runit IceWM

                          "Sometimes a man finds his destiny on the road he took to avoid it."

                          #23392

                          In reply to: Launching ratpoison

                          Member
                          Xecure
                            #23391

                            In reply to: Launching ratpoison

                            Anonymous

                              my recommended followup search term, after startx, would be xinitrc…

                              F1 at the login screen to select it?

                              …and, in that case, you’ll discover among the search results
                              “on an antiX system, we must edit /etc/slim.conf and manually add the name of newly-installed desktop session
                              so that it will be available among the available F1 choices offered from the SLiM login”

                              #23381
                              Member
                              macondo

                                Installed rp, changed the .xinitrc to read: exec ratpoison

                                I’m still getting icewm, what is my error?

                                thx

                                antiX Core 64 Bit Runit IceWM

                                "Sometimes a man finds his destiny on the road he took to avoid it."

                                #20981

                                In reply to: Blank screen at boot

                                Forum Admin
                                Dave

                                  Two notes that are antiX specific:
                                  Xinitrc is not used in default antiX configuration. So relying on it will error out / be debian default package config with no extras.

                                  Second, startx defaults to .xinitrc which as previously stated is not used by default in antiX. Instead try something like
                                  startx /usr/local/bin/desktop-session rox-icewm (or space-icewm, icewm, space-fluxbox etc)

                                  Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

                                Viewing 15 results - 61 through 75 (of 96 total)