Slackware :: Add Own Personal Database Of Quotes For The Fortune App To Call When Open A Terminal
Feb 5, 2010
I'm trying to add my own personal database of quotes for the fortune app to call when i open a terminal. I was able to successfully create the data base from a text file along the lines of this thread [URL] And it works when i type :$ fortune mydatabase The problem is, when i open a terminal i dont believe fortune knows to look for the new database, and im yet to see one of my quotes appear. If anyone can point me in the right direction as to where the command is issued to run fortune when i open the terminal
The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. (Clarification: am referring to gnome-terminal. Thanks, GrapefruiTgirl.) I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).
So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)
I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.
The following script will work when I type the path to the file I want to checksum, but not when I drag the file to the terminal because the linux terminal (unlike the Mac) automatically puts quotes around the file path, which causes an error. I did not find anything in gconf-editor or anywhere else to alter this behaviour, and my post in Launchpad is unanswered so far. (the script in itself is not very useful, I just stumbled upon this error when experimenting with bash).
So, is there a workaround for stripping the quotes from the input, or can I configure the terminal to not quote the input when I drag a file into it (which I would prefer?)I am currently logged in from Mac OS, but the question refers to ubuntu karmic with which I dual boot.ADMINISTRATORS: Thanks for the quick reply to my newbie question about posting new threads. Actually I don't see now what the difficulty was; I guess I was tired from trying to debug the above script (not funny).
I am not sure If anybody has faced this issue, my keyboard is less responsive when pressing the double quote/single quote key, I have to press it twice for it to print the quote( and that too it prints some other data and not exactly a double-quotes). Initially I thought it was issue with my keyboard, but later I see that it is working fine in Windows XP. It looks some kind of setting issue. If you check the below two examples, example a) is the double quote printed in Ubuntu, it doesnt exactly looks like a double-quotes and b) is the one printed in Windows.
I'm experimenting with old linux Distributions again, and while trying tostart an x server, I get the following error message:X: unable to open display ''That makes me think that the config file is incomplete, but I would have no idea how to make it. If there is an auto configuration utility that I do not know about for X, it would be great to hear about. Here are some other specifications that might help:*Host: VMWare Workstation on Windows XP Home*Distribution: Debian 2.2 (potato) (Yes, I know it's old.)*Connection: Local. I've heard of people having difficulties like this on remote connections, but I am on the physical computer
I am trying to connect to my mysql database using php but I am getting the error "Fatal error: Call to undefined function mysql_connect()".
I checked phpinfo() and there is no reference to MySQL. I believe this means that my install of PHP doesn't support MySQL. Do I need to uninstall and reinstall with a version of PHP with MySQL support? If so how should I do this and how do I get a version of PHP that supports MySQL?
I need to call a .sh script without directly opening the terminal. Is possible to do so writing and compiling a script (e.g. Java or Python) so when I double click it, it opens a terminal window and runs the .sh automatically?
I am trying to write a bash script to call from a terminal that will change the terminal title. I am using ubuntu 10.04. The script is meant to be used in the gnome-terminal.
Here is what I have:
Code: #! bin/bash echo "New title: c" read title echo "33]0;$titl07c" -e
[Code]....
it doesn't work
I think the problem has to do with modifying PS1 inside the bash so i tried this:
Code: echo `export PS1="[e]1;u@h:wa]${debian_chroot:+($debian_chroot)}u@h:w$ "` and it still didn't work.
i have tried to install cowsay and fortune. but apparently they are'nt in the repos?Is there any way to install them with yum or do i have to compile the src?
In bash I need to use some equivalent of double quotes inside double quotes (or the other way around.)I need to run the following statement to get the output of foo and store it in a variable while passing foo the $file which probably contains spaces.
Code: variable=$(foo "$file") The problem is that foo might return an empty string and if it does I need to catch it
I am a newbie in linux n programming, I need to use ubuntu for my research at school about building an IMS server use openims.
The problem is I need an additional script in C/C++ for my openims server to make an extension call. I hope one number can represent 3 client as receiver/operator. So, when I call the number, the server can forward the call to those three receiver by hunt. 1st call will be forward to the 1st receiver. 2nd call will be forward to the 2nd receiver. 3rd call will be forward to the 3rd receiver. then, 4th call will be forward back to the 1st receiver, etc.
Just upgraded to 10.04, trying to watch a dvd and it doesnt work. so i go to the ubuntu website, download the required pack (ubuntu restriced extras)
And then type in the code:
Code:
when i do this, terminal keeps trying to connect to a database, but it is not able to, see below....
Code:
Im at university and sitting behind a proxy. however, i had no problem doing this with ubuntu 9.10 and i can access internet, update, software centre ect...
For anyone interested in testing new xorg stuff, here it is: [URL]. The good news is that this package set should work fine in either 13.1 or -current. The build box is 13.1, so I know they're compatible there; however, I'm running them on both 13.1 and -current systems, so I'm pretty sure they'll work on either. Be sure to read the NOTES file before you go digging around in PACKAGES.
Last week google introduced the capability of using gmail to call other people in Canada or the US on landlines or mobile devices. This capability is free for 2010. I gave this a try in Slackware 13.1 and it works. To do this I was browsing with Fire Fox 3.6.8 and logged into my gmail account. On the left hand side of your e-mail account window you will see a phone icon.
1. When you click on that icon you will be prompted to install the gmail phone application.
2. A download window will open asking you to download a .deb source. I downloaded it and then I used src2pkg to create a Slackware package, then installed it.
3. Re-launch Fire Fox.
4. Click on the phone application and call up people. The voice quality is quite good, I experienced little lag.
I've fallen in love with Terminator as a replacement for the standard gnome-terminal app.
However, I'm also very much in the habit of using the nautilus-open-terminal extension for launching new terminal sessions.
I'd like nautilus-open-terminal to launch Terminator rather than gnome-terminal.
A quick search of my system and the web didn't reveal anything. i didn't find a gconf setting to control this. A quick look at the source code didn't help much either.
i have just installed the fedora 13 and emacs, after intalling the emacs when i try to load it i get the next message [root@localhost Eli]# emacs emacs: Cannot open termcap database file
I had a fresh install of Slackware 13.1 up and running. I was looking to use an app which could only run on a gnome distro. So I installed gnomeslackbuild. Ran into dependency hell so I gave up the ghost and decided to reinstall.Re-install resulted in a message "Call to lnusertemp failed(temporary directories full).Had this before a different machine and sorted with another install at the time.Tried this but it keeps coming up with the same message. (4 installs later).Quote:
xset: bad font path element (#23) possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir
I am having a problem with my slackware version 12 server. I tried installing a new joomla theme from the rockettheme and its giving me the following error while loading the site.
Fatal error: Call to undefined function imagecreatefromjpeg()in /home/www/verticaltest/modules/mod_rokstories/thumbnail.inc.php on line 167
Thought it was a problem with gd library modules, but in info.php, its showing that gd is installed in the server. Pasting the result form info.php below..
I have a problem that I can't seem to figure out. I can easily create a .sh file that will execute a command in Terminal, but as soon as it executes the terminal disappears. How do I get it to stay? My idea is to have the keyboard shortcut "ctrl+alt+del" open a .sh file with the contents "ps ax". Then it would be just like having a task manager; the terminal would open with "ps ax" already executed, and all I would have to do is kill the process number.
I have successfully installed endnote x3 running under wine to this document: [URL]..and thanks to winetricks to complete the dll requirement that endnote was asking on startup.
Nos i have two problems: 1/ i am not able to open pdf document linked into the database, i have this error:
Code: This URL (\Z:mediasda5path oJPP.dataPDFauthor2008-1341524334author2008.pdf) could not be launched
2/I have some issues with the left panel : all text are big black line instead of words (see attachment)
My DataBase Teacher wants us to install SQL 2008 cause on 3 days i gotta practice for the big test But the requirements are a ton "Visual Basic 2008 with service pack 1 & IIS" but thats just a tiny part of the problem.! My Windows 7 crashed.! So iam thinking can linux oracle be the answer of my ugly problems.?!Can SQL 2008 open database made from linux Oracle?
I'm experiencing a problem running Banshee 2.0 on my Ubuntu 11.04 system. Basically, I'm getting the following fatal error, the code of which is quoted hereunder. Of note is that uninstalling and reinstalling Banshee (through Ubuntu Software Centre) doesn't fix this problem. Incidentally or not, I also seem to have a problem with my other (and preferred) media player, Amarok. This is the error code:
Code: Si verificata un eccezione non gestita: Sqlite error 14: unable to open database file (SQL: UPDATE CorePrimarySources SET CachedCount = 1568 WHERE PrimarySourceID = 1) at Hyena.Data.Sqlite.Connection.CheckError (Int32 errorCode, System.String sql) [0x00000] in <filename unknown>:0 at Hyena.Data.Sqlite.Connection.Execute (System.String sql) [0x00000] in <filename unknown>:0 at Hyena.Data.Sqlite.HyenaSqliteCommand.Execute (Hyena.Data.Sqlite.HyenaSqliteConnection hconnection, Hyena.Data.Sqlite.Connection connection) [0x00000] in <filename unknown>:0 Exception has been thrown by the target of an invocation.
In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab
I have installed Alien Bob's KDE4.4 packages and have eveything almost in working order. However I am getting a nepomuk warning that says that the sesame2 database is not working or something to that effect. Has anyone else come across this problem?