Re: [arch-general] File Associations for firefox & thunderbird :)^

2010-06-16 Thread Patrick Brisbin
On 06/14/10 at 11:33pm, Michishige Kaito wrote:
> On Mon, 14 Jun 2010, Philipp Überbacher wrote:
> 
> >Excerpts from Nilesh Govindarajan's message of 2010-06-14 18:28:24 +0200:
> >>On 06/14/2010 09:07 PM, Philipp Überbacher wrote:
> >>>Excerpts from Nilesh Govindarajan's message of 2010-06-14 17:09:26 +0200:
> >>>>I am a full time KDE user and I don't have GNOME or its libraries.
> >>>>Firefox and Thunderbird keep asking me to choose applications to open
> >>>>.pdf, .doc, .xls, http://, etc.
> >>>>Is there no package which can fix the file associations for FF and TB ?
> >>>
> >>>That's likely some xdg stuff. It usually works using gnome, KDE and xfce
> >>>but nothing else. KDE probably has some preferences thing somewhere,
> >>>otherwise you're pretty much as f. as everyone who doesn't use a big
> >>>DE. Hurray for 'Desktop Integration'..
> >>
> >>I don't think so.
> >>xdg-settings --list gives on default-web-browser.
> >
> >You can't use xdg-settings when you don't have one of the major DEs
> >running, xdg-open falls back to a hardcoded array of browsers in that
> >case. It's all quite awkward if you don't use gnome, kde or xfce.
> >I know, doesn't really help with your problem..
> 
> I found thunderbird asking me for a program to execute for links.
> Pointed it to the right program and told it to remember. Never asked
> again. I wouldn't know where to change it if I ever wanted, but it's
> been working so far, and I don't use a DE.
> 

xdg-open for non-DE users is annoying but possible. I spent an evening
reading the source (it's just a bash script anyway).

When no DE stuff is present it falls back to some application.list file
which associates mimetypes with .desktop files. The list and .desktop
files are searched for in /usr/share/applications globally and
~/.local/share/applications on a per user basis.

There's also xdg-open commands to add/remove associations and .desktop
files to/from the list.

No match found for a mimetype and we fall back on $BROWSER.

At least that's how I remember it all working, I haven't looked in quite
some time.

I hear you can also install mimeo or some other Xyne-tool which will
override all this and make it work better.

-- 
patrick brisbin


Re: [arch-general] Remove Epiphany Browser

2010-04-28 Thread Patrick Brisbin
On 04/28/10 at 11:40am, Carlos Mennens wrote:
> I just installed a fresh system today with Gnome 2.6.30. It
> automatically installed Epiphany & Epiphany Web Bookmarks too.  I
> would like to know if I remove both of these applications, will I
> effect Gnome or any of it's dependancies? I wont ever use Epiphany and
> I don't like useless applications lingering on my system? Is there a
> way to purge all of it's installation existance off my new machine
> without messing up Gnome?

pacman is smart. If you try and -R epiphany it will tell you exactly
what dependencies that might break (if any) and not let you proceed.

Alternatively, you can use pacman -Qi epiphany and look for the "Required
by" information.

P

-- 
patrick brisbin


Re: [arch-general] gmail and mailing list

2010-01-12 Thread Patrick Brisbin
On 01/12/10 at 07:57pm, Xavier wrote:
> It was set to "yes" for me, that was probably the default, I don't
> remember ever changing that.

I've mine set to yes as well but I still don't get my own posts. Oh well, mutt
to the rescue again:

  # cc myself when replying to an ML
  # note: with this, you can't :q! mid-compose to abort
  # instead, just :wq and abort from the compose menu
  unhook send-hook
  send-hook "~u" "push ',pbris...@gmail.com'"

-- 
patrick brisbin


Re: [arch-general] MUA

2009-11-17 Thread Patrick Brisbin
On 11/17/09 at 01:13pm, Aaron Griffin wrote:
> On Tue, Nov 17, 2009 at 12:55 PM, Marc Deop i Argemí
>  wrote:
> > On Tuesday 17 November 2009 19:06:18 Xavier wrote:
> >> Lately I realized I have become way too addicted of the gmail
> >> interface, and in particular the way it handles threads
> >>
> >
> > Would you mind to explain what is addicting you?
> >
> > I specially *dislike* the way gmail puts all the replies at the same level,
> > just to take one example out of my head.
> 
> My girlfriend hates the exact same thing. That's one of the things I
> love about it.
> 
> Think about it this way: blog comments, forum posts, instant messages,
> and (some) phone text messages work this way - your messages and other
> people's messages are all displayed together, because it's a
> "conversation". I've never seen an IM client that doesn't display what
> I write. Why should email be different?

I understand seeing your own replies as a benefit (could be solved with
set record = [Gmail]/INBOX in muttrc). But I believe he meant the
branching.

In gmail's web interface a thread is vertical, sorted by time. However
here in mutt, I can see that I've replied to you in our own little
thread branch.

I like this better. Personally, with the proper sort, sort_aux, and
record settings in muttrc, I don't see how gmail's got anything on mutt
in the realm of threading.

That's just me though :) to each their own.

Pat

-- 
patrick brisbin


Re: [arch-general] google wave

2009-10-31 Thread Patrick Brisbin
On 10/31/09 at 10:06pm, Bobby wrote:
> I just received an invite. I have 20 invites to send out, so if anyone
> still needs one, I'll probably give away 10 of them to you guys.
> Respond quickly :)

