Posts: 46
dando
Joined: 08 Mar 2014
#16
The output of cat / etc/sudoers.d/anixers (as root)

Code: Select all

$ su
Password: 
root@antiX1:/home/dando# cat / etc/sudoers.d/antixers
# sudoers file.
 
%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot  

%users ALL=(root) NOPASSWD: /sbin/blkid 

%users ALL=(root) NOPASSWD: /sbin/fdisk.distrib 

%users ALL=(root) NOPASSWD: /usr/bin/ceni 

%users ALL=(root) NOPASSWD: /usr/bin/rox 

%users ALL=(root) NOPASSWD: /usr/local/bin/persist-config

%users ALL=(root) NOPASSWD: /usr/local/bin/persist-save 

%users ALL=(root) NOPASSWD: /usr/sbin/minstall 

%users ALL=(root) NOPASSWD: /usr/local/bin/connectshares.sh

%users ALL=(root) NOPASSWD: /usr/local/bin/disconnectshares.sh 

Defaults env_keep +="RESTARTED"

%users ALL=(root) NOPASSWD: /usr/local/bin/update-default-desktop
root@antiX1:/home/dando#
Cleaned up by Rok.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#17
I would list what is in /sbin myself with that.

Code: Select all

cd /sbin
Hit enter. then

Code: Select all

ls
Post the readout in code tags like I did when I cleaned up your last post. It is in the aqdvanced reply toolbar as a button. Just hit it and copy and paste readouts between the brackets. Like a quotes posts.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#18
Do you have any incomplete installs?

See with, in a root terminal:

apt-get -f install

Do you use any acpi boot cheats?
Posts: 46
dando
Joined: 08 Mar 2014
#19

Code: Select all


dando@antiX1:~
$ cd /sbin
dando@antiX1:/sbin
$ ls
acpi_available      ipmaddr            ntfsundelete
agetty              iptables           nwepgen
apm_available       iptables-restore   on_ac_power
autologin           iptables-save      pam_tally
badblocks           iptunnel           pam_tally2
blkid               isosize            parted
blockdev            iwconfig           partprobe
btrfs               iwevent            pccardctl
btrfs-calc-size     iwgetid            pivot_root
btrfsck             iwlist             plipconfig
btrfs-convert       iwpriv             poweroff
btrfsctl            iwspy              pvchange
btrfs-debug-tree    jfs_debugfs        pvck
btrfs-find-root     jfs_fsck           pvcreate
btrfs-image         jfs_fscklog        pvdisplay
btrfs-map-logical   jfs_logdump        pvmove
btrfs-restore       jfs_mkfs           pvremove
btrfs-select-super  jfs_tune           pvresize
btrfs-show          kbdrate            pvs
btrfstune           key.dns_resolver   pvscan
btrfs-vol           killall5           rarp
btrfs-zero-log      ldconfig           raw
cfdisk              lfdisk             reboot
cfdisk.distrib      logsave            reiserfsck
cryptdisks_start    losetup            reiserfstune
cryptdisks_stop     lsmod              request-key
cryptsetup          lspcmcia           resize2fs
ctrlaltdel          lvchange           resize_reiserfs
debugfs             lvconvert          resolvconf
debugfs.reiser4     lvcreate           rmmod
debugreiserfs       lvdisplay          route
depmod              lvextend           rtacct
dhclient            lvm                rtmon
dhclient-script     lvmchange          runlevel
dmsetup             lvmconf            sfdisk
dosfsck             lvmdiskscan        shadowconfig
dosfslabel          lvmdump            shutdown
dumpe2fs            lvmsadc            slattach
e2fsck              lvmsar             startpar
e2image             lvreduce           startpar-upstart-inject
e2label             lvremove           start-stop-daemon
e2undo              lvrename           sulogin
ethtool             lvresize           swaplabel
fdisk               lvs                swapoff
fdisk.distrib       lvscan             swapon
findfs              make-fstab         switch_root
fsadm               measurefs.reiser4  sysctl
fsck                mii-tool           tc
fsck.btrfs          mkdosfs            telinit
fsck.cramfs         mke2fs             tune2fs
fsck.ext2           mkfs               udevadm
fsck.ext3           mkfs.bfs           udevd
fsck.ext4           mkfs.btrfs         umount.udisks
fsck.ext4dev        mkfs.cramfs        unix_chkpwd
fsck.jfs            mkfs.ext2          unix_update
fsck.minix          mkfs.ext3          vgcfgbackup
fsck.msdos          mkfs.ext4          vgcfgrestore
fsck.nfs            mkfs.ext4dev       vgchange
fsck.reiser4        mkfs.jfs           vgck
fsck.reiserfs       mkfs.minix         vgconvert
fsck.vfat           mkfs.msdos         vgcreate
fsck.xfs            mkfs.ntfs          vgdisplay
fsfreeze            mkfs.reiser4       vgexport
fstab-decode        mkfs.reiserfs      vgextend
fstrim              mkfs.vfat          vgimport
fxload              mkfs.xfs           vgimportclone
getty               mkhomedir_helper   vgmerge
gfdisk              mkntfs             vgmknodes
halt                mkreiser4          vgreduce
hdparm              mkreiserfs         vgremove
hwclock             mkswap             vgrename
ifconfig            modinfo            vgs
ifdown              modprobe           vgscan
ifquery             mount.cifs         vgsplit
ifup                mount.fuse         wipefs
init                mount.lowntfs-3g   wlancfg
insmod              mount.ntfs         wlanctl-ng
insserv             mount.ntfs-3g      wpa_action
installkernel       nameif             wpa_cli
install-mbr         nfnl_osf           wpa_supplicant
ip                  ntfsclone          xfs_repair
ip6tables           ntfscp             xtables-multi
ip6tables-restore   ntfslabel
ip6tables-save      ntfsresize
dando@antiX1:/sbin
$ 
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#20
Now follow Antis suggestion.

Edit: I see
sysctl
in sbin Anti.
Posts: 46
dando
Joined: 08 Mar 2014
#21
Sorry but i don't understand by
Edit: I see

Code: Select all

 sysctl
in sbin Anti
Posts: 46
dando
Joined: 08 Mar 2014
#22
Should i edit the sysctl file in sbin Anti?
Posts: 46
dando
Joined: 08 Mar 2014
#23
When i typed out apt-get -f install there was a lot of files nolonger needed so i used autoremove to remove them.

I don;t have a clue what an acpi boot cheats file is?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#24
If you don't know what an acpi boot cheat is, then this is not the problem. I'm running out of ideas.

You said poweroff as root did nothing? Try again and see if there are any messages in the terminal.
Same with halt.
Posts: 46
dando
Joined: 08 Mar 2014
#25
I have tried both"poweroff" and"halt" as root. And the only thing i saw was a welcome message from Broadcast something or other as it flashed across the screen. But i would like to say a great big thank you for all the help and advice you've so generously given. Cheers mate!
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#26
But i would like to say a great big thank you for all the help and advice you've so generously given. Cheers mate!
Now that is what I am talking about. __{{emoticon}}__

I booted up my old IBM T23 that won't shut down either. EDIT: wrong. See posts further down. Sorry for the confusion.
My repos

Code: Select all

inxi -r
Repos:     Active apt sources in file: /  etc/apt/sources.list.d/antix.list
           deb http://antix.daveserver.info/stable stable main
           Active apt sources in file: /  etc/apt/sources.list.d/debian.list
           deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
           deb http://security.debian.org/ wheezy/updates main contrib non-free
           Active apt sources in file: /  etc/apt/sources.list.d/various.list
           deb http://www.duinsoft.nl/pkg debs all
My boot line (acpi cheat code by what Anti was referring to earlier). It is in /boot/grub/menu.lst

Code: Select all

timeout 5
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro
# kopt_2_6=root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro nosplash quiet

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(init-3) 3

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

#title        Debian GNU/Linux, kernel 3.14.3-dreamlinux-liquorix
#root        (hd0,0)
#kernel        /boot/vmlinuz-3.14.3-dreamlinux-liquorix root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 
#initrd        /boot/initrd.img-3.14.3-dreamlinux-liquorix

#title        Debian GNU/Linux, kernel 3.14.3-dreamlinux-liquorix (init-3)
#root        (hd0,0)
#kernel        /boot/vmlinuz-3.14.3-dreamlinux-liquorix root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
#initrd        /boot/initrd.img-3.14.3-dreamlinux-liquorix

title        Debian GNU/Linux, kernel 3.11.5-antix.1-486-smp
root        (hd0,0)
kernel        /boot/vmlinuz-3.11.5-antix.1-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 
initrd        /boot/initrd.img-3.11.5-antix.1-486-smp

title        Debian GNU/Linux, kernel 3.11.5-antix.1-486-smp (init-3)
root        (hd0,0)
kernel        /boot/vmlinuz-3.11.5-antix.1-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
initrd        /boot/initrd.img-3.11.5-antix.1-486-smp

title        Debian GNU/Linux, kernel 3.7.10-antix.3-486-smp
root        (hd0,0)
kernel        /boot/vmlinuz-3.7.10-antix.3-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 
initrd        /boot/initrd.img-3.7.10-antix.3-486-smp

title        Debian GNU/Linux, kernel 3.7.10-antix.3-486-smp (init-3)
root        (hd0,0)
kernel        /boot/vmlinuz-3.7.10-antix.3-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
initrd        /boot/initrd.img-3.7.10-antix.3-486-smp

title        Debian GNU/Linux, kernel memtest86+
root        (hd0,0)
kernel        /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST
To explain to dondo. The kernel line has no acpi=off or other acpi cheatcodes in it. That was what Anti was referring to.

Even though I am running wheezy. Shutdown broke on this laptop also and I mentioned it in another thread.
Problem is. My head is still stuffed up so I can't remember where my post is. Plus. I feel crappy and do not feel like looking right now.

My / ect/sudoers looks like

Code: Select all

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /  etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on"#include" directives:

#includedir / etc/sudoers.d
Sorry but i don't understand by
Edit: I see
Code:
sysctl

in sbin Anti
It is why you started this thread in the 1st place. Because I suffer the same symptoms. To show where systemctl is

Code: Select all

harry@biker:~
$ locate systemctl
/bin/systemctl
/usr/share/man/man1/systemctl.1.gz
Now here is what I get when I do a"man systemctl" in a terminal

Code: Select all

SYSTEMCTL(1)                       systemctl                      SYSTEMCTL(1)

NAME
       systemctl - Control the systemd system and service manager

SYNOPSIS
       systemctl [OPTIONS...] {COMMAND} [NAME...]

DESCRIPTION
       systemctl may be used to introspect and control the state of the
       systemd(1) system and service manager.

OPTIONS
       The following options are understood:

       --help, -h
           Prints a short help text and exits.

       --version
           Prints a short version string and exits.

       --type=, -t
           When listing units, limit display to certain unit types. If not
           specified units of all types will be shown. The argument should be
           a unit type name such as service, socket and similar.

       --property=, -p
 Manual page systemctl(1) line 1 (press h for help or q to quit)
           When showing unit/job/manager properties, limit display to certain
           properties as specified as argument. If not specified all set
           properties are shown. The argument should be a property name, such
           as MainPID. If specified more than once all properties with the
           specified names are shown.

       --all, -a
           When listing units, show all units, regardless of their state,
           including inactive units. When showing unit/job/manager properties,
           show all properties regardless whether they are set or not.

       --failed
           When listing units, show only failed units. Do not confuse with
           --fail.

       --full
           Do not ellipsize unit names and truncate unit descriptions in the
           output of list-units and list-jobs.

       --fail
           If the requested operation conflicts with a pending unfinished job,
           fail the command. If this is not specified the requested operation
           will replace the pending job, if necessary. Do not confuse with
           --failed.

       --ignore-dependencies
           When enqueuing a new job ignore all its dependencies and execute it
           immediately. If passed no required units of the unit passed will be
           pulled in, and no ordering dependencies will be honoured. This is
           mostly a debugging and rescue tool for the administrator and should
           not be used by applications.

       --quiet, -q
           Suppress output to STDOUT in snapshot, is-active, enable and
           disable.

       --no-block
           Do not synchronously wait for the requested operation to finish. If
           this is not specified the job will be verified, enqueued and
           systemctl will wait until it is completed. By passing this argument
           it is only verified and enqueued.

       --no-legend
           Do not print a legend, i.e. the column headers and the footer with
           hints.

       --no-pager
           Do not pipe output into a pager.

       --system
           Talk to the systemd system manager. (Default)

       --user
           Talk to the systemd manager of the calling user.
       --order, --require
           When used in conjunction with the dot command (see below), selects
           which dependencies are shown in the dependency graph. If --order is
           passed only dependencies of type After= or Before= are shown. If
           --require is passed only dependencies of type Requires=,
           RequiresOverridable=, Requisite=, RequisiteOverridable=, Wants= and
           Conflicts= are shown. If neither is passed, shows dependencies of
           all these types.

       --no-wall
           Don't send wall message before halt, power-off, reboot.

       --global
           When used with enable and disable, operate on the global user
           configuration directory, thus enabling or disabling a unit file
           globally for all future logins of all users.

       --no-reload
           When used with enable and disable, do not implicitly reload daemon
           configuration after executing the changes.

       --no-ask-password
           When used with start and related commands, disables asking for
           passwords. Background services may require input of a password or
           passphrase string, for example to unlock system hard disks or
           cryptographic certificates. Unless this option is specified and the
command is invoked from a terminal systemctl will query the user on
A lot of crap to digest I know. Not AntiX fault however. Systemd is in my opinion. But others
opinions may differ from mine because our scripts do no play well with systemd.
However. A biker sticks with his bros. And I am a hard core biker. __{{emoticon}}__

Now back to business.
My exitantix.sh (which does not work either no matter what the hell I put in it because of systemd and systemctl)

Code: Select all

#!/bin/bash 
# File Name: exitantiX.sh
# Purpose: exit script from fluxbox and icewm
# Authors: OU812 and minor modifications by anticapitalista
# Latest Change: 20 August 2008
# Latest Change: 02 January 2009
# Latest Change: 24 October 2011 Localisation/internationalisation added by anticapitalista/BitJam 
# Latest Change: 23 September 2012 ICON function
######################################################################################################

TEXTDOMAINDIR=/usr/share/locale 
TEXTDOMAIN=exitantix.sh
ICONS=/usr/share/icons/antiX-1

export LOGOUT=$(cat <<End_of_Text

<window title="`gettext $"Log Out"`" window-position="1">

<vbox>
  <frame>
  <hbox>
    <vbox>
      <hbox>
        <button>
        <input file>"$ICONS/lock.svg"</input>
        <action>EXIT:lock_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Lock Screen"`"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"$ICONS/hibernate.svg"</input>
        <action>EXIT:hibernate_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Hibernate"`"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"$ICONS/reboot.svg"</input>
        <action>EXIT:reboot_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Reboot"`"</label></text>
      </hbox>
    </vbox>

    <vbox>
      <hbox>
        <button>
        <input file>"$ICONS/logout.svg"</input>
        <action>EXIT:logout_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Log Out"`"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"$ICONS/suspend.svg"</input>
        <action>EXIT:suspend_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Suspend"`"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"$ICONS/shutdown.svg"</input>
        <action>EXIT:shutdown_antix</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"`gettext $"Shutdown"`"</label></text>
      </hbox>
    </vbox>
  </hbox>
  </frame>
</vbox>
  
</window>
End_of_Text
)

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog --program LOGOUT); do
  eval $STATEMENTS
