Search results for query: .shrc

  1. B

    Solved mc on 14.0-R

    It looks like I haven't installed FreeBSD properly and the environment isn't set up as previously. How does FreeBSD set up the default environment on a new installation? ie. is it through one of /.login, /.profile, /.shrc. I don't have any of these on my system.
  2. T

    14.0-RELEASE Upgrade question: Merge conflict markers remain

    ...installed FreeBSD 14.0-release. You are using now-default /bin/sh as command line shell. You have not yet edited your /root/.profile and /root/.shrc. You are seeing the list you wrote just now, are all exactly correct, you should Press Enter to invoke editor. By default, vi would be invoked...
  3. S

    Colorize your BSD shell

    ...are similar with small differences for different users here. The typical place for customization and for overriding system wide settings is ~/.shrc and/or ~/.profile. I avoid using /etc/profile for custom settings, as that can be overriden by updates. To colorize ls output: export...
  4. A

    Xorg SEGFAULT on 14.0 in QEMU/KVM

    ...read those variables from the file using the xf86GetOptValInteger() function and, if it fails, tries to read from env. So I defined this in the .shrc: export QXL_FRAME_BUFFER_SIZE=16 export QXL_SURFACE_BUFFER_SIZE=128 export QXL_COMMAND_BUFFER_SIZE=128 export XSPICE_PORT=5900 relogged...
  5. Cath O'Deray

    Moving from GhostBSD to FreeBSD

    ...1 1004 1005 255B Nov 17 01:29 .mailrc -rw-r--r-- 1 1004 1005 966B Nov 17 01:29 .profile -rw-r--r-- 1 1004 1005 1.0K Nov 17 01:29 .shrc root@mowa219-gjp4-8570p-freebsd:~ # uname -KU 1500003 1500003 root@mowa219-gjp4-8570p-freebsd:~ # rmuser -v blah Matching password entry...
  6. B

    Executing commands on a different partition.

    I want to set these variables when I login via ssh. Where should I set them? .cshrc .shrc .login .profile ?
  7. wb7odyfred

    Change FreeBSD Loader's loaddev variable

    rEFInd Boot Manager, might be a possible answer to your need for a BOOT MENU. I have used rEFInd with GhostBSD and Linux to select which partition to boot to select which operating system. http://www.rodsbooks.com/refind/ Getting Refind from ZIP file on Sourceforge Installing Refind Refind...
  8. Y

    Solved start X at login

    https://forums.freebsd.org/threads/calling-startx-in-shrc-freebsd-11-1.64866/
  9. SoBe

    Solved #!/bin/sh how to save a shell command output into a string variable

    Hello fellow freeBSD forum members, Can you please help Is there anyway to save the following into a variable? What I would like to do is check to see if this output is != null when true adjust some LEDS The following does not function as expected: #!/bin/sh str=`pfctl -vvss | grep ‘...
  10. S

    Solved Which port for kornshell?

    I like shells/mksh. It's easier for interactive use and configuring. I wasn't able to configure my desired settings on other Korn shells. share-your-shrc-kshrc-or-mkshrc-file-segments-bourne-or-korn-shell.85467/ has some Korn shell configurations and display examples.
  11. patmaddox

    How to configure PATH for non-interactive SSH?

    When I run ssh some-host 'echo $PATH' I get /usr/local/bin:/usr/bin:/bin. I need to configure some-host so that it will include /sbin in the PATH. How can I do that? Everything I find on google has to do with bash. Modifying .shrc and .profile don't have any effect.
  12. S

    Colorize your BSD shell

    the-bourne-shell-prompt-color.85914/ is about colorizing .shrc or the regular Bourne Shell, which is the most difficult one and may need a work around.
  13. S

    Need .bashrc etc files to colorize output in bash

    There may be an example in colorize-your-bash-like-linux.45006, or at least a lot of how to about customizing Bash. These aren't Bash, but have information on colorizing ls output: colorize-your-bsd-shell.85458 share-your-shrc-kshrc-or-mkshrc-file-segments-bourne-or-korn-shell.85467 Maybe...
  14. S

    Orange PI Zero2 and FreeBSD 13.2

    ...root wheel 507 Jun 9 2023 .profile -rw------- 1 root wheel 358 Jun 10 2023 .sh_history -rw-r--r-- 1 root wheel 1186 Jun 9 2023 .shrc root@:~ # root@:~ # echo >test -sh: cannot create test: Read-only file system root@:~ # root@:~ # mount -u / root@:~ # root@:~ # echo >test...
  15. Hobbes

    Problem with user rights?

    ...'DBUS_STARTER_BUS_TYPE': 'session', 'DESKTOP_SESSION': '/usr/local/share/xsessions/plasma', 'DISPLAY': ':0', 'EDITOR': 'vim', 'ENV': '/home/me/.shrc', 'GTK2_RC_FILES': '/etc/gtk-2.0/gtkrc:/home/me/.gtkrc-2.0:/home/me/.config/gtkrc-2.0', 'GTK_RC_FILES'...
  16. Jose

    Problem with user rights?

    ...'MAIL': '/var/mail/me', 'PATH': '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/me/bin', 'EDITOR': 'vi', 'ENV': '/home/me/.shrc', 'OLDPWD': '/usr/home/me', 'DISPLAY': ':0', 'PWD': '/home/me', 'TERM': 'rxvt', 'USER': 'me', 'HOME': '/home/me', 'WINDOWPATH': '9', 'SHELL'...
  17. Hobbes

    Problem with user rights?

    Sorry, I mean same as your output. I've taken a look to ~.profile, ~shrc and /etc/login.conf and is not set, but I am newbie in FreeBSD (or Linux) and I don't know if I should look in other places, sorry. One of the reason for not give up this problem is because I want to understand the cause...
  18. meine

    LXDE Startx hangs

    Easyest way would be to boot into the TTY console (no direct GUI starter), then give the full startx command that is in your .shrc or .xinitrc and watch the output. The error might be in the last line.
  19. R

    Reset password in single mode user doesn't work

    That doesn't make very much sense. Suggestion, in addition to what rawthey and cracauer already said: Start in single user. Make a copy of /etc/passwd and master.passwd. Write down the timestamp on those two files. Then use the passwd command to change root's password. You should see that the...
  20. A

    Polish localization issues.

    ...can do it with /etc/login.conf but it matters which one shell we are using /bin/sh - use /etc/profile and then /usr/home/user/.profile and .shrc /usr/local/bin/bash - use /usr/home/user/.profile /usr/local/bin/csh - ... ... Does the file .profile have the same syntax for sh() and bash() ...
Back
Top