The "VP of M&A" thing is a common finance industry practice. By making up some bullshit VP title the junior guy sent to go work with the client seems more important than he really is.
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.
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
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.
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
And honestly this is kind of the hardest part of it.
If you don't update frequently you need to know enough to pick and choose what to upgrade and be able to mix and match versions. I'd argue that is a slightly harder skill than keeping a system up to date.
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.
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.
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.
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)
st doesn't replicate.
Connect Bot on my phone doesn't replicate either
Once my laptop is charged I'll try putty and see what happens, but I'm already seeing a trend here.
Seems to be some urxvt weirdness... Are you running urxvtd when you tried?
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.
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.
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....
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.
The "VP of M&A" thing is a common finance industry practice. By making up some bullshit VP title the junior guy sent to go work with the client seems more important than he really is.
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.
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
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.
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
Been playing with
nblately, but it's a function that i need often.CDE
https://wiki.archlinux.org/title/Common_Desktop_Environment
Skimming other comments, the recommendation for NsCDE seems reasonable too.
I honestly did as well until I pulled your recommendation up and realized that that might be what OP wants instead of a reflashed Android tablet.
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.
And honestly this is kind of the hardest part of it.
If you don't update frequently you need to know enough to pick and choose what to upgrade and be able to mix and match versions. I'd argue that is a slightly harder skill than keeping a system up to date.
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.
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.
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.
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)
No, I am asking if you launched urxvtd the daemon before launching urxvtc the client.
But in hindsight you would have had to.
stdoesn't replicate. Connect Bot on my phone doesn't replicate either Once my laptop is charged I'll try putty and see what happens, but I'm already seeing a trend here.Seems to be some urxvt weirdness... Are you running urxvtd when you tried?
running that line in a shell otherwise doesn't cause the issue.
I'm wondering if urxvt might be initializing something with that string as a default and not properly updating it.
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...
running it manually doesn't do anything but if urxvt made updates around that that might be a thread for me to chase.
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.
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....
.bash_profile should source before .bashrc as I recall. But that is secondary.
re-sourcing files does not resolve the matter in my case.
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.
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.
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:
what I'm getting until I launch a new shell:
I've cleared PROMPT_COMMAND in my scripts
Yes. A PROMPT_COMMAND is printed even though the variable is unset.
PS1 starts with a newline that is not there. Also BASH_PROMPT is there when it shouldn't be
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)
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/
As requested...
.xinitrc
.bash_profile
.bashrc
.bash_prompt (removed the lines that alias color codes to words, included the unset at the end)
What I'm seeing and what it should look like (as launching a shell fixes it)
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.