LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   startx/alias problems (https://www.linuxquestions.org/questions/debian-26/startx-alias-problems-242991/)

microsoft/linux 10-15-2004 09:45 AM

startx/alias problems
 
two questions

1. Everytime i type startx I get a bunch of blank scrolling that I can't stop. ANy wasy to fix it? I'd like to be able to load my desktop

2.I've set up the ls alias's in root, but when I'm in normal user, I can't get it to work. I've edited the .bashrc file in ~ and it still won't work. Any ideas?

corbintechboy 10-15-2004 11:44 AM

Hello,
I had this problem and I did not have X fully installed. Try apt-get install x-window-system.

darthtux 10-16-2004 07:18 AM

2. Post what you put in ~/.bashrc

BTW, after editing .bashrc did you either
1) log out and back in or
2) source ~/.bashrc

microsoft/linux 10-16-2004 03:13 PM

yes I logged out and logged back in, I'll post the output in little while, I have to get it so I can read it in my Windows partition.

microsoft/linux 10-16-2004 08:11 PM

heres what my user .bashrc file says

Quote:

# ~/.bashrc: executed by bash(1) for non-login shells.

# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)

# for examples


# If running interactively, then:
if [ "$PS1" ]; then


# don't put duplicate lines in the history. See bash(1) for more options

# export HISTCONTROL=ignoredups


# check the window size after each command and, if necessary,

# update the values of LINES and COLUMNS.

#shopt -s checkwinsize


# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval `dircolors -b`a
lias ls='ls --color=auto'
alias dir='ls --color=auto --format=vertical'

alias vdir='ls --color=auto --format=long'

fi
# some more ls aliases
alias ll='ls -l' --color=auto'

alias la='ls -A' --color=auto'

alias l='ls -CF' --color=auto'

# set a fancy prompt
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

# If this is an xterm set the title to user@host:dir

case $TERM in
xterm*)

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'

;;
*)
;;
esac


# enable programmable completion features (you don't need to enable

# this, if it's already enabled in /etc/bash.bashrc).

#if [ -f /etc/bash_completion ]; then

# . /etc/bash_completion

#fi

fi

darthtux 10-16-2004 08:15 PM

Change
lias ls='ls --color=auto'
to
alias ls='ls --color=auto'

EDIT: your "a" was on the previous line. Delete that too.

microsoft/linux 10-16-2004 08:42 PM

nope, I went and checked my .bashrc file under linux and that's corrected, I must have copied it wrong. Any other ideas?

darthtux 10-16-2004 10:36 PM

It may have something to do with the extra single quote in the ll, la, and l lines.

microsoft/linux 10-17-2004 06:44 PM

Quote:


alias ll='ls -l' --color=auto'

alias la='ls -A' --color=auto'

alias l='ls -CF' --color=auto'

the quotes in red, blue or lime green?

darthtux 10-17-2004 11:16 PM

It is the blue or middle one you need to remove.

When using the LQ color tags the closing color tag shouldn't have an =color.

microsoft/linux 10-19-2004 01:37 PM

I removed those apostrophes and it still doesn't do anything. any other ideas?

Ghost_runner 10-19-2004 05:43 PM

add the line in your /etc/profile (at the end) you can use if/fi to check if its there, but i just make sure both root/ftp/and my user have one

source $HOME/.bashrc

microsoft/linux 10-25-2004 01:19 PM

I'm sorry, add what line to where. The last post is kind of confusing. Could you restate that?

Ghost_runner 10-25-2004 08:34 PM

there should be a file in the /etc directory called profile. It is called by bash shells (and other shells, but not sure which all) the final line can read

source $HOME/.bashrc

microsoft/linux 10-27-2004 09:49 AM

Thank you, I'll see if that works


All times are GMT -5. The time now is 10:46 PM.