LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2008, 12:34 PM   #1
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
Question Need help for migrating to Slacware


Hello all...
I was fond of Debian and using that Distribution for many
times but now I decide to switch to Slackware an need some help...
In Debian I used Gnome and sometimes KDE desktop environments but
here in Slackware I decide to use fluxbox and here began my problems:
I want to change terminal prompt, change its appearence,
background, fonts and many more... I found some tutorials and
HOW TOs (using google) to tune my fluxbox and it helped me very much...
But now I want to do such things with my xterm...
I've edited "init" and "startup" files of fluxbox, changed background
image, window resizing and many more but there is nothing for tuning
xterm... Can anyone help?...
P.S. And if you don't mind I will post some problems here because you know,
switching from one distribution to another is not very easy...
Oh, yeas, almost forgot, is there something like APT-GET in slackware
I didn't find anything...
Thanks to anyone who would read this thread...
 
Old 06-07-2008, 12:46 PM   #2
Oliver_H
Member
 
Registered: May 2008
Distribution: Slackware, FreeBSD
Posts: 47

Rep: Reputation: 16
Changing the behaviour of xterm or rxvt/urxvt in Slack isn't different to any other distro. You have to change .Xdefaults in your home directory.

Similar to this example, http://www.xs4all.nl/~hanb/configs/dot-Xdefaults

You should find most differences to other distros in the Slackware book,

http://slackbook.org/html/book.html
 
Old 06-07-2008, 12:59 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Are you sure you want to use xterm ? It's such a featureless terminal. You can do much more with even rxvt or aterm. Must you use xterm ?
 
Old 06-07-2008, 01:21 PM   #4
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H View Post
Are you sure you want to use xterm ? It's such a featureless terminal. You can do much more with even rxvt or aterm. Must you use xterm ?
No, I am not...
Actually I see here only rxvt and xterm... I do not know what's the difference between these two... They both have a white background and
shell prompt (indicating SHELL type and version)...
So, I want to change it to look like this:
HOST@USERIRECTORY$
I've edited /etc/profile but that did absolutely nothing...

Oliver_H
Thanks, I'll look at these things...
 
Old 06-07-2008, 01:32 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
For rxvt, try reading 'man rxvt' there are options like:

Code:
       -geometry geom
              Window geometry (-g still respected); resource geometry.

       -pixmap: file[;geom]
              Compile XPM: Specify  XPM  file  for  the  background  and  also
              optionally specify its scaling with a geometry string.  Note you
              may need to add quotes to avoid special shell interpretation  of
              the `;´ in the command-line; resource backgroundPixmap.

       -fn fontname
              Main normal text font; resource font.

       -fb fontname
              Main bold text font; resource boldFont.

       -fm fontname
              Main multicharacter font; resource mfont.
among many, many more options.
 
Old 06-07-2008, 02:48 PM   #6
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
ok guys, that really helped me...
Thank you both...
One more thing and am done:
How do I change my SHELL prompt?...
I mean how to change appearance of shell type
and version in my terminal windows?...
When I start terminal prompt looks like this:
sh-3.1$
and I want it to tell me where and who I am...
For example, in Debian I would change /etc/profile
for that and did it here too but nothing has changed...
How do I do that?...
Thanks anyway...

Last edited by xokaido; 06-07-2008 at 02:50 PM.
 
Old 06-07-2008, 03:07 PM   #7
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
I've already done that, thanks anyway...
In case if someone has the same problem, here's the
answer:
We can export PS1 by echoing the actual SHELL command...
For example, I want my shell to show me who and where I am...
I do this:
Quote:
export PS1="`hostname`@`whoami`:`pwd`\$ "
HOSTNAME tells us the name of machine, WHOAMI prints out the
users name, who is logged in and PWD outputs the current working
directory...
Wow, I'm loving Slack, thanks guys...
P.S But didn't find how to automate this process so that
when I log in to the terminal it showed me such prompt?...
Hey, there is no ".bashrc" file in my home directory...

Last edited by xokaido; 06-07-2008 at 03:29 PM.
 
Old 06-07-2008, 03:33 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,922
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

You can setup your user '.bashrc' and '.bash_profile';

.bashrc;
Code:
#.bashrc
#08-30-06 12:20 gws 

# Add bin to path
export PATH="$PATH:$HOME/bin"

# Dynamic resizing
shopt -s checkwinsize

# Custom prompt
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

#08-29-06 11:40 gws

if [ `id -un` = root ]; then
   PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
 else
   PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
fi
#
# Add color
eval `dircolors -b`

# User defined aliases
alias cls='clear'
alias clls='clear; ls'
alias ll='ls -l'
alias lsa='ls -A'
alias lsg='ls | grep'
alias lsp='ls -1 /var/log/packages/ > package-list'
alias na='nano'
alias web='links -g -download-dir ~/ www.google.com'

#08-29-06 11:50 gws

#To clean up and cover your tracks once you log off
#Depending on your version of BASH, you might have to use
# the other form of this command
   trap "rm -f ~$LOGNAME/.bash_history" 0

#The older KSH-style form
#   trap 0 rm -f ~$LOGNAME/.bash_history
.bash_profile;
Code:
# .bash_profile
#08-30-06 12:21 gws

# Source .bashrc
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
Old 06-07-2008, 06:38 PM   #9
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,

You can setup your user '.bashrc' and '.bash_profile';
Thank you for trying to help me...
I've already done so, but doesn't work...
I've created .bashrc and .bash_profiles,
pasted there your code too but still no change...
Any idea?...
 
Old 06-07-2008, 06:51 PM   #10
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I've created .bashrc and .bash_profiles, pasted there your code too but still no change... Any idea?...
Perhaps the following will help:

Harmonizing the Bash Startup Scripts
 
Old 06-07-2008, 08:51 PM   #11
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
Thank you very, very much...
I was tired searching all the things to fix this problem
and occasionally I was using sh not bash...
Thanks a lot to all...
 
Old 06-10-2008, 06:50 PM   #12
xokaido
LQ Newbie
 
Registered: May 2008
Location: Tbilisi
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
Hello all once again...
I am switching from Debian to Slackware and actually have
no problems... Google.com is our best friend
So, now I have a little misunderstanding of man pages...
Where are all these really good things located?...
I've got also a Slack-Book and there is told that all
documentation is located under "/usr/doc" directory, but
I've copied (actually linked using ln -s command) documents
of some program but "man" does not show it to me...
I've install djview in a non-standard directory /opt/djvu
and now want to copy man pages so that I could simply type
man djview and see the appropriate manual pages...
Where to link all these manual pages?.. Where are all
man pages located?...
Thank in advance...
 
Old 06-11-2008, 12:29 AM   #13
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by xokaido View Post
Where are all man pages located?...
Look at the MANPATH environment variable.
 
Old 06-11-2008, 12:50 AM   #14
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by Nylex View Post
Look at the MANPATH environment variable.
also
Code:
man man
seriously
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slacware 9.0 problems... Schizo265 Slackware 14 11-05-2007 11:11 PM
Slacware 11 noonmid27 Linux - Newbie 1 01-10-2007 10:13 PM
Slacware 11 noonmid27 Linux - Newbie 1 12-16-2006 12:36 AM
Plesk for Slacware 9.1 Dakkar Linux - Software 1 06-08-2004 01:48 PM
slacware install CrazyTux Slackware 3 03-25-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration