Solved How to prevent Xorg related logs on ttyv0

Hi. I use window manager and start it through .xinitrc but when i close my window manager, i get back to ttyv0 i see a lot of logs related to Xorg and apps that run on that Xorg session. I don't want to see these messages, what should i do? I just read a little about gettytab(5) and made a greeting message on login prompt by writing someting to /etc/issue.


Code:
# /etc/gettytab
default:\
    :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
    \r\n:if=/etc/issue:
   
% cat /etc/issue
Welcome to computer of Yusuf!

I attached screenshot of ttyv0

My .xinitrc is as follows and it is autostarted in login action.

Code:
% cat .xinitrc
dwmbar &
dunst &
xrdb -load ~/.Xresources
feh --randomize --bg-fill ~/.wallpapers
picom &
redshift &
syncthing -no-browser &
keepassxc &
flameshot &
firefox &
signal-desktop --start-in-tray &
# telegram-desktop &
exec dbus-launch --exit-with-session --sh-syntax dwm

% cat .cshrc
alias x "xinit ~/.xinitrc > /dev/null"

if ( $tty == "ttyv0" && $uid == "1001" ) then
    x
endif

I guess that it can be done on /etc/syslog.conf but i don't know what i should do, thanks in advance. I suspect that this log might be coming from started apps in .xinitrc, i am not sure.
 

Attachments

  • output.webp
    output.webp
    1.1 MB · Views: 29
I send the xorg session output to /dev/null. Perhaps an startx(1) alias suits your needs.

Examples of different aliased startx WMs from a test user account:

~/.zshrc
Rich (BB code):
alias    xherbst="env XINITRC=$HOME/.xinitrc.d/herbstluftwm.xinitrc  startx >& /dev/null"
alias    xi3="env XINITRC=$HOME/.xinitrc.d/i3.xinitrc  startx >& /dev/null"

I just read a little about gettytab(5) and made a greeting message on login prompt by writing someting to /etc/issue.
👍

Alternatively you could use motd(5). But this would display the message after log in.
 
Alternatively you could use motd(5). But this would display the message after log in.
Thanks for the info but after login, my Xorg starts automatically so i wouldn't be able to see the motd then.

I send the xorg session output to /dev/null. Perhaps an startx(1) alias suits your needs.
I have an alias too as i stated above but unfortunately it doesn't send output to /dev/null. It would be good if i could send whole startx output to the void. I use tcsh btw.

Code:
% grep "alias x" .cshrc
alias x "startx > /dev/null &"

thanks for your comment.
 
Back
Top