LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-09-2013, 07:22 PM   #1
j paul f
LQ Newbie
 
Registered: May 2013
Posts: 9

Rep: Reputation: Disabled
as a newby, how do i


how do i

1) get rid of / disable, hibenate / power saving?

it is not needed and is causing problems. as a tempory messure i start k player and that keeps the pc on

2) change the terminal so that it says witch directory it is in?

as the web browsers dont have all the addons i can not find the youtube video that i seen it in.

3) i have a tv card installed and the kernal has the right moddule dose anyone gave any idea what is the easyest option for viewing tv kaffeine myth tv or K-player with W-scan

4) slapt-get / pkgsrc-on-salck or other witch is simplest, like my
 
Old 05-09-2013, 08:44 PM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,053

Rep: Reputation: 170Reputation: 170
For customizing your prompt, there are many tutorials, but this is the one I've got bookmarked:

Code:
http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
Adding something like this to your .bashrc :

Code:
PS1="[\d \t \u@\h:\w ] $ "
will result in a prompt that displays date, time, user@host, and working directory.

You can run that snippet directly from your existing prompt to see the result.

As to your power issues, there are a few possibilities, however a down and dirty fix would be to run xfce4-power-manager, and go through the settings to disable sleep.

The best package manager for Slackware is you. Others may chime in as to the usefulness of slapt-get and various others, however I would highly recommend that you use sbopkg and queuefiles: the two combined are as slick as any pkg manager out there; simple; and in keeping with the Slack mantra, YOU have control of every aspect of the process.

cheers,
 
1 members found this post helpful.
Old 05-09-2013, 08:57 PM   #3
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,283

Rep: Reputation: 588Reputation: 588Reputation: 588Reputation: 588Reputation: 588Reputation: 588
Quote:
Originally Posted by mrclisdue View Post

The best package manager for Slackware is you.
Amen. I also love sbopkg and pkgtool.
 
Old 05-10-2013, 12:49 PM   #4
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 154

Rep: Reputation: 15
Quote:
Originally Posted by j paul f View Post
1) get rid of / disable, hibenate / power saving?
In KDE there's an option somewhere, in XFCE there's xfce4-power-manager-settings, if you're using a basic window manager I think it's done through the xset command and if you're using the TTYs the setterm command blanks the screen.

Quote:
3) i have a tv card installed and the kernal has the right moddule dose anyone gave any idea what is the easyest option for viewing tv kaffeine myth tv or K-player with W-scan
Easiest? Kaffeine.

Quote:
4) slapt-get / pkgsrc-on-salck or other witch is simplest, like my
There was a recent thread on something called slackpkgplus, which looked interesting. Simplest is just using slackpkg and sbopkg.
 
Old 05-10-2013, 02:11 PM   #5
bimboleum
Member
 
Registered: Oct 2009
Posts: 51

Rep: Reputation: 9
A prompt longer than your path string!

Hey,
For the past 20-odd years I have been using a prompt string that puts the current directory and time at the
top of your screen, sets the terminal window title to <yourusername>@<whatevermachineyouareloggedinto>

It uses ANSI escape sequences to achieve this so it is relatively portable ... in the OLD days of "DOS" (rinses out the bad taste from mouth) I was accused of having a propmt string longer then my PATH string.

Anyway, for those who are interested I am pasting the script that sets this up. It should be run as the final thing in your login profile.

NOTE WELL this is optimised for ksh so you may need to tweek it for other shells.

Code:
#!/bin/ksh
#     
# This file is executed last by the shell at login time.
#
#
# This file contains commands that the .profile command cannot run.
#
h='date +"%a %b %d %k:%M"'
#
# Note the ^J (newline character) at the end of the prompt string.
# This ensures ksh gets the screen effective length OK
#
# This prompt ASSUMES that your terminal can interpret "hft" data-streams
# correctly.  We take corrective action for TERM types of
# xterm, dumb and 3270. 
#
WHAT="=>"
if [ "${I_AM}" != "${LOGNAME}" ]
then
  WHAT="${I_AM}=>"
fi
PS1='^[[s^[[H^[[K^[[1;33m$PWD @ $SITE ^[[1;64H${__[ ]-$( eval `echo $h`)}^[[1;37
m^[[u^[[1A
${WHAT}'
if [ "$TERM" = "xterm" ]
then PS1='^[]0;$I_AM@$SITE^G^[7^[[H^[[K^[[1;33m${PWD}@${SITE} ^[[1;64H${__[ ]-$(
 eval `echo $h`)}^[[1;37m^[8^[[1A
${WHAT}'
fi
if [ "$TERM" = "dumb" ]
then PS1='$PWD @ $SITE ${__[ ]-$( eval `echo $h`)}
${WHAT}';
fi
if [ "$TERM" = "3270" ]
then PS1='$PWD @ $SITE ${__[ ]-$( eval `echo $h`)}
${WHAT}';
fi
/bin/rm -f $HISTFILE
NOTE that the sequence ^[ is the escape character.

NOTE also that there is a ^J (control-J) (that you cannot see) prior to ${WHAT} which fools ksh into
thinking the prompt starts there otherwise it considers that the prompt starts at PS1= and effectively shortens the command line.

Other shells may not act this way.

If you would like a real copy of this file, let me know.

cheers
pete

pete hilton
saruman@ruvolo-hilton.org
 
Old 05-10-2013, 04:14 PM   #6
dugan
Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 5,005

Rep: Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560Reputation: 1560
Quote:
Originally Posted by j paul f View Post
how do i

1) get rid of / disable, hibenate / power saving?

it is not needed and is causing problems. as a tempory messure i start k player and that keeps the pc on
What problems exactly?
 
Old 05-11-2013, 11:00 AM   #7
j paul f
LQ Newbie
 
Registered: May 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks for the replies!!!
if i dont reply further it means problem solved

dugan
the power problem is / was the it would suspend but not recover/
 
  


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
Newby geekgirll LinuxQuestions.org Member Intro 4 09-02-2012 04:46 PM
Newby FlipHelberg Linux - Newbie 1 03-02-2012 04:20 AM
Newby Stevo1390 LinuxQuestions.org Member Intro 1 06-22-2010 09:10 AM
Newby pinguman LinuxQuestions.org Member Intro 1 02-25-2009 01:59 PM
Hello I'm another newby newbyonlinux LinuxQuestions.org Member Intro 4 01-20-2007 04:39 PM


All times are GMT -5. The time now is 03:23 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration