Google is switching to SSL

Categories: Interwebz
Tags: ,
Published on: October 20, 2011

If you have a Google account there’s a good news for you, in the next weeks Google will switch to an encrypted search page for every registered user.

That’s right, when you’ll serach for something you’ll be automagically redirected to https if you’re logged with your Google account.

http://googleblog.blogspot.com/2011/10/making-search-more-secure.html

Linux kernel 3.0 is out.

Categories: Linux
Tags:
Published on: July 22, 2011

Linus Torvalds told us on Google+.
Let’s see how much we’ll have to wait to see it in Slackware -current :)

HP-2137sl volume bar configuration

Categories: Linux, Slackware
Published on: July 6, 2011

Like described in the previous post, find both codes for increase/decrease volume with xev:

KeyPress event, serial 34, synthetic NO, window 0x3400001,
root 0x15d, subw 0x0, time 979988, (423,-222), root:(1017,104),
state 0x10, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x3400001,
root 0x15d, subw 0x0, time 978476, (423,-222), root:(1017,104),
state 0x10, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

Add those codes to ~/.xmodmaprc file:

keycode 121 = F24
keycode 122 = F25
keycode 123 = F26

And the corrispondent commands to ~/.xbindkeysrc:

# Muto
"amixer -c 0 sset Speaker,0 toggle"
m:0x10 + c:121
Mod2 + F24

# Abbassa volume
"amixer -c 0 sset Master 5%-"
m:0x10 + c:122
Mod2 + F25

# Alza volume
"amixer -c 0 sset Master 5%+"
m:0x10 + c:123
Mod2 + F26

I’ve added this command at the end of ~/.bashrc to have the key bindings loaded when X start:

xbindkeys -f /home/simplex/.xbindkeysrc

That’s all.

Audio mute/unmute hotkey on HP DV6-2137sl with Slackware/Linux

Categories: Linux, Slackware
Published on: July 6, 2011

It could be useful sometimes, so…
Use xev to know the code generate by the button, type xev in a terminal and after a bit of some unnecessary codes, press the audio button, you will see something like this:

KeyRelease event, serial 34, synthetic NO, window 0x3800001,
root 0x15d, subw 0x0, time 7145078, (-71,-326), root:(523,0),
state 0x10, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

The important part is keycode 121, in my case.
Create the file ~/.xmodmaprc and put in it:

keycode 121 = F24

F24 is an arbitrary code chosen by me, you can use whatever you want but i suggest F+number, greater than 12.
Now install xbindkeysrc, you can find it at slackbuilds.org, compile and install.
Then do

xbindkeys --defaults > /home/simplex/.xbindkeysrc

to create the default configuration.
Add the part for audio mute/unmute at the bottom:

# Muto
"amixer -c 0 sset Speaker,0 toggle"
m:0x10 + c:121
Mod2 + F24

Replace the 121 and F24 with your codes, the part in “” is the command that you want to run when the button is pressed, in this case the mute/unmute of our notebook speakers.
Next time, the volume bar!

Bash doesn’t like filename with spaces

Categories: Linux
Tags: ,
Published on: June 11, 2011

So in our loop we use it like a string

for file in *.txt; do mv "$file" /tmp/; done

«page 2 of 11»
Please support our sponsors ;)
Welcome , today is Wednesday, February 8, 2012