Print Job Not getting to Printer
by Mickey
Fedora 17 Samsung CLX3175FX, CLX3170 Series driver.
The driver for this printer does work in Fedora 17 on about ten other
boxes with Fedora 17.
But not on this HP Pavilion S5510F PC, in Fedora 17 , I had it working
on Fedora 15.
Here is some simple commands I have run and the printer in seen .
The Router even sees the printer at 192.168.1.127.
Cupsd is running in Services.
The Printer will print using my laptop with Fedora 17 installed on same
Network
Job 12 is in print Queue but is Stopped.
root@BigOne mickey# lpq
Samsung-CLX-3170 is ready
Rank Owner Job File(s) Total Size
1st mickey 12 (stdin) 5120 bytes
root@BigOne mickey# lpq -P Samsung-CLX-3170
Samsung-CLX-3170 is ready
Rank Owner Job File(s) Total Size
1st mickey 12 (stdin) 5120 bytes
root@BigOne mickey# lpq mickey
Samsung-CLX-3170 is ready
Rank Owner Job File(s) Total Size
1st mickey 12 (stdin
11 years, 5 months
php and mysqli
by Buday Gergely
Hi there,
the following code fails on my fedora 17 box:
<?php
mysqli_init();
?>
PHP Fatal error: Call to undefined function mysqli_init() in /home/gbuday/public_html/init.php on line 3
doing a grep around php -i, /etc/php.ini and /etc/php.d/ I get a seemingly ok configuration, see below. My versions of php and mysql are
$ php --version
PHP 5.4.6 (cli) (built: Aug 20 2012 11:30:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
$ mysql --version
mysql Ver 14.14 Distrib 5.5.27, for Linux (i686) using readline 5.1
What other files I should look for the problem? How can I make mysqli work?
I have the following php and mysql packages installed:
$ rpm -qa|egrep '(mysql|php)'
php-process-5.4.6-2.fc17.i686
php-5.4.6-2.fc17.i686
mysql-5.5.27-1.fc17.i686
mysql-server-5.5.27-1.fc17.i686
php-cli-5.4.6-2.fc17.i686
php-xml-5.4.6-2.fc17.i686
php-ZendFramework-Db-Adapter-Mysqli-1.11.12-1.fc17.noarch
php-common-5.4.6-2.fc17.i686
php-mysql-5.4.6-2.fc17.i686
php-ZendFramework-1.11.12-1.fc17.noarch
php-devel-5.4.6-2.fc17.i686
mysql-libs-5.5.27-1.fc17.i686
php-pdo-5.4.6-2.fc17.i686
php-bcmath-5.4.6-2.fc17.i686
- Gergely
php -i:
'--with-mysqli=shared,mysqlnd' in configuration
mysqli
MysqlI Support => enabled
Client API library version => 5.5.27
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Client API header version => 5.5.27
MYSQLI_SOCKET => /var/lib/mysql/mysql.sock
Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
/etc/php.ini :
; Maximum number of persistent links. -1 means no limit.
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
; http://php.net/mysqli.allow_local_infile
mysqli.allow_local_infile = On
; Allow or prevent persistent links.
; http://php.net/mysqli.allow-persistent
mysqli.allow_persistent = On
; Maximum number of links. -1 means no limit.
; http://php.net/mysqli.max-links
mysqli.max_links = -1
; If mysqlnd is used: Number of cache slots for the internal result set cache
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
; http://php.net/mysqli.default-port
mysqli.default_port = 3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
; http://php.net/mysqli.default-socket
mysqli.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-host
mysqli.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-user
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://php.net/mysqli.default-pw
mysqli.default_pw =
; Allow or prevent reconnect
mysqli.reconnect = Off
/etc/php.d $ cat mysql.ini
; Enable mysql extension module
extension=mysql.so
11 years, 6 months
A note on youtube-dl
by Marko Vojinovic
Hi folks! :-)
Just a small note... I just tried and found out that the youtube-dl doesn't
work anymore. Reading the youtube-dl FAQ page, it says that YouTube has
changed the protocol again (since September 2012) and that we should update
the script to the latest version.
The "sudo youtube-dl --update" works as expected (and once updated, it
downloads stuff fine), but I guess someone should notify the relevant package
maintainer to update the rpm package, so that it gets pulled in with an
ordinary yum update.
I wasted half an hour hunting this down, so that noone else needs to. ;-)
HTH, :-)
Marko
11 years, 6 months
Setting fonts for Xterm from Xresources
by Marco Guazzone
Hello,
I'm running Fedota 17 x86_64.
I have problems to set the font type to be used in XTerm from Xresources:
I edited my ~/.Xresources in order to set the font face (resource
"faceName") and size (resource "faceSize").
Here below is the output of "xrdb -query -all":
--- [out] ---
XTerm*background: #ffffff
XTerm*color0: #000000
XTerm*color1: #a31515
XTerm*color10: #fd9b43
XTerm*color11: #00af00
XTerm*color12: #335d85
XTerm*color14: #389fa0
XTerm*color15: #4daca3
XTerm*color2: #1c9075
XTerm*color3: #0000ff
XTerm*color4: #008000
XTerm*color5: #963c59
XTerm*color6: #2b91af
XTerm*color7: #00ff00
XTerm*color8: #ff0000
XTerm*color9: #d25f50
XTerm*faceName: "Inconsolata"
XTerm*faceSize: 12
XTerm*foreground: #000000
XTerm*geometry: 80x24
XTerm*loginShell: true
XTerm*renderFont: true
XTerm*saveLines: 2000
XTerm*scrollBar: false
XTerm*visualBell: true
XTerm.color13: #d53d7a
Xft.antialias: 1
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
Xft.rgba: none
--- [/out] ---
As you can see, I specified the "Inconsolata" font for the resource
"faceName". However, XTerm seems to ignore it (yes, the font has been
installed from Fedora repo). I have also tried with other fonts, but I
obtain the same result.
If instead I specify the font from the command line (option "-fa"), it works.
Where am I wrong?
Thank you so much for your help.
Best,
-- Marco
11 years, 6 months
Change default app. -
by Bob Goodwin
How do I change the default application for playing a video file
received from an iPhone [.mov]?
Presently I have to save it and play with vlc which works perfectly.
Something called "Parole" is all that is offered and I have never
succeeded in playing anything using it, considering just removing
it. Google describes methods for setting the default but they don't
seem applicable to XFCE and F-17/64.
Thanks,
Bob
--
http://www.qrz.com/db/W2BOD
box9
11 years, 6 months
selinux blocking ganglia-web
by Kevin H. Hobbs
I just replaced the machine that runs ganglia.
httpd is being prevented from connecting to gmond.
All that is displayed is:
There was an error collecting ganglia data (127.0.0.1:8652): fsockopen
error: Permission denied
There's a message in /var/log/messages that blames selinux every time I
load the page.
and sealert says that I could change the behavior by setting
allow_ypbind or httpd_can_network_connect
allow httpd_t unreserved_port_t:tcp_socket name_connect;
I can see how letting httpd make arbitrary connections is bad, so how
can I punch a hole in the rule just for ganglia?
11 years, 6 months
Can't read Dovecot inbox!
by Arthur Dent
Hello,
I have just run yum update on my F17 server and it updated amongst other
things selinux and dovecot (and a new kernel).
I have rebooted, yet I cannot now ssh into it from outside my network, I
can't get mail from outside my network (accessing the dovecot IMAP
server running on the box) and from within my network I can access using
(for example) my Evolution client, all the folders which are held under
~/mail (and into which procmail filters stuff), but I CANNOT access the
INBOX (/var/spool/mail/mark).
In Evolution, I can see the mail that was there, but if I click on any
of the emails it refuses to display the email.
There were some of these in /var/log/dovecot:
========================================8<=============================
Sep 30 14:25:37 imap-login: Warning: Auth process not responding, delayed sending greeting: user=<>, rip=192.168.2.4, lip=192.168.2.2, TLS, session=<PbZ2OevKiADAqAIE>
Sep 30 14:25:57 imap-login: Error: Timeout waiting for handshake from auth server. my pid=1405, input bytes=0
Sep 30 14:25:57 imap-login: Info: Disconnected: Auth process broken (disconnected before greeting, waited 30 secs): user=<>, rip=192.168.2.4, lip=192.168.2.2, TLS, session=<BIJ2OevKhwDAqAIE>
Sep 30 14:25:57 imap-login: Error: Timeout waiting for handshake from auth server. my pid=1406, input bytes=0
Sep 30 14:25:57 imap-login: Info: Disconnected: Auth process broken (disconnected before greeting, waited 30 secs): user=<>, rip=192.168.2.4, lip=192.168.2.2, TLS, session=<PbZ2OevKiADAqAIE>
========================================8<=============================
But the most recent attempt to login with Evolution simply produced
this:
========================================8<=============================
Sep 30 14:57:34 imap-login: Info: Login: user=<helena>, method=PLAIN, rip=192.168.2.4, lip=192.168.2.2, mpid=2264, TLS, session=<C2XAq+vKlgDAqAIE>
Sep 30 14:57:34 imap-login: Info: Login: user=<mark>, method=PLAIN, rip=192.168.2.4, lip=192.168.2.2, mpid=2265, TLS, session=<WnHAq+vKlQDAqAIE>
========================================8<=============================
Which seems OK
doveconf -n shows:
========================================8<=============================
# doveconf -n
# 2.1.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.4-2.fc17.i686.PAE i686 Fedora release 17 (Beefy
Miracle)
disable_plaintext_auth = no
log_path = /var/log/dovecot
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
mail_privileged_group = mail
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
========================================8<=============================
Help! What do I do - I need to be able to access my mail!
Thanks in advance
Mark
11 years, 6 months
Re: A note on youtube-dl
by Hiisi
On 30 September 2012 14:56, Reindl Harald <h.reindl(a)thelounge.net> wrote:
>
>> You don't need any script at all. Just copy the appropriate video file
>> from /tmp folder when video is watched. That always worked for me.
>
> You don't need any GUI at all. Just type your commands in the terminal
> you see how wrong your argumentation is?
>
Could you be more precise? I'm far away from my fedora box at the moment.
--
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/
--
Spandex is a privilege, not a right.
11 years, 6 months