I had been running Desktop Ubuntu 14 on the machine in question until recently when I built a new computer.
I decided to reformat the old machine and install Server Ubuntu 14.04.3 to run it headless.
Still pretty new to running everything through a terminal window so I don't understand everything quite yet. I didn't realize how handy the Gui can be nor how powerful the terminal can be..
Having a few issues since the reinstall.
proftpd, and transmission-daemon
both have to be manually restarted after a reboot
otherwise FTP client refuses connection
and transmission-daemon remote doesn't work
Code:
Results of service --status-all right after boot up
james@Beast:~$ service --status-all
[ + ] acpid
[ - ] apparmor
[ ? ] apport
[ + ] atd
[ ? ] console-setup
[ + ] cron
[ - ] dbus
[ ? ] dns-clean
[ + ] friendly-recovery
[ - ] grub-common
[ ? ] irqbalance
[ ? ] killprocs
[ ? ] kmod
[ ? ] networking
[ ? ] ondemand
[ ? ] pppd-dns
[ - ] procps
[ + ] proftpd
[ ? ] rc.local
[ + ] resolvconf
[ - ] rsync
[ + ] rsyslog
[ ? ] screen-cleanup
[ ? ] sendsigs
[ - ] sphinxsearch
[ - ] ssh
[ - ] sudo
[ + ] transmission-daemon
[ - ] udev
[ ? ] umountfs
[ ? ] umountnfs.sh
[ ? ] umountroot
[ - ] unattended-upgrades
[ - ] urandom
[ ? ] webmin
[ - ] x11-common
and more right after reboot
james@Beast:~$ sudo service proftpd status
[sudo] password for james:
ProFTPD is started in standalone mode, currently running.
james@Beast:~$ sudo service transmission-daemon status
transmission-daemon start/running, process 506
They both always show a [+]
Tried to paste the FileZilla log showing connection refused.. but it actually worked this time..
Transmission web interface shows page can not be displaced
and Windows Transmission Remote GUI says Connection Refused
Code:
james@Beast:~$ sudo service transmission-daemon start
start: Job is already running: transmission-daemon
james@Beast:~$ sudo service transmission-daemon restart
transmission-daemon stop/waiting
transmission-daemon start/running, process 1391
is required to get the web interface/remote working
I do not know if/where a boot log file would be, but if you need it just let me know where it is and I will paste it.
No idea how to fix those, but I am guessing they would be under one category..
This being under a different category. The other problem I am having is mounting a NAS at boot
It is currently being mounted to /media/nastysid using the below in fstab, which I found the basics of that via Google
Code:
//192.168.1.102/share /media/nastysid cifs username=guest,password=,iocharset=utf8 0 0
I can "cp" from the NAS to the Ubuntu machine but not "cp" to the NAS from the Ubuntu machine unless I use "sudo," which is causing problems with some scripts to copy my downloads to the NAS
Code:
james@Beast:~$ cp SM-server.sh /media/nastysid/SM-server.sh
cp: cannot create regular file ‘/media/nastysid/SM-server.sh’: Permission denied
james@Beast:~$ sudo cp SM-server.sh /media/nastysid/SM-server.sh
james@Beast:~$ cd /media/nastysid
james@Beast:/media/nastysid$ cp SM-server.sh /home/james/server.sh
james@Beast:/media/nastysid$
Random bonus question
I use the computer to host a Star Made server now for a myself and a few buddies..
Is there a way to set it up where upon boot up it would automatically create a new screen and execute the server script on the new virtual screen? Like...
Code:
screen -R starmade
./SM-server.sh
and at shutdown send the Starmade server shutdown command to that screen and pause allowing time for it to shutdown, say 20-30 seconds, then resume system shutdown/reboot?
also for ease of use with scripts everything is running as my username instead of the defaults like a proftpd user, transmission-daemon user, etc.. as I found out that can also cause issues with scripts because of owning the files.
I tried to provide as much information as possible, if I have left anything out just let me know what (and the command) and I will post it as quick as I can.
Thanks!
Bookmarks