Hi,
I searched for a way to power down my box at a predefined time including
switching off the power from the UPS.
"shutdown -h time" handles the shutdown of the system nicely, but to power
down the UPS some changes have to be done:
/etc/sysconfig/shutdown :
HALT_POWERDOWN_INSERT="/etc/init.d/apcupsd powerdown"
"try-powerdown" will only power down the UPS if it is running on battery at
this time.
The script /etc/init.d/apcupsd from apcupsd-3.14.6-8.1 contains a wrong path
for the apcupsd-lite binary, it should be
APCUPSD_LITE=/sbin/apcupsd-lite
instead of
APCUPSD_LITE=/usr/sbin/apcupsd-lite
Additionally, the action performed in case of "powerdown)" has to be changed:
it should perform action "--power-off" instead of "--killpower".
"--killpower" only takes effect if the UPS is running on battery at this time.
Following patch can apply the changes:
--- apcupsd 2010-07-05 18:34:19.000000000 +0200
+++ apcupsd_my 2010-12-18 12:29:01.741526103 +0100
@@ -26,7 +26,7 @@
### END INIT INFO
APCUPSD=/usr/sbin/apcupsd
-APCUPSD_LITE=/usr/sbin/apcupsd-lite
+APCUPSD_LITE=/sbin/apcupsd-lite
test -x $APCUPSD -o -x $APCUPSD_LITE || exit 5
# Shell functions sourced from /etc/rc.status:
@@ -138,7 +138,7 @@
## Special command: Instruct UPS to shutdown.
sync &
echo -n "Instructing UPS to powerdown "
- $APCUPSD_LITE --killpower >/dev/null 2>&1 || rc_failed
+ $APCUPSD_LITE --power-off >/dev/null 2>&1 || rc_failed
rc_status -v
;;
try-powerdown)
Dieter
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
Guys (Lars),
I'm building an updated samba (3.5.6) for an old 10.3 box (to run in standalone
mode) and wanted to make sure I got the configure options as close as possible
to the spec file options. I think I have the basic options correct, but want to
check if there are any additional options I should set/change to make sure that
there are no conflicts with any other packages that may rely on the samba files
being in any one particular place. I don't think there is any way to build an
rpm from the spec due to non-existent dependency packages.
From picking through the last 10.3 spec from discontinued/update it looks like
the following will work:
./configure \
--prefix=/usr \
--localstatedir=/var \
--docdir=/usr/share/doc/packages \
--with-privatedir=/etc/samba \
--with-lockdir=/var/lib/samba \
--with-logfilebase=/var/log/samba \
--with-statedir=/var/run/samba \
--with-swatdir=/usr/share/samba \
--with-configdir=/etc/samba \
--enable-cups \
--with-libsmbclient \
--with-winbind
Anybody see any missing or wrong options? Thanks.
--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
Connected an iPod to USB port on OpenSUSE 11.3 and nothing shows up.
Anyone know of software which will "see" the iPod directories? Is this
even possible.
Thanks,
Terry
--
openSUSE 11.3 -- Kernel 2.6.34 -- GNU/Linux -- Sun 12/26/10
21:10pm up 3 days 11:52, 3 users, load average: 0.11, 0.18, 0.23
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
Dear List,
I have duplicated my hard disk using "dd", including the boot partition to
another hard disk (a sata drive in a usb box). Now I am trying to boot from
this duplicated disk, but nothing happens.. grub does not start at all.
I googled around and found these two posts:
http://www.idlecool.net/how-to-clone-the-linux-root-file-system-and-set-up-…http://stackoverflow.com/questions/247030/
Based on those, I tried the following:
1) My current (original) root partition is "/dev/sda4" (mounted at "/")
2) The root partition at the (duplicated) usb drive is "/dev/sdb4",
mounted at "/media/disk-17"
3) I login as the root and give the commands
mount --bind /dev /media/disk-17/dev
mount --bind /proc /media/disk-17/proc
4) Then I give the command
chroot /media/disk-17
If I have understood correctly, now "/" will be "/media/disk-17" = "/dev/sdb4"
But the system sees "/" as "/dev/sda4"
Next I type:
grub-install /dev/sda
And get the following output:
--------------------------------
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0,3) (hd0,3)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1
(hd0,3) /boot/grub/stage2 p /boot/grub/menu.lst "... failed
Error 15: File not found
grub> quit
------------------------------------------
What might be the problem here..?
Regards,
Sampsa
"Growth for the sake of growth is the ideology of a cancer cell."
-- Edward Abbey
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
I have been using a local dictionary, until a few day ago, with no
problems. The dictionary can be reached by a web browser pointing at
http://localhost:9000.
Recently, probably following the installation of a mysql-related package,
my dictionary cannot be reached any more. Here is the message i get:
Can't connect to MySQL server on '127.0.0.1' (111)
I am using kde 4.4.4 opensuse 11.3
Any hints to solve my problem?
thank you
-----p
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Guys,
Updated my 11.3 i586 box and firefox crashed in both kde3 and gnome
after updates. I uninstalled kde4-integration and it is still crashing.
In gnome, it locks the whole desktop requiring a hard-reset of the box.
The crash reports are:
20:34 zephyr:~/.mozilla/firefox/Crash Reports/submitted> for i in *; do
echo $i; cat $i; done
bp-0aaf7807-8fc4-46be-8dc3-32c162101229.txt
Crash ID: bp-0aaf7807-8fc4-46be-8dc3-32c162101229
bp-15f91019-5328-45c0-82f2-b35192101229.txt
Crash ID: bp-15f91019-5328-45c0-82f2-b35192101229
bp-f4389959-5ec8-47ae-a642-364202101229.txt
Crash ID: bp-f4389959-5ec8-47ae-a642-364202101229
Installed packages:
20:34 zephyr:~/.mozilla/firefox/Crash Reports/submitted> rpm -qa | grep
- -i moz | sort
MozillaFirefox-3.6.13-0.2.1.i586
MozillaFirefox-branding-openSUSE-3.5-16.2.i586
MozillaFirefox-theme-oxygen-1.4.92-4.1.noarch
MozillaFirefox-translations-common-3.6.13-0.2.1.i586
MozillaThunderbird-3.0.11-0.5.1.i586
ca-certificates-mozilla-1.62-2.3.noarch
libproxy0-pacrunner-mozjs-0.3.1-2.2.i586
libproxy1-pacrunner-mozjs-0.4.3-1.3.i586
mozilla-js192-1.9.2.13-0.2.1.i586
mozilla-nspr-4.8.6-1.1.1.i586
mozilla-nspr-devel-4.8.6-1.1.1.i586
mozilla-nss-3.12.8-1.1.1.i586
mozilla-nss-certs-3.12.8-1.1.1.i586
mozilla-nss-devel-3.12.8-1.1.1.i586
mozilla-xulrunner191-1.9.1.16-0.2.1.i586
mozilla-xulrunner191-devel-1.9.1.16-0.2.1.i586
mozilla-xulrunner191-gnomevfs-1.9.1.16-0.2.1.i586
mozilla-xulrunner191-translations-common-1.9.1.16-0.2.1.i586
mozilla-xulrunner192-1.9.2.13-0.2.1.i586
mozilla-xulrunner192-devel-1.9.2.13-0.2.1.i586
mozilla-xulrunner192-gnome-1.9.2.13-0.2.1.i586
mozilla-xulrunner192-translations-common-1.9.2.13-0.2.1.i586
Anybody else see this? Any suggestions?
tbird is working fine...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iEYEARECAAYFAk0b8PUACgkQRppWw8ZWD4GFZgCgxcJ5nd7Ol/DMEdHukpfTZdt0
4c8AoLNtXci9LMoTopGCI6MQ2OYGMb4P
=Cf0m
-----END PGP SIGNATURE-----
Guys,
This is nothing special, but it was a clever approach to managing your .bashrc
over multiple boxes with different user configs for root, you, and other users.
The basic approach is just to make use of includes with a couple of conditional
checks on $UID or $USER to set the environment accordingly. Here is what I did
(no doubt there are much better ways):
The .bashrc skeleton:
test -s ~/.alias && . ~/.alias || true
## functions & general aliases
. /home/admin/cnf/bashrc-gen.inc
## exports
. /home/admin/cnf/bashrc-exp.inc
## aliases for builtins
. /home/admin/cnf/bashrc-bins.inc
## general aliases
. /home/admin/cnf/bashrc-gen.inc
## Application Aliases
. /home/admin/cnf/bashrc-apps.inc
## Directory Aliases
. /home/admin/cnf/bashrc-dirs.inc
## zypper Aliases
. /home/admin/cnf/bashrc-zyp.inc
<snip>
The directory holding the include files:
11:06 phoenix:~> l1 /home/admin/cnf
bashrc-apps.inc
bashrc-bins.inc
bashrc-dirs.inc
bashrc-exp.inc
bashrc-gen.inc
bashrc-zyp.inc
bashrc-ssh.inc
Then the contents of the various files (just 2 examples):
11:08 phoenix:~> cat /home/admin/cnf/bashrc-exp.inc
## exports
[[ $UID -eq 0 ]] && {
# root prompt
export PS1="\[\e[1;34m\][\[\e[1;31m\]\A
\[\e[1;34m\]\h\[\e[0;31m\]:\w\[\e[1;34m\]] # \[\e[0m\]"
} || {
# user prompt
export PS1="\[\e[0;37m\]\A\[\e[1;34m\] \[\e[1;34m\]\h:\w> \[\e[0m\]"
}
export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin
export HISTFILESIZE=15000
export HISTSIZE=15000
11:09 phoenix:~> cat /home/admin/cnf/bashrc-gen.inc
## general alias functions
wgnc()
{
if [[ -z $1 ]]; then
echo -e "\n Usage: wg <filename>\t\t(runs wget --no-check-certificate
--progress=bar)\n"
else
wget --no-check-certificate --progress=bar $1
fi
}
showhist() {
[[ -z $1 ]] && { echo -e "\nUsage: hist <search term>\n"; return 1; }
history | grep $1
return 0
}
mkdircd() {
[[ -z $1 ]] && { echo -e "\nUsage: mdcd <newdir>\n"; return 1; }
mkdir -p $1 && cd $1 || { echo -e "\n Failed to make or change to directory:
$1\n"; return 1; }
return 0
}
perledinln() {
if [[ ! -f $2 ]]; then
echo -e "\n Usage ${0##*/} REGEX filename\n\n Will edit the file
in-place based on REGEX using perl\n"
else
REGEX=$1
INFILE=$2
perl -p -i -e $REGEX $INFILE
fi
}
## user specific aliases
[[ $UID -eq 0 ]] && {
alias tmsg='tail -n150 /var/log/messages'
alias tmsgf='tailf /var/log/messages'
#<snip>
}
[[ $USER == david ]] && {
alias tmsg='sudo tail -n150 /var/log/messages'
alias tmsgf='sudo tailf /var/log/messages'
#<snip>
}
## general aliases
alias difscl='diff -y --suppress-common-lines'
alias hist='showhist'
alias mdcd='mkdircd'
alias ppie='perledinln'
alias wg='wgnc' #requires 1 input
Basically, the setup allows the use of 1 .bashrc file among all boxes and users
and all you have to remember to do is rsync the /home/admin/cnf dir between
boxes (or where ever you would put that kind of stuff on your box) Then when
changes are needed, you simply edit a singe ../cnf/bashrc-xxx.inc file and rsync
the change to hosts and not have to edit 50 individual bashrc files.
I'm open if there are other ways or setup tweaks that would make this easier.
Also, let me know if you see any red flags. (I'm not concerned about users being
able to 'see' what the root bashrc includes - the users I have couldn't even
read the thing) Enjoy.
--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
I have never used any sound input devices, now I find that things are
greyed out for inputs on my sound card.
Yast lists it as MCP51 High Def Audio
Hardware info lists driver as snd_hda_intel , Vendor Nvidia.
System is a Dell Dimension C521, Athalon64x2, 6g ram, os11.3-64.
I installed Skype and it seems to be working if I could get my mic to
function, get audio from the other end.
On the other hand, is there some functional sound fob I could use???
Thanks, Mike..
--- Sent from my SuseLinux Desktop. ---
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
Ever since I did an in-place upgrade to OpenSUSE 11.3 I've been having
problems with very (more than 5 minutes) boot times.
It only seems to happen about 1 out of every 3 times but never the
less it's very annoying.
By putting top into vty9 at boot time I was able to figure out that
preload is what is causing this delay. Disk is grinding away and
everything is halted waiting for i/o. Something changed drastically
with preload in 11.3 and I now need to either fix it or remove it.
Preload no longer has a /etc/preload.d directory and I can't find any
documentation on how the new version of preload works under 11.3. Can
anyone point me in the right direction?
--
John Lange
www.johnlange.ca
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org
I have an odd problem/difficulty with initiating bash and the condition
exists for all users and root, including a new user.
initiating bash in a terminal after a noticable delay provides:
<quote>
bash: have: command not found
pat@wahoo:~>
</quote>
all cl invocations show this except:
bash --norc
bash --noprofile --login
sh
So I moved all the /etc/bash* files/directories one at a time until I
localized the problem to /etc/bash.bashrc
available to view: http://wahoo.no-ip.org/~pat/bash.bashrc
which belongs to: aaa_base-11.2-43.46.1.x86_64
from: http://download.opensuse.org/update/11.2/
downgrading to: aaa_base-11.2-43.45.1.x86_64
from: http://download.opensuse.org/distribution/11.2/repo/oss
provides the identical file, /etc/bash.bashrc, an no relief :^(
trouble-shooting suggestions and/or possible solutions welcomed with open
hands. :^)
tks,
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org