done
IFS=$I

read_id_file() {
    FILE_ID=
    local file=$1:${DISPLAY%.[0-9]}
    local pid=$(cat $file 2>/dev/null)
    test -r $file; local ret=$?
    rm -f $file
    if [ $ret != 0 ]; then
        echo"Could not find/read file: $file"
        return 1
    fi

    if [ -z"$pid" ]; then
        echo"Empty file: $file"
        return 1
    fi
    FILE_ID=$pid
    return 0
}

kill_list() {
    local cmd pid list=$1
    local gdad=$(grep  ^PPid: /proc/$PPID/status | cut -f2)
    for pid in $list; do
        cmd=$(cat /proc/$pid/comm 2>/dev/null)
        case $pid in
            $$|$PPID|$gdad) continue ;;
        esac
        ["$cmd" ] && echo"kill $cmd"
        kill $pid 2>/dev/null
    done
}

list_group() {
    local pgid=$1  save=$2
    ["$pgid" ] || return
    for pid in $(pgrep -g $pgid); do
        ["$pid" ="$save" ] && continue
        echo -n"$pid"
    done
}

clean_logout() {
    sdir=$HOME/.antix-session
    
    read_id_file $sdir/xinitrc-pid || return 1
    local wm_pid=$FILE_ID

    local wm_prog=$(cat /proc/$wm_pid/comm 2>/dev/null)
    local wm_pgid=$(cut -d"" -f5 /proc/$wm_pid/stat)

    echo -e"\n----------------------------------------------------------------"
    echo"${0##*/} ($$): clean logout from session: $wm_prog"

    read_id_file $sdir/startup-pgid
    local st_pgid=$FILE_ID

    local list=$(list_group"$st_pgid""$wm_pid")
    if [ -n"$list" -a"$st_pgid" !="$wm_pgid" ]; then
        echo"Kill possible startup orphans ($st_pgid): $list"
        kill_list"$list"
    fi

    ps x -o pid,ppid,pgid,user,cmd

    list=$(list_group"$wm_pgid""$wm_pid")
    if ["$list" ]; then
        echo"Kill possible xinitrc orphans ($wm_pgid): $list"
        kill_list"$list"
    fi

    list=$(echo $(pgrep -P $wm_pid | tac) $wm_pid)
    if ["$list" ]; then
        echo"Kill remaining processes: $list"
        kill_list"$list"
    fi

    list=$(echo $(pgrep -P $wm_pid | tac) $wm_pid)
    [ -d /proc/$wm_pid/ ] || return 0
    sleep 1
    [ -d /proc/$wm_pid/ ] || return 0
    echo"Finally kill $wm_prog"
    kill -9 $wm_pid
    return 0
}

if ["$EXIT" ="lock_antix" ] ; then
    xlock
fi

if ["$EXIT" ="logout_antix" ] ; then

    if clean_logout >&2; then
        echo"${0##*/}: exit"
        echo -e"----------------------------------------------------------------\n"
        exit

    elif [ $USER != root -a $UID != 0 ]; then
        echo"As a last resort, kill all \"$USER\" user processes" >&2
        pkill -U $USER
    fi
fi

if ["$EXIT" ="reboot_antix" ] ; then
    if which persist-config &> /dev/null; then
        sudo persist-config --shutdown --command reboot
    else
        sudo  reboot
    fi
fi

if ["$EXIT" ="hibernate_antix" ] ; then
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
fi

if ["$EXIT" ="suspend_antix" ] ; then
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
fi

if ["$EXIT" ="shutdown_antix" ] ; then
    if which persist-config &> /dev/null; then
        sudo persist-config --shutdown --command halt
    else

        sudo  poweroff
    fi
