Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Wednesday, January 27, 2016

Everything I learned about Linux in the Last 24 hours 1453914384

Unix stickers has a referal program so instead of just trying to hawk amazon goods I can try to sell you something you want, so if you want a five dollar cred and to help the old punk out just head over to unixstickers through this link.

On a more serious note, a lot of us were wondering what the hell happend to Ian Murdock, half of the Debian , After his twitter posts, that were removed after his death. It seems his accusations of police brutality were just forgetten. I'm not going to rehash all of that, because someone else has written a post that is more articulate than I can be but clearly voicing the same concerns I had, here.

I asked a friend about whether anyone on his team cared about systemd, and he said no which prompted this exchange:



Yeah that's right the guy with a cheery reboot PID, told me passion was dead.

Ok so the one liner of the day, is combined with a stack overflow answer I had to read to solve the problem... SERIOUSLY, READ THIS STACK OVERFLOW answer, it's fucking crazy.

When someone tells you your solution is '/'' to a single quite you're like, no that's not right, whatever. But yeah that was the answer.

Here's the alias I was putting in my .bashrc, with output:

alias power='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "percentage" | sed "s/ //gi" | awk -F ":" '\''{print $2}'\''

[dusty@localhost ~]$ power
98%


Sunday, April 4, 2010

Installing all new crap on debian / ubuntu

THis is the same as the script before as written for both arch and ubuntu...the diffrence being is that if you aren't root you need to run this with sudo. Just remember save the script with a name like install.pl and launch it from the command line with a cammand like: sudo perl install.pl

The script:


#!/usr/bin/perl
use strict;
use warnings;

my $aptget;

my @aptget_installs = qw(
xchat screen cpan
wget pcre-devel cmake
gtk+ pygame python-devel
cmake cmake-devel liblo
liblo-devel gcc-c++-devel cmake-gui
libsndfile libsndfile-devel qjackctl
zynaddsubfx vkeybd qtjack-devel
csound csound-devel portmidi
rosegarden4 jamin jack-audio-connection-kit-devel
ctapi-cyberjack-devel zynjacku ardour
nxt_python pybluez
);

&array_cracker();

sub array_cracker(){
foreach(@aptget_installs){
print $_;
$aptget = `apt-get install -y $_`;
print $aptget;
}
}

Monday, December 15, 2008

How the hell am I even sshed in

I am connected to my dedi. I can't hit google, and I can't traceroute anywhere. How the fuck am I even sshed in?

Monday, November 10, 2008

Poor man's firewall ( debian )

This will work on must linux based systems I imagine. It is blocking an IP, by routing all responses through 127.0.0.1. So instead of sending the response packets it just eats them. This is done by adding a static route which directs the traffic no where.

route add -host 1.1.1.1 netmask 0.0.0.0 lo

Ok so in this example, replace 1.1.1.1 with the offending IP. You can do the same thing with FreeBSD but it's a little different and IMHO makes more sense. I will post that solution later.


This is a quick and dirty solution...never use this as a permanent firewall.

Friday, April 4, 2008

Female Hacker Culture slides

Interesting female hacker culture slides.