View previous topic :: View next topic |
Author |
Message |
mikkelhoegh n00b
Joined: 27 Aug 2004 Posts: 71 Location: Herning, Denmark
|
Posted: Sat Oct 02, 2004 8:26 pm Post subject: |
|
|
sinisterdomestik wrote: | i would LOVE to run etc-update, but the problem with that is, the last time i ran it, i fsked my entire box and couldnt restart it for weeks until i finally re-installed gentoo....soooooooooooooooooo im a little scared of etc-update to say the least. i need to read a manual on that one
/EDIT
i am doing this very carefully, but i AM doing etc-update after 2 years......whew. one question though, when your looking at the differences, is the new .cfg file the lines with the '-' or the '+' |
1222 posts on this forum and you don't know how to use etc-update?...
Well, the lines with the +'s are the lines from the new config and the ones with the -'s are those from your old config. _________________ freak n:
Slang: An eccentric or nonconformist person, especially a member of a counterculture. |
|
Back to top |
|
|
sinisterdomestik l33t
Joined: 28 Aug 2003 Posts: 685 Location: Texas
|
Posted: Sat Oct 02, 2004 8:56 pm Post subject: |
|
|
true about the posts, BUT notice that almost 80% of those are from OTW. i dotn complain or ask to many questions about system stuff to often, just when i cant figure it out.
thats what i thought, but i wasnt to sure. thanks. ill be doing my etc-update now _________________ Thou shalt NEVER speak of removing thine Linux |
|
Back to top |
|
|
mark Tux's lil' helper
Joined: 04 Jun 2002 Posts: 119
|
Posted: Mon Oct 04, 2004 2:15 pm Post subject: |
|
|
sinisterdomestik wrote: |
i am doing this very carefully, but i AM doing etc-update after 2 years......whew. one question though, when your looking at the differences, is the new .cfg file the lines with the '-' or the '+' |
- is an old line to be removed
+ is a new line to be added.
Mark _________________ Regards
Mark |
|
Back to top |
|
|
dsegel Tux's lil' helper
Joined: 31 Jan 2003 Posts: 127
|
Posted: Mon Oct 04, 2004 4:34 pm Post subject: |
|
|
sinisterdomestik wrote: | i would LOVE to run etc-update, but the problem with that is, the last time i ran it, i fsked my entire box and couldnt restart it for weeks until i finally re-installed gento |
There are only a few config files that will really mess up your system's ability to boot. One of them is /etc/fstab - if you update baselayout and let the new config file replace your fstab then your system won't boot.
It's fixable, but a pain nonetheless.
One thing to remember - if it's asking to update a config file you never edited manually, go ahead and let it. Then go back and look at all the remaining updates and decide whether it would be easier to let etc-update replace the config file and then reapply your changes, or try to walk through the changes in interactive mode and select which lines to change. |
|
Back to top |
|
|
sinisterdomestik l33t
Joined: 28 Aug 2003 Posts: 685 Location: Texas
|
Posted: Tue Oct 05, 2004 11:35 am Post subject: |
|
|
well i got etc-update done and until i reboot, only have one small prob that iwll be fixed when im sober
/EDIT i am now convinced that etc-update is EVIL!!!!!!! i rebooted and 1) it wont detect my mouse, and 2) it wont detect my cable modem anymore
ill just let etc-update pile up until i think im "geek" enough to do it next time _________________ Thou shalt NEVER speak of removing thine Linux |
|
Back to top |
|
|
Pseud Apprentice
Joined: 19 Mar 2004 Posts: 273 Location: Bangalore, India
|
Posted: Wed Oct 06, 2004 2:30 am Post subject: |
|
|
sinisterdomestik wrote: | well i got etc-update done and until i reboot, only have one small prob that iwll be fixed when im sober
/EDIT i am now convinced that etc-update is EVIL!!!!!!! i rebooted and 1) it wont detect my mouse, and 2) it wont detect my cable modem anymore
ill just let etc-update pile up until i think im "geek" enough to do it next time |
The evil really is in letting it pile up! Portage begs you to regularly update config files each time it makes changes. Knowing your systems config files is a Good Thing (TM). I'm sure the Gentoo wiki has a section explaining the most important of them, and with that, it shouldn't be difficult to see what etc-update is wanting to do and make a judgement about letting it make the changes or not. _________________ eschew obfuscation |
|
Back to top |
|
|
C.M Tux's lil' helper
Joined: 14 Mar 2003 Posts: 132 Location: Göteborg - Sweden
|
Posted: Thu Oct 14, 2004 7:19 pm Post subject: |
|
|
A good tip is to use vimdiff instead of the regular diff. A lot easier to see what you are doing. In the file /etc/etc-update.conf
Code: | # vim-users: you CAN use vimdiff for diff_command. (see NOTE_1)
#diff_command="diff -uN %file1 %file2"
#using_editor=0
diff_command="vim -d %file1 %file2"
using_editor=1 |
Use "ctr + w, w" to swich between the windows. A tip is to make the console quite wide before opening vimdiff. (Or you can use "ctrl + w, =" to make both the file windows equally wide.) |
|
Back to top |
|
|
afv-13 n00b
Joined: 24 Oct 2003 Posts: 22
|
Posted: Sat Oct 23, 2004 8:37 pm Post subject: |
|
|
I'm not sure if this has been mentioned:
libnvidia-tls.so.1 is part of nvidia-kernel and should not be removed. It breaks quite a few X using apps. |
|
Back to top |
|
|
Rainmaker Veteran
Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Sun Oct 24, 2004 10:56 pm Post subject: |
|
|
It shows my entire /var/win4lin directory.
Not sure if that's safe to remove _________________ If you can't dazzle them with brilliance, baffle them with bullshit. |
|
Back to top |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Mon Oct 25, 2004 6:46 pm Post subject: |
|
|
Trying out this cruft script. Works pretty well but I noticed funny thing:
Code: |
/etc/X11/xorg.conf.working
|
Screw the backups, d00d! |
|
Back to top |
|
|
palantir Tux's lil' helper
Joined: 28 Nov 2003 Posts: 142 Location: Trento, Italia
|
Posted: Sat Nov 06, 2004 3:53 pm Post subject: |
|
|
I havent't read the whole thread (I hope you won't blame me however so should this have been already discussed, please ignore it. My false posistives:
Code: |
/etc/ndiswrapper/net8180
/etc/ndiswrapper/net8180/10EC:8180.conf
/etc/ndiswrapper/net8180/10EC:8180:10EC:8180.conf
/etc/ndiswrapper/net8180/net8180.inf
/etc/ndiswrapper/net8180/rtl8180.sys
|
ndiswrapper is installed from portage, but it generates that directory when drivers are added, at the first run.
Additionally, it detected the file: /usr/qt/3/etc/settings/qtrc ... is it stll useful?
Thanks for the work
[/code] |
|
Back to top |
|
|
usman n00b
Joined: 27 Jun 2004 Posts: 3 Location: Surrey, England (UK)
|
Posted: Wed Nov 10, 2004 10:31 pm Post subject: |
|
|
Nice script,
only problem i ran into was that it listed all the files on my windows partitions. Is there a way to exclude them?
They are all mounted as read-only (if that helps?). |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Thu Nov 11, 2004 6:27 am Post subject: |
|
|
usman wrote: | Nice script,
only problem i ran into was that it listed all the files on my windows partitions. Is there a way to exclude them?
They are all mounted as read-only (if that helps?). |
According to the Filesystem Hierarchy Standard I would mount things like Windows partitions under /media, although it's not really a "removeable medium". You could also use some subdir of /mnt, but the FHS says that /mnt itself is considered a temporary mount point.
Both, /media and /mnt are completely ignored by the script.
Or you leave it as it is (/windows?) and add this directory to one of the PRUNE_SOMETHING sections in the script. I would say it's either PRUNE_USERS or PRUNE_LOCAL, but it really doesn't matter. They are all just ignored. |
|
Back to top |
|
|
shadowteller n00b
Joined: 01 Oct 2004 Posts: 27 Location: Logan, UT
|
Posted: Sun Nov 14, 2004 10:33 pm Post subject: Cruft error |
|
|
I downloaded the code and voila....
this is what I got
Quote: | Leto temp # ls -la
total 37
drwxr-xr-x 2 root root 72 Nov 14 15:30 .
drwxr-xr-x 20 root root 480 Nov 14 15:18 ..
-rwxrwxrwx 1 root root 35738 Nov 14 15:21 cruft
Leto temp # ./cruft | tee cruft.out
: bad interpreter: No such file or directory
Leto temp #
|
Boooooooo....whats up with that? |
|
Back to top |
|
|
Kanniball Apprentice
Joined: 23 Jan 2004 Posts: 208 Location: Portugal
|
Posted: Wed Nov 17, 2004 6:26 pm Post subject: |
|
|
Please check about /var/lib/postgresql/data
cos I think here is all the postgresql databases...
anyway Thanks for this script.... I have 9250 files to delete |
|
Back to top |
|
|
fernandotcl Veteran
Joined: 20 Nov 2003 Posts: 1396 Location: Sao Paulo, Brazil
|
Posted: Wed Nov 17, 2004 7:53 pm Post subject: |
|
|
I got several entries for /var/log files and my connection pid in /var/run. Is this "desirable"? _________________ RTFM! |
|
Back to top |
|
|
hepta_sean Apprentice
Joined: 27 Apr 2004 Posts: 246 Location: Berlin, Germany
|
Posted: Fri Nov 19, 2004 4:14 am Post subject: |
|
|
Hello!
Since ecatmur is gone for quite a while by now, and not maintaining this script anymore, I've rewritten a script with similar purpose from scratch, which hopefully is a little easier to maintain.
It has got the script and the data seperated, so it should be easier to adopt it to your specific needs.
The thread for this script, which I called findcruft to avoid confusion with this one, can be found here.
Greetings,
sean |
|
Back to top |
|
|
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
Posted: Fri Nov 19, 2004 4:38 pm Post subject: |
|
|
kamagurka wrote: |
2. what's /lib/dev-state/?
|
/lib/dev-state seems to be used with devfsd according to this document: Device File System Guide.
If one uses udev, I guess on can delete this directory? |
|
Back to top |
|
|
Blubbmon Apprentice
Joined: 13 Feb 2004 Posts: 156 Location: Germany, Potsdam
|
Posted: Fri Nov 19, 2004 7:04 pm Post subject: |
|
|
Quote: |
[/lib/dev-state is used by devfs]
If one uses udev, I guess on can delete this directory?
|
Please do not tag this as cruft. Maybe some users (me too) are testing diffrent kernels with _and_ without devfs |
|
Back to top |
|
|
Broot Tux's lil' helper
Joined: 20 Sep 2003 Posts: 122
|
Posted: Sun Nov 28, 2004 12:36 pm Post subject: |
|
|
Hello!
I've been trying to get the cruft script working forever, but every time I run
Code: | root# ./cruft | tee cruft.out |
I get
Code: | bash: ./cruft: Permission denied |
and cruft.out is a blank file. I've also tried running the script from different directories, but nothing changes.
Any help, guys? |
|
Back to top |
|
|
soulwarrior Guru
Joined: 21 Oct 2002 Posts: 331
|
|
Back to top |
|
|
soulfire n00b
Joined: 09 Apr 2004 Posts: 70 Location: Italy
|
Posted: Thu Dec 30, 2004 12:26 pm Post subject: |
|
|
Broot wrote: | Hello!
I've been trying to get the cruft script working forever, but every time I run
Code: | root# ./cruft | tee cruft.out |
I get
Code: | bash: ./cruft: Permission denied |
and cruft.out is a blank file. I've also tried running the script from different directories, but nothing changes.
Any help, guys? |
have you tried
Code: | # chmod u+rx ./cruft |
_________________ I can divide by zero |
|
Back to top |
|
|
Cintra Advocate
Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Wed Jan 26, 2005 9:58 am Post subject: |
|
|
soulwarrior wrote: | kamagurka wrote: |
2. what's /lib/dev-state/?
|
/lib/dev-state seems to be used with devfsd according to this document: Device File System Guide.
If one uses udev, I guess on can delete this directory? |
Did you/anyone delete /lib/dev-state/ yet?
mvh
Edit: I got rid of mine OK _________________ "I am not bound to please thee with my answers" W.S.
Last edited by Cintra on Thu Jan 27, 2005 12:28 pm; edited 1 time in total |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Thu Jan 27, 2005 7:29 am Post subject: |
|
|
If I'm not mistaken, dep has been updated recently?
Code: | dep v. 0.4.00 "Skull Panda Loves Kitties"
an inappropriate Portage engine! |
For awhile it was "chocolate salty balls", but I'm not sure when this update took place.
This is still my favorite tool for gentoo, maybe even more than emerge (well, I wouldn't need it if emerge worked fully, but...) :) |
|
Back to top |
|
|
asph l33t
Joined: 25 Aug 2003 Posts: 741 Location: Barcelona, Spain
|
Posted: Tue Feb 01, 2005 4:50 pm Post subject: |
|
|
the scripts seems broken at 0.0.13, at least it dsoesnt run correctly here:
Code: |
memnoch ~ # ./cruft | tee cruft.out
Developing list of potential false positives...
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[suffix], --in-place[=suffix]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
-V, --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
E-mail bug reports to: bonzini@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
./cruft: line 2: s!^\(/var/db/pkg/sys-kernel/.*\)/PROVIDE:.*$!\1!: No such file or directory
Collecting files managed by Portage...
Collecting other files...
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[suffix], --in-place[=suffix]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
-V, --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
E-mail bug reports to: bonzini@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
./cruft: line 1020: :a;/\\$/N;s/\\\n//;ta;s/^.*start-stop-daemon.*\(\<-p\|--pidfile\>\|\<-m\|--make-pidfile\>\)[[:space:]]*\(\/[^[:space:]]\+\).*$/\2/;tb;s/^.*pidfile=\(\/[^[:space:]]\+\).*$/\1/;tb;d;:b;s/[[:space:]]\+/\n/g: No such file or directory
Finding files on your filesystem...
./cruft: line 2: -path: command not found
find: paths must precede expression
Usage: find [path...] [expression]
Comparing file lists...
|
has this original script been abandoned? _________________ gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep |
|
Back to top |
|
|
|