« first day (1206 days earlier)      last day (3763 days later) » 

ppr
12:07 PM
@Braiam it removes also my xfce packages... So not a good solution.
 
@ppr obviously, because you are telling apt to remove recommends and suggestions of all packages. Do apt-get -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false autoremove gnome with the gnome package installed
 
 
3 hours later…
ppr
2:44 PM
@Braiam Thanks for your answer. However, xfce* is again removed...
 
 
2 hours later…
4:41 PM
@TGMCians Very, very likely your machine is either i386 or amd64. Probably amd64. You'll find out very quickly (when you try to boot from the CD/USB/etc.) if it isn't amd64.
 
5:06 PM
Guys, I just managed to get X/KDE catatonic when running compiz (bad move), while trying to answer that compiz question. I really need to stop being helpful. Anyway, it made me wonder - is there any way to restart the X server from the command line? I can do it from the KDE menu, but that was not responding.
 
@FaheemMitha if there's a compiz (or other) process taking 100% cpu, start by killing that
 
@Gilles I did. It didn't change anything.
 
otherwise kill either the session manager or window manager, or in a pinch the X server process
 
I've no idea if it was taking 100% CPU. I didn't check. I'm not going to remove it from my machine, in case I accidentally start it again.
@Gilles i was wondering how one would do the equivalent of the KDE restart X server button.
Presumably the X server is:
root 3068 9.3 1.8 349432 299956 tty7 Ss+ 22:27 1:18 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-a1XGwb
 
@FaheemMitha dbus
I don't know the command
 
5:13 PM
@Gilles Ok.
 
I thought there was a recent question about this but I can't find it
 
@Gilles OK, no problem.
 
@FaheemMitha /etc/init.d/kdm restart will probably work...
 
I meant to say above - I'm going to remove it from my machine
 
but yeah, or dbus, command known to nobody
 
5:15 PM
@derobert Thanks, I'll try to remember that for next time.
 
(or gdm, or xdm, or whichever display manager you're using)
 
Any advantage using dbus? "command known to nobody"?
 
@FaheemMitha Well, everyone here seems to know that yeah, it's some dbus command, without actually having any clue what the dbus command is. So its a dbus command known to nobody :-P
 
@derobert Oh, I see. I thought you might be using some technical term. :-)
it is probably possible to ask KDE, so to speak. Since the button calls whatever command it is.
But I'm not motivated enough to do so.
 
Actually, come to think of it, the restart X server button is in kdm, right?
And kdm is what is directly starting the X server
 
5:20 PM
@derobert Possibly.
 
So maybe its doing it directly. Mainly because I'm not seeing a org.kde.kdm with qdbus ...
 
Actually, probably. Looks like you need to log out first. Then restart the server.
@derobert Doing what directly?
 
Restarting X
as opposed to making a dbus call to ask someone else to restart X
 
@derobert Ok. Rather than using this dbus thing, whatever that is.
@derobert Yes, I see.
 
Guess you could try dbus-monitor to find out. Not personally looking to restart X at the moment, though...
 
5:23 PM
@derobert Sure. Don't worry about it.
 
5:50 PM
Classic ways to restart X:
1.Ctrl+Alt+Backspace
2. sudo service gmd2 restart (use your actual display manager)
3. killall X
@Gilles I think the how to restart was an AU question
69
Q: How can I restart x-server from the command line?

Noah GoodrichHow can I restart x-server from the command line? I'd really like to be able to restart my gui without having to do a full system reboot.

@FaheemMitha
@derobert this seems to be the dbus command:
dbus-send --system --dest=org.freedesktop.Hal --type=method_call \
--print-reply /org/freedesktop/Hal/devices/computer \
org.freedesktop.Hal.Device.SystemPowerManagement.Reboot int32:0
6
A: How do I restart Linux (Ubuntu) from the command-line?

lioriIf you've got freedesktop-compliant session manager, you can use DBus to invoke restart from inside the X session. The command goes: dbus-send --system --dest=org.freedesktop.Hal --type=method_call \ --print-reply /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemP...

 
Well, yeah, that's restart the machine...
Not just X. I think.
Similarly, qdbus --system org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart .... but I haven't tested that.
 
@derobert ah, yes, good point. That does also restart X of course ;)
 
Yes. But who still uses Hal? :-P
 
@derobert Haven't used Hal since 2001
 
@terdon Thanks for the research. :-)
@terdon Funny.
@terdon That's quite the mouthful.
 
6:01 PM
@FaheemMitha yeah and (if it works, see hal) it will restart the whole machine as derobert pointed out
 
@terdon I know that one, but it wasn't working for me just now.
 
Yeah, for some reason the powers that be have decided to disable it by default on many distros
 
Ctrl-Alt-Backspace has defaulted to off for quite a while
 
Apparently, the new one is Alt gr + Print Screen + K.
 
@terdon No, it works on Debian, normally. But the compiz thing messed everything up. I think it froze kdm possibly.
 
6:03 PM
 
Not by default. You can enable it on Debian...
 
I've no idea what the poster wanted with compiz anyway. What it is good for?
@derobert Hmm, really? It used to work. For obvious reasons I don't use it much.
 
I think it is not a distro thing bu a DE thing. @FaheemMitha are you using gnome or its variants?
 
Yeah. It was definitely off by default on the new box I installed Saturday, with testing. I used to always turn it off, because my main use of c-a-backspace was hitting it by mistake...
 
@terdon no. I use KDE.
 
6:04 PM
That's probably why it works, I think the Gnome people decided to disable it
 
@derobert what do you use crl-alt-backspace for?
 
Another example of the brilliance of the Gnome devs
 
@terdon Ok, well I don't know if it works on wheezy, and I don't want to test it right now.
 
@FaheemMitha Nothing. But c-a-= OTOH...
I've had that one mapped before.
 
@derobert You mean it binds to those keystrokes?
Not sure what -> c-a-= OTOH...
means
 
6:06 PM
I mean, I've configured a keybinding for control-alt-= before. And then mistakenly hit backspace... Very annoying
So I used to always turn it off manually. I can ssh in if I need to kill the X server.
 
@derobert Oh, I see.
 
For a while, control-alt-backspace didn't work at all—it was broken in Xorg. They added it back eventually, but I thought everyone defaulted it to off now.
Or maybe that was just control-alt-kp* that was broken (I think that was the key, the one the breaks a keyboard/mouse grab)
 
ctrl-alt-backspace has been around forever, though I can't remember how I first learned about it.
Linux-based systems aren't exactly chatty about what you can do with them.
 
Yeah. I don't remember how I learned of it, either. It's been a while! Late 90s, I think...
 
Yes, late 90s for me too.
Time flies, doesn't it?
 
6:11 PM
Indeed
 
6:49 PM
Wow, is this guy for real?
Read the bio, in third person no less!
 
7:21 PM
quite a piece of work
 
slm
7:39 PM
@terdon w/ a rep of 191. Something seems out of whack.
 
@slm well, I've seen some of his posts and he's perfectly civil and non-trollish. Just ridiculously self obsessed apparently.
 
slm
@terdon - that's what I was driving at. Lots of Q's but no answers....?
 
@terdon Where did you come across this?
 
@slm Ah, yes. Well, fair enough, not everyone enjoys answering.
@slm He just posted a Q and I looked at his profile.
 
@slm There are some of his answers on SO.
Well, self-absorbed people are less likely to post answers.
 
slm
7:43 PM
@FaheemMitha Yeah it's not fair to generalize, I don't know him at all so....
 
statistically speaking
 
slm
@FaheemMitha That was my point...but again do not know their situations...
 
@FaheemMitha that your professional opinion? ;)
 
@terdon heh. No, just a common-sense observation.
Well, there are far worse sins than being self-absorbed.
There's another funny mini-bio here.
There's got to be a more suitable site for apache proxying.
 
slm
8:01 PM
serverfault
I know all about apache proxying b/c of my day jobs but it would seem off site here, at least a little
 
It's fun to be a little bitchy sometimes.
@slm Yes, someone could suggest that to the poster.
 
slm
which Q is that regarding?
 
I guess we're all a little bitchy today. Someone just posted this on tex.sx chat -> tex.stackexchange.com/users/41469/vochmelka
0
Q: Why is Apache not respecting aliased directories?

JonathanHaywardIn ssl_default.conf where Apache serves as an SSL-adding proxy for Django Gunicorn, I have: ... Alias /admin/static/ "/usr/lib/python2.7/dist-packages/django/contrib/admin/static/" ProxyPass /media/ ! ProxyPass /admin/static/ ! ProxyPass / http://localhost:8080/ ProxyPas...

 
slm
8:41 PM
Seems to be a bit of good news for GNOME 3.10 + gnome-shell's apparent memory leakage
| - I upgraded to gnome-shell 3.10 and it seems that the worst of the leakage is
gone. The shell was usable after two days continued log-in
I found, that gnome-shell lose some windows. I see it in two ways: 1. gnome-terminal: after a restart - with ALT+F2 -> r or kill -HUP $(pgrep gnome-shell|head -n1) or resume from suspend - a terminal windows can not be opened any more, but is listed in ALT+TAB list (I add a video) 2. remmina: I opened a connection and sometimes the window is just not to see any more - also not in ALT+TAB. But it must there, when I open a new connection in a other group I get a new window. When I open a new connection in the same group as the lost windows (it get normally attached as a new tab to the window) it get a connect to the server, but not the window. I can see on the terminal server and netstat, that the connection is established. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: gnome-shell 3.8.4-0ubuntu1 ProcVersionSignature: Ubuntu 3.11.0-3.7-generic 3.11.0-rc6 Uname: Linux 3.11.0-3-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.12.1-0ubuntu2 Architecture: amd64 Date
gnome-shell (Ubuntu)
Undecided / Confirmed
I haven't tried this as of yet.
 
Oh, BTW, as a result of my fighting with pulseaudio, I owe the site a self-answered question on how to configure surround sound over HDMI w/ pulseaudio
And actually have it work
 
 
2 hours later…
10:29 PM
@derobert Did you get that figured out eventually?
 
@FaheemMitha yep. That's why I owe a self-answered question
I even got to file a serious bug against pulseaudio :-P
 
@derobert Ok. Sound can really be a pain. Since apparently there are multiple subsystems that don't necessarily play nice with each other.
 
@derobert Link?
 
Yeah for us typing at the same time :-)
 
10:31 PM
@derobert Well, you're a good citizen. I file quite a lot of bugs too.
Often build type bugs, because I try to backport stuff a fair amount. to stable.
 
I'm thinking of being really good and sending a patch... But haven't had time yet.
 
@derobert Patches are harder. Do you know how to fix it?
 
Changing the location of two directories shouldn't be that hard...
 
Ok, I see you have multiple approaches to fixing it. :-)
 
slm
10:44 PM
This Q is about to get closed, let's vote to reopen if it does. Steph. fixed the title is no longer so inline with the Q that was tagged as a dup.
3
Q: Include colouring in GNU ls time-style

Martin VegterI know, I can specify custom time format for ls like this ls -lAF --time-style="+ %Y-%b-%d %H:%M:%S" --color=always but I would like to "smuggle in" colors inside the time format. For example, I would like to have the year 2014 in red color. How would I do that? I have tried putting the colo...

 
0
Q: Cheap tablet for running arch or Fedora (arm or x86)?

KG6ZVPI really want to get a tablet that I can run a linux distro on that I use all the time. I love android and all, but it would be awesome to have an Arch or Fedora tablet for productivity and entertainment alike. I've had my eye on the Acer Iconia W500 for awhile (I particularly like AMD, but Intel...

I think this question should be closed, but I'm not entirely sure which reason I should choose
Off-topic, or opinion-based?
 
if you want to write a custom OT reason "shopping recommendation" a la SU...
@slm pushed it out the review queue
 
@MartinvonWittich I just voted to close as opinion based
 
yeah, that works too
 
slm
@MartinvonWittich agreed
 
10:49 PM
@terdon OK, did that too
 
slm
@MartinvonWittich opinion
@Braiam thanks
 
mm... read from line 42 and tell me, isn't he pretty much busted? pastebin.com/XX4y2JQs
 
