I am hosting a home server to make developing stuff easier. And because I don't need my server all day and night I automatically start and shut it down. For starting I use Wake-On-Lan (etherwake) and to shut it down I am using my RaspberryPi. Finally I have a problem doing that: When I use WOL to start my home server it works perfect. But when I try to shut it down, I have to do that twice. After the first shutdown it restarts automatically even when no WOL-Package is sent.
I am using Debian 8.1 Mate as os.
My stop script is:
Code: Select allsshpass -p<password> ssh root@server.home.lan shutdown -h now
I'm making a clever backupsystem based on nfs and rsync.Basically, I export folders from the clients to a backup server, and the backup server processes them and makes backups.The backupserver mounts the folders during startup, but if a client restarts, then I guess it would unmount from my backupserver, right?What can I do to make it automount the folder whenever the client gets back up again?All the clients are static servers without much interferance, without any risk of external people tampering with them and without internet access. Security is not an issue, and any kind of shady compromisingcripts will do.However, installing software on them is tricky as I have to download packet for packet and transfer them via usb manually.
I'm currently using ubuntu desktop 9.10 (without desktop - I've removed packages) as OS on my server.But there's going on some strange thing ... There are about 8 users, and the thing is they many times user rar or some other disk-demanding programs. What I've noticed is that sometimes server will go with load over 20 (I know that's not good ...) and it will come down in few minutes and everything is OK, but sometimes it just restarts itself. I would like to disable that so it won't restart
Recently, I updated the kernel to the latest version and also installed Ruby and the Passenger module for Apache. The server was fine for a few days.However, today, it's been restarting randomly (usually a minute after I can log in).I tried booting with recover mode so I could view the logs for a longer period of time, but that caused it to restart before even allowing me to log in. Now, all boot modes will just cause the server to restart right after the GRUB messages appear.Our server setup complicates things. We have a RAID-1 mirroring for the /boot partition and a RAID-5 (software) for the / partition
I`m using Ubuntu Server 10.10. The system randomly restarts each day.Here are the logs: http://paste2.org/p/1499309Everything seems normal except that UDP: short packet thingy but even Google didn`t help me to find what`s thatBy the way, I think reboots started after I configured this PC as a gateway between internet and my local network
I installed latest stable debian lenny. However when I want to switch to a virtual console by pressing Alt+Ctrl+F(1-6) the X server is restarted and I get the gdm login screen. When I kill gdm, virtual console switching works fine. How to switch a to a terminal and return to my X session by pressing Alt+Ctrl+F7?
If the server restarts, does the information in iptables get lost? I have seen a number of pages where people recommend readding lines or creating bash scripts to get it to work again. What about files like squid.conf, ncsa_auth files, etc.?
Connecting with PuTTy works fine with my public/private keys. But why does sshd start and then restart twice when booting? I tried looking in the logfiles under /var/log/ for anything with ssh/sshd but nothing shows up.
I want my server to automatically shutdown at 23:59 and startup at 8:00. The startup is handled through by bios but the shutdown is to be managed through cron. I thought I had this working, I actually swear I had it working because I thought the uptime command showed the appropriate uptime. I happened to be up and was streaming a movie from my server when at the time it should've shutdown it actually just restarted. If I run the shutdown -h now command by itself it works well but the scheduled command just restarts the server. Here is the what is shown when I enter crontab -e.
I've set this up as a primary dns server, Bind is the only thing running on it, no gui, etc. I followed the default settings so I have a named.conf, named.conf.options, and named.conf.local file.
I have a log file I labeled as named.log in this path /var/log/bind. I'm using logrotate to rotate out the file.
My problem is that after syslogd restarts in the morning. My named.log file don't start logging info until I restart Bind. The new named.log file gets created and the old files rotate out and compress. All of the other log files in /var/log, syslog, messages, mail, etc, rotate out and compress like they should, after syslogd restarts.
I know that I could restart Bind using Cron but I shouldn't have to.
Below are snips of the files I'm using.
I named this one 'bind' and it's in the directory /etc/logrotate.d
I have a problem with running Apache web server. I think my problem is either I can not get httpd to load automatically or it's being blocked from external unless I'm logged in, don't know which. Or, I'm completely off base. Either way, being logged in solves the problem. Now I just need to fix it. This is a brand new server running latest apache and fedora 10 (all fully patched). Loaded from source to all default (non RPM directories - apache is /usr/local/apache2/... )
I modified the existing /etc/init.d/httpd script and had it point to the /usr/local/apache2 areas.I even did a chkconfig --add httpd and show it is on for run levels 2345.The problem is that when I reboot the server httpd does not load because I can not access the website.However, the minute I login to the server as a user (non-root) it automatically loads httpd and the website works.Then, when I logout, everything is inaccessible again. I even tried to put the commands in the /etc/rc.local script (or wherever it is).Same thing happens.I know this is a simple fix. Just don't know what it is. Is it related to SElinux? However, wouldn't SElinux create access problems regardless of being logged in or not? Once I'm logged in, everything automatically fixes itself (either it's a service load or a rights filter fix).
Remember, everything works perfectly as long as I'm logged in to the server (even as a non-root user). Just the act of logging in makes the web server accessible from to the rest of the world. However, when I logout, the web server is inaccessible.
It's been freezing on me like you wouldn't believe today, and I think it has something to do with the load put on the CPU by various sites. The trouble is, I need to access a few of these sites to do my work. WordPress is one of them. I've had to restart the computer five times via SysRq keys since when these freezes happen, I can't Ctrl-Alt-Backspace out of it (even with zap enabled) and I can't bring up a terminal or Alt-F2 to kill process. I can't switch processes, windows, or anything. Firefox just sits there and laughs at me as I threaten to bust the screen in half.
And the real funny thing is, people actually say this is a better browser than IE. I never had these problems on Windows.What can I do to stop this? Do I just have to switch to another browser?
I'm on Fedora 13 (64 bit) and using tvtime (latest version 1.0.2-13.fc13 installed via yum) which I've managed to get to work with my old WinTV card (bt878 chipset I think) by having it start with its mixer-device set to "hw:0/Line" (the WinTV card outputs the sound via a cable to the Line In socket of the soundcard).
This all works (I can control the volume in tvtime using the left and right keys) except that the volume resets to zero every time I restart. tvtime remembers all my other settings (and the previous volume is even saved in its config file) so I think the issue is related to ALSA/PulseAudio resetting the appropriate mixer (Line In on the internal sound card).
However, I can't find which mixer tvtime is accessing. In 'Sound Preferences', changing the Master Volume affects the sound from tvtime, but none of the other mixers seem to be related to it (and tvtime doesn't appear on the 'Applications' list). I've also tried finding it in alsamixer, which gives me a choice of 'default' (PulseAudio), 'HDA Intel' (the internal sound card) and 'Brooktree Bt878' (the TV capture card) and again the 'Master' and 'Front' mixers do affect the sound, but are not the mixer that tvtime is accessing.
I know this is a very specific and minor thing, but it's a bit annoying seeing as I've got everything else set up near-perfectly.
Or alternately, as a workaround, is there an easy way of creating a script to lanuch tvtime and send some volume up commands (right arrow key) the first time it is run after a restart (but not the times after that)?
I few days ago I bought a mobile broadband, with dongle model Huawei e1820. I have no problem connecting to the internet. The settings in network manager are correct. But when I use the modem with high traffic for a while, like streaming, the speed gets slower and slower until finally the modem shuts down and restarts itself. After the modem restarts, it connects to the internet again, but now the speed is terrible. And if i continue using high traffic it will restart itself in a matter of minutes. But if I plug it out and don't use it for a while, the speed is back to "acceptable". For a while...
I'm using fedora 15, and have also tried it on Ubuntu Natty with the same result. Reinstalled usb_modeswitch. configured usb_modeswitch with all the guides on the web. No results.
Since I have installed fedora 13 in my system (HP pavilion 1506tx) I rtsam getting this error every time my system starts/ restarts. I don't know how to correct this error. Here is the message displayed in Automatic Bug reporting tool
------------[ cut here ]------------ WARNING: at drivers/pci/dmar.c:647 check_zero_address+0x7d/0x191() Hardware name: HP Pavilion dv4 Notebook PC Your BIOS is broken; DMAR reported at address zero! BIOS vendor: Hewlett-Packard; Ver: F.55; Product Version: 039B140000241210100020000 Modules linked in: Pid: 0, comm: swapper Not tainted 2.6.33.5-124.fc13.i686 #1 Call Trace: [<c0436df5>] warn_slowpath_common+0x65/0x7c [<c09d92a3>] ? check_zero_address+0x7d/0x191 [<c0436e40>] warn_slowpath_fmt+0x24/0x27 [<c09d92a3>] check_zero_address+0x7d/0x191 [<c05edc18>] ? acpi_get_table_with_size+0x53/0xa1 [<c09d93c8>] detect_intel_iommu+0x11/0x69 [<c09bd888>] pci_iommu_alloc+0x8/0xa [<c09ca721>] mem_init+0xe/0x245 [<c09b776a>] start_kernel+0x1bf/0x34b [<c09b73e7>] ? unknown_bootoption+0x0/0x18e [<c09b7099>] i386_start_kernel+0x99/0xa0
I have a problem with one a server installed with Debian 3.1, that is restarting almost every day at the same hour, 6,25 AM. Here are the messages obtained with #cerberus:/etc# grep -C 5 restart /var/log/messages
.....missing displays....
.....missing displays....
As I said, there are days when the system is not restarting, but more often it does. For example, on 6th October it didn't restart, but on 7th it did, and the messages are the same.
I don't really have any Linux experience. But I wanted to try it out. Now I'm afraid I did not set this up properly. Grub gives me 3 options:
Fedora (2.6.38.8-32.fc15.x86_64) Fedora (2.6.38.8-26.rc1.fc15.x86_64) Other
When I select <Other> to boot into windows... it starts to try to boot... but then flashes a quick blue screen & restarts. I tried to boot into Window's normal mode, safe mode, and command line... all just restart fdisk -l gives the following:
Have homebrewed machine, was running Fedora 8. Installed Fedora 10.Firestarter firewall manager keeps crashing after about 5 minutes. Restarts, runs for a while, then crashes.Thought it might be an IPTABLES turf war with the native Fedora 10 gui firewall manager, so disabled that at System > Admin > Firewall. Also disabled SElinux. Still have problems.Firestarter firewall seems to work OK, just the gui Firestarter monitor/manager.If anyone has ideas as to cause, I'll take a clue.I could use Firestarter to generate the IPTABLES by ..manually editing the /etc/firestarter/inbound|outbound/allow-.. files and then../etc/init.d/firestarter restartBut I find the events log useful to look at. Anyone know where the events log file is kept in the file system?
I've recently installed Fedora 14 (x86_64) on my Alienware m15x laptop which has a NVIDIA GTX 260m onboard. Now I have followed leigh123linux's guide to installing those drivers on F14. The installation is a success and everything seems to be in working order, until the system randomly logs the user out and/or restarts the session with no warning. The screen goes black and the nvidia logo appears and then its back to the login screen again. This can happen many times with no apparent stop insight. This does not happen with the default F14 drivers that come with the installation, I have tried several re installations of the Fedora OS and several re installations of the NVIDIA driver, i still have the same problems.
I have a problem with one a server installed with Debian 3.1, that is restarting almost every day at the same hour, 6,25 AM. Here are the messages obtained with #cerberus:/etc# grep -C 5 restart /var/log/messages
.....missing displays....
.....missing displays....
.....missing displays....
As I said, there are days when the system is not restarting, but more often it does. For example, on 6th and 8th October it didn't restart, but on 7th it did, and the messages are the same.
I would like to set disclaimer like content in my meral mail server, so that all the users should be able to get that content automatically in their outgoing mails.
I have one server with Jboss and Tomcat installed, I have to start these servers manually everytime I do reboot the server.How I could do to start Jboss and Tomcat automatically, when I do reboot the server?
How can I setup my Linux server to automatically synchronize its server clocks? We need to ensure our server clocks are set to the correct time always.
I recently purchased an Acer Aspire AS5517-5671 laptop [URL] Every time I try to install Fedora 12 it gets to the waiting for hardware to initialize then restarts. (using the F12 DVD) Ive tried both the default installation method and the basic video drive options
Ive successfully install OpenSuSe 11.2 on the laptop with little trouble however. So any idea if there is a work around, or is my laptop not compatible with F12?
I have an appliation which needs apache , I configured apache that works fine. The thing is that every time i start server i need to manully run the apache scripts. How can let is automatically start while the server comes up? this is the sample work around to bring the application brings up.
I am using DNSMASQ on a Debian 5.0.6. server. I configured DNSMASQ as DHCP server, and want it to answer local DNS requests. However, I am unable to use hostnames, and am forced to use IP addresses when pinging, opening a ssh shell on a remote server, opening a remote desktop to a windows system etcedtera.
Because I use DHCP, I can not hard code the ip addresses in the hosts file. How do I configure DNSMASQ so that i can use hostnames for computers who get their IP addresses from DHCP.