F18 - systemd question
by Cristian Sava
Why /var/log/tmp looks like this and systemd-private dirs are never
automatically deleted, even at reboot?
[root@localhost tmp]# ls -l
total 796
drwx------. 2 fxxxxx fxxxxx 4096 Feb 28 13:43 kdecache-fxxxxx
drwx------. 2 fxxxxx fxxxxx 4096 Feb 15 14:37 plugtmp-1
-rw-------. 1 akmods akmods 1774 Feb 7 08:54 rpm-tmp.lO73AO
drwxrwxrwt. 2 root colord 4096 Feb 5 13:20 systemd-private-0BSkXq
drwxrwxrwt. 2 root root 4096 Feb 5 13:20 systemd-private-0r92VC
drwxrwxrwt. 2 root root 4096 Feb 6 10:05 systemd-private-18Z8kV
drwxrwxrwt. 2 root colord 4096 Feb 28 13:40 systemd-private-1mtzmk
drwxrwxrwt. 2 root root 4096 Feb 18 16:04 systemd-private-1om8B3
drwxrwxrwt. 2 root colord 4096 Feb 15 14:41 systemd-private-3SAqrC
drwxrwxrwt. 2 root root 4096 Feb 25 14:18 systemd-private-5Q9Qz1
drwxrwxrwt. 2 root root 4096 Feb 15 14:40 systemd-private-6Mg99v
drwxrwxrwt. 2 root root 4096 Feb 6 09:52 systemd-private-6QU4nJ
drwxrwxrwt. 2 root root 4096 Feb 5 13:16 systemd-private-6YJRWl
drwxrwxrwt. 2 root root 4096 Feb 19 19:14 systemd-private-6zp3Cv
drwxrwxrwt. 2 root root 4096 Mar 5 10:26 systemd-private-7L4Pjt
drwxrwxrwt. 2 root root 4096 Feb 7 08:55 systemd-private-7pmzQ0
drwxrwxrwt. 2 root root 4096 Feb 7 09:14 systemd-private-7soJEi
drwxrwxrwt. 2 root root 4096 Feb 18 16:04 systemd-private-7T9Cv4
drwxrwxrwt. 2 root root 4096 Mar 5 10:26 systemd-private-8dDgig
drwxrwxrwt. 2 root colord 4096 Feb 7 08:56 systemd-private-8KJQp5
drwxrwxrwt. 2 root root 4096 Feb 17 12:04 systemd-private-8pOtxz
drwxrwxrwt. 2 root root 4096 Feb 5 13:19 systemd-private-8VQFuj
drwxrwxrwt. 2 root root 4096 Feb 28 13:38 systemd-private-9Di4bj
drwxrwxrwt. 2 root root 4096 Feb 22 15:44 systemd-private-acW0io
drwxrwxrwt. 2 root root 4096 Mar 4 15:04 systemd-private-Apjy0I
drwxrwxrwt. 2 root root 4096 Mar 4 15:04 systemd-private-ArF2aG
drwxrwxrwt. 2 root root 4096 Feb 6 10:04 systemd-private-AVF51q
drwxrwxrwt. 2 root root 4096 Feb 6 08:39 systemd-private-bq356B
drwxrwxrwt. 2 root colord 4096 Feb 25 14:20 systemd-private-BQCmwT
drwxrwxrwt. 2 root root 4096 Feb 28 13:39 systemd-private-btdfnp
drwxrwxrwt. 2 root colord 4096 Feb 6 08:40 systemd-private-dSAy3j
drwxrwxrwt. 2 root root 4096 Feb 20 08:55 systemd-private-dsb6uH
drwxrwxrwt. 2 root root 4096 Feb 19 09:51 systemd-private-DvtMAF
drwxrwxrwt. 2 root colord 4096 Mar 1 10:55 systemd-private-DXMZSJ
drwxrwxrwt. 2 root root 4096 Feb 7 08:56 systemd-private-f0cBSb
drwxrwxrwt. 2 root root 4096 Feb 6 10:04 systemd-private-F0ixxU
drwxrwxrwt. 2 root root 4096 Mar 4 07:47 systemd-private-f3Xjko
drwxrwxrwt. 2 root colord 4096 Feb 6 10:05 systemd-private-f7WM5I
drwxrwxrwt. 2 root root 4096 Feb 20 08:56 systemd-private-fhNrpZ
drwxrwxrwt. 2 root colord 4096 Feb 22 15:45 systemd-private-Fn8ysU
drwxrwxrwt. 2 root root 4096 Feb 15 14:40 systemd-private-fyz8EY
drwxrwxrwt. 2 root root 4096 Feb 12 08:42 systemd-private-G5NsRa
drwxrwxrwt. 2 root root 4096 Mar 4 07:47 systemd-private-GBa1pl
drwxrwxrwt. 2 root colord 4096 Feb 19 09:51 systemd-private-gFN6Ry
drwxrwxrwt. 2 root root 4096 Feb 19 10:49 systemd-private-gxR8Ad
drwxrwxrwt. 2 root root 4096 Feb 20 08:56 systemd-private-HcqWqN
drwxrwxrwt. 2 root colord 4096 Feb 12 08:42 systemd-private-hdD6a1
drwxrwxrwt. 2 root root 4096 Feb 6 08:39 systemd-private-hfjMTZ
drwxrwxrwt. 2 root root 4096 Mar 3 03:13 systemd-private-hJfg9v
drwxrwxrwt. 2 root root 4096 Mar 4 07:45 systemd-private-HJmYWj
drwxrwxrwt. 2 root colord 4096 Mar 5 10:27 systemd-private-i6Kfoy
drwxrwxrwt. 2 root root 4096 Feb 28 17:57 systemd-private-iAGwqV
drwxrwxrwt. 2 root root 4096 Mar 1 10:54 systemd-private-ikkwgu
drwxrwxrwt. 2 root colord 4096 Feb 18 16:26 systemd-private-IOR32Y
drwxrwxrwt. 2 root root 4096 Mar 5 10:27 systemd-private-IrN4AE
drwxrwxrwt. 2 root root 4096 Mar 4 15:04 systemd-private-IYSOCE
drwxrwxrwt. 2 root root 4096 Mar 4 15:05 systemd-private-J7uULn
drwxrwxrwt. 2 root root 4096 Feb 12 08:41 systemd-private-jiJcis
drwxrwxrwt. 2 root root 4096 Feb 15 14:41 systemd-private-Ka4fXL
drwxrwxrwt. 2 root root 4096 Feb 17 12:03 systemd-private-kYwDB2
drwxrwxrwt. 2 root root 4096 Feb 18 16:07 systemd-private-lGkI2t
drwxrwxrwt. 2 root root 4096 Feb 17 12:03 systemd-private-ltGenw
drwxrwxrwt. 2 root root 4096 Feb 19 09:50 systemd-private-MjSAY2
drwxrwxrwt. 2 root root 4096 Feb 18 16:26 systemd-private-mPQtMX
drwxrwxrwt. 2 root root 4096 Feb 18 16:26 systemd-private-Nkuj08
drwxrwxrwt. 2 root colord 4096 Feb 17 12:04 systemd-private-Nmd1Dn
drwxrwxrwt. 2 root colord 4096 Feb 28 17:57 systemd-private-NVDF0N
drwxrwxrwt. 2 root root 4096 Feb 28 17:56 systemd-private-NvyJtL
drwxrwxrwt. 2 root root 4096 Feb 12 08:41 systemd-private-oBhCBm
drwxrwxrwt. 2 root root 4096 Feb 7 09:14 systemd-private-OEkHnz
drwxrwxrwt. 2 root colord 4096 Feb 6 09:58 systemd-private-oJrcTK
drwxrwxrwt. 2 root root 4096 Feb 22 15:44 systemd-private-omYZAn
drwxrwxrwt. 2 root root 4096 Feb 6 08:40 systemd-private-plW4hq
drwxrwxrwt. 2 root root 4096 Feb 18 16:26 systemd-private-PQk2vt
drwxrwxrwt. 2 root root 4096 Feb 7 09:14 systemd-private-PZ28pW
drwxrwxrwt. 2 root root 4096 Feb 15 14:40 systemd-private-qzN6zY
drwxrwxrwt. 2 root colord 4096 Mar 4 13:42 systemd-private-R2Dco6
drwxrwxrwt. 2 root root 4096 Mar 4 07:47 systemd-private-R4vL5h
drwxrwxrwt. 2 root root 4096 Mar 1 10:54 systemd-private-rIFfFj
drwxrwxrwt. 2 root root 4096 Feb 28 13:39 systemd-private-rOm7r1
drwxrwxrwt. 2 root root 4096 Feb 6 09:52 systemd-private-RPhMlC
drwxrwxrwt. 2 root colord 4096 Mar 4 15:05 systemd-private-sNtDgg
drwxrwxrwt. 2 root root 4096 Feb 19 09:50 systemd-private-sQe75z
drwxrwxrwt. 2 root root 4096 Feb 28 17:56 systemd-private-TdrkeP
drwxrwxrwt. 2 root root 4096 Feb 28 13:39 systemd-private-Twvr7H
drwxrwxrwt. 2 root root 4096 Feb 5 13:19 systemd-private-uoB3Sb
drwxrwxrwt. 2 root root 4096 Feb 5 13:19 systemd-private-UOkU5V
drwxrwxrwt. 2 root root 4096 Feb 18 16:26 systemd-private-Uv3DpE
drwxrwxrwt. 2 root root 4096 Feb 6 10:04 systemd-private-v2f36h
drwxrwxrwt. 2 root colord 4096 Feb 7 09:14 systemd-private-v376la
drwxrwxrwt. 2 root root 4096 Feb 7 08:55 systemd-private-VMX780
drwxrwxrwt. 2 root root 4096 Feb 7 09:14 systemd-private-VuQ0tT
drwxrwxrwt. 2 root root 4096 Feb 25 14:20 systemd-private-wG4kk0
drwxrwxrwt. 2 root root 4096 Feb 25 14:18 systemd-private-XfgRge
drwxrwxrwt. 2 root root 4096 Feb 22 15:45 systemd-private-XJvd34
drwxrwxrwt. 2 root root 4096 Feb 22 15:44 systemd-private-Xmc9HS
drwxrwxrwt. 2 root root 4096 Feb 28 13:40 systemd-private-xPc4Jt
drwxrwxrwt. 2 root colord 4096 Feb 20 08:56 systemd-private-y3cD4Q
drwxrwxrwt. 2 root root 4096 Feb 12 08:42 systemd-private-YgO6s0
drwxrwxrwt. 2 root root 4096 Mar 4 13:42 systemd-private-YiZCNg
drwxrwxrwt. 2 root root 4096 Feb 7 08:55 systemd-private-ySX5m8
drwxrwxrwt. 2 root root 4096 Feb 6 09:58 systemd-private-ySZXzS
drwxrwxrwt. 2 root root 4096 Feb 22 15:43 systemd-private-ZKjj2C
drwxrwxrwt. 2 root root 4096 Mar 5 10:26 systemd-private-Zmpfjo
drwxrwxrwt. 2 root root 4096 Mar 1 10:55 systemd-private-zRNwjK
drwxrwxrwt. 2 root root 4096 Feb 6 08:40 systemd-private-zWXX0w
-rw-------. 1 fxxxxx fxxxxx 379096 Feb 4 17:11 T8JPgzC0.exe.part
[root@localhost tmp]#
C. Sava
11 years, 1 month
Issue creating systemd service files
by David Highley
We are attempting to create systemd files for an ssh port monitoring
process. When we enable and attempt to start the service we get multiple
executions of the daemon and systemctl does not return until we do a
control-c. The init script and our attempt at replacement:
#!/bin/bash
#
# chkconfig: - 56 24
#
# sshdfilter Start up the SSH server daemon filter
#
# description: filter for SSH port connections to give more control
# over who can log in and if probed add firewall rules
# to block probing sites.
#
# processname: sshdfilter
# config: /etc/sshdfilterrc
# pidfile: /var/run/sshdfilter.pid
# pipe: /var/run/sshdfilter.fifo
### BEGIN INIT INFO
# Provides: sshdfilter
# Required-Start: $local_fs $network $rsyslog
# Required-Stop: $local_fs $rsyslog
# Should-Start: $rsyslog
# Should-Stop: $network $rsyslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the SSH filter server daemon
# Description: SSH is a protocol for secure remote shell access.
# This service starts up the SSH filter server daemon.
### END INIT INFO
# source function library
. /etc/rc.d/init.d/functions
# pull in sysconfig settings
[ -f /etc/sysconfig/sshdfilter ] && . /etc/sysconfig/sshdfilter
# make fifo if it does not exist
[ -p /var/run/sshdfilter.fifo ] || mkfifo /var/run/sshdfilter.fifo
RETVAL=0
prog="sshdfilter"
lockfile=/var/lock/subsys/$prog
# Some functions to make the below more readable
SSHDF=/usr/sbin/sshdfilter
PID_FILE=/var/run/sshdfilter.SSHD.pid
runlevel=$(set -- $(runlevel); eval "echo \$$#" )
start()
{
[ -x $SSHDF ] || exit 5
[ -f /etc/sshdfilterrc ] || exit 6
echo -n $"Starting $prog: "
$SSHDF $OPTIONS && success || failure
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $lockfile
echo
return $RETVAL
}
stop()
{
echo -n $"Stopping $prog: "
if [ -n "`pidfileofproc $SSHDF`" ] ; then
killproc $SSHDF
else
failure $"Stopping $prog"
fi
RETVAL=$?
# if we are in halt or reboot runlevel kill all running sessions
# so the TCP connections are closed cleanly
if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
trap '' TERM
killall $prog 2>/dev/null
trap TERM
fi
[ $RETVAL -eq 0 ] && rm -f $lockfile
echo
}
restart() {
stop
start
}
rh_status() {
status -p $PID_FILE sshdfilter-daemon
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
start
;;
stop)
if ! rh_status_q; then
rm -f $lockfile
exit 0
fi
stop
;;
restart)
restart
;;
status)
rh_status
RETVAL=$?
if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
RETVAL=2
fi
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=2
esac
exit $RETVAL
============ sshdfilter.service ===================
[Unit]
Description=sshdfilter Daemon
Documentation=file://usr/share/doc/sshdfilter-1.5.7/INSTALL.Fedora
DefaultDependencies=no
[Service]
Type=forking
PIDFile=/var/run/sshdfilter.SSHD.pid
ExecStart=/sbin/sshdfilter
NotifyAccess=all
[Install]
WantedBy=multi-user.target
============ sshdfilter.socket ===================
[Unit]
Description=sshdfilter Named Pipe
Documentation=file:///usr/share/doc/sshdfilter-1.5.7/INSTALL.Fedora
DefaultDependencies=no
After=syslog.target
[Socket]
ListenFIFO=/var/run/sshdfilter.fifo
SocketMode=0644
11 years, 1 month
Fedora 18 network freeze after a while...
by Georgios Petasis
Hi all,
I am facing a very strange problem after upgrading to fedora 18: while
the system works ok (I use the machine through vnc),
after some time (which can range from 30 minutes to a few hours) all
network interaction rapidly deteriorates, until network is no
more useful (i.e. I cannot even ssh to the machine).
How can I find out why this is happening? I didn't had any problems with
fedora 17, and I have tested the RAM, which showed no errors.
Regards,
George
11 years, 1 month
applypatch
by Patrick Dupre
Hello,
cpan asks me for the program: applypatch
I cannot find it.
Should I just ignore it?
Thank.
--
======================================================================
Patrick DUPRÉ | | email: pdupre(a)kegtux.org
Laboratoire de Physico-Chimie de l'Atmosphère
Université du Littoral-Côte d'Opale | |
Tel. | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
======================================================================
11 years, 1 month
startx -- :x
by Patrick Dupre
Hello,
It looks like that the command:
startx -- :1
does not works any more.
It was very convenient to open 2 X sessions.
Thank for your help.
--
======================================================================
Patrick DUPRÉ | | email: pdupre(a)kegtux.org
Laboratoire de Physico-Chimie de l'Atmosphère
Université du Littoral-Côte d'Opale | |
Tel. | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
======================================================================
11 years, 1 month
F18 - restart the X server
by Kevin Wilson
Hi,
What is the shortcut for restarting the X server?
In old fedora distros it was "alt + ctrl + left arrow".
Now it does not work and there is no such shortcut in "System
setting->keyboard->shortcuts".
rgs,
Kevin
11 years, 1 month
[X-post][JOB] Plivo Invites you to join the team. (Python, Linux Developers)
by Rohit Gupta
Hi,
Plivo invites you for a off campus recruitment drive on 8th March,
2013 at Kalyani Government Engineering College (West Bengal).
Interested candidates can take a print out of this post and visit the
venue (written below).
Position: Dev-Ops Engineer
Details: https://plivo.recruiterbox.com/jobs/10894/
Salary: 5 - 6 LPA.
Note: Salary and position will not be a constraint for the deserving candidate
Company Profile:
Plivo provides easy and feature rich APIs for businesses to develop
powerful voice and messaging applications.
Plivo has been part of Y Combinator (US biggest incubator), and The
Morpheus (TM) (Indian Incubator). Plivo is funded by same investors
like Google, Facebook and Skype.
Plivo is headquarted in San Francisco, United States with an office in
Bangalore, India
Plivo is a small team, and are looking for people who can make a big
impact. They are all about startup work culture.
Venue:
Kalyani Government Engineering College,
Kalyani, Nadia, West Bengal, India-741235.
College website: http://www.kgec.edu.in
Google Map Location: http://bit.ly/visitkgec
Contact Person:
Biswajit Pain: +91-9434608413
Thanks and Regards,
Rohit Gupta
Core Team Member,
Plivo Inc.
www.plivo.com
PS: You may also apply online for open position in Plivo. Please
visit: http://careers.plivo.com
11 years, 1 month
startlxde does not start in text mode
by Patrick Dupre
Hello,
I am trying to start lxde from a text session.
startlxde does not do anything if there is not other X session running.
If there is a X seesion running, then I get:
Openbox-Message: A window manager is already running on screen 0
g_dbus_connection_real_closed: Remote peer vanished with error:
Underlying GIOStream returned 0 bytes on an async read
(g-io-error-quark, 0). Exiting.
What should I do?
Thank.
--
======================================================================
Patrick DUPRÉ | | email: pdupre(a)kegtux.org
Laboratoire de Physico-Chimie de l'Atmosphère
Université du Littoral-Côte d'Opale | |
Tel. | | Fax: 03 28 65 82 44
189A, avenue Maurice Schumann | | 59140 Dunkerque, France
======================================================================
11 years, 1 month
Re: installation issue 1
by Michael E. Maher
On Mon, 2013-03-04 at 23:42 +0100, Patrick Dupre wrote:
> Quoting lun, 04 mar 2013 "Michael E. Maher" <michael(a)maheronline.co.uk>:
>
> > Hi Patrick,
> >
> > On Mon, 2013-03-04 at 10:40 +0100, Patrick Dupre wrote:
> >> Hello,
> >>
> >> Unfortunately, after I remade a new DVD, the issue is still here:
> >> Fatal error after installing 4 or 5 packages over 1318(hwdata or setup)
> >> Is there something wrong with this partitionning:
> >
> >> /
> > Obviously needed.
> >
> >> /boot
> > Generally advised to have a separate boot partition.
> >
> >> /usr/lib64
> > I believe this will cause many issues. I'd advise against it.
> >
> >> /usr/local
> > Fedora doesn't put anything in here so should be fine.
> >
> >> /usr/src
> > Again not really used for Fedora so should be fine.
> >
> >> /tmp
> > In Fedora 18 'tmp' is a RAM backed file system, so you probably don't
> > need this (unless you have other requirements). Probably a better use of
> > a partition would be to put 'var' on it.
> >
> >> /home
> > Generally advised to have a separate home partition.
> >
> >
> > So you're mostly fine, with the exception of '/usr/lib64'.
> >
> I agree, however it is not clear about /usr.
For Fedora 18 the 'usr' tree should be on the root partition. I think
that's clear. See [0] and [1] for details and justification.
> Anyway, how do you upgrade a fedora 16 with
> /
> /usr
> /lib64
Honestly I would recommend a repartition and reinstall. Sorry that's not
a great answer, it's just what I would do. I'm sure that other people on
the list can give much better ideas should you need to perform that
upgrade.
Thanks,
Michael
[0] https://fedoraproject.org/wiki/Features/UsrMove
[1]
http://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge
11 years, 1 month