Skip to content

u/BlindTreeFrog

In this archive from Dec 2012 to Feb 2026

12
posts
171
comments
2
media
527
score

It's a WAG but check if samba updated on your side and now is a noticably newer version than on the NAS. Could be a problem with an older version being disabled by default when booting from fstab and you might need to supply an option forcing an older version of the protocol to be used.

2 points

My issues were not clearing after a cold boot.
When I was skimming the google results, there were 2 main takes on this kind of problem, either it would clear on cold boot, or the drive was in it's final days.

Now, if this drive i took out can be fixed, I have another machine it can go into as a spare drive, but I'm not sure i'm that worried about it in the end

2 points

I was just getting a bunch of errors like that, though it would take more like 5~30 minutes for the drive to unmount and my system be toast.

Everything I saw is the same as what everyone else is saying... if it isn't fixed by a cold bood, the drive is dying. Copy off as much as a you can and put a new one in.

10 points

I've got a script that runs in my status bar to tell me if the kernel is updated. that's the only time i worry about rebooting

    NEXTLINE=0
    FIND=""
    for I in `file /boot/vmlinuz*`; do
      if [ ${NEXTLINE} -eq 1 ]; then
        FIND="${I}"
        NEXTLINE=0
      else
        if [ "${I}" = "version" ]; then NEXTLINE=1; fi
      fi
    done
    if [ ! "${FIND}" = "" ]; then
      CURRENT_KERNEL=`uname -r`
      if [ ! "${CURRENT_KERNEL}" = "${FIND}" ]; then
          # print the message somehow
      fi
  fi
1 points

GAOMON M10K 2018 Version

To highlight this... There are two definitions for "Tablet" and though the line blurs these days, without a use case it's hard to know what OP wants.

Though I'd be shocked if Waccom tablets didn't work with Arch as input devices.

7 points

Is a browser a requirement for his use case? If it is, does it need to be up to date with every patch? Does it just need critical patches with security concerns?

Not every update is a critical update. Not every common desktop application is needed on every installation. I have multiple VM's and servers at work with out of date applications and OS's. Critical patches are applied, but otherwise the risk vs reword vs effort is considered and acted upon.

OP's use case is effectively a headless server as a hypervisor. He's not putting a browser on this machine most likely. He's probably not putting X on in fact.

3 points

That question exists regardless.

I was running Arch at work even though I didn't care about bleeding edge anything because I wanted my tools on my workstation to be relatively recent and I like pacman as a package manager. I've since switched to Suse because I had a problem with NIS that I couldn't figure out.

I run Arch on my file server and used to run it on my web server at home just for consistency between my devices and common scripts. Debian or Centos would have been a "better" OS choice for both of those arguably.

3 points

People in this forum always downvote me for this but the dirty truth is that you don't have to update your install constantly.

It's a rolling release, yes. Updates arrive as they are available. You can install them. But if you have a stable and secure system and you don't need the update, you don't have to install them.

So yeah, if you can get a solid base system installed you can limit your upgrades to specific periods of say a formal upgrade week once every 4~12 months where you are prepared to handle fallout if there is an issue. Otherwise just grab critical patches when they are available.

4 points

My file server has iptables set up to make sure traffic is routed over wireguard if it leaves my router. But neither it nor my desktop have a firewall for blocking incoming connections For the most part I figure if anyone is interested enough to get past my router they are going to have a field day with my machines. This may have bit me in the past when I left an ssh port open (nat'd to a high port number, so they were just brute force scanning and trying common credentials), but fortunately nothing came of it other than hammering on an open port to see if they could find a way in (which cause some random oddness, but closing the port and rebooting seemed to resolve all).

If it's a laptop going to coffee shops or other public networks I'd be more concerned about it. For a desktop I'd put the effort into a quality router that has a solid firewall and kept up to date for issues (I assume the WRT stuff is solid... Ubiquity and the Pro-sumer grade stuff should be fine you'd hope. I'm currently not following my own advice though as I don't feel like upgrading my wifi mesh right now)

A good router will also let you isolate your home machines from IoT devices that you have little control over and guest machines that you don't trust. More can be done there on what should be a more dedicated device for such things. A firewall on your desktop is a last line of defense and can't hurt, but it is not replacement for a quality router set up.