slm
@Braiam that would be my interpretation as well.
 
@MartinvonWittich I think the OP is very confused, he's modifying .zshrc and then running a script with a bash shebang
0
Q: Local variables in zsh: what is the equivalent of "ash's "export -n" in zsh

redstreetI'm trying to contain the scope of a variable to a shell, and not have children see it, in zsh. For example, I type this in .zshrc: GREP_OPTIONS=--color=always But if I run a shell script with the following: #!/bin/bash echo $GREP_OPTIONS The output is: --color=always while I want it to ...

And he mentions ash in the title but I guess that's a typo
 
@terdon well, all shells share the same environment, so any variables that he uses in .zshrc will be exported to bash etc. too
 
10:57 PM
@MartinvonWittich huh?
 
@terdon or am I completely wrong here?
 
.zshrc should only be read for a new interactive shell, why would it's variables be shared with a non-interactive bash instance
@MartinvonWittich that's my initial response but let me check first. Either you are completely wrong or I am :)
 
At least the variables from my current zsh session are exported to a sh subshell:
martin@martin ~ % A=b sh -c 'echo $A'
b
martin@martin ~ % echo $SHELL
/bin/zsh
 
@MartinvonWittich that's different, the varuable is expanded by zsh before it is passed to sh
nothing to do with startup files
 
@terdon even in single quotes?
Hm, but you're right, in interactive shells it doesn't work:
martin@martin ~ % tail -n1 .zshrc
test=blubb
martin@martin ~ % echo $test
blubb
martin@martin ~ % sh
$ echo $test

$
martin@martin ~ % bash
martin@martin:~$ echo $test
I'm confused ^^
 
11:01 PM
so am I now... apparently it is expanded even in single quotes but that's probably because you are declaring the variable just for this command. Compare with:
terdon@oregano ~ $ A=b;
terdon@oregano ~ $ sh -c 'echo $A'

terdon@oregano ~ $
I don't know the exact mechanics but var=foo command will pass $var to command
 
@terdon but with export it works:
martin@martin ~ % export A=b
martin@martin ~ % sh -c 'echo $A'
b
 
hmmm
 
His question does have some merit if even we get that confused :D
 
so it does. OK,so export shares variables between shell instances.
AH! of course, those are environment variables aren't they?
 
11:03 PM
Marks each NAME for automatic export to the environment of subsequently
executed commands.  If VALUE is supplied, assign VALUE before exporting.
 
Of course, he could just solve his issue by not exporting the variable in his .zshrc
 
OK, so export will pass the variables to subsequent commands. Still don't see why that would work from .zshrc -> bash non-interactive
 
But the anonymous function is even better because if you just need a private variable during the execution of .zshrc, an anonymous function would even prevent it from leaking into your interactive session
 
I'll be damned, it does work if you run the bash script from your current zsh session
huh, I would have thought that the non-interactive shell would be different. I stand corrected, looks like it was indeed me who was completely wrong :)
 
@terdon not completely - it still requires export to work. He wouldn't have the problem he's described if he didn't use export in his .zshrc.
 
11:08 PM
true
 
I've edited my post and added "But apart from that - if you're not using export in your .zshrc at all, the variable should only be visible in your current interactive session, and it shouldn't be exported to subshells."
 
yeah, I saw
it would also work if he modified .profile instead.
Basically, non-interactive shells will not read any startup files which is why I was not expecting the .zshrc to affect anything.
However, the export makes the variable available to all child shells
 
export -n just unexports an exported variable. – terdon 55 secs ago
ahaha, so export -n is equivalent to not using export at all :D
 
heh, yeah I guess. Or so help export tells me
Anyway, since he's running the script from a terminal where he has already started an interactive shell, that means that the variable is exported and passed to his script.
All clear now :)
 
11:14 PM
@MartinvonWittich I just edited to make this solution more explicit, hope you don't mind and of course feel free to roll back
 
@terdon of course not, it's absolutely fine ;)
 
:)
 
11:28 PM
ok, I'm off to bed
gn8
 

« first day (1206 days earlier)      last day (3763 days later) »