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.
...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...
...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...
...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...
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...
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 ‘...
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.
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.
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.
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...
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...
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.
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...
...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() ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.