General :: Automate Computer To Power Off (and On Preferably) Under Certain Circumstances?
Dec 31, 2010
I've been using Windows Home Server as a Backup Appliance, Media Server and Share Server at home for some time. I decided it was costing me allot of juice so very early on added the "Lights Out" add-on to ensure it was only running as and when needed.
I'm now looking to switch to a Linux based server and I'm looking for a similar tool/set of tools for advanced power management.
Now the question;
Anyone got any all-in-one suggestions (i.e with client parts for both Windows and Linux and a server part for the Linux server), or can anyone simply verify that I'll need to set-up all the individual bits for this myself separately?
View 4 Replies
ADVERTISEMENT
Jul 9, 2010
Hopefully a simple question but one I have had a hard time finding:I am using cron-apt to automate updates as follows:
Code:
graham@graham-desktop:~$ sudo cat /etc/cron.d/cron-apt
#
[code]....
View 3 Replies
View Related
Aug 17, 2011
how could i automate the audit of computer's hardwares present in network?
View 1 Replies
View Related
Feb 25, 2010
On the ReadyNAS Duo, a RAID resync synchronizes the entire contents of one disk to another. It's a slow operation. So it's not something to be done lightly. By default, it is done whenever the unit is shut down uncleanly (generally the result of a hang or power interruption). It's something that can be disabled, though, such that a resync would be done only when manually requested. The authors of the software RAID driver in Linux (called "md") came up with a nice solution to the problem of slow RAID resyncs: the md driver allows you to assign a write intent bitmap to an md device, and where it's stored is configurable (the default is to store it on the md device in question, in the superblock). So when the array goes down unexpectedly (e.g., in a power outage), only the blocks that the md device was going to write will actually be resynced.
It's sort of like a journal for the md device itself. Now, the ReadyNAS Duo doesn't seem to use Linux md at all for implementing the RAID volume, but it does have an option to disable automatic resync in the event of an improper shutdown. And that leads to my question: how necessary is it to do a resync in such an event? If the Duo uses the same method as the Linux md driver, then obviously such a resync would rarely be necessary. But if it doesn't, then it would be the equivalent of using the md driver without a write-intent bitmap, and a resync would almost certainly be necessary in the event of an improper shutdown. Does the Duo (and maybe other units) use the equivalent of a write intent bitmap for RAID write operations?
View 1 Replies
View Related
Dec 31, 2010
How to setup LXDE (a linux desktop environment) to hibernate a PC after the power button on the computer is pressed?
View 1 Replies
View Related
Jul 20, 2010
My Goal: I'm migrating data from the OpenSUSE server to the 2008 Storage Server. The idea is that all the data will reside on the 2008 Storage Server in an NFS share which will be mounted to the OpenSUSE server in the same location in which the data sat in initially.
I'd like this to be completely transparent to everyday use -- all programs designed to interact from a few other servers / computers will still work without modification, and, more importantly, all file permissions can remain the same. As far as I've seen the SMB mounting doesn't full preserve the *nix file permissions. I'm hoping the NFS mount will, but please tell me if I'm wrong. SMB is so much more straight-forward and already working. I should also note speed is a giant plus for NFS.
The Players:
Windows Server 2003 - The Active Directory server
Windows Storage Server 2008 - The new file server
OpenSUSE 10.3 - The workhorse server
I have no control over the operating system choice. I have no control over the AD server. I have limited, intermittent access to the person who does have full control of the AD server. I have full control over the file server and the workhorse server.
What I've done: The Storage Server is running Services for Network File System (NFS). It has a 6.5ish TB RAID partition configured for NFS and Samba/CIFS sharing which is used for the data storage. The Samba/CIFS share is mountable and accessible, but I haven't found a way to maintain proper user permissions on the files. When I connect the owner and group for every file is root:root, which led me to NFS in hopes this would fix the problem.
The AD server admin has installed Services for Unix, and we imported the OpenSUSE passwd and group file. Either this didn't work, or it take a bit more configuration. Tomorrow morning we're going to take a deeper look into the SFU configuration with the AD.
Right now I can mount the NFS share on the OpenSUSE under the root account:
Command results truncated to what I think is relevant info. Ask if you need more.
Code:
My Problems:
I'm hoping the "Permission denied" error is solely because the UID and GID mappings are incorrect. I have, however, tried to create an NFS share with full permissions to "Everyone" and anonymous access, and I get the same results.
Also I've run into another roadblock. Why do non-root accounts fail to execute the mount /mnt/datadir command?
Code:
AFAIK 1048 is not a restricted port, so regular users should have access to bind to the port. I also have a Gentoo machine where regular users are allowed to execute the command. The 'mount' command shows that the NFS share was mounted with the username executing the command too.
Server NFS Config:
Code:
The following are the settings on localhost
The above was written yesterday and not posted in hopes I could solve the problem this morning. I failed.
Update: The domain admin installed an NIS server on the AD server. I installed an NIS server on a Gentoo Linux box. They weren't able to communicate. The Linux box thought the Windows NIS service wasn't running and Windows couldn't find the Linux machine. NIS led to a dead-end right about there. I also tried to manually link the user accounts to UNIX UIDs via the AD user properties window to no avail.
View 3 Replies
View Related
Feb 20, 2010
I need a linux distro who provides the following:1) Has an partitioner who can resize fat , ntfs ,ext* , .....filesystems.2) Has an excellent hardware support3) The installer can install console or graphic mode 4) The updating can be done via console5) In console can be configured internet via: static IP , DHCP , PPPOE and preferably to have support for USB modems.
View 8 Replies
View Related
Mar 29, 2011
I'm administrator for a bunch of servers, all RHEL5.5, with our specific software. Since this is a cooperation with one of the largest hardware vendors in the world they also have root access which for 'political' reasons I cannot change or keep from them. Now, I installed rootsh on a test server and it works fine when called the normal way (sudo rootsh). However I want to invoke the rootsh also when the regular user uses:
Code:
sudo su
sudo su -
su -
su
I 'moved' su to another location and created a symbolic link named su to rootsh which works fine when executing:
Code:
sudo su --
but fails on all other calls mentioned above. How I can proceed?
View 9 Replies
View Related
Mar 30, 2010
This computer freezes, requiring power-off, somewhere between 2 seconds and 2 hours after boot-up, most every time I use it. Sometimes I've had to power-down perhaps six times in 10 minutes. When it freezes I have a movable mouse-pointer that can select nothing. Right-
click does not operate. I don't seem able to isolate a single cause. I ran a RAM check with no errors showing. Matters not which version of Ubuntu I choose when booting. I've replaced mouse and keyboard. Only running 256 meg of ram and do plan to
View 9 Replies
View Related
May 16, 2010
just recently I upgraded from 9.10 to 10.04. Now whenever I shut down computer gets stuck after umounting disks etc, so I have to shut down using power button, similar to this error[URL]
View 2 Replies
View Related
May 23, 2010
In 8.04 even a non-power user could turn off the computer even if other people was logged in, not anymore. How do I enable it again. I don't want to let all my user be power-users, but I will let them turn off the computer locally even if someone else is logged in.
View 4 Replies
View Related
Mar 1, 2011
I have critical battery, it's always on 1%. Today the power went down so i tried to shutdown computer. I clicked on Shutdown, it asked me if i am sure and that was it. But when power was on i tried to turn on computer but get error. It's blanc screen with some text. Here is text at the end:
[code]...
What to do to fix this?
View 4 Replies
View Related
Dec 15, 2009
This OS is has been cloned from the drive of another computer. The motherboard is now an SIS730. I assume the hardware is sufficiently different to prevent the OS from shutting down the computer.How do I fix this? ---without installing, if possible.
View 2 Replies
View Related
Jul 8, 2009
I have a Genius K627 Keyboard with Power, Sleep and Wake buttons. ACPI is unsupported on my computer, but it can turn off its power supply when the system halts (PM is ok). I would like to bind the Power key on the keyboard to execute the /sbin/halt command. What I already know is that I can specify an event in inittab (kbrequest) that would execute a command. What I don't know how I can make my system receive pressing Power button as a kbrequest. The scancodes of Power button on the keyboard (by showkey): 0x74 0xf4
This is the line I was talking about in my inittab:
Code:
ce:12345:kbrequest:/sbin/halt
I think I should edit /etc/console/boottime.kmap.gz but don't know how I could insert this scancode into it.
View 8 Replies
View Related
Oct 14, 2010
I'm using a Kubuntu 10.10 Client Machine which mounts NFS shares form a Kubuntu 10.04 Server.The server seems to work smoothly but the client causes huge problems since I upgraded to 10.10 (before I used 8.04 which worked withouth problems).My problems are, that in various situations the use of the NFS shares causes the Client to freeze completely!Examples:Unzipping a big file from the NFS server to the NFS server via the client -> always immediate freeze (after some seconds)Transfering big files from one NFS folder to another -> mostly immediate freeze (after some seconds)Viewing a movie which is on the NFS server -> sometimes freeze after variably amounts of timeLetting the Strigi-Indexer index files on the NFS shares -> mostly freeze after a short whileIt seems that everything that puts some load (high data transfer) on NFS immediatly locks up the whole client.
View 5 Replies
View Related
Aug 17, 2010
i have 2 installations of ubuntu 9.10KK on 2 different computers. Both ahve cpu clocks of 3+ Gigahertz, 64 Bits, and both have 2 gigs of ram. So, my secondary laptop is just sitting there, not being used, and i wanna put it to good use considering that its still a like new laptop.
How to use it was to make it a server farm (or whatever its called) where the head computer takes the slaves power for itself. I know this is possible (i.e their called super computers but its just 2 high power laptops. I googled around and searched on the forums too and found nothing.
View 7 Replies
View Related
Jun 7, 2011
I currently have a setup which allows me to connect to all computers on my home network via SSH and RSA keys. I'm very security-conscious, so all of my keys are passphrase protected. I'd like to essentially set something up where I'm running Unison on a cron job to back up to a file server on my network, which we'll call timmy. I've noticed that the first time I try to use a key on my Ubuntu laptop teeks, I get a dialog which pops up asking me to type in my key passphrase. I've heard that for servers needing to make automated backups like this that one should use ssh-agent to ask for the key passphrase on login/server start. How can I set this up on teeks?
I'd essentially like to have the following happen:When I boot and come into the OS, prompt visually for the passphrase as is done when I first use a key.If I SSH into this computer (as it's internet-facing) and I haven't provided the SSH passphrase yet, then prompt for it. (Sometimes, I might need to remotely reboot the machine over SSH, so I'll be SSH'ing into it after it reboots and I'd like to be able to authenticate the key without having to VNC in and do it manually.)
View 2 Replies
View Related
Feb 10, 2011
I'd like to get the information about automatization of the tasks in Linux, more specifically in Fedora with minimal installation (without graphical interface and so on).The application (developed in C) needs to be started automatically when the computer is initialized. I've read about cron but I guess it's not a solution in this case because whenever computer starts the application must run once.I also have read about the/etc/ rc.local file but I made some tests changing it and they didn't work, the computer starts asking me the login and password but nothing run after that.The inittab was the same. In this way, someone know how to initialize an application developed in C when the computer starts?
View 6 Replies
View Related
May 24, 2011
I would like to automate a definition process. I have 11,581 to define. :|
I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.
The word list has one word per line.
Python script?
Bash?
Perl?
Its an interesting project but I cant seem to figure it out. Lack of programming skills.
View 2 Replies
View Related
Feb 25, 2010
I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.
View 1 Replies
View Related
Mar 29, 2011
I need to tar this logs, but i dont how to make it simplier to me. Everyday there are created this five logs. I need to make five tar files from every day from this files at the end of the month
For example
Till now i have tar it manualy (copied every file)
View 2 Replies
View Related
Aug 20, 2010
It seems that the updgrade that I made in my ubuntu 9.10 to 10.04 turned to be a downgrade... I am having some glitches here!
First, started off that I couldn't turn off or reset my computer using the power buttons, it simply logs out.
I found a similar problem in a thread and I got this solution:
Code:
Then I forced it to shut off with the command: sudo poweroff
When I turned it on again my icons like Trash bin, Netowrk meter, Keyboard layout have disappeared from my panels...
And it doesn't shut off anymore (it did for a couple times only).
View 2 Replies
View Related
Oct 16, 2010
I need to source the my /home/me/.bashrc file every time I "su -" to root. Is there any way to automate this? I cannot edit any thing in the root's environment as it is shared by people.
View 7 Replies
View Related
Mar 11, 2010
I need to ftp some files nightly from my linux box to an arbituary ftp server not controlled by me.
The ftp server admin has granted me an account for the purpose, but do not wish me to store the plain username or password in any script files for security reasons. How can I do that?
the wrong way would be:
Code:
$ cat my_script
open server_address
user plane_ftp_username plane_ftp_password
put a.txt
[Code].....
View 8 Replies
View Related
Apr 19, 2010
I have a heavily used file server that I want to restart, then if it requires e2fsck's on any volume to run them after it restarts. The only problem is that the server is rarely rebooted, and they said it might kernel panic because its been so long. I've heard there's a way to have it go past the kernel panic if it does happen, but I'm not sure how to do that or the other stuff.If it was a Windows server, I would schedule a shutdown with the force switch, and have the chkdsk's already scheduled for each volume on reboot. But for RHEL, I really don't know.I'm hoping this can be done, so that way I can have it kick off at say 7am, then when I get in at 8am it will probably be near the end of the e2fsck's so I can see what's going on.
View 11 Replies
View Related
Feb 9, 2011
i want to automate sudo su - user command from a script...it will then ask for a password...how do i automate this?
View 3 Replies
View Related
Sep 30, 2009
Description: I am a newly appointed system engineer taking care of linux servers. We have a new set of data coming in which need below configuration: How to do a script with function?:
for files with ".txt" in sm
copy each of the files to folder : sm1 and sm2 (log every copy)
if succesful:
remove original
log into the log file
if not successful: (not successful copying 1 particular file to all the folders)
retain and retry
log into the log file
mail out the admin with that particular file name
I have already do try a bit:
cd /export/home/
for dir in sm1 sm2; do
cp -p sm/*.txt $dir/
done
Is my starting right? How to do the rest parts?
View 6 Replies
View Related
Jul 30, 2010
I've inherited the following Virtual Machine scenario and am new to Linux Administration and Patch Management. The Host Operating System is Windows 2003 Enterprise, which has VMware Server 2.0.2 installed. Under the VMware Server 2.0.2 I have a Ubuntu 32-bit OS web server running Apache2 Web Services. When I log onto the Ubuntu server (9.10 32-bit) I see the following two lines just above the new mail/last logon lines.
85 packages can be updated
55 updates are security updates
I would like to see at least a summary of each update and its urgency so I can notify the various developers/server owners to get their input regarding whether we should or should not apply that particular update to the server. We apply the patches in our test/dev environment first then once vetted there we roll them out to our production servers. What I am looking for is a way to automate the gathering of the information and once approval has been received automating the actual patching process so that I do not have to manually perform the apt-get process for each separate package needed/approved.
Ideally I would like a recommendation for a GUI based package to manage this process and that is capable of generating the appropriate reports for the 'powers that be' regarding the current security/patch management environment. For proof of concept I would like a free version that is not hamstrung in functionality but is not too costly to procure the production version with no limitations.
View 4 Replies
View Related
Jul 22, 2010
I'm not that familiar with sed and awk in order to be able to solve this problem on my own, so I'm calling on you for a bit of assistance. I'm writing a Nagios plugin to check our Oracle tablespaces and the output is given in one line like this: 1.04007771 TEMP 0 UNDOTBS1 .005340579 USERS 0 7 rows selected. I've been playing around with sed like below to delete the obsolete info and change every second space into a newline:
[code]...
how many tablespaces there are so I'd have to check all databases and 'hardcode' the tablespaces in my script. Is there any way to 'automate' this knowing that 'rows selected' preceded by a number is always the last line and using a sort of counter to auto-adjust the number to put in the -e 's/ / /2' part?
View 7 Replies
View Related
Jul 1, 2011
I can't get vlc to decode video via my graphics, 720p uses about 80% of cpu and 1080p uses 125% (then crashes). I believe I have correctly installed the xvba driver and I think I just need to setup vlc correctly but I am not sure of this. I have read that people have had this board running full hd with about 15% cpu usage so I am sure it has something to do with the way I have things set.I am running a
MSI E350IA E45 (amd / ati 6310)
4gb ddr3 (running at 1333mhz)
Ubuntu 11.04 64bit
View 3 Replies
View Related