(And again, just to complain that Google is garbage... I'm using Google's Wifi6 Mesh router thing and it's garbage and I don't trust it and I really should do something to improve all of this.... but I really dont' feel like buying new wifi equipment)

1 points

not that I can see. /etc/skel/bashrc is setting it but it's setting it with brackets.

Did notice this in my .bash_prompt... I left it out before because it is commented out, but...

# Also, if your environment isn't updating the tab titles in your graphical terminal, you can append the following line to fix that:

# export PS1="\[\e]0;\u@\h:\w\a\]$PS1"

running it manually doesn't do anything but if urxvt made updates around that that might be a thread for me to chase.

1 points

2bwm keybinding that I believe launches urxvtc (since if I don't launch urxvtd in my xinitrc it doesn't work). This starts at shell level 2.
But if I launch either urxvt or urxvtc via dmenu it behaves the same and launches at shell level 3 (again, launching urxvtc seemingly only works if the daemon is running).
Both methods have the same issue with the alleged PROMPT_COMMAND present. But if I launch urxvt from one of those launched consoles it does not have the issue.

And in case someone feels that it is an important detail, I don't use a graphical log in, simply text log in that launches X if it's TTY1 via my .bash_profile after .bashrc is sourced.

1 points

The SHLVL and Jobs count are just so I know how many jobs are running in the background and how many shells deep I am. I like using shells to temporarily jump to another folder to do something and then exit the shell to jump back. Similar, I'm just as likely to launch a vim session to edit some files, background it to check a different file, and then jump back.

Back on topic, I appreciate your checking. A while back after some update PROMPT_COMMAND was getting set automatically out of the blue which is why I started clearing it explicitly. In this case, since it is happening only on the first shell and setting PROMPT_COMMAND doesn't change it, I'm going to guess this might be some weirdness in urxvt; maybe the profile scripts are run before urxvt fully configures and something isn't cleared right....

2 points

.bash_profile should source before .bashrc as I recall. But that is secondary.

In fact if I log in to TTY2, where no graphical system starts and I . .bashrc, the prompt looks as it should.

re-sourcing files does not resolve the matter in my case.

  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: . .bashrc
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: . .bash_prompt
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]::
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: bash
  
  [blind@~]
  [pandora (3.0)]::

launching TTY2 does not show this issue at all. Which goes back to me thinking that urxvtd might be more of a problem than originally assumed.

edit:
disabling urxvtd so it dosen't launch does not resolve the matter.

1 points

That blind@pandora:~ (without the brackets) appears at all is the issue. That should not be there at all. Otherwise my prompt is just a 2 line prompt.

You did get me to check something that I have not yet expressly done though and set PROMPT_COMMAND to something other than cleared.

  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: export PROMPT_COMMAND="echo hello"
  hello
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: export PROMPT_COMMAND=""
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: echo $PS1
  \n\[\e[37m\][\[\e[38;5;46m\]\u\[\e[32m\]@\[\e[32;92m\]\w\[\e[37m\]]\n\[\e[37m\][\[\e[38;5;93m\]\h\[\e[37m\] (2.\j)]::\[\e[m\]
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: export PS1=$PS1
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]::
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]:: export PS1="\n\[\e[37m\][\[\e[38;5;46m\]\u\[\e[32m\]@\[\e[32;92m\]\w\[\e[37m\]]\n\[\e[37m\][\[\e[38;5;93m\]\h\[\e[37m\] (2.\j)]::\[\e[m\] "
  blind@pandora:~
  [blind@~]
  [pandora (2.0)]::

So that's fun... next time I set up a reboot I'll have to kill the uxrvt deamon just to be sure that's not it.

And just to clarify, what the prompt should be:

  [blind@~]
  [pandora (2.0)]::

what I'm getting until I launch a new shell:

  blind@pandora:~
  [blind@~]
  [pandora (2.0)]::
1 points

have you set a nonstandard PROMPT_COMMAND

I've cleared PROMPT_COMMAND in my scripts

and the first launch of your terminal instead sources something else?

Yes. A PROMPT_COMMAND is printed even though the variable is unset.

And, the reason you know there's an issue is because there's supposed to be a newline somewhere (presumably at the end) that's not there?

PS1 starts with a newline that is not there. Also BASH_PROMPT is there when it shouldn't be

Also, are you spawning urxvt child processes?

I must admit that I'm doing this by whatever means dmenu and 2bwm handle this, but yes.

That said, as this got me test something...
Launching via 2bwm's hotkey (command+enter) -- suffers this issue
Launching via dmenu -- suffers this issue
Launching via an open urxvt terminal -- works fine (but looks to be the same case as just calling bash and launching a new shell)

we'd need to see your .bashrc and also your .profile if you have one and there's configuration there.

forgot my profile. Will edit add that now, but a link for posterity.

https://old.reddit.com/r/archlinux/comments/11x5hvm/prompt_command_appearing_when_one_shouldnt/jd1nnro/

1 points

As requested...

.xinitrc

#!/bin/bash
#
# ~/.xinitrc
#
# Last-modified: 21 Mar 2023 12:31:41 AM

# In case anything is in .Xdefaults
[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults

# start urxvtd deamon
urxvtd -q -f -o
# set the monitors up before anything else.
xrandr --output DisplayPort-0 --auto --primary
xrandr --output DisplayPort-1 --auto --right-of DisplayPort-0
xrandr --output HDMI-A-0 --auto --right-of DisplayPort-1 --rotate left


# Set wallpaper
hsetroot -root -center ~/media/wallpapers/breach_hires.jpg &

# Enable DevMon for USB drives and such
devmon --sync --info-on-mount &

# default cursor
xsetroot -cursor_name left_ptr &

# make sure all font dirs are browsed
xset +fp /usr/share/fonts/local
xset fp rehash

function wm() {
    # Load X resources
    xrdb -load ~/.Xresources &

    # personnal bindings
    xbindkeys

    # set WM name
    xsetroot -name $1

    #status bar
    ~/.scripts/statusbar.sh 2>&1 > /dev/null &

    # Compositing
    # enable RGBA module for GTK
    export GTK_MODULES=rgba

    # backend needed to play nice with AMD Catalyst drivers
    picom -cb -o0

    exec $1
}

# If nothing was passed in, use default
[[ -z $1 ]] && wm '2bwm'

.bash_profile

[[ -f ~/.bashrc ]] && . ~/.bashrc

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

.bashrc

  #
  # ~/.bashrc
  #

  # If not running interactively, don't do anything
  [[ $- != *i* ]] && return

  # The bash history should save 3000 commands
  export HISTFILESIZE=
  export HISTSIZE=

  # Change the file location because certain bash sessions truncate .bash_history file upon close.
  # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
  export HISTFILE=~/.bash_eternal_history

  export HISTCONTROL=ignoreboth:erasedups

  # append to the history file, don't overwrite it
  shopt -s histappend

  source ~/.bash_alias

  # use lscolors-git package
  . /usr/share/LS_COLORS/dircolors.sh

  export LESS=-R

  PS1='[\u@\h \W]\$ '
  source ~/.bash_prompt

  export NNN_OPENER=${HOME}/.config/nnn/plugins/nuke
  export EDITOR="${HOME}/.scripts/tmux_editor.sh"
  export GUI=1

  export PATH="~/bin:~/bin/scripts:/usr/bin/scripts:/usr/local/bin/scripts:${PATH}"

  export PROMPT_COMMAND=

.bash_prompt (removed the lines that alias color codes to words, included the unset at the end)

  HOSTCOLOR=$HI_BLUE
  USER_COLOR=$LO_GREEN


  {
  local HOSTHASH, COLORCODE
  HOSTHASH="$(printf "%d" 0x$(echo $HOSTNAME | cksum | cut -d ' ' -f 1))"
  COLORCODE=$(echo "(${HOSTHASH} % 230) + 1" | bc)
  HOSTCOLOR="\[\e[38;5;${COLORCODE}m\]"
  } 2> /dev/null || HOSTCOLOR=$HI_BLUE

  {
  local USERHASH, COLORCODE
  USERHASH="$(printf "%d" 0x$(echo $USER | cksum | cut -d ' ' -f 1))"
  COLORCODE=$(echo "(${USERHASH} % 230) + 1" | bc)
  USERCOLOR="\[\e[38;5;${COLORCODE}m\]"
  } 2> /dev/null || USERCOLOR=$LO_GREEN


  # clear PROMPT_COMMAND as I'm not using it
  export PROMPT_COMMAND=

  if [ `whoami` = "root" ]
  then
     export PS1="\n$LO_BLUE[$HI_RED\u${LO_CYAN}@${HI_GREEN}\w$LO_BLUE]\n$LO_BLUE[$LO_RED\h$LO_BLUE]::$R "

  else
     export PS1="\n${LO_WHITE}[${USERCOLOR}\u${LO_GREEN}@${HI_GREEN}\w$LO_WHITE]\n$LO_WHITE[${HOSTCOLOR}\h${LO_WHITE} ($SHLVL.\j)]::$R "
  fi

  unset R RESET BOLD FAINT UNDERLINE REVERSE STRIKEOUT LO_BLACK LO_RED LO_GREEN LO_YELLOW LO_BLUE LO_MAGENTA LO_CY
  unset HI_BLACK HI_RED HI_GREEN HI_YELLOW HI_BLUE HI_MAGENTA HI_CYAN HI_WHITE BG_BLACK BG_RED BG_GREEN BG_YELLOW

What I'm seeing and what it should look like (as launching a shell fixes it)

 blind@pandora:~
 [blind@~]
 [pandora (2.0)]:: echo $PS1
 \n\[\e[37m\][\[\e[38;5;46m\]\u\[\e[32m\]@\[\e[32;92m\]\w\[\e[37m\]]\n\[\e[37m\][\[\e[38;5;93m\]\h\[\e[37m\] (2.\j)]::\[\e[m\]
 blind@pandora:~
 [blind@~]
 [pandora (2.0)]:: echo $PROMPT_COMMAND

 blind@pandora:~
 [blind@~]
 [pandora (2.0)]::
 blind@pandora:~
 [blind@~]
 [pandora (2.0)]:: bash

 [blind@~]
 [pandora (3.0)]::

 [blind@~]
 [pandora (3.0)]::
1 points

Make a backup and copy it off to somewhere else.

Something like this is all you need if you don't want to get too involved:
https://mikepapinski.github.io/bash/2020/01/11/BASH-backup-scripts-project.html
Backup your config files, dot files, and so on in case you need to be able to restore your system.

If you have a files system that does snapshots and you'd rather do that, follow your heart. The goal is to make restoring to a working state easier.

Also run a regular backups on your stuff so that you don't lose important things.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.