I'd love to play with it, did I make the cutoff?

Much appreciated,
Pat

-- 
patrick brisbin


Re: [arch-general] offlineimap went crazy

2009-09-03 Thread Patrick Brisbin
On 09/03/09 at 05:34pm, Xavier wrote:
> On Thu, Sep 3, 2009 at 5:28 PM, Patrick Brisbin wrote:
> > On 09/03/09 at 07:17pm, Jozsef wrote:
> >> On Thu, 03 Sep 2009, Patrick Brisbin wrote:
> >> > > Could you, please, post them all somewhere else?
> >> >
> >> > http://pastie.org/604452
> >> >
> >>
> >> I see only your .offlineimaprc in pastie. Am I missing something or
> >> you forgot to paste your script?
> >
> > don't know what to tell you, it's all there. promise.
> >
> > are we on the same internet?
> >
> 
> ahah. apparently not :)
> 
> btw the http://pbrisbin.com:8080/dotfiles/offlineimaprc link works
> perfectly here, but the problem with pastie looks like a bigger one :)

Thank you for checking, I sent a few 'does this link work for you' IMs
immediately after that first message.

Jozsef, 

Maybe you're confused because pastie lets you paste multiple things into
one paste by separating them with '## Some Heading'?

I've checked the link 3 times, "offlineimaprc", "mailrun", and "cron..."
are the three headings I used in that paste, and it looks fine from
here.

-- 
patrick brisbin


Re: [arch-general] offlineimap went crazy

2009-09-03 Thread Patrick Brisbin
On 09/03/09 at 07:17pm, Jozsef wrote:
> On Thu, 03 Sep 2009, Patrick Brisbin wrote:
> > > Could you, please, post them all somewhere else? 
> > 
> > http://pastie.org/604452
> > 
> 
> I see only your .offlineimaprc in pastie. Am I missing something or
> you forgot to paste your script?

don't know what to tell you, it's all there. promise.

are we on the same internet?

-- 
patrick brisbin


Re: [arch-general] offlineimap went crazy

2009-09-03 Thread Patrick Brisbin
On 09/03/09 at 06:54pm, Jozsef wrote:
> On Thu, 03 Sep 2009, Jozsef wrote:
> > On Thu, 03 Sep 2009, Patrick Brisbin wrote:
> > > On 09/03/09 at 05:56pm, Jozsef wrote:
> I find the log from Cron and I think something is wrong, what do you
> think?

> 03-Sep-2009 18:17  unable to exec /usr/sbin/sendmail -t, user -oem,
> output to sink null

you can ignore these, cron's just trying to mail you the output and
finding that sendmail's not set up for it.

> 03-Sep-2009 18:20  FILE /var/spool/cron/jozefk USER jozefk pid 4604
> cmd offlineimap -o -u Noninteractive.Quiet

i /think/ this means it's working?

-- 
patrick brisbin


Re: [arch-general] offlineimap went crazy

2009-09-03 Thread Patrick Brisbin
On 09/03/09 at 06:31pm, Jozsef wrote:
> On Thu, 03 Sep 2009, Patrick Brisbin wrote:
> 
> > On 09/03/09 at 05:56pm, Jozsef wrote:
> > > Everything worked fine until I changed the .offlineimaprc to fetch
> > > mails from multiple accounts.
> > 
> > > Here is my .offlineimaprc :
> > > http://pastie.org/private/mlskz0tkpf6jgytj9d5q
> > 
> > I use offlineimap with multiple accounts and it's working fine here. my
> > offlineimaprc is a bit simpler than yours though[1], you're welcome to
> > take/adjust it and see if there are any improvements.
> > 
> > Supporting mutt and msmtp configs are in the same directory.
> > 
> > [1] http://pbrisbin.com:8080/dotfiles/offlineimaprc
> > 
> > -- 
> > patrick brisbin
> 
> Thanks for reply Patrick! But I can't open your link. Even last time
> you post your script for checking if offlineimap is running with cron.
> I was not able to open it :(

boo, i wonder why.

> Could you, please, post them all somewhere else? 

http://pastie.org/604452

> Now I'm trying with crontab but I can't see how it works except if I
> keep receiving emails in my inbox.

cron should log somewhere in /var/log that it's running the command you've
placed in crontab and whether it completes successfully or not, i use fcron so
i don't remember the details. You can also pass options to offlineimap to tell
it to keep a log of itself and where.

> And what was that script you have for checking if offlineimap is
> running? How can I use it? Where to place it and how to run it?

I've included it in the paste

good luck.

-- 
patrick brisbin


Re: [arch-general] offlineimap went crazy

2009-09-03 Thread Patrick Brisbin
On 09/03/09 at 05:56pm, Jozsef wrote:
> Everything worked fine until I changed the .offlineimaprc to fetch
> mails from multiple accounts.

> Here is my .offlineimaprc :
> http://pastie.org/private/mlskz0tkpf6jgytj9d5q

I use offlineimap with multiple accounts and it's working fine here. my
offlineimaprc is a bit simpler than yours though[1], you're welcome to
take/adjust it and see if there are any improvements.

Supporting mutt and msmtp configs are in the same directory.

[1] http://pbrisbin.com:8080/dotfiles/offlineimaprc

-- 
patrick brisbin


Re: [arch-general] offlineimap

2009-08-31 Thread Patrick Brisbin
On 08/31/09 at 11:42am, Andre Ramaciotti da Silva wrote:

> Also, wouldn't it be better if offlineimap ran every once in a while instead 
> of
> only when you start KDE? In this case, setting up cron would be better suited.

i agree. 

offlineimap does have a builtin interval-resync functionality, however i
find it to be pretty buggy, so personally, i just go the cron route:

*/3 * * * * offlineimap -o -u Noninteractive.Quiet


(i even call my own script[1] to check if its already running first, but
the above way should work too).

[1] http://pbrisbin.com:8080/bin/mailrun

-- 
patrick brisbin


Re: [arch-general] arch-release

2009-08-26 Thread Patrick Brisbin
On 08/26/09 at 01:35pm, David C. Rankin wrote:
> On Wednesday 26 August 2009 03:19:30 am Nathan K. Bathory wrote:
> > >
> > > pacman -Q obviously not the answer, but whilst on that  - is it
> > > possible to do a pacman -Q, save the output somewhere, then on
> > > another machine, just reverse the process? Would save me heaps of
> > > time putting a system back together as happened last week when i had
> > > to replace my HDD, taken me ages to 'remember' everything I had on it.
> > >
> > >
> > > Richard
> > 
> 
>   To save the download time, if the machines are the same architecture:
> 
> > `pacman -Qq > pkg.list`
> > then on the other machine
> 
> (as root) rsync -uav usern...@oldmachine:/var/cache/pacman/pkg 
> /var/cache/pacman
> 
> > `sudo pacman -S $(cat pkg.list)`
> > 
> 
>   If you rsync (or scp or move with a usb stick) the package files from 
> the 
> oldmachine to the newmachine before issuing the "sudo pacman -S $(cat 
> pkg.list)`, then the install uses the local files and avoid the time required 
> to download them. You can easily do a 10 minute install that way.
> 

as a small aside; after being corrected a few times on bbs, i now know
that

  pacman -Qqe | grep -vx "$(pacman -Qqm)" > pkg.list

and

  cat pkg.list | xargs pacman -S --noconfirm --needed

work the best for this.  list out only explicitly installed minus any foreign
packages; then only install those that are needed (pull in your own
deps).

-- 
patrick brisbin


Re: [arch-general] Script for finding and "moving" older duplicate packages from /var/cache/pacman/pkg

2009-08-25 Thread Patrick Brisbin
On 08/26/09 at 12:02am, Frédéric Perrin wrote:
> Le mardi 25 à 17:03, Patrick Brisbin a écrit :
> > tar -xf on a 3 GB cache -> 1m 42s
> >
> > bsdtar -qxf on the same cache -> 0m 9s
> 
> If you ran both of them on the same set of files, BSD tar was certainly
> quicker because it took advantage of the files being cached thanks to
> the first run of GNU tar. Now, it may also be that BSD tar /is/ faster
> --we all know that GNU programs are crippled with too much features for
> their own good ;-).
> 
> Do you get the same results if you run the same commands a couple of
> times in succession, discarding the first run ?

FWIW, i ran them again in succession two times each:

  tar -xv 1m 55s
  tar -xv 1m 37s
  bsdtar -qxv 0m 9.5s
  bsdtar -qxv 0m 9.5s

also, --fast-read yielded "invalid option" with tar.

-- 
patrick brisbin


Re: [arch-general] Script for finding and "moving" older duplicate packages from /var/cache/pacman/pkg

2009-08-25 Thread Patrick Brisbin
On 08/25/09 at 04:45pm, Thomas Bächler wrote:
> Patrick Brisbin schrieb:
>> A while back i wrote a similar script which extracts the .PKGINFO file
>> from each package in one's cache. slow, but I think this is a more
>> accurate way to compare versions.
>
> We had that discussion on arch-dev-public a while ago. makepkg always puts 
> .PKGINFO to the beginning of the tarball. Also, tar and bsdtar both have 
> options to ensure that after the file is found, they stops extracting - 
> therefore, the .PKGINFO file will be extracted instantly, independent of 
> package size. Look at the tar or bsdtar manpages, unfortunately I forgot 
> exactly how it works.
>

WOW!

tar -xf on a 3 GB cache -> 1m 42s

bsdtar -qxf on the same cache -> 0m 9s

awesome.

-- 
patrick brisbin


Re: [arch-general] Script for finding and "moving" older duplicate packages from /var/cache/pacman/pkg

2009-08-25 Thread Patrick Brisbin
A while back i wrote a similar script which extracts the .PKGINFO file
from each package in one's cache. slow, but I think this is a more
accurate way to compare versions.

as-is, it will cp $N versions back from installed packages (inclusive)
to $WD/saveme, where N and WD are defined in the script.

i use it to save the N version, clean out my cache, then move them back.
but i think you could easily modify it to suit your usage case

instead of moving N versions to saveme you could echo the filename into
a saveme.lst, then mv anything not in saveme.lst to your oldpkg
directory.

or you could just take my little .PKGINFO / awk trickery and merge it
into your script...

or you could just ignore me and go with mod times :).

anyways, more info is always better, right? i've attached the script for
you to peruse.

thanks,
pat

On 08/25/09 at 12:51am, David C. Rankin wrote:
> On Monday 24 August 2009 11:51:45 pm David C. Rankin wrote:
> > 
>  
> > The script for finding and moving older duplicate packages is named 
> > fduppkg and is fairly self-explanitory. Running without arguments gives the 
> > options:
> > 
> 
>   BASH never fails to amaze me, 3116 element array to handle the 
> packages, and BASH never batted an eye. It just kept on trucking
> 
> [00:41 archangel:/home/david/scripts/file] # ./fdup-archpkg -v
> 
> 
> 
> ${SARRAY[3114]} zenity-2.26.0-1-x86_64.pkg.tar.gz
> Search filename: zenity
> Search Architecture: x86_64
> Duplicate filename: zenity
> Duplicate Architecture: x86_64
> Keeping:  /var/cache/pacman/pkg/zenity-2.26.0-2-x86_64.pkg.tar.gz
> Duplicate found: 1
> Search filename: zenity
> Search Architecture: x86_64
> Duplicate filename: zenity
> Duplicate Architecture: x86_64
> `/var/cache/pacman/pkg/zenity-2.26.0-1-x86_64.pkg.tar.gz' -> 
> `/home/backup/pkg-old/zenity-2.26.0-1-x86_64.pkg.tar.gz'
> removed `/var/cache/pacman/pkg/zenity-2.26.0-1-x86_64.pkg.tar.gz'
> Duplicate found: 2
> 
> ${SARRAY[3116]} zip-3.0-1-x86_64.pkg.tar.gz
> Search filename: zip
> Search Architecture: x86_64
> Duplicate filename: zip
> Duplicate Architecture: x86_64
> Keeping:  /var/cache/pacman/pkg/zip-3.0-1-x86_64.pkg.tar.gz
> Duplicate found: 1
> 
> Done!
> 
> [00:43 archangel:/home/david/scripts/file] # du -hcs /var/cache/pacman/pkg/
> 3.0G/var/cache/pacman/pkg/
> 3.0Gtotal
> [00:48 archangel:/home/david/scripts/file] # du -hcs /home/backup/pkg-old/
> 5.2G/home/backup/pkg-old/
> 5.2Gtotal
> 
>   There's an extra 5.2G back ;-)
> 
> -- 
> David C. Rankin, J.D.,P.E.
> Rankin Law Firm, PLLC
> 510 Ochiltree Street
> Nacogdoches, Texas 75961
> Telephone: (936) 715-9333
> Facsimile: (936) 715-9339
> www.rankinlawfirm.com

