Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken system: no root account, read only user account
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 26, 27, 28  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Wed Sep 18, 2013 10:56 pm    Post subject: Reply with quote

Good News! I seem to have gotten my system back! It looks almost the same as I left it, the same xterm windows in the same directories they were in before the crash. Even my browser came back where it was..One thing that I am still waiting for now is the indexing services. We changed from slocate to mlocate, so I presume it is doing the re-indexing. It will take a while, without that I probably won't get the prompt back on all of my terminals.. But it is indexing fast!! So, I sure am happy!

I will have to wait to see if other programs are still working or not, and bug you even more... Thank you so much!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Wed Sep 18, 2013 11:02 pm    Post subject: Reply with quote

if your user is still not gnoming:

Code:
ln -s  /etc/xdg/menus/gnome-applications.menu /etc/xdg/menus/applications.menu


edit /home/your user name/.xinitrc to
Quote:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi

exec gnome-session
# exec startkde
# exec startxfce4
# exec wmaker
# exec icewm
# exec blackbox
# exec fluxbox
# exec openbox-session
# ...or the Window Manager of your choice
# exec xterm
and make executable
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Wed Sep 18, 2013 11:04 pm    Post subject: Reply with quote

did udisks merge? helps with automounting cd's and usb flash/external disks
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Wed Sep 18, 2013 11:06 pm    Post subject: Reply with quote

I originally used KDE as a user. Right now the Root is Gnoming, but the user is KDE-ing it appears. It is abetter looking KDE desktop, for sure. I am happy with that. I was able to ssh into the machine from elsewhere but could not open X11 windows remotely. I forgot how to tunnel x11 to have it worked remotely, but I can probably figure it out later..
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Wed Sep 18, 2013 11:12 pm    Post subject: Reply with quote

It has been fun for me as promised, pain for you, apologies for the typos, wild hares, and blind alleys. Your persistence and patience are most admirable..
@ Neddy Thanks for being the rock of sanity.
@ jag, Thanks.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Wed Sep 18, 2013 11:22 pm    Post subject: Reply with quote

My drive is 92% full, so my next immediate project is to put in an extra internal drive. So, fun never ends, it seems..
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Wed Sep 18, 2013 11:31 pm    Post subject: Reply with quote

you can get a few gigs by carefully running
Code:
rm -rf /root/rescue

_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Wed Sep 18, 2013 11:42 pm    Post subject: Reply with quote

I will probably move some stuff to an external drive for now... But I will let the indexing run overnight, since I still did not get back prompt on any of my terminals. Previously, indexing on slocate never worked automatically (i did rc-update), and I had to updatedb every once in while by hand, which was a pain. Hopefully, this time around it will be better.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Wed Sep 18, 2013 11:47 pm    Post subject: Reply with quote

Actually, I suspended file indexing, but I did not get my xterm prompt back on any of the terminals... That does not sound good though. Without the prompt/terminal I cannot do much... these are 'bash konsole', I wonder if we forgot to update xterm along the line.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 2:13 am    Post subject: Reply with quote

did you try alt-F2 gnome-terminal ??

slightly longer is chroot and remove xdm from the default runlevel and use gdm or startkde or startx from the black boot screen
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 3:09 am    Post subject: Reply with quote

I will try that tomorrow, but now I am taken to login screen, where I suspect I can choose between Gnome and KDe. I will check that, but I don't understand why the terminals would not work in KDE for a user. It certainly did for the root in Gnome mode. COuld that be due to some login settings?
At this stage, I don't care if it is KDE or Gnome, as long as it works, but I am little concerned that the system might not be very stable anymore.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 3:23 am    Post subject: Reply with quote

my trials of kde seldom lasted more than a day so ...
you might want to start a thread in desktop forum about kde and konsole, I would doubt a relationship to mlocate,
Code:
ls -al /home/your username | wgetpaste
might help analysis
suggest as root in boot terminal creating a new user then using startkde and the kdm login and then evaluating kde performance with the new user.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 3:34 am    Post subject: Reply with quote

that is an excellent idea with creating a new user to test the problem. Why don't you like KDE if I may ask?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 3:54 am    Post subject: Reply with quote

always found it pretty but not intuitive and a little flaky
gnome is dumpy and stodgy but easier for me to get around in
for reference my phone still has buttons on it and I despise win 8
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 1:32 pm    Post subject: Reply with quote

I logged out of KDE, the GUI login screen gives me options button, and the language options. I was able to choose Gnome from the options button.

It came out quite quickly for a user. However, when I launched a Terminal I get an error: getpt failed: No such file or directory. I suspect that was the same problem in KDE mode. SO, I don't have a terminal in either mode.

I will go back to your earlier procedures, but it seems that I can launch Gnome at will now.

Good news is that I can get a terminal as a root in Gnome, at least.

I posted ls -al ~/user
http://bpaste.net/show/133717
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 1:54 pm    Post subject: Reply with quote

DONAHUE wrote:
did udisks merge? helps with automounting cd's and usb flash/external disks


emerge -s udisk
Searching...
[ Results for search key : udisk ]
[ Applications found : 3 ]

* sys-fs/udiskie
Latest version available: 0.4.1
Latest version installed: [ Not Installed ]
Size of files: 10 kB
Homepage: http://bitbucket.org/byronclark/udiskie
Description: An automatic disk mounting service using udisks
License: MIT

* sys-fs/udisks
Latest version available: 2.1.0
Latest version installed: 2.1.0
Size of files: 804 kB
Homepage: http://www.freedesktop.org/wiki/Software/udisks
Description: Daemon providing interfaces to work with storage devices
License: GPL-2

* sys-fs/udisks-glue
Latest version available: 1.3.4
Latest version installed: [ Not Installed ]
Size of files: 16 kB
Homepage: http://github.com/fernandotcl/udisks-glue
Description: A tool to associate udisks events to user-defined actions
License: BSD
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43979
Location: 56N 3W

PostPosted: Thu Sep 19, 2013 3:09 pm    Post subject: Reply with quote

auddoula,

I suspect your error was getpty failed.
Do you have a /dev/pts directory?

Code:
mount
should include devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) in the output.

If these are missing, try
Code:
mount -t devpts pts /dev/pts

glibc and openrc between them should automate mounting /dev/pts, so no /etc/fstab line is required.

If its still broken, check
Code:
[*]   Unix98 PTY support
is on in your kernel.

You need sys-fs/udisks for automounting, which you already have.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 3:17 pm    Post subject: Reply with quote

NeddySeagoon wrote:
auddoula,

I suspect your error was getpty failed.
Do you have a /dev/pts directory?



If its still broken, check
Code:
[*]   Unix98 PTY support
is on in your kernel.

You need sys-fs/udisks for automounting, which you already have.

It appears that I do have pts:

mount
rootfs on / type rootfs (rw)
/dev/sda2 on / type ext3 (rw,noatime,commit=0)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
bfqio on /sys/fs/cgroup/bfqio type cgroup (rw,nosuid,nodev,noexec,relatime,bfqio)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=1535369,mode=755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nodev,noexec,nosuid)

I will have to check if the kernel has the support. But why does it work for root user then? The problem is only with user account.

Just to clarify, I can login as the root with Gnome and have all the terminals working just fine, then su user, and it works for the user. Obviously, this is not good way to do business, but at least works, it appears.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43979
Location: 56N 3W

PostPosted: Thu Sep 19, 2013 3:51 pm    Post subject: Reply with quote

auddoula,

log in as user (not using su) and type groups.
Post the result.

If your user is not in the tty group, thats a problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 4:01 pm    Post subject: Reply with quote

groups
root bin daemon sys adm disk wheel floppy dialout tape video

groups user_name
wheel audio video users user_name


Last edited by auddoula on Thu Sep 19, 2013 4:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 4:13 pm    Post subject: Reply with quote

observation: the ls -al /home/user does not show a .xinitrc; it has .gnome in addition to .gnome2; .kde in addition to .kde4;
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 4:15 pm    Post subject: Reply with quote

DONAHUE wrote:
observation: the ls -al /home/user does not show a .xinitrc; it has .gnome in addition to .gnome2; .kde in addition to .kde4;

I just put it in following your earlier suggestion. It did not make a difference with the terminal problem.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 4:33 pm    Post subject: Reply with quote

/home/<your user name>/.xsession-errors | wgetpaste
/home/<your user name>/.xinitrc | wgetpaste
usermod -a -G tty <your user name> will implement Neddy's suggestion
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 4:41 pm    Post subject: Reply with quote

wgetpaste .xsession-errors
Your paste can be seen here: http://bpaste.net/show/133769/

ws-d212research asif # wgetpaste .xinitrc
Your paste can be seen here: http://bpaste.net/show/133770/

I did this:
usermod -a -G tty <your user name
but I have the same problem with terminal as a user (and with x11 programs like xv: can't open display).


groups user_name
tty wheel audio video users user_name

I did not reboot, but logged out of Gnome session, and logged back as a user to check the above.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7557
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 4:56 pm    Post subject: Reply with quote

try making a testuser:
assuming xdm is no longer in any run level:
reboot; login as root in the boot terminal,
Code:
 useradd -m -G bin daemon sys adm disk floppy dialout tape video -s /bin/bash testuser
passwd testuser
cp /home/<your user name>/.xinitrc /home/testuser/.xinitrc
the .xinitrc at /home/<your user name>/.xinitrc and now for testuser will start a gnome session
Code:
logout
Code:
login
login as testuser
Code:
gdm

behavior???
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 26, 27, 28  Next
Page 21 of 28

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum