You are not logged in.

#1 2013-08-19 02:01:44

iemcd
Member
Registered: 2013-01-29
Posts: 8

[solved] LXTerminal has no prompt after update

I’m running Arch linux on a Thinkpad T40 laptop with e17 as a desktop environment, but I use LXTerminal as a terminal emulator for now.

Today I start LXTerminal, and it displays a cursor, but no prompt, and I cannot type anything in it. I do know that:
it worked yesterday,
Xterm still works,
LXTerminal works if started as root from xterm (but not as a user),
and I can su to my user account from this root terminal.

The following packages have been upgraded between then and now, but none of them looks very promising to me:
glibc
binutils
curl
firefox
gcc-libs
gcc-fortran
ghostscript
girara-common
girara-gtk2
iputils
linux
logrotate
mupdf
run-parts
syslog-ng
valgrind
vim-runtime
vim
zathura

None of ~/.bashrc, ~/.bash_profile, or /etc/bash.bashrc has changed recently, but i can reproduce them below. /etc/bash.bashrc has my PS1 definition in it. I have been unable to find a config file for lxterminal itself.

Help or advice would be greatly appreciated. Thank you.

# ~/.bashrc

# modified commands:
alias diff='colordiff' #requires colordiff package
alias grep='grep --color=auto'
alias more='less'
alias df='df -h'
alias du='du -c -h'
alias vi='vim'
alias ping='ping -c 3'
alias mkdir='mkdir -pv'

# ls:
alias ls='ls -hF --color=always'
alias ll='ls -l'
alias la='ls -A'

# safety:
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
alias rm='rm -Iv'
alias ln='ln -i'
alias cp='cp -iv'
alias mv='mv -iv'

# new things:
alias up='cd ..'
alias upp='cd ../..'
alias uppp='cd ../../..'
alias upppp='cd ../../../..'
alias openports='netstat --all --numeric --programs --inet'
alias size='du -hs'

# for colored manpages:
man () \
{
	env \
		LESS_TERMCAP_mb=$(printf "\e[1;37m") \
		LESS_TERMCAP_md=$(printf "\e[1;37m") \
		LESS_TERMCAP_me=$(printf "\e[0m") \
		LESS_TERMCAP_se=$(printf "\e[0m") \
		LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
		LESS_TERMCAP_ue=$(printf "\e[0m") \
		LESS_TERMCAP_us=$(printf "\e[0;36m") \
			man "$@"
}

# ignore duplicate and blank entries in history:
export HISTCONTROL=ignoreboth

# tab completion for sudo commands:
complete -cf sudo

# run skype in a sandbox:
alias skype='xhost +SI:localuser:skype && su skype -c skype'
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
#
# /etc/bash.bashrc
#

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

PS1='[\u@\h \W]\$ '
PS2='> '
PS3='> '
PS4='+ '

case ${TERM} in
  xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
                                                        
    ;;
  screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    ;;
esac

[ -r /usr/share/bash-completion/bash_completion   ] && . /usr/share/bash-completion/bash_completion

Last edited by iemcd (2013-08-19 22:13:58)

Offline

#2 2013-08-19 02:04:10

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

Re: [solved] LXTerminal has no prompt after update

Remove devpts fro your fstab?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-08-19 02:15:08

iemcd
Member
Registered: 2013-01-29
Posts: 8

Re: [solved] LXTerminal has no prompt after update

jasonwryan wrote:

Remove devpts fro your fstab?

No, it's still there. Should I?

Offline

#4 2013-08-19 04:41:05

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

Re: [solved] LXTerminal has no prompt after update

Yes.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-08-19 06:10:21

chx
Member
Registered: 2011-05-28
Posts: 101

Re: [solved] LXTerminal has no prompt after update

This needs to be front page on www.archlinux.org. I was told this today on IRC I should've removed this years ago but it was never in the news so how could I possibly know? Also, it was the installer that added it because I certainly didn't. Adding the two together means a lot of older-time people upgrading glibc will get burned.

Offline

#6 2013-08-19 08:08:29

disponiblekonto
Member
Registered: 2012-01-04
Posts: 2

Re: [solved] LXTerminal has no prompt after update

I agree. I was burned by this as well. I didn't know what to do either, so I just downgraded glibc.

Offline

#7 2013-08-19 11:05:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] LXTerminal has no prompt after update

The question is, why did you have dwvpts in your fstab in the first place?
https://bbs.archlinux.org/viewtopic.php … 1#p1313371

Offline

#8 2013-08-19 22:13:26

iemcd
Member
Registered: 2013-01-29
Posts: 8

Re: [solved] LXTerminal has no prompt after update

karol wrote:

The question is, why did you have dwvpts in your fstab in the first place?
https://bbs.archlinux.org/viewtopic.php … 1#p1313371

Like the thread you linked to says, it's always been there. I do have a pacnew file, but the formatting is the same and it's empty, so evidently I just kept using the one I had.

Thanks though Jason, that does seem to have been the issue. And I'm glad to know I wasn't the only one caught off guard.

I'm marking this solved now, thanks everyone.

Offline

#9 2013-08-20 06:12:43

SilentSam
Member
Registered: 2008-02-21
Posts: 39

Re: [solved] LXTerminal has no prompt after update

Thanks for this thread. I was just burned by this as well in Konsole.

Offline

#10 2013-08-23 05:19:45

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [solved] LXTerminal has no prompt after update

Seriously why is this not front page news, an old default is now killing something on up-to-date systems and it's packages that almost everyone have installed. TeXLive makes the front page but /etc/fstab is not important enough. Just put it there, it can't take more than a couple of minutes.


D:

Offline

#11 2013-08-23 05:26:14

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

Re: [solved] LXTerminal has no prompt after update

Because the front page is for news: people not dealing with pacnews is not news, it is neglect.

If you want handholding, etc...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2013-08-23 05:34:24

MisterAnderson
Member
Registered: 2011-09-04
Posts: 285

Re: [solved] LXTerminal has no prompt after update

Hey, it was pretty hidden that /dev/pts wasn't required anymore, at least for me. Plus /etc/fstab.pacnew said nothing about removing /dev/pts, and in its absence I copied over all the entries from my previous fstab. Anyway, the number of users affected should be noted when considering if things should be news and there seems to be quite a few threads about for this problem.


D:

Offline

#13 2013-08-25 16:20:03

doru001
Member
Registered: 2013-01-25
Posts: 138

Re: [solved] LXTerminal has no prompt after update

After last update I have the same problem but only after I do (as part of a chroot):

sudo mount -t devpts pts newroot/dev/pts

Only solution is reboot. Any ideas?

Last edited by doru001 (2013-08-25 16:20:30)

Offline

#14 2013-08-25 16:24:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] LXTerminal has no prompt after update

doru001 wrote:

After last update I have the same problem but only after I do (as part of a chroot):

sudo mount -t devpts pts newroot/dev/pts

Only solution is reboot. Any ideas?

Have you tried

mount -t devpts -o rw,nosuid,noexec,gid=5,mode=620,ptmxmode=000 devpts dev/pts

https://wiki.archlinux.org/index.php/Chroot#Change_root

Offline

#15 2013-08-25 16:29:12

doru001
Member
Registered: 2013-01-25
Posts: 138

Re: [solved] LXTerminal has no prompt after update

karol wrote:

Have you tried

mount -t devpts -o rw,nosuid,noexec,gid=5,mode=620,ptmxmode=000 devpts dev/pts

https://wiki.archlinux.org/index.php/Chroot#Change_root

Thank you, that does it. The page changed since I visited it.
Man, you were fast. smile

Offline

Board footer

Powered by FluxBB