fi
Ha. __{{emoticon}}__ I found my thread shutdown-not-working-and-udev-renaming-t5283.html?mobile=desktop

Now back to you dondo. In my Terminal after I am done posting here on this laptop.
The"sudo systemctl poweroff" will not work in my exitantix.sh file. But if I sux to root and
issue the command at the root prompt in roxterm.

Code: Select all

systemctl poweroff
This IBM T23 will shut down then running

Code: Select all

harry@biker:~
$ inxi -Fxz
System:    Host: biker Kernel: 3.11.5-antix.1-486-smp i686 (32 bit gcc: 4.8.1) 
           Desktop: IceWM 1.3.7 Distro: antiX-13_386-full Luddite 01 June 2013 
Machine:   Mobo: IBM model: 26474MU
           Bios: IBM v: 1AET64WW (1.20 ) date: 10/18/2006
CPU:       Single core Mobile Intel Pentium III - M (-UP-) cache: 512 KB
           flags: (pae sse) bmips: 1598 clocked at 800 MHz
Graphics:  Card: S3 SuperSavage IX/C SDR bus-ID: 01:00.0
           Display Server: X.Org 1.12.4 drivers: savage (unloaded: fbdev,vesa)
           Resolution: 1024x768@60.0hz
           GLX Renderer: Gallium 0.4 on softpipe
           GLX Version: 2.1 Mesa 8.0.5 Direct Rendering: Yes
Audio:     Card Intel 82801CA/CAM AC'97 Audio Controller 
           driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1f.5 
           Sound: ALSA v: k3.11.5-antix.1-486-smp
Network:   Card-1: Intel 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller
           driver: e100 v: 3.5.24-k2-NAPI port: 6400 bus-ID: 02:08.0
           IF: eth0 state: down mac: <filter>
           Card-2: Ralink RT2800 802.11n PCI
           driver: rt2800pci v: 2.3.0 bus-ID: 07:00.0
           IF: wlan1 state: up mac: <filter>
Drives:    HDD Total Size: 80.0GB (46.3% used)
           ID-1: /dev/sda model: ST980815A size: 80.0GB
Partition: ID-1: / size: 73G used: 34G (49%) fs: ext4 dev: /dev/sda1 
           ID-2: swap-1 size: 1.12GB used: 0.00GB (0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 56.0C mobo: 53.0C 
           Fan Speeds (in rpm): cpu: N/A fan-1: 0 
Info:      Processes: 120 Uptime: 36 min Memory: 442.6/1007.4MB 
           Init: SysVinit runlevel: 5 Gcc sys: 4.7.2 
           Client: Shell (bash 4.2.371) inxi: 2.1.28 
See. Be polite and well mannered and maybe we together will maybe unsnag this knot yet.
Because. It took longer to edit this post because of the forum bug with etc and / than it did to figure
things out and type this post. Took me 8 tries and about 40 minutes of proof reading with sick eyes and brains.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#27
After all that. Just to show how bad my brain is thinking.

Code: Select all

# systemctl poweroff
Failed to get D-Bus connection: No connection to service manager.
And here I thought i knew what I was talking about. __{{emoticon}}__
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#28
sysctl != systemctrl.

They are completely different things. The sysctl command is for setting kernel parameters at runtime. The systemctl command is for controlling systemd. Of course, simpling using an appropriate name such as systemd-ctrl would have prevented much unnecessary confusion.

*****sigh*****
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#29
Adding to the confusion, I think I have my AntiX hardware confused on which is not shutting down.
I will break out the panasonic CF-48 and see. But I have a feeling I blew away the shutdown problem
on my AntiX 11 box (Shop Desktop computer) when I installed 14rc3 sv on it.

Working in a fog here. Because sudo poweroff worked on this IBM T23 13.2 install.

EDIT: I booted up my

Code: Select all

harry@bikertest3:~$ inxi -Fxz
System:    Host: bikertest3 Kernel: 3.2.0-4-486 i686 (32 bit gcc: 4.6.3)
           Desktop: IceWM 1.3.7 Distro: antiX-M11- Jayaben Desai 12 April 2011
Machine:   System: Matsushita product: CF-48V4HLUQM v: 004
           Mobo: Matsushita model: CF48-4 v: 001
           Bios: Phoenix K.K. v: V4.00L13 date: 12/12/2002
CPU:       Single core Intel Pentium 4 Mobile (-UP-) cache: 512 KB
           flags: (pae sse sse2) bmips: 2393 clocked at 1200 MHz
Graphics:  Card: Advanced Micro Devices [AMD] ATI RV200 [Mobility Radeon 7500]
           bus-ID: 01:00.0
           Display Server: X.Org 1.12.4 driver: radeon
           Resolution: 1024x768@60.0hz
           GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 0x209)
           GLX Version: 2.1 Mesa 8.0.5 Direct Rendering: Yes
