You are not logged in.

#1 2017-06-19 03:16:59

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

[Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

I keep getting these strange strings of characters everwhere which actually replace the original file names of the files. Sometimes I will even open a BASH script and it will have lines upon lines of these characers. No idea why. Is there anyone out there who is willing to help a fellow Archer out, or has run into similar problems themselves?

Anyway, the help is much appreciated.

Sincerely,
#BasementHacker

http://i.imgur.com/C6DKzX0.png

Solution: Just used a file manager to rename the file to foobar.txt and then did a

rm ~/foobar.txt

And that was that.

Last edited by BasementHacker (2017-06-21 06:25:40)

Offline

#2 2017-06-19 03:34:40

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Here is another example. The first example shows that it happens in the terminal. But I just realized it also appes in GUI applications as well...?!

Sincerely,
#BasementHacker

http://i.imgur.com/vzThYSq.png

Last edited by jasonwryan (2017-06-19 03:35:48)

Offline

#3 2017-06-19 03:36:33

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Hi there and welcome BasementHacker

Please edit your posts and remove full size image:
https://wiki.archlinux.org/index.php/Co … s_and_code

Use url tag to link it instead. Or upload it to a host that produces url with thumbnail for forums. I personally prefer to use https://postimage.io.

Edit: Got snaked by jasonwryan.

Last edited by olegabrielz (2017-06-19 03:38:38)


Be aware of my Newbie Powers

Offline

#4 2017-06-19 03:37:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-06-19 03:39:50

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Firstly, why are you logging into the GUI as root?

Secondly, post your .bashrc here. Use a pastebin, if it's too long.

Offline

#6 2017-06-19 04:09:21

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

olegabrielz wrote:

Hi there and welcome BasementHacker

Please edit your posts and remove full size image:
https://wiki.archlinux.org/index.php/Co … s_and_code

Use url tag to link it instead. Or upload it to a host that produces url with thumbnail for forums. I personally prefer to use https://postimage.io.

Edit: Got snaked by jasonwryan.

Thank you for that link. I didn't realize the images were going to be so huge at the time when I posted them. I sincerely apologise for my ingorance and my inconvenience.

x33a wrote:

Firstly, why are you logging into the GUI as root?

Because I can be. And in the 11 years I've been using GNU/Linux it has never once caused an issue for me.

And below is my ~/.bashrc although I'm not sure what that has to do with my current issue about strange characters shoing up everywhere.

[root@archlinux:~]# cat .bashrc 
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias alsamixer='alsamixer -c 1'

##### Makes Vim the Default Editor for Yaourt #####
export VISUAL="vim"

PS1='[\u@\h:\w]\$ '

Offline

#7 2017-06-19 04:28:44

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Perhaps that file you have there simply has those characters in its name?

Offline

#8 2017-06-19 04:32:17

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Ropid wrote:

Perhaps that file you have there simply has those characters in its name?

Thank you for your interest in trying to help me. And no, that is NOT corrrect. It was originally named something human-readable. And if you look, now all of the folders next to it no longer have names anymore.

Offline

#9 2017-06-19 04:48:58

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

I guess I'd try to prove to myself if that's right now really its file name or just some display error, perhaps by checking around using a text console on Ctrl-Alt-F3.

If that's really its name, the missing names in the GUI tool might be because something in it breaks with those characters in the file name.

About how the file name came to be, I guess I'd look through the history recorded by bash with "history | less" and see if there's a command line that might have done this because of binary contents of some file being used in a way that it ended up as that file name.

Other than that, maybe there's corruption on the file-system? I'd check "smartctl -x" targeting the drive and would look at those error counts in the SMART record table in smartctl's output.

Last edited by Ropid (2017-06-19 04:50:41)

Offline

#10 2017-06-19 06:18:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,881

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

originally named something human-readable

In particular? (Notably did it contain non-ascii bytes, notice that ascii is only the first 128 bytes)

Could a locale issue.

localectl
locale
locale -a
printenv | grep -E '(LC|LANG)'

x33a was likely wondering whether the console errors could be caused by some stupid PS1 script - in general you can expect people here around (let alone the moderators) not to ask stupid questions.

I also assume that Ropid is right: one of the files *certainly* contains non-ASCII bytes (we can see that in the ls output). The open dialog toolkit probably just gets knocked out by trying to deal with this (either font rendering breaks entirely or it's because of the futile attempt to find a font that provides glyphes for the assumed charset)

---
PS: a friend of mine has done parachuting for actually more than 11 years because he could and it had never caused him any issue in all that time. He's now getting a synthetic knee and will be caused issues - by stairs.
Edit, in case that's not clear: he probably hit a hole in the ground and crushed his leg when landing.

Last edited by seth (2017-06-19 06:23:08)

Offline

#11 2017-06-19 19:49:26

piratebill
Member
From: Sol System
Registered: 2011-10-20
Posts: 145

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

As Seth said, I'd try looking into the locale settings. On a side note, what DE are you using? I like the theme

Offline

#12 2017-06-21 06:11:24

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

piratebill wrote:

As Seth said, I'd try looking into the locale settings. On a side note, what DE are you using? I like the theme

Thanks for the words of encouragement @piratebill. The DE I'm using is Xfce4 (with xfwm for window manager of course). And Adwaita-Dark for the GTK2/GTK3/QT4/QT5/Java - pretty much every GUI ap;lication I use.

Fonts
Serif/Sans-Serif: AR Techni
Monospace: Hermit (Medium)

Icons
Faenza-Darkest

Offline

#13 2017-06-21 06:20:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Are you going to continue to ignore people asking for you to paste details of your locale?

seth wrote:

Could a locale issue.

localectl
locale
locale -a
printenv | grep -E '(LC|LANG)'

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2017-06-21 07:13:03

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

jasonwryan wrote:

Are you going to continue to ignore people asking for you to paste details of your locale?

seth wrote:

Could a locale issue.

localectl
locale
locale -a
printenv | grep -E '(LC|LANG)'

Considering that I've already marked it "[SOLVED]", yeah, I suppose I could keep ignoring your pleas for my locale infos. On the other hand I don't see what difference it makes whether you have it or not. So here you go: http://sprunge.us/fCIL?sh

Offline

#15 2017-06-21 07:21:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

When I asked, the thread was not marked as solved. And even if it was, I wouldn't have expected to have to scrolled to the top of the thread to read the solution.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2017-06-21 07:30:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,881

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

Since it's a normal and sane UTF-8 setup, my best guess would be that something™ blindly encoded a filename UTF-16
Unfortunately you destroyed the data.

Offline

#17 2017-06-21 19:49:00

BasementHacker
Member
From: Thee Basement
Registered: 2017-06-19
Posts: 40
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

jasonwryan wrote:

When I asked, the thread was not marked as solved. And even if it was, I wouldn't have expected to have to scrolled to the top of the thread to read the solution.

We likely posted right about the same time, with me being slightly faster on the Input key.

seth wrote:

Since it's a normal and sane UTF-8 setup, my best guess would be that something™ blindly encoded a filename UTF-16
Unfortunately you destroyed the data.

I agree with you there. We could have investigated the issue further. But I do not remember placing any important fingle files in the /root/ directory. They always go inside a directory which loosly describes the contents of the folders.

Offline

#18 2017-06-21 20:22:04

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: [Solved...Sort Of] Strange Characters on BASH and TTY consoles...?

@jasonwryan Keep fighting the good fight sir.

Offline

Board footer

Powered by FluxBB