LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2004, 11:46 PM   #1
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Rep: Reputation: 15
Restoring a previous config?


I'm running mandrake 9.1 on a lap top, I changed my graphics card in the mandrake control center, everything still worked, even after a reboot. until I rebooted again tonight. Now... I only get a terminal session and no graphics.

Is there a way to revert back the changes I made this morning? like useing "scanreg" to restore a registry on win 98 would do?

heres some of the errors I get now, I can't even start vncserver any more to fix it that way.

[root@localhost dworkin]# kde
bash: xinit: command not found
[root@localhost dworkin]# gdm
gdm already running. Aborting!
[root@localhost dworkin]# vncserver :1 -geometry 800x600
vncserver: couldn't find "xauth" on your PATH.
[root@localhost dworkin]#

I tried the above commands both as user and root.

I was trying to get TV out to work and changed my grapics card from radion to rage mobility tvout. this still didn't work as far getting it to display on my tv but I'm pretty sure I rebooted after making that change with out a problem, Then I found an app called atitvout that fixed me up and let me run mythtv on my tv screen. But now I rebooted again tonight and have the above issue?

thanks.

dworkin
 
Old 03-28-2004, 12:42 AM   #2
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
I think I remember now what I did that probably broke it. It wasnt the graphic card deal though I knew that was risky, I did reboot ok after changeing that.

I installed a few packages this morning. I cant remember exactly what they were at the moment but I was in the mandrake install packages gui and searched for "tv" trying to find something that would enable the TV out feature on my lap top. I didn't find what I was looking for but did find a couple other packages that had something to do with open GL or something like that, when I went to install them, the package manager poped up a box saying that it would have to remove some packages in order to update others. at least one of them was something like XF86xxx 4.xx something or other, I thought for a few moments before clicking ok but thought they would be updated. I'm reasonably sure this is whats stoping my graphical display to work now. so my question's are ...

1. where can I find a list of packages I installed? hopefully with the date and time.
2. How do I unistal them from a console prompt?
3. Is there a list of the packages that were recently removed?
4. re-install the removed packages if I find out what they were?

5. I still want to know if there is a tool similar to win 98's "scanreg -restore" to recover in the likely event I do something stupid again in the future.

Thanks again

dworkin
 
Old 03-28-2004, 07:17 AM   #3
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
well, I answered two of my questions by doing a bit of digging. the answers to what packages were removed and installed were found in the messages file in /var/log

Quote:
Mar 27 05:47:46 localhost rpmdrake[2351]: Removing package XFree86-server-4.3-8.
7.91mdk
Mar 27 05:47:46 localhost rpmdrake[2351]: Removing package libalsa2-devel-0.9.0-
0.14rc7.1mdk
Mar 27 05:47:46 localhost rpmdrake[2351]: Removing package XFree86-4.3-8.7.91mdk
Mar 27 05:47:46 localhost rpmdrake[2351]: Installing package removable://mnt/cdr
om/Mandrake/RPMS/Glide_V5-cvs-3mdk.i586.rpm
Mar 27 05:47:46 localhost rpmdrake[2351]: Installing package removable://mnt/cdr
om/Mandrake/RPMS/XFree86-glide-module-4.3-5mdk.i586.rpm
Mar 27 05:47:46 localhost rpmdrake[2351]: Installing package removable://mnt/cdr
om/Mandrake/RPMS3/gstreamer-visualisation-0.6.0-3mdk.i586.rpm
Mar 27 05:47:46 localhost rpmdrake[2351]: Installing package removable://mnt/cdr
om/Mandrake/RPMS3/libalsa2-static-devel-0.9.0-0.14rc7mdk.i586.rpm
now I just need to figure out to manualy remove those new packages and reinstall the old ones. back to scratching my heda over the rpm man page.

oh, why dosent the command "rpm -q --last" work?

according to the man for rpm, its supposed to querry my installed rpm's and display the last ones installd first but ive tryed it a few different ways but it keeps saying last is not a valid query. all the other ways i managed to query just listed them in alpabetical order with no dates or times.
 
Old 03-28-2004, 08:02 AM   #4
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
wtf? I just dont get it...

root@localhost log]# rpm -e Glide_V5-cvs-3mdk
error: package Glide_V5-cvs-3mdk is not installed
[root@localhost log]# rpm -e XFree86-glide-module-4.3-5mdk
error: package XFree86-glide-module-4.3-5mdk is not installed
[root@localhost log]# rpm -e gstreamer-visualisation-0.6.0-3mdk
error: package gstreamer-visualisation-0.6.0-3mdk is not installed
[root@localhost log]# rpm -e libalsa2-static-devel-0.9.0-0.14rc7mdk
error: package libalsa2-static-devel-0.9.0-0.14rc7mdk is not installed
[root@localhost log]#
 
Old 03-28-2004, 08:15 AM   #5
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
I got to quit staying up all night I guess... a little farther down in the message file, I found this....
Quote:
Mar 27 05:47:46 localhost kernel: sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
Mar 27 05:47:46 localhost kernel: cdrom: open failed.
Mar 27 05:51:20 localhost kernel: UDF-fs: No VRS found
Mar 27 05:51:54 localhost kernel: UDF-fs: No VRS found
Mar 27 05:52:28 localhost kernel: UDF-fs: No VRS found
Mar 27 05:52:29 localhost rpmdrake[2351]: launched command: rpm -e --nodeps XFre
e86-server-4.3-8.7.91mdk libalsa2-devel-0.9.0-0.14rc7.1mdk XFree86-4.3-8.7.91mdk
Mar 27 05:52:29 localhost kernel: smb_get_length: recv error = 5
Mar 27 05:52:29 localhost kernel: smb_request: result -5, setting invalid
Mar 27 05:52:29 localhost kernel: smb_retry: successful, new pid=2227, generatio
n=2
Mar 27 05:54:04 localhost rpmdrake[2351]: created file /root/.rpmdrake
apparently my cdrom failed to open and it didnt install the new packages but went ahead and removed the other ones anyway? those cd rom messages were repeated about 20 times. I don't remember getting an error message when I installed those packages? it was 5 in the morning however so who knows. hopefully my next post will be tht I was able to re-install the packages it removed and be back up and running mythtv again so I can get some sleep before my wife wakes up.

Last edited by dworkin; 03-28-2004 at 08:17 AM.
 
Old 03-28-2004, 08:28 AM   #6
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
Dang it ( its always something. Now what do I do???

[root@localhost log]# man rpm
[root@localhost log]# rpm -i XFree86-4.3-8.7.91mdk
error: open of XFree86-4.3-8.7.91mdk failed: No such file or directory
[root@localhost log]# urpmi XFree86-4.3-8.7.91mdk
ftp://mirrors.secsup.org/pub/linux/m....1/RPMS/XFree8 6-4.3-8.7.91mdk.i586.rpm
installing /var/cache/urpmi/rpms/XFree86-4.3-8.7.91mdk.i586.rpm

Preparing... ##################################################
moving /usr/X11R6/lib/X11/xkb to /etc/X11/xkb linking to ../../../../etc/X11/xkb
moving /usr/X11R6/lib/X11/xkb/compiled to /var/lib/xkb linking to ../../../../.. /var/lib/xkb
moving /usr/X11R6/lib/X11/xserver to /etc/X11/xserver linking to ../../../../etc /X11/xserver
moving /etc/X11/xdm/authdir to /var/lib/xdm linking to ../../../var/lib/xdm
1:XFree86 #################################################error: unpacking of archive failed: cpio: mkdir
[root@localhost log]# rpm -q -V XFree86-4.3-8.7.91mdk
package XFree86-4.3-8.7.91mdk is not installed
[root@localhost log]# rpm -i XFree86-4.3-8.7.91mdk
error: open of XFree86-4.3-8.7.91mdk failed: No such file or directory

I'm even sadder now that I was so close to fixing this darn thing.
 
Old 03-28-2004, 08:38 AM   #7
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
Alright !! I'm not sad any more.. at least not yet. apparently installing in the reverse order they were removed was not the way to go, because ...

Quote:
[root@localhost log]# urpmi XFree86-server-4.3-8.7.91mdk
To satisfy dependencies, the following packages are going to be installed (51 MB):
XFree86-4.3-8.7.91mdk.i586
XFree86-server-4.3-8.7.91mdk.i586
Is this OK? (Y/n) y
ftp://mirrors.secsup.org/pub/linux/m...91mdk.i586.rpm
installing /var/cache/urpmi/rpms/XFree86-4.3-8.7.91mdk.i586.rpm /var/cache/urpmi/rpms/XFree86-server-4.3-8.7.91mdk.i586.rpm

Preparing... ##################################################
1:XFree86 warning: /etc/X11/app-defaults/Beforelight created as /etc/X11/app-defaults/Beforelight.rpmnew
<snip> a whole bunch more warnings about stuff getting created...
##########################################
2:XFree86-server ##################################################
[root@localhost log]#rpm -q -V XFree86-4.3-8.7.91mdk
XFree86-4.3-8.7.91mdk
[root@localhost log]# rpm -q -V XFree86-server-4.3-8.7.91mdk
XFree86-server-4.3-8.7.91mdk
[root@localhost log]#
now I just have to install that libalsa package it removed, and reboot with my fingers crossed....
 
Old 03-28-2004, 08:52 AM   #8
dworkin
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: desktop = mandrake 10 / laptop = mandrake 9.1
Posts: 34

Original Poster
Rep: Reputation: 15
W00T! I'm back in business!

Thank you dworkin for all your research and help getting this problem solved

hopefully this thread will be a lesson for some one else to be carefull with whats going on when useing a gui package installer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore previous kernel muldereric Linux - Newbie 4 07-30-2005 06:22 PM
Restoring an old xord.config file Bryanlee Linux - Newbie 9 05-15-2005 09:35 PM
cd to the previous foldeer juanb Linux - General 3 02-10-2005 12:10 AM
using previous partitions possible? Delarama Yoper 1 12-03-2004 02:43 AM
How to uninstall previous versions? timberwolf Linux - General 7 12-04-2003 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration