LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   as a newby, how do i (https://www.linuxquestions.org/questions/slackware-14/as-a-newby-how-do-i-4175461348/)

j paul f 05-09-2013 06:22 PM

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

mrclisdue 05-09-2013 07:44 PM

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,

hitest 05-09-2013 07:57 PM

Quote:

Originally Posted by mrclisdue (Post 4948202)

The best package manager for Slackware is you.

Amen. I also love sbopkg and pkgtool. :)

Stephen Morgan 05-10-2013 11:49 AM

Quote:

Originally Posted by j paul f (Post 4948174)
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.

bimboleum 05-10-2013 01:11 PM

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

dugan 05-10-2013 03:14 PM

Quote:

Originally Posted by j paul f (Post 4948174)
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?

j paul f 05-11-2013 10:00 AM

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/


All times are GMT -5. The time now is 02:41 PM.