-- 
patrick brisbin
#!/bin/bash
#
# pbrisbin 2009
#
###

N=3 # how may versions to keep -- includes installed

PD="/var/cache/pacman/pkg"
WD="/tmp/pacclean"

rm -rf $WD
mkdir -p $WD/saveme

LC_ALL="C"

pushd $WD &>/dev/null || exit 1

for package in $(find $PD -name *.pkg.tar.gz | sort -r); do
  gunzip < $package | tar -xf - .PKGINFO || exit 1
  file="$package"
  name="$(awk '/^pkgname/ {print $3}' .PKGINFO)"
  vers="$(awk '/^pkgver/ {print $3}' .PKGINFO)"
  echo "$name $vers $file" >> $WD/all.lst
done

popd &>/dev/null || exit 1

pacman -Qq | while read pack; do
  grep -m $N ^$pack\  $WD/all.lst | awk '{print $3}' | while read file; do
cp -av $file $WD/saveme/
  done
done

echo "up to $N versions of each installed package are now in $WD/saveme"
echo "please verify everything you want is there before clearing your cache"

exit 0


Re: [arch-general] The vsftpd only starts at the second attempt

2009-07-31 Thread Patrick Brisbin
> Not been successful.

I'm seeing the same behavior on my system.  the script correctly starts
vsftpd but doesnt get the PID immediately and puts up the FAIL message.

