LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-08-2004, 09:38 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Konsole quotes


each time a console is opened , there is always a quote like

"Of course power tools and alcohol don't mix. Everyone knows power
tools aren't soluble in alcohol ..."
-- Crazy Nigel

samurai@hideyoshi:~$


my question is this, is there any way to put in your own quotes? is there a file that the konsole program invokes for the quotes, or is it within the program, and not possible to put in your own??
 
Old 10-08-2004, 09:41 PM   #2
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
The program that spits out these loveable gems is called "fortune". You can type "fortune" at any command prompt to get one if you're in the mood.

I don't know of any way to add your own, but then again, I never had any interest in it. I'm pretty sure that the fortune program calls its fortunes from a text file somewhere. (either that, or fotune is one big script) If you can find it and edit it, you can probably put your own fortunes in.
 
Old 10-08-2004, 09:42 PM   #3
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
man fortune ?
 
Old 10-08-2004, 09:59 PM   #4
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
Quote:
Originally posted by AltF4
man fortune ?
.......Yeah. Always check the man pages. I should have thought of that.
 
Old 10-08-2004, 10:01 PM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
I checked man fortunes and all it really had was different commands to call on fortunes, didn't really say much on how to put in your own quotes... but...I think I found the files responsible for the quotes, but there seems to be more than one file, and each file follows a .dat file with the same name, and im assuing the .dat file is just binary , so i could probably put in my own quotes, by just editing the text files, but im not sure if it would work if i added a new text file, without a .dat file corresponding to it.... this is speculation for now, i do hope someone with more experience sees this thread and offers some more insight

samurai@hideyoshi:/usr/share/games/fortunes$ ls
fortunes fortunes2 limerick-o startrek zippy
fortunes-o fortunes2-o limerick-o.dat startrek.dat zippy.dat
fortunes-o.dat fortunes2-o.dat linuxcookie unamerican-o
fortunes.dat fortunes2.dat linuxcookie.dat unamerican-o.dat
 
Old 10-09-2004, 08:41 PM   #6
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
Check thei file for more infos on the file format:

/usr/share/doc/packages/fortune/Notes

---

for me (suse 9.1) it works like this:

1) create "$HOME/myfortunes"

------------------------
Linux rocks !
%
Windows SuX0R5!
%
Linux is not The Answer. Yes is the answer. Linux is The Question.
-------------

2) run "/usr/sbin/strfile $HOME/myfortunes $HOME/myfortunes.dat

3) now "fortune $HOME/myfortunes" reads quotes form $HOME/myfortunes
 
Old 10-09-2004, 09:38 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
/usr/share/doc/packages/fortune/Notes does not exist, this is all that there is under /usr/share/doc..