Audio:     Card Intel 82801CA/CAM AC'97 Audio Controller
           driver: snd_intel8x0 ports: 1c00 1880 bus-ID: 00:1f.5
           Sound: Advanced Linux Sound Architecture v: 1.0.24
Network:   Card-1: Realtek RTL-8139/8139C/8139C+
           driver: 8139too v: 0.9.28 port: 4400 bus-ID: 02:02.0
           IF: eth1 state: down mac: <filter>
           Card-2: Intel PRO/Wireless 2915ABG [Calexico2] Network Connection
           driver: ipw2200 v: 1.2.2kmprq bus-ID: 02:03.0
           IF: eth0 state: up mac: <filter>
Drives:    HDD Total Size: 100.0GB (25.6% used)
           ID-1: /dev/sda model: FUJITSU_MHU2100A size: 100.0GB
Partition: ID-1: / size: 29G used: 6.5G (25%) fs: ext3 dev: /dev/sda3
           ID-2: swap-1 size: 1.55GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
Sensors:   System Temperatures: cpu: 74.8C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 83 Uptime: 6 min Memory: 179.1/1263.8MB
           Init: SysVinit runlevel: 5 Gcc sys: 4.7.2
           Client: Shell (bash 4.2.371) inxi: 2.2.4 
But shutdown works on this old install on this CF-48 also from the button on the shutdown GUI.

Here is my exitantix.sh on AntiX 11 test 3

Code: Select all

harry@bikertest3:~$ cat usr/local/bin/exitantix.sh
cat: usr/local/bin/exitantix.sh: No such file or directory
harry@bikertest3:~$ cat /usr/local/bin/exitantix.sh
# File Name: exitantiX.sh
# Purpose: exit script from fluxbox and icewm
# Authors: OU812 and minor modifications by anticapitalista
# Latest Change: 20 August 2008
# Latest Change: 02 January 2009
######################################################################################################

#!/bin/sh

export Logout='

<window title="Log Out" window-position="1">

<vbox>
  <frame>
  <hbox>
    <vbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/actions/gnome-lockscreen.png"</input>
        <action>xlock</action>
                <action>EXIT:close</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Lock Screen"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/apps/gnome-session-hibernate.png"</input>
        <action>antixhibernate.sh</action>
                <action>EXIT:close</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Hibernate"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/apps/gnome-session-reboot.png"</input>
        <action>reboot.sh</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Reboot"</label></text>
      </hbox>
    </vbox>

    <vbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/apps/gnome-session-logout.png"</input>
        <action>logouthelper.sh</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Log Out"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/apps/gnome-session-suspend.png"</input>
        <action>antixsuspend.sh</action>
                <action>EXIT:close</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Suspend"</label></text>
      </hbox>
      <hbox>
        <button>
        <input file>"/usr/share/icons/gTangish-2.0a1/32x32/apps/gnome-session-halt.png"</input>
        <action>shutdown.sh</action>
        </button>
        <text use-markup="true" width-chars="15"><label>"Shutdown"</label></text>
      </hbox>
    </vbox>
  </hbox>
  </frame>
        
  <hbox>
    <button>
      <label>"Close"</label>
      <input file>"/usr/share/icons/gTangish-2.0a1/16x16/actions/dialog-cancel.png"</input>
      <action>EXIT:close</action>
    </button>
  </hbox>
