I'm running Ubuntu 13.10 on a headless server. Server is primarily for media streaming but I'm using it to play around and relearn linux.
I have some questions that I haven't been able to find answers for in all my googling. I'm not sure if it's just I'm not using the right terms, or I'm missing something that's obvious.
On to the questions:
- Is there a definite way to determine what programs or daemons aren't needed any longer on the system? An example that I ran into was that I was running both ntpd and ntpdate at the same time.
- Similar to question 1, what about configuration files? My goal is to keep my system "clean" and remove unneeded files/etc.
- I installed a program called Tiger which incorporates Tigercron. I believe after I did this my normal cron jobs aren't running. Is that expected behaviour?
- Speaking of cron, I know all cron output is logged to cron.log. I wasn't able to find a way to log hourly/daily/etc jobs to their own file. Is that possible?
- I have syslog-ng running on the system (in server mode collecting logs from a couple NASes and routers that support syslog). I noticed rsyslog was on the system as well. Can that be removed?
- I'm currently using logwatch and logrotate. Is there a way to determine if any log files are not included in those two processes?
- Similar to question 6, right now I'm catching log files for programs on an ad-hoc basis. For example program 1 will log in /opt/program 1/logs whereas program 2 logs in /var/lib/program 2/stuff/logs and program 3 logs in to /var/log. What I've done so far is create symlinks to /var/log for program 1/2 so all logs are in one spot. Is that a "good" behaviour to have? Is there a way to find out where everything is being logged to so I can combine them all into a single location?
- I have two NAS devices, 3 Windows PC's and the Ubuntu server. I'm currently using Samba/Windows file shares to share files between the devices. The NASes also support NFS. Should I have both methods enabled on the NAS devices and connect from Ubuntu to them using NFS or are the Samba shares okay?
- How can I log/measure system performance over time? I found a module for webmin, however after letting it run overnight there were 100+ processes of it checking my system, which made the system unusable and unstable.
- I generally try to only install packages via apt-get... I've found that it makes things "cleaner" overall. However I've found that many of those packages are out of date and I need to use something from a more current version. Is there a simple way to "update" the package locally so I can use a later version but also use the packaged version (e.g. I update from 1.0 to 1.1 with source, and then the package gets 1.1, and eventually 1.2, I want to update with the package to 1.2)?
- Is there anyway to simulate a reboot without actually rebooting the system? I have a few daemons that I think are causing problems on boot that I want to diagnose.
- Is there a prefered method to add a delay when starting a daemon? I want specific daemons to wait until the NAS drives are mounted/usable before starting up.
My final question has to deal with some entries in boot.log:
My googling didn't come up with a solution to that warning. How can I silence/configure my process properly to deal with it?
* Starting DenyHosts denyhosts [ OK ]
/usr/lib/python2.7/dist-packages/pygments/plugin.py:39: UserWarning: Module cherrypy was already imported from /opt/headphones/cherrypy/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path import pkg_resources
I haven't had a whole lot of time to look into this error in the boot.log, should I be concerned?
* Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated [ OK ]
* Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated [fail]
Finally this is from my error log. I think it has to do with the mounting of my NAS devices, but nothing I've searched for has told me if I should be worried about it, if there's something I can do to solve the problem or anything else.
Jan 23 13:54:08 Ubuntu kernel: [ 24.904044] mei_me 0000:00:03.0: wait hw ready failed. status = -110
Jan 23 13:54:08 Ubuntu kernel: [ 24.904091] mei_me 0000:00:03.0: hw_start failed disabling the device
Jan 23 13:54:08 Ubuntu kernel: [ 24.904132] mei_me 0000:00:03.0: host is not ready.
Jan 23 13:54:08 Ubuntu kernel: [ 24.904162] mei_me 0000:00:03.0: link layer initialization failed.
Jan 23 13:54:08 Ubuntu kernel: [ 24.904200] mei_me 0000:00:03.0: init hw failure.
Jan 23 13:54:08 Ubuntu kernel: [ 24.904473] mei_me 0000:00:03.0: initialization failed.
Jan 23 13:54:08 Ubuntu kernel: [ 25.665152] CIFS VFS: Error connecting to socket. Aborting operation.
Jan 23 13:54:08 Ubuntu kernel: [ 25.665285] CIFS VFS: cifs_mount failed w/return code = -101
Jan 23 13:54:08 Ubuntu kernel: [ 25.667549] CIFS VFS: Error connecting to socket. Aborting operation.
Jan 23 13:54:08 Ubuntu kernel: [ 25.667683] CIFS VFS: cifs_mount failed w/return code = -101
Jan 23 13:54:08 Ubuntu kernel: [ 25.668441] CIFS VFS: Error connecting to socket. Aborting operation.
Jan 23 13:54:08 Ubuntu kernel: [ 25.668588] CIFS VFS: cifs_mount failed w/return code = -101
Thanks for reading.