hideyoshi@toyotomi:/usr/share/doc$ ls
BitchX-1.1/ gnome-speech-0.3.3/ netkit-routed-0.17/
GConf-2.6.2/ gnome-system-monitor-2.6.0/ netkit-rsh-0.17/
ImageMagick-6.0.2-7/ gnome-terminal-2.6.1/ netkit-rusers-0.17/
LPRng-3.8.27/ gnome-themes-2.6.2/ netkit-rwall-0.17/
Linux-FAQs/ gnome-themes-extras-0.7/ netkit-rwho-0.17/
Linux-HOWTOs/ gnome-utils-2.6.2/ netkit-telnet-0.17/
ORBit-0.5.17/ gnome-vfs-2.6.1.1/ netkit-timed-0.17/
ORBit2-2.10.2/ gnome2-user-docs-2.6.0.1/ netpbm-10.18.12/
SDL-1.2.7/ gnomeicu-0.99.5/ netpipes-4.2-export/
SDL_image-1.2.3/ gnopernicus-0.9.5/ netwatch-1.0a/
SDL_mixer-1.2.5/ gnuchess-4.0.pl80/ netwrite-0.17/
SDL_net-1.2.5/ gnumeric-1.2.12/ newspost-2.1.1/
SDL_ttf-2.0.6/ gnupg-1.2.4/ nfs-utils-1.0.6/
SGMLS-1.03ii/ gnuplot-4.0.0/ nmap-3.50/
WindowMaker-0.80.2/ gok-0.11.3/ nn-6.6.4/
Xaw3d/ gpdf-0.132/ normalize-0.7.6/
a2ps-4.13b/ gpm-1.19.6/ ntp-4.2.0/
aalib-1.4rc5/ grep-2.5/ openjade-1.3/
abiword-2.0.6/ groff-1.17.2/ openssh-3.8.1p1/
acct-6.3.2/ gst-plugins-0.8.1/ openssl-0.9.7d/
acl-2.2.23/ gstreamer-0.8.3/ oprofile-0.8/
acpid-1.0.3/ gthumb-2.4.0/ p2c-1.21alpha2/
adjtimex-1.13/ gtk+-1.2.10/ pan-0.14.2.91/
alsa-driver-1.0.5a/ gtk+-2.4.3/ pango-1.4.0/
alsa-lib-1.0.5/ gtk-doc-1.0/ patch-2.5.4/
alsa-oss-1.0.5/ gtk-doc-1.1/ pciutils-2.1.11/
alsa-utils-1.0.5/ gtk-doc-1.2/ pcmcia-cs-3.2.7/
amp-0.7.6/ gtk-engines-2.2.0/ pcre-4.5/
apache-1.3.31/ gtk-xfce-engine-2.1.9/ perl-5.8.4/
apmd-3.0.2/ gtksourceview-1.0.1/ php-4.3.7/
apsfilter-7.2.5/ gucharmap-1.4.1/ pidentd-3.0.18/
arts-1.2.3/ guile-1.6.4/ pilot-link-0.11.8/
asapm-2.11/ gv-3.5.8/ pine4.60/
ash-0.4.0/ gxine-0.3.3/ pinepgp-0.18.0/
aspell-0.50.5/ gzip-1.3.3/ pkgconfig-0.15.0/
aspell-en-0.51_0/ hdparm-5.5/ pmake-2.1.35/
at-3.1.8/ hfsutils-3.2.6/ popa3d-0.6.4/
at-spi-1.4.2/ hicolor-icon-theme-0.5/ popt-1.7/
atk-1.6.1/ hotplug-2004_01_05/ portmap-5.0/
attr-2.4.16/ hpijs-1.6/ ppp-2.4.2/
audiofile-0.2.6/ htdig-3.1.6/ pppsetup/
aumix-2.8/ icmpinfo-1.11/ procinfo-18/
autoconf-2.59/ ifhp-3.5.11/ procmail-3.15.2/
autofs-3.1.7/ imlib-1.9.14/ procps-3.2.1/
automake-1.8.5/ indent-2.2.9/ proftpd-1.2.9/
bash-2.05b/ inetd-1.79s/ psmisc-21.4/
bbkeys-0.8.6/ intltool-0.30/ psutils-1.17/
bc-1.06/ iproute2-2.6.7-ss040608/ python-2.3.4/
biff+comsat-0.17/ iptables-1.2.10/ qt-3.3.2/
bin86-0.16.15/ iptraf-2.7.0/ quanta-3.2.3/
bind-9.2.3/ iputils-ss021109-try/ quota-3.12/
binutils-2.15.90.0.3/ irssi-0.8.9/ raidtools-1.00.3/
bison-1.35/ isapnptools-1.26/ rcs/
blackbox-0.65.0/ ispell-3.2.06/ rdist-6.1.5/
bootp-2.4.3/ jed-0.99-16@ readline-4.3/
bpe-2.01.00/ jfsutils-1.1.6/ reiserfsprogs-3.6.17/
bsd-finger-0.17/ joe-3.1/ rexima-1.4/
bsd-games-2.13/ jove4.16.0.61/ rp-pppoe-3.5/
bug-buddy-2.6.1/ kbd-1.12/ rpm-4.2.1/
busybox-1.00-pre9/ kdeaccessibility-3.2.3/ rpm2targz/
byacc-1.9/ kdeaddons-3.2.3/ rsync-2.6.2/
bzip2-1.0.2/ kdeadmin-3.2.3/ rxvt-2.7.10/
ccache-2.3/ kdeartwork-3.2.3/ rzip-2.0/
cdparanoia-III-alpha9.8/ kdebase-3.2.3/ samba-3.0.4/
cdrdao-1.1.9/ kdebindings-3.2.3/ sane-1.0.14/
cdrtools-2.00.3/ kdeedu-3.2.3/ sc-7.16/
clisp-2.33.2/ kdegames-3.2.3/ screen-4.0.2/
control-center-2.6.1/ kdegraphics-3.2.3/ scrollkeeper-0.3.14/
coreutils-5.2.1/ kdelibs-3.2.3/ sed-4.0.9/
cpio-2.5/ kdemultimedia-3.2.3/ seejpeg-1.10/
cscope-15.5/ kdenetwork-3.2.3/ sendmail-8.12.11/
ctags-5.5.2/ kdepim-3.2.3/ seyon-2.20c/
cups@ kdesdk-3.2.3/ sgml-common-0.5/
cups-1.1.20/ kdetoys-3.2.3/ sgml-tools-1.0.9/
curl-7.12.0/ kdeutils-3.2.3/ shadow-4.0.3/
cvs-1.11.17/ kdevelop-3.0.4/ shared-mime-info-0.14/
db-3.3.11/ koffice-1.3.1/ sharutils-4.2.1/
db-4.2.52/ ksh93-20030724/ slang-1.4.9/
dbh-1.0.18/ ksymoops-2.4.9/ slocate-2.7/
dcron-2.3.3/ lcms-1.12/ slrn-0.9.8.0/
dhcp-3.0pl2/ less-382/ smartmontools-5.30/
dhcpcd-1.3.22-pl4/ lesstif-0.93.94@ sox-12.17.4/
dialog-0.9b-20031207/ lftp-3.0.6/ splitvt-1.6.5/
diffutils-2.8.1/ libIDL-0.8.3/ startup-notification-0.6/
distcc-2.14/ libao-0.8.4/ strace-4.5.4/
dmapi-2.2.0/ libart_lgpl-2.3.16/ stunnel-4.05/
dnsmasq-2.8/ libbonobo-2.6.2/ sudo-1.6.6/
docbook-dtd30-sgml-1.0/ libbonoboui-2.6.1/ svgalib-1.4.3/
docbook-dtd31-sgml-1.0/ libcaca-0.9/ sysklogd-1.4.1/
docbook-dtd40-sgml-1.0/ libcroco-0.5.1/ syslinux-2.10/
docbook-dtd41-sgml-1.0/ libexif-0.5.12/ sysvinit-2.84/
docbook-dtd41-xml-1.0/ libgail-gnome-1.0.4/ t1lib-1.3.1/
docbook-dtd412-xml-1.0/ libglade-2.4.0/ taglib-1.1/
docbook-style-dsssl-1.59/ libgnome-2.6.1.1/ tar-1.14/
docbook-style-dsssl-1.64/ libgnomecanvas-2.6.1.1/ tcl8.4.6/
docbook-style-xsl-1.49/ libgnomeprint-2.6.1/ tclx8.3.5/
docbook-utils-0.6/ libgnomeprintui-2.6.1/ tcp_wrappers_7.6/
docbook-utils-0.6.14/ libgnomeui-2.6.1.1/ tcpdump-3.8.3/
dosfstools-2.10/ libgsf-1.9.1/ tcsh-6.13.00/
doxygen-1.3.7/ libgtkhtml-2.6.2/ termcap-1.2.3/
dvd+rw-tools-5.19-1.4.9.7/ libgtop-2.6.0/ tetex-2.0.2@
e2fsprogs-1.35/ libid3tag-0.15.1b/ texinfo-4.7/
eel-2.6.2/ libieee1284-0.2.8/ tftp-hpa-0.36/
eject-2.0.13/ libjpeg-6b/ tin-1.6.2/
elm-2.5.7/ libmad-0.15.1b/ tix-8.1.4/
elvis-2.2_0@ libmikmod-3.1.10/ tk8.4.6/
emacs-21.3/ libmng-1.0.5/ totem-0.99.12/
enscript-1.6.3/ libmpeg-1.3.1/ traceroute-1.4a12/
eog-2.6.1/ libogg-1.1/ transfig-3.2.4/
epic4-2.0/ libpcap-0.8.3/ tree-1.4b3/
epiphany-1.2.6/ libpng-1.2.5/ udev-026/
epiphany-extensions-0.9.1/ librsvg-2.6.5/ umsdos-progs-1.13/
esound-0.2.34/ libtiff-3.6.1/ unzip-5.51/
espgs-7.07.1/ libtool-1.5.6/ updated-2.11/
ethtool-1.8/ libungif-4.1.2/ usbutils-0.11/
expat-1.95.7/ libusb-0.1.8/ utempter-1.1.1/
expect-5.41/ libvorbis-1.0.1/ util-linux-2.12a/
fdutils-5.4/ libwmf-0.2.8.2/ vim-6.3/
fetchmail-6.2.5/ libwnck-2.6.2/ vorbis-tools-1.0.1/
file-4.07/ libwpd-0.6.6/ vte-0.11.11/
file-roller-2.6.1/ libxfce4mcs-4.0.5/ wget-1.9.1/
flac-1.1.0/ libxfce4util-4.0.5/ which-2.16/
flex-2.5.4a/ libxfcegui4-4.0.5/ whois-4.6.16/
fluxbox-0.1.14/ libxklavier-1.02/ wireless-tools-26/
fribidi-0.10.4/ libxml2-2.6.9/ workbone-2.40/
fvwm-2.4.18/ libxslt-1.1.6/ wv2-0.2.2/
fvwm95-2.0.43ba/ lilo-22.5.9/ x3270-3.3.2p1/
gail-1.6.6/ links-2.1pre15/ xboard-4.2.7/
gaim-0.78/ logrotate-3.6.8/ xchat-2.0.9/
galeon-1.3.15/ lrzsz-0.12.21/ xfcalendar-0.1.8/
gawk-3.1.3/ lsof-4.71/ xfce-mcs-manager-4.0.5/
gcalctool-4.4.8/ lvm_1.0.8/ xfce-mcs-plugins-4.0.5/
gcc-3.3.4/ lynx-2.8.5rel.1@ xfce-utils-4.0.5/
gconf-editor-2.6.2/ m4-1.4.1/ xfce4-iconbox-4.0.5/
gdb-6.1.1/ madplay-0.15.2b/ xfce4-mixer-4.0.5/
gdbm-1.8.3/ make-3.80/ xfce4-panel-4.0.5/
gdk-pixbuf-0.22.0/ man-1.5m2/ xfce4-systray-4.0.5/
gdm-2.6.0.3/ mc-4.6.0/ xfce4-themes-4.0.5/
gedit-2.6.1/ mdadm-1.6.0/ xfce4-toys-4.0.5/
genpower-1.0.3/ metacity-2.8.1/ xfce4-trigger-launcher-4.0.5/
getmail-3.2.4@ metamail-2.7/ xfdesktop-4.0.5/
gettext-0.14.1/ mhash-0.9.1/ xffm-4.0.5/
gettext-tools-0.14.1/ minicom-2.00.0/ xfig.3.2.3d/
getty-ps-2.1.0/ mkinitrd-1.0.1/ xfm-1.4.3/
gftp-2.0.17/ mm-1.3.0/ xfprint-4.0.5/
ggv-2.6.1/ mod_ssl-2.8.18-1.3.31/ xfractint-20.2.03/
ghex-2.6.1/ module-init-tools-3.0/ xfsdump-2.2.21/
gimp-2.0.2/ modutils-2.4.25/ xfsprogs-2.6.13/
gimp-print-4.2.6/ most-4.9.5/ xfwm4-4.0.5/
gkrellm-2.2.1/ mozilla-1.7/ xgames-0.2/
gkrellm-countdown-0.1.1/ mpeg2dec-0.4.0b/ xine-lib-1-rc4a/
glade-2.6.0/ mpg321-0.2.10/ xine-ui-0.99.1/
glib-1.2.10/ mt-st-0.7/ xlockmore-5.11.1/
glib-2.4.2/ mtools-3.9.8/ xmms-1.2.10/
glibc-2.3.2/ mutt/ xpaint-2.7.0/
glut-3.7/ mutt-1.4.2.1i@ xpdf-3.00/
gmp-4.1.3/ mysql-4.0.20/ xsane-0.93/
gnet-2.0.4/ nail-10.7/ xscreensaver-4.16/
gnome-applets-2.6.1/ nasm-0.98.38/ xv-3.10a/
gnome-audio-2.0.0/ nautilus-2.6.3/ xxgdb-1.12/
gnome-desktop-2.6.2/ nautilus-cd-burner-2.6.1/ yelp-2.6.1/
gnome-doc-tools-2/ nautilus-media-0.8.0/ yp-tools-2.8/
gnome-games-2.6.1/ nc-1.10/ ypbind-mt-1.17.3/
gnome-icon-theme-1.2.3/ ncftp-3.1.7/ ypserv-2.13/
gnome-keyring-0.2.1/ ncurses-5.4/ ytalk-3.1.1/
gnome-mag-0.11.2/ net-tools-1.60/ zip-2.3/
gnome-media-2.6.2/ netatalk-1.6.4/ ziptool-1.3/
gnome-mime-data-2.4.1/ netkit-base-0.17/ zisofs-tools-1.0.4/
gnome-netstatus-2.6.1/ netkit-bootparamd-0.17/ zlib-1.2.1.1/
gnome-panel-2.6.2/ netkit-ftp-0.17/ zsh-4.2.0/
gnome-session-2.6.2/ netkit-ntalk-0.17/
 
Old 10-09-2004, 09:39 PM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Original Poster
Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
sorry, i guess it got cut off, but the packages folder isn't there, perhaps something changed in 10 and the notes are somewhere else....
 
Old 10-09-2004, 11:00 PM   #9
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
i think your answer is here:

http://www.linuxquestions.org/questi...hlight=fortune

*edit:
in slack 10 your fortune pages are in /usr/share/games/fortunes and the link above tells how to add your own.

Last edited by detpenguin; 10-09-2004 at 11:11 PM.
 
  


Reply



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
Problems with quotes and double quotes Andruha Slackware 6 01-02-2010 04:44 PM
Using single quotes vs double quotes in PHP strings vharishankar Programming 6 07-11-2005 11:41 AM
edit quotes from konsole terminal trinoo Slackware 6 02-02-2005 09:26 AM
Konsole quotes slackfan007 Linux - Newbie 3 05-03-2004 02:48 AM
Quotes Rhayader LQ Suggestions & Feedback 3 04-22-2002 10:30 AM

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

All times are GMT -5. The time now is 01:53 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