Results 1 to 7 of 7

Thread: How can I start syslogd so I can then view the syslogd log? (I am using iptables)

  1. #1

    How can I start syslogd so I can then view the syslogd log? (I am using iptables)

    I am using iptables, and I have a rule that makes a log.

    But I can't see the log.

    I can't seem to see anything iptables or syslogd related in /var/log that has anything.

    I read on a page quoting the book knoppix hacks

    "most of the services log to /var/syslog, which knoppix disables by default. To start the syslog service, go to K-menu..knoppix..services..start syslog which launches a terminal which displays live output ok of /var/log/syslog"

    The problem is, I don't have /sys/log/syslog

    And, I can't seem to start it.

    In my K-menu...Knoppix, I don't see 'services' listed and 'start syslog' listed.

    I can see the sysklogd service in /etc/init.d but starting it leads to some error messages-

    knoppix@Microknoppix:/var$ sudo /etc/init.d/sysklogd start
    [....] Starting system log daemon...chown: cannot access `/var/log/mail.warn': No such file or directory
    chown: cannot access `/var/log/user.log': No such file or directory
    chown: cannot access `/var/log/daemon.log': No such file or directory
    chown: cannot access `/var/log/messages': No such file or directory
    chown: cannot access `/var/log/debug': No such file or directory
    chown: cannot access `/var/log/auth.log': No such file or directory
    chown: cannot access `/var/log/mail.err': No such file or directory
    chown: cannot access `/var/log/news/news.notice': No such file or directory
    chown: cannot access `/var/log/syslog': No such file or directory
    chown: cannot access `/var/log/news/news.crit': No such file or directory
    chown: cannot access `/var/log/mail.log': No such file or directory
    chown: cannot access `/var/log/kern.log': No such file or directory
    chown: cannot access `/var/log/lpr.log': No such file or directory
    chown: cannot access `/var/log/mail.info': No such file or directory
    chown: cannot access `/var/log/news/news.err': No such file or directory
    failed!
    knoppix@Microknoppix:/var$
    Last edited by terapin; 05-31-2014 at 02:33 PM.

  2. #2
    (post above is the way I want it asked, but I can't delete this post)
    Last edited by terapin; 05-31-2014 at 02:34 PM.

  3. #3
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    You can rename '/etc/syslog-knoppix.conf' to disable the limitation of logging by Knoppix. To prevent huge files within '/var/log' you also have to install "anacron" to enable logrotate.

  4. #4
    I am having some errors trying to 'make' and I suppose 'make install' anacron.


    knoppix@Microknoppix:~$ cd anacron-2.3/
    knoppix@Microknoppix:~/anacron-2.3$ ls
    anacron.8 COPYING gregor.h main.c matchrx.h runjob.c
    anacrontab.5 global.h lock.c Makefile README TODO
    ChangeLog gregor.c log.c matchrx.c readtab.c


    knoppix@Microknoppix:~/anacron-2.3$ make
    Makefile:57: gregor.d: No such file or directory
    Makefile:57: lock.d: No such file or directory
    Makefile:57: log.d: No such file or directory
    Makefile:57: main.d: No such file or directory
    Makefile:57: matchrx.d: No such file or directory
    Makefile:57: readtab.d: No such file or directory
    Makefile:57: runjob.d: No such file or directory
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" runjob.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > runjob.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" readtab.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > readtab.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" matchrx.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > matchrx.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" main.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > main.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" log.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > log.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" lock.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > lock.d"
    /bin/sh -ec "cc -MM -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" gregor.c \
    | sed '1s/^\(.*\)\.o[ :]*/\1.d &/1' > gregor.d"
    cc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" -Wall -pedantic -O2 gregor.c -o gregor.o
    gregor.c: In function ‘day_num’:
    gregor.c:79:5: error: assignment of read-only variable ‘isleap’
    make: *** [gregor.o] Error 1



    knoppix@Microknoppix:~/anacron-2.3$ sudo make
    cc -c -DSPOOLDIR=\"/var/spool/anacron\" -DRELEASE=\"2.3\" -DANACRONTAB=\"/etc/anacrontab\" -Wall -pedantic -O2 gregor.c -o gregor.o
    gregor.c: In function ‘day_num’:
    gregor.c:79:5: error: assignment of read-only variable ‘isleap’
    make: *** [gregor.o] Error 1
    knoppix@Microknoppix:~/anacron-2.3$

  5. #5
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Why not simple install anacron?
    (If not already done after installation of Knoppix)
    Code:
    su
    aptitude update
    Code:
    su
    aptitude install anacron

  6. #6
    ah I hadn't done apt-get update, once I did that I could do apt-get install anacron.. (I see I could've used aptitude update and aptitude install anacron) but anyhow now anacron is installed. I guess what i'd do with that to prevent the log getting too big is rm -f the log file every day or few days or so..

    I have renamed that log file, /etc/syslog-knoppix.conf making it /etc/syslog-knoppix_.conf

    root@Microknoppix:/# ls /etc/sysl*
    /etc/syslog.conf /etc/syslog-knoppix_.conf

    but I still get those errors trying to start sysklogd


    root@Microknoppix:/# /etc/init.d/sysklogd start
    [....] Starting system log daemon...chown: cannot access `/var/log/mail.warn': No such file or directory
    chown: cannot access `/var/log/user.log': No such file or directory
    chown: cannot access `/var/log/daemon.log': No such file or directory
    chown: cannot access `/var/log/messages': No such file or directory
    chown: cannot access `/var/log/debug': No such file or directory
    chown: cannot access `/var/log/auth.log': No such file or directory
    chown: cannot access `/var/log/mail.err': No such file or directory
    chown: cannot access `/var/log/news/news.notice': No such file or directory
    chown: cannot access `/var/log/syslog': No such file or directory
    chown: cannot access `/var/log/news/news.crit': No such file or directory
    chown: cannot access `/var/log/mail.log': No such file or directory
    chown: cannot access `/var/log/kern.log': No such file or directory
    chown: cannot access `/var/log/lpr.log': No such file or directory
    chown: cannot access `/var/log/mail.info': No such file or directory
    chown: cannot access `/var/log/news/news.err': No such file or directory
    failed!
    root@Microknoppix:/#


    Thanks

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Reboot and look again at '/var/log'.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA picture

LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA

$229.99



HPE 869102-001 Smart Array E208i-a SR Gen10 Storage Controller RAID SP: 871039 picture

HPE 869102-001 Smart Array E208i-a SR Gen10 Storage Controller RAID SP: 871039

$129.99



Lot of 4 - Genuine Dell (62P9H) PERC H710 512MB Mini Blade 6Gbps SAS Raid picture

Lot of 4 - Genuine Dell (62P9H) PERC H710 512MB Mini Blade 6Gbps SAS Raid

$49.99



Intel RS25AB080 RAID Controller SAS/SATA, PCIe x8, MD2 1GB. New Retail Box picture

Intel RS25AB080 RAID Controller SAS/SATA, PCIe x8, MD2 1GB. New Retail Box

$230.00



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$86.99



LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License picture

LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License

$35.96



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



Yottamaster 5 Bay RAID Hard Drive Enclosure USB3.1 Type C 2.5

Yottamaster 5 Bay RAID Hard Drive Enclosure USB3.1 Type C 2.5"/3.5" SATA HDD SSD

$142.49