Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Environment?

  1. #11
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    14,135
    Distro
    Ubuntu Budgie Development Release

    Re: Environment?

    You can install multiple desktops if you like and select any of them during login. The problem is clutter and duplicate application because different desktops use different default applications. This can result in broken packages during update.
    “Start where you are. Use what you have. Do what you can".

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  2. #12
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    19,149
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Environment?

    "Environment" can mean multiple things. What everyone above seemed jump onto is the "Desktop Environment", which is almost universally abbreviated as "DE". The context provided with the question lead them in that direction, correctly.

    Server people talk about "environments", meaning the general way everything in a system fits into a larger world. "Tell me about your environment" is a common request when I first talk with a client. The answer might be about 1 computer or hundreds. Just depends.

    Tell me about your "networking environment" could result in "we use wifi" or they could send over 10 pages of network architecture diagrams with a different network zone for each page. Those zones are firewalled off from each other with normal users having access only to 1 network zone. VPN access for different groups might be included between zones or from the public internet, depending on the user's VPN login too.

    In these forums, when I say "cron doesn't provide much environment", I'm specifically talking about environment variables. Type
    Code:
    $ env
    to see them. They will be different for every userid and also depend on whether an interactive shell is being used or a batch login is.

    Here's a non-interactive shell connection to a system named "hadar", the env:
    Code:
    $ ssh hadar env
    XDG_SESSION_ID=4460
    GVFS_DISABLE_FUSE=1
    SHELL=/bin/bash
    SSH_CLIENT=172.22.22.11 34334 22
    USER=tf
    MAIL=/var/mail/tf
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    PWD=/home/tf
    LANG=en_US.UTF-8
    SHLVL=1
    HOME=/home/tf
    LOGNAME=tf
    SSH_CONNECTION=172.22.22.11 34334 172.22.22.6 22
    XDG_RUNTIME_DIR=/run/user/1000
    _=/usr/bin/env
    OTOH, for an interactive shell on hadar:

    Code:
    $ env
    XDG_VTNR=7
    PERLBREW_SHELLRC_VERSION=0.86
    MANPATH=/home/tf/perl5/perlbrew/perls/perl-5.29.7/man:/usr/local/man:/usr/local/share/man:/usr/share/man
    SSH_AGENT_PID=23609
    XDG_SESSION_ID=c4
    PERLBREW_VERSION=0.86
    XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/tf
    GPG_AGENT_INFO=/home/tf/.gnupg/S.gpg-agent:0:1
    GVFS_DISABLE_FUSE=1
    PERLBREW_PERL=perl-5.29.7
    SHELL=/bin/bash
    TERM=xterm
    QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
    WINDOWID=12582927
    OLDPWD=/home/tf
    GTK_MODULES=gail:atk-bridge
    USER=tf
    XTERM_SHELL=/bin/bash
    QT_ACCESSIBILITY=1
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
    XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
    XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
    SSH_AUTH_SOCK=/tmp/ssh-pDIkQwQfpbq1/agent.23547
    DEFAULTS_PATH=/usr/share/gconf/openbox.default.path
    LIBVIRT_DEFAULT_URI=qemu:///system
    PERLBREW_ROOT=/home/tf/perl5/perlbrew
    XDG_CONFIG_DIRS=/etc/xdg/xdg-openbox:/etc/xdg
    DESKTOP_SESSION=openbox
    PATH=/home/tf/perl5/perlbrew/bin:/home/tf/perl5/perlbrew/perls/perl-5.29.7/bin:/home/tf/bin:/home/tf/bin:/home/tf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    XDG_SESSION_TYPE=x11
    PWD=/home/tf/bin
    LANG=en_US.UTF-8
    MANDATORY_PATH=/usr/share/gconf/openbox.mandatory.path
    GDM_LANG=en_US
    PERLBREW_HOME=/home/tf/.perlbrew
    GDMSESSION=openbox
    XTERM_VERSION=XTerm(322)
    XTERM_LOCALE=en_US.UTF-8
    XDG_SEAT=seat0
    SHLVL=2
    HOME=/home/tf
    LANGUAGE=en_US
    PERLBREW_MANPATH=/home/tf/perl5/perlbrew/perls/perl-5.29.7/man
    LOGNAME=tf
    XDG_SESSION_DESKTOP=openbox
    PERLBREW_PATH=/home/tf/perl5/perlbrew/bin:/home/tf/perl5/perlbrew/perls/perl-5.29.7/bin
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2BkdjkW5DB,guid=7cad3cd52080dbce682d3f695e7628b8
    XDG_DATA_DIRS=/usr/share/openbox:/usr/local/share/:/usr/share/
    LESSOPEN=| /usr/bin/lesspipe %s
    XDG_RUNTIME_DIR=/run/user/1000
    DISPLAY=:0
    LESSCLOSE=/usr/bin/lesspipe %s %s
    XAUTHORITY=/home/tf/.Xauthority
    _=/usr/bin/env
    Just a wee bit more stuff and I'm not running any DE at all. I prefer a lean GUI.

    cron will have even less "environment" than a batch login. Environment variables control how programs run, where they look for stuff, where they are allowed to access stuff and pretty much anything a programmer wants to be quickly controlled, overridden, by the user. The PATH and LD_LIBRARY_PATH are critical environment variables for most Linux computers. The PATH works on Linux like it does on Windows, DOS, OSX, Unix ... it provides the shell with a set of directories to search for programs which can be executed without providing the /full/path/to/the/program Because /bin/ is included in all our PATH variables, any programs in that directory can be run without saying /bin/ls. ls is located in /bin/ls. But env is /usr/bin/env, so for that program to work without the full patch, /usr/bin must be in my PATH too. Is it?

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •