Re: fedora-list Digest, Vol 63, Issue 119
by DB
f
> Date: Mon, 25 May 2009 00:39:34 -0700
> From: "Wolfgang S. Rupprecht"
> <wolfgang.rupprecht+gnus200905(a)gmail.com>
> Subject: Re: Can't boot after an update
> To: fedora-list(a)redhat.com
> Message-ID: <87hbz9637t.fsf(a)ancho.wsrcc.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> DB <Freddog_de(a)yahoo.co.uk> writes:
>
>> I'm now trying to find a script that will clean /tmp automatically on
>> a regular basis. (I think part of the backlog is due to the switch
>> from Gnome to KDE)
>>
>
> I clean my /tmp on each orderly shutdown. That way if the system
> crashes, my /tmp is preserved but when I do a reboot, it gets cleaned.
> Put this in /sbin/halt.local.
>
> /sbin/halt.local:
>
> #!/bin/sh
> # wsrcc halt script
>
> echo "WSRCC: Clearing /tmp"
>
> cd /
> /bin/rm -rf /tmp/* /tmp/.??*
> sync; sync; sync;
>
> #
> # end
> #
>
> I used to use an age based clearing method, but that tended to remove
> things I was still using if the system stayed up too long and it didn't
> clear things quickly enough such as cases where something significant
> changed and caused a name clash in /tmp. (Try changing UID's around
> sometime and forget about the files in /tmp. Things won't be sane until
> all those files get nuked.)
>
> -wolfgang
>
Thanks Wolfgang, I'll give it a whirl!
Dave
15 years
gallery2 update that came out today.
by Jason Dickerson
The update will break the gallery; however there is a workaround. Before
you run the upgrade from http://<host>/gallery2/upgrade, you need to add the
following symlink
ln -s /usr/share/php/Smarty /usr/share/gallery2/lib/smarty
If you have already run the upgrade, you can still just add the symlink and
it will work. I only say to add it before, to minimize the system check
errors.
After the symlink is added, the upgrade system checks detect 3 files missing
(2 documentation files and a jar file, g2_db2.jar) and 2 modified
(Smarty_Compiler.class.php and modifier.debug_print_var.php). These do not
seem to present an issue.
As far as I can tell, everything is working after the symlink was created.
Jason Dickerson
15 years
Re: emacs c++ code completion help
by gmspro
[
Actually that's a question I had for some time, and now found the
motivation to look for the answer, this might help, I will try it
tomorrow as it is late tonight:
http://cedet.sourceforge.net/intellisense.shtml
--
Armin Moradi
]
Would you please tell how to install it?
What i did
going to the directory cedet-1.0pre6
make
make install.
Now don't understand what to do?
15 years
Using 'find' and 'read' to traverse list, allowing user input inside the loop [Re: cd to folder with spaces - in a script]
by MartinG
On Fri, May 22, 2009 at 10:09 PM, Steven W. Orr <steveo(a)syslang.net> wrote:
> <snip>
> ii=0
> while read -d $'\000' FOLDERNAME
> do
> savd=$PWD
> cd "$FOLDERNAME"
> ii=$((ii+1))
> cd "$savd"
> done <(find . -type d -print0)
This is all cool, as long as you don't want user input in the middle
of that loop, using another 'read'. In order to do that, one can
redirect the outer pipe to eg. FD 3. The following is a otherwise
meaningless code to illustrate my point:
#!/bin/bash
mypattern='.directory'
mylist=/tmp/mylist.txt
#path="$1"
path=$HOME
while read -u 3 -d $'\000' i; do # see pipe after "done"
echo "Found match: \"$i\""
printf "Add to list ($mylist)? [Y|n] "
read ans
[[ x"$ans" == x"yes" || x"$ans" == x"y" || x"$ans" == x"" ]]
&& (echo "$i" >> $mylist && echo "Added $i") || echo "Skipped, moving
on..."
done 3< <(find $path -iname "$mypattern" -type f -print0)
If I hadn't redirected the "find pipe" to FD 3, the inner "read ans"
would simply read the next matching filename, and fail the user input.
Not sure what would happen if FD 3 for some reason is occupied, maybe
the use of mkfifo is more robust, however I never found a way to get
around FD 3...:
mypipe=`basename $0`-pipe
[ -p $mypipe ] && (rm $mypipe;echo "removed stale pipe")
mkfifo $mypipe
find . -iname "$mypattern" -type f -print0 > $mypipe &
while read -u 3 -d $'\000' i ; do # see pipe after "done"
...
done 3< $mypipe
rm $mypipe
best,
MartinG
15 years
KDE Wallet - why does it ask?
by Timothy Murphy
KDEWallet has started asking me for my password
when I enter KMail.
What exactly determines whether or not KDE Wallet
asks for this?
Is it a function of the application or of the wallet?
--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin
15 years
Re: Can't boot after an update
by DB
>
> Message: 13 Date: Sun, 24 May 2009 00:39:39 +0200 From: Kevin Kofler
> <kevin.kofler(a)chello.at> Subject: Re: Can't boot after an update To:
> fedora-list(a)redhat.com Message-ID: <gv9tvb$6vf$2(a)ger.gmane.org>
> Content-Type: text/plain; charset=us-ascii DB wrote:
>> > Got myself to a CLI, logged on as root, edited inittab to start in level
>> > 3. Login under my normal username is accepted, try startx, screen
>> > flashes some text (something about authority, I think from the bit I can
>> > see), screen goes black then comes back to the CLI with several repeats
>> > of a message about keyboard not compiling, error not fatal, waiting for
>> > X to terminate. Logon as root is accepted, gives a grey screen & then a
>> > Gnome window comes up & seems to work OK.
>>
>
> What video driver? Did it get upgraded recently?
>
NV, but I don't think it has been changed in a long time.
>
>> > Tried the Live CD. The original non-KDE one works OK, the KDE CD comes
>> > up to a login window wanting a password for "liveuser" (which it never
>> > did before - this system was installed from the F10-live-kde disc
>> > without any problem); I've tried all the passwords I can think of & it
>> > just keeps coming back to the login screen.....
>>
>
> The default password on the live CDs is blank, i.e. don't enter a password,
> just press ENTER. No idea why the autologon isn't working though.
>
Umm, the blank password was my first guess, & didn't work.
> Kevin Kofler
>
Thanks for your help Kevin. It turns out /tmp was full, & once I'd
cleaned out the .trash the system started up again without problem.
I'm now trying to find a script that will clean /tmp automatically on a
regular basis. (I think part of the backlog is due to the switch from
Gnome to KDE)
Thanks again
Dave
15 years