Posted: Mon 20 May 2013, 17:16
robwoj44
thank you for your post
It has encouraged me to debug fast momanager another time.
thank you for your post
It has encouraged me to debug fast momanager another time.
READ-ONLY Archive
https://oldforum.puppylinux.com/
... and that is goodrodin.s wrote:Script /usr/sbin/root2user is not gettexted. It's not very important though.
This text made me (what about you?) think that this password is root's password.First shutdown: ask admin password
Please enter a password for the administrator (root), minimum six characters.
Login as fido does not require a password, so at bootup you will go directly to the desktop. This is also the case if you had chosen to run as administrator. However, having chosen the restricted fido user, you will be required to enter a password whenever you want to perform an operation that requires admin priviledges.
PLEASE REMEMBER THIS PASSWORD
Code: Select all
passwd fido
Code: Select all
pmount
Code: Select all
#! /bin/sh
# this starts/stops DidiWiki server
# ASSUMES A USER NAMED spot HAS BEEN SETUP
# GuestToo - Feb 7, 2005. Hacked a bit by BK -- 2005,2006.
# Designed for use with Puppy Linux, www.puppylinux.com
#v411 dunno why, but no longer creates new pages, needs /root/spot/.didiwiki world-writable.
#130522 robwoj44 internationalized
. gettext.sh
export TEXTDOMAIN=didiwiki-gui
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
#v411 bug workaround, needs to be fixed properly sometime...
mkdir -p /root/spot/.didiwiki
chmod 777 /root/spot/.didiwiki
DIDI="/root/spot/didiwiki"
if ! MSG=`which gxmessage`
then
MSG='xmessage'
fi
if ! grep spot /etc/group
then
$MSG -center -bg "#ffc0c0" -title "DidiWiki" $(gettext 'No user "spot"')
exit 1
fi
if [ ! -r $DIDI ];then
DIDI=`which didiwiki`
fi
if [ ! -r $DIDI ];then
$MSG -center -bg "#ffc0c0" -title "DidiWiki" $(gettext 'DidiWiki program not found')
exit 1
fi
#BK
PSSTATUS="`ps`"
if [ "`echo -n "$PSSTATUS" | grep 'didiwiki' | grep -v 'didiwiki\-gui'`" = "" ];then
BUTTONS1="$(gettext 'Start:21,Cancel:10')"
MSG1="$(gettext 'Click Start button to start DidiWiki
server and launch browser.
Note that DidiWiki runs as user "spot"')"
DIDIGO="no"
else
BUTTONS1="$(gettext 'Start:21,Stop:22,Cancel:10')"
MSG1="$(gettext 'DidiWiki server is already running, as user "spot".
Click Start button to open web browser and use DidiWiki,
or Stop button if you want to kill the server')"
DIDIGO="yes"
fi
$MSG -center -buttons "$BUTTONS1" -title "DidiWiki" "$MSG1"
case $? in
21)
RETVAL1=0
if [ "$DIDIGO" = "no" ];then
su -c $DIDI - spot &
#note, .didiwiki folder is created in /root/spot/.
RETVAL1=$?
fi
if [ $RETVAL1 -eq 0 ];then
##hv3 seems to work fine...
#if [ "`which hv3`" = "" ];then
# defaultbrowser http://localhost:8000/
#else
# hv3 http://localhost:8000/
#fi
defaulthtmlviewer http://localhost:8000/
else
$MSG -center -bg "#ffc0c0" -title "DidiWiki" $(gettext 'ERROR: DidiWiki did NOT start')
fi
;;
22)
killall -3 didiwiki
sleep 1
killall -9 didiwiki
ps | grep didiwiki
if [ $? -eq 0 ];then
$MSG -center -bg "#d0ffd0" -title "DidiWiki" $(gettext 'DidiWiki is stopped')
else
$MSG -center -bg "#ffc0c0" -title "DidiWiki" $(gettext 'DidiWiki is still running')
fi
;;
*) exit ;;
esac
The only way I know for running as fido is to use the 'fido' button at first shutdown.robwoj44 wrote:I tried to gettext it and run it to check. After this I permanently changed the user to fido user. It was not possible for me to change back to root user with login manager. As fido user I could not use for example puppy package manager. The password did not work.
Code: Select all
whoami
Code: Select all
cat /etc/inittab
By chance. I run root2user. I did not write the password and closed root2user by pprocess. After reboot I was still fido user. It was not possible to change to root by login manager.The only way I know for running as fido is to use the 'fido' button at first shutdown.
How did you "permanently change the user to fido user" ?
Code: Select all
#!/bin/sh
# Puppy Podcast Grabber v0.9.9
# Brad Coulthard <Coulthard@ieee.org>
#
# Feedback is great! email me.
#
# This script is my own work but I did use some commands and
# ideas from both PodGet and Bash Podder.
#
# http://sourceforge.net/projects/podget/
# http://linc.homeunix.org:8080/scripts/bashpodder/
#
# This program is for Puppy Linux www.puppylinux.com
# If you would like to use it for another disto go for it.
# Please give me credit for my work.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#130523 robwoj44 internationalized
. gettext.sh
export TEXTDOMAIN=ppg-gui.sh
export TEXTDOMAINDIR=/usr/share/locale
export OUTPUT_CHARSET=UTF-8
#-------------------------------------------------------------------
# This is just in case you need to install ppg to somwhere else or
# somthing. You should be able to change anything here and it will
# be the only place you need to change it
#-------------------------------------------------------------------
cd /usr/local/ppg
maindir=/usr/local/ppg/ # where all files should be
serverlistname=serverlist.txt # the list of RSS feeds
serverlistdir=$maindir # the dir where the list file is located
serverlist=$serverlistdir$serverlistname
#-----------------------------------
# Main menu ( not like the c main ).
#-----------------------------------
main ()
{
Xdialog --no-tags --title "$(gettext 'Puppy Podcast Grabber')" --menu "" 20 45 15 \
1 "$(gettext '======= HELP!! =======')" 2 "$(gettext '* Check For New Podcast')" 3 "$(gettext '== VIEW Podcast Feeds')" 4 "$(gettext '== ADD A Podcast Feed')" 5 "$(gettext '== REMOVE A Podcast Feed')" 6 "$(gettext '== EDIT A Podcast Feed')" 7 "$(gettext '== EDIT by Hand ( Caution )')" 8 "$(gettext '=+ Quit')"
}
#-----------------------------------------------
# Lists all podcast feeds from serverlist file. Then alows the user to select one.
# Used in "edit" and "delete" menu options.
#-----------------------------------------------
listpod ()
{
plist=$(count=1
while read test_url test_keep test_name; do
echo -n "$count"
echo -n " \"$test_name\" "
let "count=$count+1"
done <"${serverlistdir}${serverlistname}")
eval "Xdialog --no-tags --title \"$(gettext 'Puppy Podcast Grabber')\" --menu \"$(gettext 'Select A Podcast')\" 20 45 15 $plist"
}
listpodlong ()
{
plist=$(
count=1
while read test_url test_keep test_name; do
let "noff=25-${#test_name}"
noffsp=$(noff=12
count02=1
while [ $count02 -lt $noff ];do
echo -n " "
let "count02=count02+1"
done)
echo -n "$count"
echo -n " \"$test_name$noffsp $test_keep $test_url\" "
let "count=$count+1"
done <"${serverlistdir}${serverlistname}"
)
#echo "Xdialog --no-tags --title \"Puppy Podcast Grabber\" --menu \"Select A File\" 20 45 15 $plist"
#read
eval "Xdialog --no-tags --title \"$(gettext 'Puppy Podcast Grabber')\" --menu \"$(gettext 'Current Podcasts')\" 20 80 15 $plist"
}
##
if [ "$menucommand" == "1" ]; then
t=$(listpodlong 2>&1)
fi
menucommand="2"
while [ "$menucommand" != "" ]; do
menucommand=$(main 2>&1)
echo $menucommand
#-----------------------------------------------
# view RSS feeds See above function "listpod"
#-----------------------------------------------
if [ "$menucommand" == "3" ]; then
t=$(listpodlong 2>&1)
fi
# Add a new RSS feed
if [ "$menucommand" == "4" ]; then
name=""; url="";days="7"
ret=$(Xdialog --separator "|" --3inputsbox "$(gettext 'Edit Podcast')" 20 100 "$(gettext 'NAME')" "$name" "$(gettext 'URL')" "$url" "$(gettext 'Days')" "$days" 2>&1)
if [ "$ret" != "" ]; then
newname=$(echo $ret | cut -d"|" -f1)
newurl=$(echo $ret | cut -d"|" -f2)
newday=$(echo $ret | cut -d"|" -f3)
echo "$newurl $newday $newname" >> $serverlist
fi
fi
#------------------------------------------------------------------------------
# Edit RSS feed info.. How long to keep files, URL and your name for the feed
#------------------------------------------------------------------------------
if [ "$menucommand" == "6" ]; then
mc=$(listpod 2>&1)
count=1
while read test_url test_keep test_name; do
if [ "$count" = "$mc" ]; then
name="$test_name"
url=$test_url
days=$test_keep
fi
let "count=$count+1"
done <"${serverlistdir}${serverlistname}"
if [ "X$name" != "X" ]; then
ret=$(Xdialog --separator "|" --3inputsbox "$(gettext 'Edit Podcast')" 20 100 "$(gettext 'NAME')" "$name" "$(gettext 'URL')" "$url" "$(getetxt 'Days')" "$days" 2>&1)
if [ "$ret" != "" ]; then
newname=$(echo $ret | cut -d"|" -f1)
newurl=$(echo $ret | cut -d"|" -f2)
newday=$(echo $ret | cut -d"|" -f3)
while read test_url test_keep test_name; do
if [ "$test_name" = "$name" ]; then
echo "$newurl $newday $newname" >>"${serverlistdir}.${serverlistname}.tmp"
else
echo "$test_url $test_keep $test_name" >>"${serverlistdir}.${serverlistname}.tmp"
fi
done <"${serverlistdir}${serverlistname}"
rm -f $serverlist
cat "${serverlistdir}.${serverlistname}.tmp" >$serverlist
rm -f "${serverlistdir}.${serverlistname}.tmp"
fi
fi
fi
#-------------------------------------------------
#Removes an RSS feed from the serverlist file
#------------------------------------------------
if [ "$menucommand" == "5" ]; then
mc=$(listpod 2>&1)
count=1
while read test_url test_keep test_name; do
if [ "$count" = "$mc" ]; then
name="$test_name"
url=$test_url
days=$test_keep
fi
let "count=$count+1"
done <"${serverlistdir}${serverlistname}"
if [ "X$name" != "X" ]; then
while read test_url test_keep test_name; do
if [ "$test_name" = "$name" ]; then
echo "$newurl $newday $newname" >>/dev/null
else
echo "$test_url $test_keep $test_name" >>"${serverlistdir}.${serverlistname}.tmp"
fi
done <"${serverlistdir}${serverlistname}"
rm -f $serverlist
cat "${serverlistdir}.${serverlistname}.tmp" >$serverlist
rm -f "${serverlistdir}.${serverlistname}.tmp"
fi
fi
#--------------------------------------
#Edit the serverlist yourself
#--------------------------------------
if [ "$menucommand" == "7" ]; then
defaulttexteditor "$serverlist"
fi
#-------------------------------------
# Get the files (Podcasts)
#-------------------------------------
if [ "$menucommand" == "2" ]; then
rxvt -title "$(gettext 'Puppy Podcast Grabber')" -sl 1000 -e "./ppg.sh"
fi
#------------------------------------
# Help !
#------------------------------------
if [ "$menucommand" == "1" ]; then
defaultbrowser $maindir/readme.html &
fi
#-----------------------------------
# Quit
#-----------------------------------
if [ "$menucommand" == "8" ]; then
exit
fi
done
Congratsrobwoj44 wrote:By chance. I run root2user. I did not write the password and closed root2user by pprocess. After reboot I was still fido user. It was not possible to change to root by login manager.The only way I know for running as fido is to use the 'fido' button at first shutdown.
How did you "permanently change the user to fido user" ?
I tried to change the password (for fido user?) by root2user. This password did not work in login manager and when I started for example puppy package manager. In login manager only worked the password "woofwoof", but after the reboot I was still fido user.
It was not possible to run rxvt. I have no time to check on and finally I reinstalled racy:)
Code: Select all
#130310 BK: Xdialog may o/p error msgs on stderr, require option --stdout. note, where i have inserted 2>/dev/null not really required, just suppresses any error msg.
I don't see that it's a bug.L18L wrote:Congratsrobwoj44 wrote:By chance. I run root2user. I did not write the password and closed root2user by pprocess. After reboot I was still fido user. It was not possible to change to root by login manager.The only way I know for running as fido is to use the 'fido' button at first shutdown.
How did you "permanently change the user to fido user" ?
I tried to change the password (for fido user?) by root2user. This password did not work in login manager and when I started for example puppy package manager. In login manager only worked the password "woofwoof", but after the reboot I was still fido user.
It was not possible to run rxvt. I have no time to check on and finally I reinstalled racy:)
You found a bug
I fixed it http://murga-linux.com/puppy/viewtopic. ... 7&start=94
Changing back to autologin as root did not work.BarryK wrote:...I don't see that it's a bug.
Code: Select all
echo "$ADMINPASSWORD" | su root
robwoj44 has used it to change password(s)BarryK wrote:root2user is only run during the shutdown process.
I have changed separate passwords for root and fido using passwd.my console wrote:# root2user
Password for 'root' changed
Password for 'fido' changed
#