changing /etc/rc.d/vsftpd like this fixes it for me:

  start)
stat_busy "Starting vsftpd FTP Daemon"
if [ -z "$PID" ]; then
  /usr/sbin/vsftpd &
  sleep 2
  PID=`...

adjust sleep as desired

> 2009/7/31, Patrick Brisbin :
> > try adding background=YES to vsftpd.conf
> >
> > On 07/31/09 at 02:53am, Lucas Salies Brum wrote:
> >> (r...@abraham ~):# ps -A | grep vsftpd
> >> (r...@abraham ~):# /etc/rc.d/vsftpd start
> >> :: Starting vsftpd FTP Daemon
> >>  [FAIL]
> >> (r...@abraham ~):# /etc/rc.d/vsftpd stop
> >> :: Stopping vsftpd FTP Daemon
> >>  [DONE]
> >> (r...@abraham ~):# /etc/rc.d/vsftpd start
> >> :: Starting vsftpd FTP Daemon
> >>  [DONE]
> >> (r...@abraham ~):# ps -A | grep vsftpd
> >>  6453 pts/300:00:00 vsftpd
> >>
> >>
> >> This has happened to someone?
> >>
> >> /etc/vsftpd.conf - http://paste.archlinux-br.org/1241
> >> /etc/rc.conf - http://paste.archlinux-br.org/1242
> >>
> >> Arch Linux i686.
> >>
> >> Thanks.
> >> ---
> >> Lucas Saliés Brum
> >> http://sistematico.org
> >> lsbrum @ irc.freenode.org
> >
> > --
> > patrick brisbin
> >
> 
> 
> -- 
> ---
> Lucas Saliés Brum
> http://sistematico.org
> lsbrum @ irc.freenode.org

-- 
patrick brisbin 


Re: [arch-general] The vsftpd only starts at the second attempt

2009-07-31 Thread Patrick Brisbin
try adding background=YES to vsftpd.conf

On 07/31/09 at 02:53am, Lucas Salies Brum wrote:
> (r...@abraham ~):# ps -A | grep vsftpd
> (r...@abraham ~):# /etc/rc.d/vsftpd start
> :: Starting vsftpd FTP Daemon
>  [FAIL]
> (r...@abraham ~):# /etc/rc.d/vsftpd stop
> :: Stopping vsftpd FTP Daemon
>  [DONE]
> (r...@abraham ~):# /etc/rc.d/vsftpd start
> :: Starting vsftpd FTP Daemon
>  [DONE]
> (r...@abraham ~):# ps -A | grep vsftpd
>  6453 pts/300:00:00 vsftpd
> 
> 
> This has happened to someone?
> 
> /etc/vsftpd.conf - http://paste.archlinux-br.org/1241
> /etc/rc.conf - http://paste.archlinux-br.org/1242
> 
> Arch Linux i686.
> 
> Thanks.
> ---
> Lucas Saliés Brum
> http://sistematico.org
> lsbrum @ irc.freenode.org

-- 
patrick brisbin 


Re: [arch-general] how to migrate installs between hard drives?

2009-07-30 Thread Patrick Brisbin
On 07/30/09 at 12:39pm, solsTiCe d'Hiver wrote:
> > I tried a simple 'cp -av' [...] and find that everything is set to
> > root / root
> 
> if you want to preserve permission, you need to use -p too.
> 
> Do you know that there exists something called the man pages (the manual
> pages) for each command on your system ?
> so if you run 'man cp', you get a list of all the options of cp and how
> it works.

man cp said:

  -a --archive
  same as -dR --preserve=all

so shouldn't -a work just fine? (-p is --preserve btw) it worked fine
for me when i migrated from 32 to 64 bit by reinstalling and restoring
/home /etc

-- 
patrick brisbin 


Re: [arch-general] vim syntax file broken??

2009-07-30 Thread Patrick Brisbin
thanks for the clarification, i'm more of a get-it-working-now guy than
a wait-for-next-release guy ;D. i do plan on removing said symlink once
the new version is installed.

pat

On 07/29/09 at 11:14pm, Tobias Kieslich wrote:
> what happened is, that I improperly left the runtimepath in archlinx.vim 
> will be fixed in next release. so creating the symlink is not quite the
> proper solution :P
> 
> 
> On Wed, 29 Jul 2009, Patrick Brisbin wrote:
> 
> > this was the same error i got and fixed with
> > 
> >   sudo ln -s /usr/share/vim/vim72 /usr/share/vim/vimcurrent
> > 
> > but i'm told this vimcurrent stuff will go away soon, and another user
> > on bbs has a line one could put in ~/.vimrc to fix this as well... cant
> > remember it now though.
> > 
> > up to you how to proceed.
> > 
> > cheers.
> > 
> > 
> > On 07/29/09 at 07:55pm, David C. Rankin wrote:
> > > Listmates,
> > > 
> > >   Attempting to enable syntax in vim, I received the following:
> > > 
> > > Error detected while processing /usr/share/vim/vim72/syntax/syntax.vim:
> > > line   42:
> > > E216: No such group or event: filetypedetect BufRead
> > > Press ENTER or type command to continue
> > > 
> > >   It has always worked before, so this is something new.
> > > 
> > > -- 
> > > David C. Rankin, J.D.,P.E.
> > > Rankin Law Firm, PLLC
> > > 510 Ochiltree Street
> > > Nacogdoches, Texas 75961
> > > Telephone: (936) 715-9333
> > > Facsimile: (936) 715-9339
> > > www.rankinlawfirm.com
> > 
> > -- 
> > patrick brisbin 

-- 
patrick brisbin 


Re: [arch-general] vim syntax file broken??

2009-07-29 Thread Patrick Brisbin
this was the same error i got and fixed with

  sudo ln -s /usr/share/vim/vim72 /usr/share/vim/vimcurrent

but i'm told this vimcurrent stuff will go away soon, and another user
on bbs has a line one could put in ~/.vimrc to fix this as well... cant
remember it now though.

up to you how to proceed.

cheers.


On 07/29/09 at 07:55pm, David C. Rankin wrote:
> Listmates,
> 
>   Attempting to enable syntax in vim, I received the following:
> 
> Error detected while processing /usr/share/vim/vim72/syntax/syntax.vim:
> line   42:
> E216: No such group or event: filetypedetect BufRead
> Press ENTER or type command to continue
> 
>   It has always worked before, so this is something new.
> 
> -- 
> David C. Rankin, J.D.,P.E.
> Rankin Law Firm, PLLC
> 510 Ochiltree Street
> Nacogdoches, Texas 75961
> Telephone: (936) 715-9333
> Facsimile: (936) 715-9339
> www.rankinlawfirm.com

-- 
patrick brisbin 


Re: [arch-general] Error starting vim after updates (maybe there for a while)

2009-07-25 Thread Patrick Brisbin
this could probably be fixed the same way as the other vim problems

  sudo ln -s /usr/share/vim/vim72/ /usr/share/vim/vimcurrent

pat

On 07/25/09 at 01:27am, David C. Rankin wrote:
> Listmates,
> 
>   The latest menu error was received starting vim by clicking on an 
> attachment in kmail:
> 
> Error detected while processing /usr/share/vim/vim72/menu.vim: 
> line  155: 
> E121: Undefined variable: paste#paste_cmd 
> E15: Invalid expression: 'vnoremenu 

Re: [arch-general] No updates in past week or so - my update problem or just no updates?

2009-07-22 Thread Patrick Brisbin
i'd guess a mirror issue, no updates on arch in a week? never.

i'd pick a new mirror and go -Syyu.

luckily i've got IRC in the next terminal...

19:44  !mirrorcheck
19:44  see the status of mirrors:
http://users.archlinux.de/~gerbra/mirrorcheck.html <>
http://www.archlinux.de/?page=MirrorStatus

those should help you find a good mirror.

cheers.

On 07/22/09 at 06:38pm, David C. Rankin wrote:
> Listmates,
> 
>   I have several boxes running arch. In the past week or so, I haven't 
> had any updates. Is it my system not updating or have there been relatively 
> few updates?
> 
> -- 
> David C. Rankin, J.D.,P.E.
> Rankin Law Firm, PLLC
> 510 Ochiltree Street
> Nacogdoches, Texas 75961
> Telephone: (936) 715-9333
> Facsimile: (936) 715-9339
> www.rankinlawfirm.com

-- 
patrick brisbin 


Re: [arch-general] SIGSEGV in getopt, libc-problem?

2009-07-08 Thread Patrick Brisbin
oh duh, didn't realize that. i always have testing enabled so this works
for me, his situation is different.

sorry, ignore that.

On 07/08/09 at 06:47pm, Daenyth Blank wrote:
> On Wed, Jul 8, 2009 at 18:09, Patrick Brisbin wrote:
> > i use a bash alias for this:
> >
> >  $ pacman -Sql testing | xargs pacman -Q 2>/dev/null
> >
> > i don't think there's an official option
> >
> > --
> > patrick brisbin
> >
> 
> That doesn't tell you if it's FROM testing, only if you have a package
> installed with the same name as a package currently in testing.

-- 
patrick brisbin 


Re: [arch-general] SIGSEGV in getopt, libc-problem?

2009-07-08 Thread Patrick Brisbin
On 07/08/09 at 11:31pm, clemens fischer wrote:
> BTW:  what's the pacman command to list the packages one has installed
> from a certain repo?

i use a bash alias for this:

  $ pacman -Sql testing | xargs pacman -Q 2>/dev/null

i don't think there's an official option

-- 
patrick brisbin 


Re: [arch-general] Is it a bug ? (device-mapper PKGBUILD)

2009-07-01 Thread Patrick Brisbin
On 07/01/09 at 05:00pm, nez...@gmail.com wrote:
> Hi ,
> I was looking at the device-mapper PKGBUILD . I'm not sure but the last 
> line looks problematic :
> 
> # fix device-mapper link bug
> ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1
> 
> What If device-mapper is not yet installed in the system ?
> What am I missing ?

if i understand it correctly, build() just builds the package.  only
when you pacman -U it will you execute those commands (in sequence).

therefore, the make and install steps are exectuted before the symlink
is created.

-- 
patrick brisbin 


Re: [arch-general] how to mount external hdd

2009-02-18 Thread Patrick Brisbin
On 02/18/09 at 02:31pm, Denis Alessandro Altoe Falqueto wrote:
> On Wed, Feb 18, 2009 at 2:22 PM, Sergey Manucharian  wrote:
> > On Wed, 18 Feb 2009 11:03:08 +0100
> >  wrote:
> >
> > ..
> >
> >> An external drive can be rather reliably identified and always mounted
> >> at the same place using udev.
> >>
> >> This is somewhat problematic on arch linux tough.
> >> For some reason the devices seem not to be created before
> >> mount runs although udev runs before it.
> >> This means that external drives do not get mounted along with all the
> >> other drives specified in fstab.
> >>
> >> I personally wonder what the problem is since this method has worked
> >> on other distributions.
> >>
> >> My workaround is simply another 'mount -a' in rc.local, at this point
> >> in boottime the devices are created.
> >>
> >> Still this doesn't work reliably with one of my drives but this is a
> >> separate problem (slowness).
> >>
> >> Philipp
> >>
> >
> > Folks, you are discussing how to deal with "noob questions" etc., but
> > nobody paid attention to the more "deep" meaning of the initial
> > question arisen by Philipp.
> >
> > I confirm the problem. So, how to mount an external HDD during the
> > system start-up?
> >
> > Cheers,
> > Sergey
> >
> >
> 
> 
> If it is always connected, I would put a line on /etc/fstab so it is
> mounted as any other ordinary partition.
> 

agreed; just to mention, make sure your options prevent automounting or
fsck'ing else it would hang at boot if the drive's not present.

> If it is not always connected, I would make a script and put it in
> /etc/rc.d. The script would be responsible to look if the disk is
> attached and mount it. It would be good to use some udev rules to make
> a fixed symlink for the disk, so the script has a fixed target to
> find.
> 

this can be entirely handled with udev.  there's a sample rule in the
udev wiki that will dynamically mkdir a mountpoint and mount it as
/media/sdX then lazily umount and rm the mountpoint if the drive is
unplugged.  i used a tweaked version of this for a while, it worked
well.

pat, aka brisbin33

> -- 
> ---
> Denis A. Altoe Falqueto
> ---
> Emo Philips  - "I was the kid next door's imaginary friend."
--- end quoted text ---

-- 
patrick brisbin