Jump to content

Recommended Posts

Posted

I start up me pc with "startx" and noefetch shows the old style image  shown in the last post. Whereas xterm shows the new style image from the last post.

 

How do I get the new style image to show up when I boot up the pc before I log in with startx ?🤔

securitybreach
Posted

How do I get the new style image to show up when I boot up the pc before I log in with startx ?

🤔

 

You need to edit /etc/issue but you will probably not get those fancy graphics and summary from neofetch as /etc/issue is just a text document. You can get some cool looking ones though 

 

WeDHZUF.jpg

 

securitybreach
Posted

It replaces the interactive TTY login screen with neofetch_login_prompt

Posted
15 hours ago, securitybreach said:

 

 

 

You need to edit /etc/issue but you will probably not get those fancy graphics and summary from neofetch as /etc/issue is just a text document. You can get some cool looking ones though 

 

WeDHZUF.jpg

 

 

Neat. I'll have a play around with the /etc/issue way first of.  😎

securitybreach
Posted
13 minutes ago, abarbarian said:

 

Thanks.

 

I tried out a few including your present one and your old one. I went for the one in post 113 here,

 

https://bbs.archlinux.org/viewtopic.php?id=50845&p=5

 

Not so keen on the green text so I may change that later on. 😎

 

Got a picture of it?

Posted
24 minutes ago, securitybreach said:

 

Got a picture of it?

 

I'll post one later. 😎

  • +1 1
  • 2 years later...
V.T. Eric Layton
Posted

Help! I cannot get my custom .bashrc_root to work, darn it. Can anyone spot what I'm doing wrong here?

 

# ~/.bashrc: executed by bash(1) for non-login shells.

export PS1='\u@(ericsbane06)\w\:$ '
umask 022

# root prompt = red
TERM_USER_HOST_COLOR='0;31m'
TERM_PATH_COLOR='0;31m'
TERM_PROMPT_COLOR='0;31m'

TERM_USER_HOST='\u@(ericsbane06)'
TERM_PATH='\w'
TERM_PROMPT='\$'

export PS1=\
'\[\e['${TERM_USER_HOST_COLOR}'\]'${TERM_USER_HOST}'\[\e[m\]'\
'\[\e['${TERM_PATH_COLOR}'\]'${TERM_PATH}'\[\e[m\]'\
'\[\e['${TERM_PROMPT_COLOR}'\]:#\[\e[m\] '

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

 

securitybreach
Posted

Nothing stands out, sorry. I haven't used bash in many years. I only use zsh bu I am sure that you will figure it out.

V.T. Eric Layton
Posted

Yeah... I'm quitting for tonight, though. Don't want to get too aggravated, you know; bad things happen. ;)

  • Haha 1
securitybreach
Posted
3 minutes ago, V.T. Eric Layton said:

Yeah... I'm quitting for tonight, though. Don't want to get too aggravated, you know; bad things happen. ;)

 

Right :hysterical:

Posted (edited)
2 hours ago, V.T. Eric Layton said:

Yeah... I'm quitting for tonight, though. Don't want to get too aggravated, you know; bad things happen. ;)

I also use zsh.  Read this before you go to bed....it'll only take a couple of hours.  How to customize your bash.

Edited by wa4chq
securitybreach
Posted
9 hours ago, wa4chq said:

I also use zsh.  Read this before you go to bed....it'll only take a couple of hours.  How to customize your bash.

 

On the other hand, zsh is very simple to setup and will make your terminal experience a thousand times better with autocomplete, tabbing through directories, tabbing out commands and switches, themes, etc. etc. etc. https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH

slackpkg install zsh

I prefer oh-my-zsh as it provides a bunch of themes and sane defaults. Slackware how to https://github.com/slackware-jheengut/oh-my-zsh

  • Agree 1
securitybreach
Posted
6 minutes ago, wa4chq said:

I've used oh-my-zsh...it's pretty slick, but I like to customizing the zsh-prompt myself.

 

Oh, I further customize it, I just use oh-my-zsh for the theme. My ~/.zshrc:

 

# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="evan"
prompt redhat
# Options
DISABLE_AUTO_UPDATE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(git)

# User configuration
export PATH=$HOME/bin:/usr/local/bin:$PATH
export FFF_LS_COLORS=1
export FFF_COL2=4
export FFF_COL3=4
export EDITOR=vim
export FFF_KEY_SHELL="!"
export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' 

ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache
if [[ ! -d $ZSH_CACHE_DIR ]]; then
  mkdir $ZSH_CACHE_DIR
