You are not logged in.
Sorry if this is a stupid question.. I wanted to get adesklets on my gnome/arch install. (gdesklets didn't seem to be working or were a bit too confusing..) Anyway, there's no official package in arch, but there's one in the AUR. It's maintained by FUBAR but I couldn't find how to add that repository.. wasn't listed on this site:
Offline
add the lines to your /etc/pacman.conf file..
[reponame]
Server = <repo location
then "pacman -Sy"
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Sorry, I should have been more specific. I can't find the repo name listed anywhere..
Offline
I just reread your first post. You need to download the files from the AUR and build it yourself.
Someone really needs to come up with a wiki doc on how to do this, so new people are not in the dark when they find a package they want to try...
Basically:
First. Click on the link where it says "tarball".
Extract that tarball. It should create a directory.
Enter that directory (cd directory).
type `makepkg`
after it compiles, you should have a file ending in .pkg.tar.gz
install that file with pacman..
'pacman -A filename.pkg.tar.gz'
that should do it.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Yeah, the AUR "maintainers" don't imply they retain the binary package - just the PKGBUILD
Offline
is there a way to get pacman to download PKGBUILDS and build the program itself?
if there is such a feature why can't we make the AUR availible so that for example: pacman -AUR adesklets
would dowload the pkgbuild and do a makepkg
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
You should probably file a feature request for pacman for that. I don't know why it's not possible yet: there's probably a good reason for it.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
srcpac ?
Mr Green
Offline
It would be more simple if the community, testing and unstable PKGBUILDs collection would be downloaded with the ABS script.
I think it only manages current and extra.
Offline
errr look in /etc/abs
Mr Green
Offline
Ok, so I download the tarball, did the mkpkg, and then the pacman -A. When it finished I was told to mv the directory to my home directory and chown it so my user could take advantage.
Did all that, plus downloaded the weather adesklet and installed it the same way. Finally, I shut down X and restarted gnome, fired up a terminal. With much anticiapation I typed adesklet into the terminal and.. and.. nothing.
Anyone who got this working want to give me a hint?
Offline
you ran weather.py first ? (configured it etc.....)
please search forum for related posts, may help you even more or visit adesklet forums ;-)
Mr Green
Offline
ok, for the record - the combo of abs/srcpac/aur is being heavilly discussed on the mailing list:
http://www.mail-archive.com/arch@archli … 00633.html
alot of people have security concerns relating to it (malicious PKGBUILDs would be transparent to the user)
Offline
Soo are PKGBUILDs in aur *safe* ..
mind you this is not the place to discuss this .....
Mr Green
Offline
Yup.. if we can get back on topic just until my problem is solved mind you.
I didn't know about the python script so I when you mentioned it I went back to /usr/share and moved it over to /home/viniosity/.adesklets. When I run
. weatherforecast.py
I get this error:
: File name too long
bash: import: command not found
bash: import: command not found
bash: import: command not found
bash: import: command not found
bash: from: command not found
bash: from: command not found
bash: from: command not found
bash: ./weatherforecast.py: line 51: syntax error near unexpected token `('
bash: ./weatherforecast.py: line 51: `class Config(adesklets.ConfigFile):'
Permissions are set for the user (same error as root anyway). Any ideas?
Offline
replace
. weatherforecast.py
with
./weatherforecast.py
"." sources the file - which isn't going to work with a python file... you can also do
python weatherforecast.py
Offline
Ah - thank you. The python weatherforecast.py line worked. I can move it about, and everything but I can't seem to configure it. It's stuck on weather for Lexington, KY.. which is of no use to me here in DC. Two more q's:
1. how to I configure this thing?
2. how do I get it to start automatically when I start my X session? (besides saving my session on exit..)
Thanks..
[edit] ok -- I read the readme (duh) and configured it. Question #2 still stands though. Would also love to know this so I can get numlockx to run automagically upon starting gnome.
Offline
2. how do I get it to start automatically when I start my X session? (besides saving my session on exit..)
Add it to ~/.xinitrc
Offline
what's the proper syntax?
exec numlockx
exec python weatherforecast.py
?
Offline
no - exec will overwrite the running image (the "exec numlockx" will overwrite the running .xinitrc and the next line will never get called)
it should be:
#!/bin/sh
#...blah...
numlockx &
# this one should specify the full path!!
python weatherforecast.py &
exec firefox
Offline
cool, so this is what it'll look like:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
exec gnome-session
exec numlockx &
exec /home/viniosity/.adesklets/python weatherforecast.py &
# exec startkde
# exec icewm
# exec blackbox
# exec fluxbox
Sound right? Or should I move the gnome-session to the end?
Offline
Once you start your desklet, it makes an .adesklets in your home dir, so next time you start it, just use "adesklets" and it'll start whats in .adesklets in the same position. so in your .xinitrc you should put
adesklets &
instead of the path to your python script. thats how it says to do it if you read all the docs anyways. and it works fine. that way if you have several desklets in different positions, jsut using "adesklets" starts them all.
Offline
cool, so this is what it'll look like:
no, don't use "exec" - it won't work.. once a shell script encounters the first "exec", nothing happens after that point
Offline
Yup.. if we can get back on topic just until my problem is solved mind you.
![]()
I didn't know about the python script so I when you mentioned it I went back to /usr/share and moved it over to /home/viniosity/.adesklets. When I run
. weatherforecast.py
I get this error:
: File name too long
bash: import: command not found
bash: import: command not found
bash: import: command not found
bash: import: command not found
bash: from: command not found
bash: from: command not found
bash: from: command not found
bash: ./weatherforecast.py: line 51: syntax error near unexpected token `('
bash: ./weatherforecast.py: line 51: `class Config(adesklets.ConfigFile):'
Permissions are set for the user (same error as root anyway). Any ideas?
Is /home/viniosity/.adesklets a folder or a file? adesklet's config file is called .adesklets so you shouldn't create a folder named .adesklets to store your desklets in. It's in the FAQ.
Offline
Is /home/viniosity/.adesklets a folder or a file? adesklet's config file is called .adesklets so you shouldn't create a folder named .adesklets to store your desklets in. It's in the FAQ.
Problem already fixed, read back up above, you cant . source a python file into a bash script.
Offline