You are not logged in.

#1 2021-06-23 17:25:36

BAR777
Member
Registered: 2021-06-01
Posts: 43

(Solved)Terminal takes soo long to load

Hi guys.
in the past when i started terminal it was really fast.
but now it takes about 30 second to load.
which is really bad.
btw my laptop performance is good,just about the terminal......
How to fix it?
Xfce4-Updated system.

Last edited by BAR777 (2021-06-26 06:39:17)

Offline

#2 2021-06-23 17:38:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: (Solved)Terminal takes soo long to load

How do you start xfce?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-06-24 03:49:43

mpan
Member
Registered: 2012-08-01
Posts: 1,207
Website

Re: (Solved)Terminal takes soo long to load

The question is unclear. What terminal?

Is that xfce4-terminal? If yes, how do you start it? Does passing `--disable-server` affect it? If yes, any D-Bus related error messages in the journal or xorg log?


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#4 2021-06-24 06:05:39

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

Slithery wrote:

How do you start xfce?

Hi @Slithery.
Xfce registered in systemctl and auto start at system start up.
Just like wiki.archlinux.org tutorial.

Offline

#5 2021-06-24 06:07:37

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

mpan wrote:

The question is unclear. What terminal?

Is that xfce4-terminal? If yes, how do you start it? Does passing `--disable-server` affect it? If yes, any D-Bus related error messages in the journal or xorg log?

Hi @mpan.
Yes its xfce4-terminal.
Then i have to run it from another terminal with "--disable-server"?

Offline

#6 2021-06-24 06:12:31

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

Just like what where in the wiki and which tutorial?

loginctl session-status

If it's really *only* the terminal, what about

xfce4-terminal -H -e /usr/bin/ls $HOME

And if that's "fast", what $SHELL are you using and are you also using oh-my-{zsh,fish}?

Offline

#7 2021-06-24 06:24:36

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

seth wrote:

Just like what where in the wiki and which tutorial?

loginctl session-status

If it's really *only* the terminal, what about

xfce4-terminal -H -e /usr/bin/ls $HOME

And if that's "fast", what $SHELL are you using and are you also using oh-my-{zsh,fish}?

Hi @seth.
This is the code:
"""""""""""2 - bardia (1000)
           Since: Thu 2021-06-24 06:03:56 UTC; 12min ago
          Leader: 748 (lightdm)
            Seat: seat0; vc7
         Display: :0
         Service: lightdm; type x11; class user
         Desktop: xfce
           State: active
            Unit: session-2.scope
                  ├─ 748 lightdm --session-child 12 19
                  ├─ 769 xfce4-session
                  ├─ 827 /usr/bin/ssh-agent -s
                  ├─ 836 xfwm4 --display :0.0 --sm-client-id 2e6656817-f9e0-4f7>
                  ├─ 847 xfsettingsd --display :0.0 --sm-client-id 28e5172f8-88>
                  ├─ 858 xfce4-panel --display :0.0 --sm-client-id 2f290a52f-55>
                  ├─ 862 Thunar --sm-client-id 28148b7f1-2691-45d5-b3e0-ffb8e3f>
                  ├─ 867 xfdesktop --display :0.0 --sm-client-id 27e28d503-ba2d>
                  ├─ 877 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/>
                  ├─ 883 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/>
                  ├─ 884 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/>
                  ├─ 885 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/>
                  ├─ 892 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/>
                  ├─ 907 /usr/lib/firefox/firefox --sm-client-id 278cb8f40-a8ea>
                  ├─ 909 xfce4-terminal --geometry=80x23 --display :0.0 --role=>
                  ├─ 910 xfce4-power-manager --restart --sm-client-id 2862f8280>
                  ├─ 963 bash
                  ├─ 978 plank
                  ├─ 988 nm-applet
                  ├─ 989 /usr/lib/tracker-miner-fs-3
                  ├─ 990 /usr/lib/xfce-polkit/xfce-polkit
                  ├─ 993 /usr/lib/geoclue-2.0/demos/agent
                  ├─1006 pamac-tray
                  ├─1302 /usr/lib/firefox/firefox -contentproc -childID 2 -isFo>
                  ├─1319 /usr/lib/firefox/firefox -contentproc -childID 3 -isFo>
                  ├─1413 persepolis
                  ├─1577 aria2c --no-conf --enable-rpc --rpc-listen-port=6801 ->
                  ├─1848 /usr/lib/firefox/firefox -contentproc -childID 5 -isFo>
                  ├─1887 loginctl session-status      """""""




Also my shell is bash

Again this command doesnt work

xfce4-terminal -H -e /usr/bin/ls $HOME

Last edited by BAR777 (2021-06-24 06:30:43)

Offline

#8 2021-06-24 06:28:37

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

Please use code tags, https://bbs.archlinux.org/help.php#bbcode and don't copy out of the pager.
Though in this case, and while this has nothing to do with "registered in systemctl and auto start at system start up" *at all*, there's an active session/bus.

What about not running the shell in the terminal?

Offline

#9 2021-06-24 06:34:59

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

seth wrote:

Please use code tags, https://bbs.archlinux.org/help.php#bbcode and don't copy out of the pager.
Though in this case, and while this has nothing to do with "registered in systemctl and auto start at system start up" *at all*, there's an active session/bus.

What about not running the shell in the terminal?

Could you answer my question clearer? I dont understand.
also my english is not good.

Offline

#10 2021-06-24 06:39:38

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

What?

You added "this command doesnt work" after my post and not "again", but if that's supposed to be your "question", the actual question is how it "doesn't work", https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#11 2021-06-24 11:15:28

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

seth wrote:

What?

You added "this command doesnt work" after my post and not "again", but if that's supposed to be your "question", the actual question is how it "doesn't work", https://bbs.archlinux.org/viewtopic.php?id=57855

@seth
You should answer my question and not saying my grammar mistakes.
Pls if u have any solution say it.
I told u that my english is not perfect.
Edit:See this link for more informtion:
https://ufile.io/d0r1g2eg
btw, sorry for bad quality.

Last edited by BAR777 (2021-06-24 12:07:47)

Offline

#12 2021-06-24 13:23:01

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

It's the same thing:
*What* question?
You haven't asked any.

On the other hand you've not answered *how*

xfce4-terminal -H -e /usr/bin/ls $HOME

"doesn't work".

From the video however it's pretty save to say that the problem is the shell - move away your ~/.bashrc

Offline

#13 2021-06-24 15:46:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,527
Website

Re: (Solved)Terminal takes soo long to load

seth wrote:

From the video however it's pretty save to say that the problem is the shell - move away your ~/.bashrc

I had a similar suspicion after seeing the video; however I'd rather test that suspicion first.

Bar777, wait for the prompt, then launch a new subshell (type `bash` and hit enter).  Do you get the next prompt right away, or is there a long delay again?

EDIT: I suppose the most likely meaning of "doesn't work" for the `ls` command is that nothing apparent happens which would be a good thing: the new terminal opens, runs, and exits instantaneously, and thus in the absence of the shell running, the problem is avoided.

Last edited by Trilby (2021-06-24 15:48:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#14 2021-06-24 16:17:34

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

"-H" is supposed to hold the terminal (I don't have xfce4-terminal to test, but it's what the manpage promises)

Offline

#15 2021-06-24 16:29:06

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

xfce4-terminal -H -e /usr/bin/ls $HOME
......................................................................
This command shows :
xfce4-terminal: Unknown option "/home/bardia"
....................................................................................

Last edited by BAR777 (2021-06-24 16:30:54)

Offline

#16 2021-06-24 16:33:18

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

Try

xfce4-terminal -H -e "/usr/bin/ls $HOME"

Offline

#17 2021-06-24 16:36:21

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

Trilby wrote:
seth wrote:

From the video however it's pretty save to say that the problem is the shell - move away your ~/.bashrc

I had a similar suspicion after seeing the video; however I'd rather test that suspicion first.

Bar777, wait for the prompt, then launch a new subshell (type `bash` and hit enter).  Do you get the next prompt right away, or is there a long delay again?

EDIT: I suppose the most likely meaning of "doesn't work" for the `ls` command is that nothing apparent happens which would be a good thing: the new terminal opens, runs, and exits instantaneously, and thus in the absence of the shell running, the problem is avoided.

Hi @Trilby.
Typing bash lead to that delay again.
Edit:
******GUY PLS WAIT.******
EVEN After a 5 minute nothing happens in terminal and seems like terminal stuck on a pitch black SCREEN.
BUT When I press ENTER Everything returns to the NORMAL State And BASH Loads Successfully!!!!!!!
**********************************

Offline

#18 2021-06-25 00:16:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,527
Website

Re: (Solved)Terminal takes soo long to load

I gather there's a `read` command or similar somewhere in your shell config(s).  Move your ~/.bashrc as suggested and try again.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#19 2021-06-25 07:02:48

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

Trilby wrote:

I gather there's a `read` command or similar somewhere in your shell config(s).  Move your ~/.bashrc as suggested and try again.

@Trilby
How to do it?

Offline

#20 2021-06-25 07:03:24

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

How did you install archlinux?

Offline

#21 2021-06-25 10:35:42

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

seth wrote:

How did you install archlinux?

@seth
Thats out of my question.
From arch wiki tutorial

Offline

#22 2021-06-25 11:06:51

seth
Member
Registered: 2012-09-03
Posts: 51,198

Re: (Solved)Terminal takes soo long to load

And you don't know how to move a file?

Offline

#23 2021-06-26 06:10:41

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

seth wrote:

And you don't know how to move a file?

@seth
I know.
But which file from * to * ?
And how to set the configs.

Offline

#24 2021-06-26 06:38:51

BAR777
Member
Registered: 2021-06-01
Posts: 43

Re: (Solved)Terminal takes soo long to load

Guys my problem is solved:
The following code in .bashrc was slowing down my terminal:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/usr/etc/profile.d/conda.sh" ]; then
        . "/usr/etc/profile.d/conda.sh"
    else
        export PATH="/usr/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<< 

Offline

#25 2022-07-28 19:07:04

avasam
Member
Registered: 2020-01-26
Posts: 71
Website

Re: (Solved)Terminal takes soo long to load

I had the same problem and this is how I solved it :
It's all about installing Python Anaconda in your Linux ...
When you open the terminal conda going to start and you must disable it.
if you are using zsh you must edit ~/.zshrc and if you are using bash you must edit ~/.bashrc or ~/.bash_profile
you can find this code :

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/usr/etc/profile.d/conda.sh" ]; then
        . "/usr/etc/profile.d/conda.sh"
    else
        export PATH="/usr/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<< 

update it like this :

__conda_setup="$(CONDA_REPORT_ERRORS=false '/home/YOUR_USERNAME/miniconda3/bin/conda' shell.zsh hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/YOUR_USERNAME/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home/YOUR_USERNAME/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/YOUR_USERNAME/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

if you use bash change shell.zsh to shell.bash

Last edited by avasam (2022-07-28 19:41:28)

Offline

Board footer

Powered by FluxBB