</vbox>
  
</window>
'

gtkdialog -c --program=Logout
unset Logout
harry@bikertest3:~$ 
If anybody uses my exitantix.sh file., Be sure to back up your original 1st in case of fubar.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#30
Here are
shutdown.sh from my AntiX 11 install on this Panasonic that I keep semi-current.

Code: Select all

harry@bikertest3:~$ cd /usr/local/bin
harry@bikertest3:/usr/local/bin$ la
bash: la: command not found
harry@bikertest3:/usr/local/bin$ ls
absvolume                 configs_t             reboot.sh
adddesktop.sh             conkytoggleflux.sh    recorder
add-key                   conkytoggleice.sh     remaster.sh
add-start                 devmon                roxuri
alert_message_s           diskusage             Rox-Wallpaper
alert_message_t           exitantix.sh          sgfxi
antix2persist-usb.sh      exoodles              shutdown.sh
antix2usb-gui.py          fb-pinboardtoggle.sh  slim-login
antix2usb.sh              fluxbox-xdg-menu      sm-lib-2011-fixes-s
antixcckeyboard.sh        fontscheck            sm-lib-2011-fixes-t
antixccmouse.sh           frugal                sm-lib-apt-tools
antixcc.sh                icewmcc               sm-lib-clean-up
antixccslim.sh            icewm_menu2.sh        sm-lib-distro-conversion
antixhibernate.sh         icewm-xdg-menu        sm-lib-du-fixes
antixmousedefault.pl      inxi                  sm-lib-graphics
antixmousedefaultsize.pl  inxi-gui              sm-lib-kernel
antixmousesize.pl         logouthelper.sh       sm-lib-kernel-install
antixmousexmodmap.pl      mountbox              sm-lib-misc-tweaks
antixmousexset.pl         mpdpss                sm-lib-warning
antixscreenshot.sh        nohup.out             sm-versions
antixsuspend.sh           paneltoggle.sh        smxi
antix-system              phonebookadd.sh       status_s
auto-fluxbox-menu.sh      phonebookantix.sh     status_t
auto-icewm-menu.sh        phonebookcat.sh       sudoku-savant
block-advert.sh           phonebookremove.sh    Ted
burniso                   phonebooksearch.sh    user-management
cddb.pl                   pinboardtoggle.sh     wallpaper.sh
cli-installer             ps_mem.py             wicdtrayicon.sh
configs_s                 ranger
harry@bikertest3:/usr/local/bin$ 
shutdown.sh text file contents

Code: Select all

harry@bikertest3:/usr/local/bin$ cat shutdown.sh

# Filename:      shutdown.sh
# Purpose:       shutdown from exit menu
# Authors:       anticapitalista for antiX
# Latest change: 05 December 2010
# Thanks to secipolla
################################################################################

#!/bin/sh

dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdownharharry@bikertest3:/usr/local/bin$ 
reboot.sh text file contents

Code: Select all

harry@bikertest3:/usr/local/bin$ cat reboot.sh

# Filename:      reboot.sh
# Purpose:       reboot from exit menu
# Authors:       anticapitalista for antiX
# Latest change: 05 December 2010
# Thanks to secipolla
################################################################################

#!/bin/sh

dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Rebootharry@bikertest3:/usr/local/bin$ 
Just posting to be posting. I don't know if I am being helpful or just muddying the waters.
I figure any info is better than no info at all though.

Off to bed cuz my head hurts. __{{emoticon}}__