fi

# Sources
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/doc/pkgfile/command-not-found.zsh

#Aliases
alias vtop='vtop --theme dark'
alias grep='grep --color=auto'
alias pa='paru -Syu'
alias tor='chromium --proxy-server="socks://localhost:9050"'
alias myip='curl ifconfig.me'
alias mixer='pulsemixer'
alias mail='neomutt'
alias resup='xrandr --output DP-0 --scale-from 3840x2160'
alias resdown='xrandr --output DP-0 --scale 0.7x0.7'
alias mkdir='mkdir -pv'
#alias man='tldr'
alias youtube='yt-dlp'
# curl -s cheat.sh/cp

# Transfer file 
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
 tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }

 

Posted

Some of the aliases I forget and some I don't use anymore.  One day I'll clean it up.

HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd
bindkey -e

# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/wa4chq/.zshrc'


# Uncomment the following line to display red dots whilst waiting for completion.
##COMPLETION_WAITING_DOTS="true"

##ENV
export NMON=tn
export EDITOR=nano

autoload -U colors && colors

autoload -Uz compinit
compinit

###Prompt
#PS1="[%w] $fg[green]%n %~ %B$fg[blue]-->$fg[white] " 
#PS1="[%w] %{$fg[cyan]%m %{$fg[green]%d %{$fg[white]--> "
PS1="[%w] %{$fg[cyan] HAM-SHACK %{$fg[green]WA4CHQrp %{$fg[white]--> "


###AUTO START
###/opt/piavpn/bin/pia-client &
#./pia.run
# ./redshift.sh
# ./calcur.sh

# End of lines added by compinstall
#------------------------------------------////
# Colors:
#------------------------------------------////
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightblue='\e[1;34m'
lightgreen='\e[1;32m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
nc='\e[0m'

##Aliases

alias calcur="calcurse"
alias ls="ls -F --color --group-directories-first"
alias cp="cp -vi"
alias mv="mv -i"
alias rm="rm -i"
alias df="df -h"
alias mkdir="mkdir -pv"
##alias mc="mc -b"
alias cls="clear"
alias clr="clear"
alias cl="clear" 
alias alsamixer="alsamixer -g"
##alias mocp="mocp -t -o shuffle -T bnw  ##nightly_theme##-T dante"
alias halt="sudo shutdown -h now"
alias reboot="sudo shutdown -r now"
##alias flash="mount /dev/sdb1"
alias dosbox="dosbox -fullscreen"
##alias seamonkey="/usr/bin/seamonkey"
alias top="top -u wa4chq"
##alias systemback="systemback"
##alias p="alpine"
alias scrot="scrot -d 5 -c"
alias zshrc="$EDITOR ~/.zshrc"
alias reload='source ~/.zshrc'
alias sys='echo -e "${yellow}Kernel Info: \t${lightred}" `uname -smr`'
alias pdf='qpdfview'
alias map='telnet mapscii.me'
alias tor="torbrowser-launcher"
alias nomachine="/usr/NX/bin/nxplayer"
alias nx="/usr/NX/bin/nxplayer &"
alias fish="/usr/local/bin/asciiquarium"
alias mann="tldr"
alias sdcard="sudo /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=rpi-imager org.raspberrypi.rpi-imager"
alias gpg="gpg -d"
#alias asciiview=aview

 

  • Like 1
V.T. Eric Layton
Posted

BAHAHAHA!

 

I fixed my .bashrc issue for my root not changing colors. Man! I'm really rusty at all this techie stuff. Anyway, the issue was -- get ready to laugh now -- that in my backup (DVD) of some odds and end stuff, I had the tweaks for the bash prompts taught to us by Bruno a few centuries ago. In the directory there were two templates:

 

.bashrc for user prompt and .bashrc_root for the root prompt. All I had to do was enter the "system" name where it asked for it in the script:

 

(enter system name here)

 

and then save the modified .bashrc files to /home/<user> and /root. What I did that screwed things up a bit was to save the user .bashrc to /home/<user>, which worked fine, but when I saved the .bashrc to the /root directory, I saved it as DUH! ".bashrc_root", which was just how I named the backup tweak file to differentiate between the user/root scripts. Once I realized this stupid mistake, I renamed .bashrc_root in the /root directory to .bashrc.

 

NOW EVERYTHING IS WORKING FINE!

 

vtel57@ericsbane06:~$

 

and

 

root@ericsbane06:#

 

YAY! :)

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...