I'd love to know that too, Milozzy.
Would be cool if we had a community repo that you could upload it to, as well - though I guess there'd be a burden of checking against malware and unintentional security problems.
CrunchBang Linux Forums » Posts by Chriswaterguy
I'd love to know that too, Milozzy.
Would be cool if we had a community repo that you could upload it to, as well - though I guess there'd be a burden of checking against malware and unintentional security problems.
Are you using gdebi to install deb files?
By dloading that file and running it with gdebi, it will tell you if it can install and that all dependencies are met.
Ok, in that case I'll use gdebi. And, out of curiosity, if I accidentally tried to install a deb meant for Wheezy or sid, or Ubuntu, say, would gdebi warn me?
What do you mean by which stream of Debian? From that thread it looks like h8uthemost got it to work in Stable.
I mean it doesn't say whether the package is for Squeeze, Wheezy or sid. Looks like h8uthemost got it working, indeed, but it would be unwise of me to follow without knowing which repo it's from, and what the implications are. (Besides which, h8uthemost might be running a different architecture and might get different results for whatever reason.)
I'm running a Core i3, so I guess I want the 386 package:
clipit_1.3.11-1_i386.deb
Seen in debian on 2011-01-09 21:22:22 in /pool/main/c/clipit.Does that tell me if it's a Squeeze package, or whatever? Thanks.
ClipIt 1.4.1 is only in Wheezy/Sid. I take it you are running Stable?
If you need it I would suggest pinning to Wheezy or Sid to install it
Yes, I'm running Stable (Squeeze).
I've heard of pinning, but would need to study it. How safe is that - I thought the general rule was not to install packages from Testing and sid if running Stable?
Looking further in the thread linked above, there's a suggestion to use an older version (1.3.11-1 )from snapshot.debian.org, to avoid dependency problems.
Trouble is, the snapshot site doesn't mention which stream of Debian the packages are for. Am I missing something?
I like the sound of ClipIt, especially this bit:
you can select how many items to save in the history list and the number of items in the menu. The default is 50 for history and 20 for menu. The selection windows have no ending points. This makes it possible to save thousands of items in the clip list.
It's not in the Squeeze repos. jeffreyC says to download the deb, apparently meaning the Wheezy deb, but isn't that risky? Edit: more explanation was given in that thread - see my next post.
So I tried to install ClipIt from the tar file (I should say tarball, right, to sound more knowledgeable
) for version 1.4.1. I was following the README, fixing dependencies, feeling optimistic, when I got errors. First the "./autogen.sh" command gave errors:
$ ./autogen.sh
autopoint...
Creating /aclocal.m4 ...
Running autopoint... Ignore non-fatal messages.
Copying file po/Makefile.in.in
Making aclocal.m4 writable ...
intltoolize...
aclocal...
configure.in:22: warning: macro `AM_GLIB_GNU_GETTEXT' not found in library
configure.in:82: warning: macro `AM_PATH_GTK_2_0' not found in library
configure.in:83: warning: macro `AM_PATH_GLIB_2_0' not found in library
autoheader...
automake...
autoconf...
configure.in:22: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:52: error: possibly undefined macro: AC_DEFINE
configure.in:82: error: possibly undefined macro: AM_PATH_GTK_2_0
configure.in:83: error: possibly undefined macro: AM_PATH_GLIB_2_0
now run configure...but it said "now run configure" so what the hell:
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.23... 0.41.1 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
./configure: line 6627: syntax error near unexpected token `appindicator-0.1'
./configure: line 6627: ` PKG_CHECK_EXISTS(appindicator-0.1 >= $APPINDICATOR_REQUIRED_VERSION,'Any suggestions on how to get this installed? Thanks.
I just managed to set up Firefox so I can run two instances at the same time.
I find it useful to have multiple browsers to keep different accounts and different kinds of work and play separate from each other. I know Panorama in FF does that, but I need all the tools I can get for organizing myself
. Also good if you want to search in Google when not logged in (which can give different results) but you don't want to log in and out again. I used to use Swiftweasel as a backup browser, but it's still at version 3.5, and Gmail is complaining about that.
I'll try to explain it so someone at my level can follow it :-).
Steps:
1. Open a terminal, and make a new profile. (Should be possible via Firefox preferences, but I didn't find it.)
firefox -no-remote -ProfileManager(Mine didn't work the first time, so I tried "firefox -no-remote -P -ProfileManager" which did work. Not sure why, and shouldn't be necessary even if firefox is already running, but try it if you need.)
2. Make a shell script with the command that runs firefox as a separate instance with the new profile. Make a new file (I put mine in ~/.mozilla - easy to remember where it is) and enter:
#!/bin/bash
firefox -no-remote -P newprofilenameE.g. I called my new profile "oleswift" because it's replacing my old Swiftweasel, so my script is:
#!/bin/bash
firefox -no-remote -P newprofilenameI saved my file as oleswift.sh. Call yours what you want - I don't think even the .sh is necessary. But consistency is good - the principle of least astonishment :-).
3. Set up a command so you can start it up easily.
Open a terminal in /usr/bin. (e.g. navigate to /usr/bin in a file manager and open a terminal from there - right click menu in thunar, Tools menu in PCManFM). Decide what you want the executable to be called, and in the terminal enter the command:
sudo ln -s ~/.mozilla/YourScriptName YourCommandNameE.g. for me:
sudo ln -s ~/.mozilla/oleswift.sh oleswiftNow, any time I want to run that profile in Firefox, I just run the command oleswift. (I use dmenu to run commands - you use what you like.)
Ta-da!
The trick is to not get the instances mixed up - I'll do that by running them in separate desktops (and using my rc.xml file in Openbox settings to automate that) and using very different looking themes.
Edit: rc.xml didn't work - it must go by the actual executable name rather than by the symbolic link name. I guess I need to move it to Desktop 2 each time.
I'd like to change the Firefox icon used in Alt-Tab, as well - I found an unsuccessful attempt to change Alt-Tab icons in Openbox. But I've had enough hacking for the day. If anyone solves that one, I'd appreciate it!
I might set this up with another couple of profiles as well. Enjoy.
Thanks rhowaldt - very helpful! Will try that out and report back.
I found a Conky script that looks like a good starting point for me, but I don't understand the code, and wonder if someone could help by commenting it a bit, so it's clearer which bits to copy and adapt?
My battery is shot, and I often don't get enough warning before it shuts down. Especially as it jumps from about 20% (the number is slowly getting higher) to "0%" at which point it won't stay suspended, and it dies completely a few minutes later. This is a problem because I tend to fall asleep with the computer on :-) and also because the audio alerts aren't working (just never had time to get it working).
So, I'm hoping to work out a script that will give me a visual warning at the exact intervals I want, as often as I want. And suspend at the level I want. (The xfce power manager gives one warning at 30%, and I can't make it suspend at higher than 20%.) E.g. I'd have warnings at 35%, 30%, 28%, 27%, 26%, 25%, and have it suspend at 24%.
The code that looks promising is this old post by wcs in the "conky low battery warning" thread. Looks promising, but perhaps someone could help with commenting it a bit, so that a newbie could more easily see what's going on, and adapt as needed?
Many thanks!
The #! wiki page Frequently Asked Questions says that the command to install bluetooth is:
sudo apt-get install bluez-gnome bluetooth gnome-bluetoothBut that gave errors, and I see there is no bluez-gnome in the repos. So should we just remove the "gnome" and make it the following?
sudo apt-get install bluez bluetooth gnome-bluetoothThose packages are all in the repos. Maybe the wiki page needs updating for Stat
(I have those packages installed but bluetooth isn't working - so I want to check this first. Might be a problem with the bluetooth on my phone, but not sure how to tell, untill I get to a LUG and do some testing.)
Thanks.
What's the panel in this screenshot? I really like the separated sections for each desktop.
I asked on LinuxQuestions and Twitter, and tint2 was suggested, as the likely answer for screenshot 1, but I don't know how to make tint2 look like that. (Corenominal's tint2 setup has the separated desktop sections, but I haven't figured out where that's set - I tried "panel_padding 7 0" but doesn't seem to work.)
Also found this one - interesting also, but I like the first one best.
Someone shared the links them on IRC, and I didn't learn the source. It's Arch, from the logo, but that's all I know. Don't know what WM or DE they're using, either.
I'll update this for the sake of trying ot understand what's going on - but I'm no longer at that location.
Regarding small hotel, since it is wireless, people might not need to actually be in the hotel or registered, all they'd need is the passphrase, eh? Many hotels do not change passphrase on any regular basis. For example, you weren't on the other two floors when you connected to those routers. That doesn't mean anything except, we don't know what those conditions might have been.
Single story buildings either side - on at least one side with corrugated iron roofs. I'd be a little surprised if one person was hacking in - I'd be very, very surprised if there were a lot of people. But I don't think the password had been changed for a couple of years, since it included a word and the digits "2009" :-D.
Also, the reason the password is rejected is usually because the router is too far away so it doesn't receive the passphrase within an acceptable time, etc. That was one reason my wifi at home was so flaky. Exactly how strong is your connection?
Full bars and "90%". The router was on the wall outside my room, about 3-4 m away in a straight line.
After the improvement in stability that I noted above (and shortly afterwards deleting all but my own floor's network in nm-applet/NetworkManager) I had a stable connection for the next ~2 days, except for one time when it disconnected and popped up (and reconnected promptly when I hit enter). So, even when there's only one network to choose from, it still has the annoying popup password-request behavior.
chaanakya - thanks for the details. I have deadlines looming at the moment, but I've noted your wicd instructions for future use.
For example, if the router has run out of IP addresses to assign because there are already that many systems connected, that would be one thing (and external to your system)
Smallish hotel, 17 rooms on this floor. Southern Thailand isn't tech central either, so I'd be surprised if a lot of people were on the wifi.
Have you used a search engine with the type of wireless card you have as keyword to investigate if dropping off is a known bug with that specific card?
When I look up the specs of my laptop (Asus A42F-VX085D) all I can find is: Wireless LAN: Wi-Fi® Wireless networking (802.11b/g/n) - I assume I need more info on the card type?
But actually, dropping off isn't what's annoying me - it's the behavior of nm-applet/NetworkManager in popping up, rather than trying again.
It just occurred to me - maybe it only happens when it tries to connect to a different connection from the last one it was on It's still annoying behavior, but a bit easier to avoid it. (And that would mean you were onto something with deleting the other connections... haven't had a popup since, btw, but it might just be that it's become stable again).
When, "sometimes one won't connect but another will", does that condition last long or just briefly?
Seems to persist, sometimes for hours.
If you delete all the connections for the three floors and just make one new one for the ssid that gives you the strongest signal, does NM try to work the way you want it to?
I'll nitpick: the strongest signal is the one on this floor, but in the last 2 days it often won't let me connect, and I get that popup. So I try the weaker signals from other floors, and one of them usually does better.
For the last hour, this floor's signal has given no problems, so I'll delete the other two and observe... (I think it was giving me the annoying popup behavior before I added the other two floors, but not 100% sure.)
It might help to clarify that statement. Does it mean that you have three separate connections with the same ssid but three different passphrases or is there a separate ssid for each floor?
Separate ssid for each floor. Same password, which I've entered separately for each ssid (and they've all worked, at various times). Thanks for clarifying.
Did you set it to connect automatically?
I checked, and those connections are set up to connect automatically. Seems to be the default setting.
I do want it to connect automatically. I don't want it to prompt me for a password which it already has.
wicd and it worked perfectly fine and remembered my settings. you might try that unless anyone has a better solution.
Haven't tried wicd for a long time. Installed it now, tried to run, nothing happened - and nothing showed up in the systray in tint2. So I killed nm-applet, tried again - nothing. Even ran lxtask as root, and there was no task called wicd. Am I doing something wrong?
I'm on a somewhat flaky wifi connection in a hotel. I've put in the password for the floor I'm on, and the one above and below - sometimes one won't connect but another will.
Sometimes I'll be working away on something - got focus, got flow, good stuff getting done - and my computer will lose connection, and this internet dialog box pops up. The password is prefilled, and I just have to press ok.* But it disrupts my work, and I'd rather it didn't happen.
Is there a way I can get it to just automatically try to login to available networks that are already set up on the machine? The standard Statler popup alerts about changes in internet connection status are all I want and need.
*Or rather, because I was typing when it popped up, I overwrote the password, and I have to hit ESC, then go to the nm-applet and select a connection. Possibly to be followed by the same thing a minute or three later...
Thats right. With my solution 3 instances of gwrite are created.
However, your solution does that as well.
Not on my system, as I've set my gwrite preferences to open new files as tabs.
(sleep 1 && gwrite a b c)&
This would work fine in most cases, but it opens all 3 files at the same time (1 second after startup). The problem I've described above means that I want a delay between each file opening.
i think what Awebb meant:
sleep 1 && gwrite docs/file1 & sleep 2 && gwrite docs/file2 & sleep 3 && gwrite docs/file3 & sleep 4 && gwrite docs/file4 & sleep 5 && gwrite docs/file5 & sleep 6 && gwrite docs/file6 & sleep 7 && gwrite docs/file7 & sleep 8 && gwrite docs/file8 & sleep 9 && gwrite docs/file9 &which is also what i tried to suggest
Ahhhh, gotcha. It's working now, thanks! Will mark "SOLVED."
I was confused by the suggestion at first, but then realized that it's counting the "sleep" from almost the same starting time - I guess that makes sense since the line commands are all starting almost at the same time, thanks to the & on the end of the lines effectively saying "go on to the next command while this runs in the background). (thanks machinebacon... that explains the out of sequence startups I've seen in the past!). So I can put whatever times I want in, but they need to get larger if I want the files to open later.
File1 seems to need more time (being larger as well as needing gwrite itself to start up). So I changed the commands to:
sleep 2 && gwrite docs/file1 &
sleep 10 && gwrite docs/file2 &
sleep 11 && gwrite docs/file3 &
sleep 12 && gwrite docs/file4 &
sleep 13 && gwrite docs/file5 &
sleep 14 && gwrite docs/file6 &
sleep 16 && gwrite docs/file7 &
sleep 17 && gwrite docs/file8 &
sleep 18 && gwrite docs/file9 &(or I could add a bigger sleep to the first line, depending when I want it to start.)
...and that's perfect - thanks! (Haven't tried in autostart.sh yet, but as it works pasting into a terminal, I'm guessing it'll be fine.)
(xaos52: I forgot to mention that my gwrite is set to open new files in tabs rather than windows; and with that code, I'm guessing it would open all the documents with almost no delay between them.)
Thanks for the help, everyone.
Thanks for the suggestions.
chaanakya - that seems to be getting somewhere, but not quite working. It does delay opening each file... but I actually have to close file1, then file2 opens. I close file2 and file3 opens... I tested it with gedit instead of gwrite commands, and the same thing happened. I tried it as separate lines, then as a single line like your example, and I tried replacing && with a ; also - same result.
Awebb - I tried
sleep 5 gwrite docs/file1 &got an error from the sleep command. Needs something after the sleep command.
Unia - I tried the form
(sleep 5 && gwrite docs/file1) &
(sleep 5 && gwrite docs/file2) &
(sleep 5 && gwrite docs/file3) &etc, but it acts exactly the same way as the original commands. Worth a try though.
Thanks.
BACKGROUND:
I use a program called gwrite for keeping rich text notes - blog drafts, work projects & the like. I like it because it's in HTML and it has a handy navigation bar. (It's also buggy, but I've learnt to mostly get around that.)
One of the bugs is that if I open more than one file at a time, the headers don't show up in the navigation bar. If I wait a couple of seconds, no problem. So, in autostart.sh for the Openbox version of Statler, I need to open each file a few seconds apart. Easy, right?
PROBLEM:
I put lines in my autostart.sh in this form:
sleep 5 && gwrite docs/file1 &
sleep 5 && gwrite docs/file2 &
sleep 5 && gwrite docs/file3 &
sleep 5 && gwrite docs/file4 &
sleep 5 && gwrite docs/file5 &
sleep 5 && gwrite docs/file6 &
sleep 5 && gwrite docs/file7 &
sleep 5 && gwrite docs/file8 &
sleep 5 && gwrite docs/file9 &Now, what actually happens is that only one or two of the files open (one time it was 4) - and generally it doesn't include not the first one. Often it's about the 5th or 6th or 7th file that opens first.
So, I tested it by closing gwrite, and pasting the code above into a terminal. This time, they all open - but I only get the "sleep" period at the beginning, then after the first and maybe after the second file opened. Then I get a whole batch of them opening in the same instant. (Sometimes the final file or two also open after a delay.)
As a result, the files are opened out of order (minor problem) and the lack of expected delays means the navigation bar doesn't load properly for some of the files.
Any idea how I can get them to open in order, with a few seconds delay per file?
Thanks - this helped me, too.
I'll add that in most cases you don't need to worry about WM_CLASS, but if it's not working for you, then check WM_CLASS.
Re finding WM_CLASS, I'll point out for command line novices like me that you can also just run xprop, click the crosshairs on the titlebar of the program you want, and look for about the 5th last line in the command line output. It gives two strings, e.g.:
WM_CLASS(STRING) = "terminator", "Terminator"
I've found the first one works fine, for the few I've tried.
I tried the various suggestions here (including deleting mimeTypes.rdf and "xdg-mime default pcmanfm.desktop application/x-directory"), with no change. I restarted my machine, and still no change. (I also got busy with work, hence my slow response...)
Extra info: I have the same issue with gnome-search-tool (as well as the various browsers), so it's definitely not a browser-specific issue.
I then tried uninstalling Thunar to see what system changes get made (thanks for the suggestion, johnraff). Sure enough, when I choose "open in folder" from Firefox and gnome-search-tool, it opens in PCManFM. But after installed Thunar again, Thunar again took over as default.
----
SOLVED:
Finally I went back to chaanakya's suggestion to try editing /usr/share/applications/Thunar-folder-handler.desktop - I changed the commands in these three lines from Thunar to pcmanfm:
TryExec=pcmanfm
Exec=pcmanfm %F
Icon=pcmanfmAnd it works!
It counts as a not-quite-so-ugly-hack, since I'm not renaming the Thunar command itself, but there's still something odd when I have to edit a one program's desktop file to point to a different program. Not a problem for me, though.
I don't know if %F is correct for "Exec=pcmanfm %F" - but the issue that I had seems to be solved, and that's what matters.
Thanks for all the advice, folks, and especially chaanakya.
I can't check it because on my PC pcmanfm opens everything, but you can take a look:
nano ~/.local/share/applications/defaults.listthere are two lines
application/x-directory=pcmanfm.desktop application/x-desktop=pcmanfm.desktopwhich seem to be responsible for the management of folders and the desktop (not for root)
Mine had the line:
x-directory/normal=/usr/share/applications/pcmanfm.desktopand no reference to Thunar, so I don't think this is where the issue is. But I added this line to the bottom, just to try:
application/x-directory=pcmanfm.desktopNo change yet.
(I used gedit to edit it - I assume that doesn't matter here... I've heard it does for certain system files.)
On the other hand,
nano ~/.local/share/applications/mimeapps.listhas exo-file-manager.desktop as x-scheme-handler/file and x-scheme-handle/trash. This exo-file-manager is the XFCE "preferred" file manager which can (in Squeeze) not be choosen through exo-preferred-applications. Browser and Mail Handler can.
I just have "[Added Associations]" in this file, with a list of various file association options which I recognize as the options I get for opening a certain file type from a file manager. E.g. one line is:
text/plain=medit.desktop;gedit.desktop;geany.desktop;abiword.desktop;Nothing with "handler" or "pcmanfm" or "thunar".
Thanks for suggestions, though... this is a tricky one.
Posts found [ 1 to 25 of 198 ]
CrunchBang Linux Forums » Posts by Chriswaterguy
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.