SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Re: Off Topic / General Chat » The Who 2013 » Yesterday 15:38:17

^I didn't get to see RSG too often - I don't think my parents liked it...

Never seen the Stones live - envy you. They're coming to Japan before long I think, but cost an arm and a leg these days.

#2 Re: Help & Support (Stable) » Notify-send from a daemon? (solved) » Yesterday 15:24:11

andreas-r wrote:

Found it! For reasons I don't understand this works to get notifications to be send from scripts launched by a daemon:

sudo -u $user DISPLAY=":0.0" notify-send "whatever"

You've added together the display issue that cheesemill pointed out, with having to run as the current user which you already mentioned in the first post, I think. Isn't 'su myusername' the same as 'sudo -u $user'?

You can hardcode a user or a add this in the beginning of the script:

user=$(who | awk '/0\.0/{print $1; exit;}')

That awk condition /0\.0/ didn't work for me (on Statler). Here 'who' returns

john     tty7         2013-06-17 23:19 (:0)

so would you want something like /:0/? Does Waldorf return :0.0 instead of :0?

#3 Re: Off Topic / General Chat » The Who 2013 » Yesterday 15:06:47

The Who used to be one of my favourite bands back in the days of "Anyway Anyhow Anywhere" and "My Generation". One of those was the theme music for Ready Steady Go too I think. (Anyone remember that TV programme? Cathy McGowan?)
"Hope I die before I get old" didn't work out for all the band, though Keith Moon passed away at quite an early age iirc. Afraid I lost contact around Tommy though, got into other stuff.

Pete Townshend's certainly a talented musician.

Re long-lived bands, I have to raise a glass to The Stones too. 50th anniversary last year wasn't it?

#4 Re: Help & Support (Stable) » [solved]simultaneously start urxvt and execute a command. » 2013-06-15 16:27:12

dgz wrote:

okay, urxvt -e command works, but i'd like to be able to execute it with arguments, as in urxvt -e cowsay bla

cowsay.jpg

Don't forget the terminal window will close as soon as the command has finished running. Add -hold to keep it open.

#5 Re: Help & Support (Stable) » [SOLVED] Setting applications not in /usr/bin as default? » 2013-06-15 04:03:33

Hi BishopBlade welcome to #!

You need to add sublime to the Debian alternatives for gnome-text-editor, but it's in your personal home which might make it more complicated. You could try copying the executable to eg /usr/local/bin/sublimetext
then:

sudo update-alternatives --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/local/sublimetext 50
sudo update-alternatives --config gnome-text-editor

You'll also want to change Thunar's default settings by right-clicking on a file, choose "Open with other application", enter the path to sublimetext and check the box to make it the default.

See here for more you could do.

#6 Re: Feedback & Suggestions » Forum features missing » 2013-06-15 03:33:32

Hey chipmonk I never noticed that link - thanks!

The old method: go Profile>'Show all subscriptions' to see all the threads you're subscribed to.
Make sure Profile>Privacy>'Set your subscription options' has 'Automatically subscribe to every topic you post in' checked.

#7 Re: Introductions » Im back » 2013-06-15 03:27:47

pvsage wrote:

omns faced...a literal threat to his safety IRL.  I can't go into any more detail about it than that, but this is the real reason he had to disappear.

That's shocking.
And a loss to the community.

#8 Re: Help & Support (Stable) » [solved]simultaneously start urxvt and execute a command. » 2013-06-15 03:20:43

urxvt -e commands
should work...
Don't put quotes round the commands.

#9 Re: Help & Support (Testing/Unstable) » share gpg keys » 2013-06-14 17:03:10

There are two kinds of encryption:
symmetric, which uses the same key to encrypt and decrypt. This is simpler but less secure than
asymmetric which uses a public key to encrypt and an associated private key to decrypt.

To use asymmetric encryption you have to generate a pair of associated keys, one public and one private. Then people can send you messages encrypted with the public key which you can decrypt with your private key. It's a one-way process. To send an encrypted message to another person they need to generate a different public key which you use to encrypt messages to them and they can decrypt with the private key they generated together with their public key.

So for two-way communication there are four keys involved, two separate public/private pairs..

#10 Re: Tips, Tricks & Scripts » [Solved] Imap conky script » 2013-06-13 16:25:47

Not a perl programmer, but as a general approach to debugging, try running /home/gram/.imap.pl in a terminal and see what output you get.

On a second look, are you running a perl script with python in that conky execi call? Try substituting perl.

And welcome to the CrunchBang forums! smile

#11 Re: Help & Support (Testing/Unstable) » share gpg keys » 2013-06-13 15:45:57

Hi km00 I'm also a gpg beginner, but my understanding of public and private keys is:

People A and B have both public and private keys, and have access to each other's public keys.
A encrypts messages for B with B's public key. Those messages can only be decrypted with B's private key, which only B has.

And vice versa.

If someone more knowledgeable can add a bit more I'm also interested in this topic...

#12 Re: Help & Support (Testing/Unstable) » Adding programs to the "Open With" options » 2013-06-13 12:16:30

The . is the command! It's the same as 'source'.  (.bash_aliases is a file.)
So I can't see why your code isn't working... have you got the 'fi' at the end? ie:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

#13 Re: Help & Support (Testing/Unstable) » can openbox's rc.xml and menu.xml take complex shell syntax? » 2013-06-13 10:17:25

ohnonot wrote:

@johnraff, do you actually have those: "&&" in your command or is it from posting it into the forum?

They're actually &
For an xml file like menu.xml there are just five special characters that need escaping: & < > " and '
as &amp; &lt; &gt; &quot; and &apos; respectively. (You can also use numerical references.)

No other characters need escaping and escaping is not done by backslashes.

However, the argument you are passing to bash (in my example) needs to be wrapped in real quotes - double in this case, but single should work too - so that openbox will pass it untouched to bash. You might note that in my example I failed to escape a couple of single quotes as &apos; as I should have done. Openbox is slightly tolerant here because the whole thing is wrapped in double quotes, but if I had used single quotes outside then the internal single quotes would have had to be escaped properly, or else openbox would have mistaken them for the closing of the outside quote, as seems to have happened to you.

Hope that helps a bit!

#14 Re: Introductions » Im back » 2013-06-11 15:19:51

Hi rigosantana4 welcome back! smile

I remember you and Toolz. Have forgotten whatever it was though...

#16 Re: Help & Support (Testing/Unstable) » can openbox's rc.xml and menu.xml take complex shell syntax? » 2013-06-11 05:03:34

^agreed, a script usually makes things easier, and you don't need to reconfigure openbox after each edit.
Openbox's config files only accept "command + arguments", and you have to escape special characters for xml.

Even so, for very short sections of code that don't seem worth making a script for you can call bash as your command, and everything else as its agument, like this to restart apache:

<execute>urxvt -e bash -c "sudo service apache2 restart &amp;&amp; { echo OK; sleep 2;} || { echo 'ERROR (press a key to close)'; read;}"</execute>

#17 Re: Help & Support (Stable) » How do I permanently enable root (super) user? » 2013-06-08 17:57:36

VastOne wrote:

Running as root all the time is as safe as the users knowledge, intellect and search capabilities.  There is no set rule or expectations to ones own system or abilities.  Suggesting that it is dangerous is to be taken with these expectations in mind.  Running a production server as a new user sounds insane... running a production server as root is a necessary task for the seasoned administrator

So it comes down to what sort of things you're going to be doing. For example, running a web browser as root sounds like asking for trouble.

#18 Re: CrunchBang Talk » Most importaint files » 2013-06-07 17:19:09

Windows has The Registry, a huge lump of binary which has to be edited (very carefully) with some editing utility, but Linux/Unix has hundreds, maybe thousands of text-based configuration files...

It's hard to say which are the most important, but when you hit some problem that's when you'll have to start learning about some specific file(s), and how to configure them! That's my way anyway - too lazy to learn anything before it's actually, desperately, needed.

#19 Re: Off Topic / General Chat » Debian Forums - such a friendly place....... » 2013-06-07 16:37:23

Everyone's experiences differ of course, and I haven't spent any great amount of time on the Debian forums, but my impression hasn't been as bad as that of some others here. Google searches have often led to some useful nugget of information, link to someone's patch or recompiled package, and I might add, in those limited visits I ran into some favourable mentions of Crunchbang and the people here...

Just now I went back for another look, and the first post I opened was this: http://forums.debian.net/viewtopic.php?f=30&t=47077

No complaints there, right?

#20 Re: Tips, Tricks & Scripts » How to: install Waldorf from the Debian netinstall » 2013-06-05 05:11:16

@notchuck error messages will appear on the terminal as the netinstall script runs. They might flash past too fast to read though, but they will also be recorded in a big file 'install.log' in the .cb-netinstall-logs folder created in your home directory.

After the script has run, and before rebooting, does your system still seem to be working? Can you open a new terminal with (Ctrl+)Alt+F2~ and run some commands OK? If so, try

cat ~/.cb-netinstall-logs/install.log

The script is verbose, so the file is very long. You might prefer to substitute "less" for "cat" so you can view the file bit by bit, and search for words (less is the standard reader for man pages).

#21 Re: Tips, Tricks & Scripts » How to: install Waldorf from the Debian netinstall » 2013-06-04 12:35:44

Hi Super-Nathan - the installer is on github already:
https://github.com/johnraff/cb-netinstall
Feel free to fork, modify and send pull requests! smile

At the moment I can't use github as the d/l url for the installer though, because for some reason permissions on directories are not being preserved. ( One specific dir. needs r/w none none ) I've tried the zip d/l and tar.gz d/l but both mess up permissions, whereas the Dropbox tar.gz is fine.

If you'd like to continue this discussion, could we move over to the "dev" thread here:
http://crunchbang.org/forums/viewtopic.php?id=21266

This thread is really meant for solving users' problems (if possible)...

#22 Re: CrunchBang Talk » Your opinion: ElementaryOS vs #! » 2013-06-04 04:33:31

orionthehunter wrote:

Set up openbox for my fiancee...

I set up her interface to be easy, work, and be beautiful on the side.  I was so inspired by what I did that I configured my user in a similar way.

Care to share some of that? smile

#23 Re: Tips, Tricks & Scripts » Baby's First Programming, (In Python) » 2013-06-04 04:26:03

Hey Joe - great idea! A chance to finally get my teeth into Python a bit. Bash is lots of fun, but maybe it's time...

Please don't go too fast though, yikes I've missed all the first 3 or 4 lessons and will have to catch up, later this evening maybe.

#24 Re: CrunchBang Talk » Search a specific thread » 2013-06-04 04:10:50

Try the "intitle:" tweak:

site:http://crunchbang.org intitle:"Ideas for Janice" searchterms

#25 Re: Tips, Tricks & Scripts » shell script bits & pieces thread » 2013-06-04 04:01:57

Thanks Doomicide! A full-blown, and useful, script like this might deserve its own thread in fact, so people can comment or make suggestions...

To be honest, I really envisaged this thread for handy scraps of code that don't really merit their own thread. That said, all contributions are welcome! smile

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo