SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-26 10:59:06

@bjmuirhead

After i managed to log back in, by dropping to cli, and then startx

The first thing i wanted to do is ssh into my server to compare the config, i.e, check to see if there was a .xinitrc file to compare to

so

ssh -l userName 192.168.xxx.xxx

And i got that message

OpenSSL version mismatch. Built against 1000005f, you have 1000105f

I tried simply

sudo apt-get update
sudo apt-get dist-upgrade

But the upgrade got stuck on a single package, i had to break out of the upgrade mid way thorugh, i tried to reboot, but when i did i could not even log in from the cli, so i gave up, used a live usb, backed up and reinstalled

#2 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-25 23:19:08

Thanks again #! Junkie

think i am going to call it a night on this one, but before i go here is my slim.conf

what on earth is going on with

default_path        /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
#
default_path        /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
default_xserver     /usr/bin/X11/X
xserver_arguments   -nolisten tcp

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue.net; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/X11/xauth

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login /etc/X11/Xsession %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
sessionstart_cmd	/usr/share/crunchbang/cb-user-setup %user
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
#sessions            default,startxfce4,openbox,ion3,icewm,wmaker,blackbox,awesome
sessions            openbox-session

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      scrot /root/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
#current_theme       debian-spacefun
current_theme       waldorf

# Lock file
lockfile            /var/run/slim.lock

# Log file
logfile             /var/log/slim.log

#3 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-25 22:50:17

Your right

r1=$(runlevel | grep -o [0-6])

is not needed

the contents of .xinitrc

only needs to be

#!/bin/sh

exec openbox-session

*On a side note, when i use Super + x to shutdown or reboot, the GUI is displayed & i can press shutdown/reboot but nothing happens . . . . . don't know if this is related or not ? I need to sudo poweroff or sudo reboot

#4 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-25 22:36:27

I cant thank you enough for your help on this matter .....

I am now logged back into my laptop, however, i still cant log on normally ?

As said before i didn't have a .xinitrc file, so i created one using the following contents

#!/bin/sh
r1=$(runlevel | grep -o [0-6])

exec openbox-session

I truly have now idea what    r1=$(runlevel | grep -o [0-6])   means ?

I then bootup as normal, dorp to cli by pressing ctrl + alt + f2
login using cli
then startx

now i am logged in, but i would really love to know what happened and how i could maybe get it back to a stage i was at before

#5 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-25 22:18:26

I keep reading about .xinitrc

i don't seem to have this file in my home dir

Im not sure if this is a problem

#6 Re: Help & Support (Stable) » failed to execute login command again » 2014-05-25 22:03:50

Root is not on a seperate partition,  so yes there is space left on it

Yeah slim starts, yes thats where im stuck, I tried deleting it
, and reinstalling it, didnt work

sessions currently set to openbox-session

#7 Help & Support (Stable) » failed to execute login command again » 2014-05-25 21:27:43

andymc
Replies: 15

Hi,

long time #! User 1st time poster.

I have had #! Running on my laptop for perhaps about a year. Last time I used it I ran:

sudo apt-get update
sudo apt-get upgrade

now when I come to use my laptop I cant log in

I can get to either recovery mode as root OR
I can get to login, drop to cli by pressing ctrl + alt + f2, I also have internet access as I edited /etc/network/interfaces

I have read similar posts and they talk about file sizes being toobig and running out of space. The space they seem to refer to Is in their home directory. My drive has used a mear % 18 of its capacity.

There was a lot of mention about .xsession-errors being too big, I tried deleting this file, reboot, but still the same.

I thought maybe I could create a new user and log in that way, but I get the same issue witha new user as well.

any ideas would be very much appreciated

regards

andy

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo