Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

1/30/2016 Problem Restarting Apache2: Solutions

If you're using apache 2 as webserver maybe sometimes you'll have to deal with common problems like vhost, syntax errors,  bad configurations. Sometimes is when you edit a file inside  /etc/apache2/sites-enabled/file.conf and maybe your edition just didn't accomplish with the syntax so here  is how can you check :

1. Make sure that your Apache2 service is up and running.
user@~$sudo service apache2 status 
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
   Active: active (running) since Fri 2016-01-29 14:05:16 EST; 14s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31573 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 17063 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
  Process: 30948 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) 
  ... 

If this isn't the output, read carefully the error.
2. Check your systemctl status, this will give you a lot of information.
user@~$sudo systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2016-01-29 13:48:57 EST; 18s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31573 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 17063 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
  Process: 30467 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
3. Run the apache config test. It is always a good idea to run configtest everytime you make changes to the apache2 config file so that you won't accidentally stop apache2 service
user@~$ sudo apache2ctl configtest
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
4. Restart the apache service
user@~$ sudo service apache2 stop && sudo service apache2 start

References:

[1]http://www.techrepublic.com/article/troubleshoot-apache-problems-with-these-tips/
[2]https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-site-issues-on-a-linux-server
[3]https://www.linode.com/docs/troubleshooting/troubleshooting-common-apache-issues
Digg it StumbleUpon del.icio.us

7/03/2013 Introducing sources.debian.net

sources.debian.net is a new service[1] that allows browsing the source
code of Debian packages on the web with syntax highlighting,search through the source code ,with the possibility of adding contextual pop-up messages . It is updated and contains source code for all suites in the Debian archive. It currently uses around 381 GB of disk space for uncompressed source packages and around 83 GB for the source package  mirror. It is integrated into codesearch.d.n and the PTS. It was created  by Stefano Zacchiroli and the web front-end was written by Matthieu Caneill.


sources.d.nfollows closely the Debian archive in two ways:
  1. it is updated 4 times a day to reflect the content of the Debian archive
  2. it contains sources coming from official Debian suites: the usual ones (from oldstable to experimental),*-updates (ex volatile), *-proposed-updates, and *-backports (from Wheezy on)
Ensayando sources.debian.net en Osiris


 [1] http://bits.debian.org/2013/07/introducing_sources.debian.net.html
Digg it StumbleUpon del.icio.us

2/09/2013 Debian bugs #800000 and #1000000 contest

reading quickly my email i found this 
As the bug #700000 mark was turned on February 7th 2013, Debian
developers and contributors need yet another new challenge.

So, for the fourth time, a small contest has been set up. It
is very simple: please place a bet (one per person) about the day bugs
#800000 and #1000000 will be reported.

The winner(s) will be the person(s) placing her|his|their bet as close
as possible to the real moment bug #800000 and #1000000 are reported.

There is nothing to win but the pride of being the person who
predicted our bug report rate for the next months|years, just what
René Mayorga won twice for bugs #500000 and #600000 and an obscure
french DD won for bug #700000.

The bet page is a wiki page: http://wiki.debian.org/800000thBugContest

It will be closed on April 30th 2013 (if I remember doing so!). Bets
will be kept statically until bug #800000 is reported.

Please note that bets for bug #1000000 placed back in 2008 and 2010
are kept on this page. Do not modify that section but record your bet
in "Bets for bug #1000000, placed after bug #700000, in 2013".
Digg it StumbleUpon del.icio.us

4/09/2012 Simple Regexp para rss

Recientemente me encontraba revisando algo de musica  de los dj's de defcon{1,2,...19} y sus contenidos,yo en mi afan de tener algo de musica en mi celular  deseaba descargar toda la musica de  7 a la 9  para poder descargar la musica o video de alguna CON pasada te dan el link a un archivo rss .


Defcon contents

Eligiendo el  rss

Defcon 9 Music




pero resulta que me encontraba  con algunos problemas:

1.No tenia Itunes por obvias razones...debian,openbsdetc...
2.No me gusta para nada ese reproductor que se me instala con el gdm si rhytmbox,me parece que va algo lento con  la descargar de las canciones,cuando no es eso se me tira todo el  i3,Asi que yo viendo esta situacion pense en bash,y acordandome de @hecky y otros personajes que todo se puede hacer con bash!,la unica limitacion es tu imaginacion.

El archivo rss basicamente tiene una estructura ,pero nos centraremos en obtener todo lo que contenga la url de descarga que se encuentra dentro de  enclosure:

<enclosure url="https://media.defcon.org/dc-9/music/Defcon_9_Club_Saturday_07_Corrupt_Data.mp3" length="55069064" type="audio/mpeg"/>
si deseas mirar un ejemplo de los rss puede revisar este que es el que yo desee descargar:


asi que lo primero sera descargar nuestro archivo en cuestion para realizar el filtrado.

wget https://www.defcon.org/podcast/defcon-9-music.rss -O  defcon9.rss

despues :

cat defcon-9.rss |grep "<enclosure"|awk '{print $2}'|cut -f2 -d ' " '>urls.txt 

y por ultimo descargamos con wget :

wget -i urls.txt 
si todo estuvo bien deberia aparece algo como :




y asi podrias descargar las canciones.hubiera podida usar curl y la url pero no recordaba algunos parametros  y decidi meterme  por el lado largo .Espero les halla gustado el post y si sabes de otra forma de hacerlo pues no dudes en compartir :-P.

pd:Por cierto si deseas ademas de la musica de la 9 la de la 8 y 7 es simplemente el mismo proceso solo que tendrias que usar
>>urls.txt
Digg it StumbleUpon del.icio.us

1/10/2012 debsecan + logcheck + mutt

Este es un post algo un poco triste no pretendo explicarlo por que si quieres saber de que se trata simplemente instalalo en tu sistema a si se vuelve algo mas practico ;) con el blog o por lo menos eso creo, estoy un poco enfermo pero nada que no se recupere con un antigripal,tambien ancioso y contento  por que de nuevo retomaremos clases,si clases,parciales,estudio,lindas estudiantes,compañeros,deporte...etc  y mucho mas,si usas debian y no conoces debsecan deberias de revisar este lindo paquetito...

 debsecan - Debian Security Analyzer  analyzes  the  list  of installed packages on the current host and reports vulnerabilities found on the system.
 logcheck otro y infaltable en tu lista  y mutt por supuesto aunque algunos diran no me gusta me gusta mas alpine,por lo menos yo creo que alpine sienta mejor en obsd,con estos tres paquetitos podrias por empezar a hacer tu posicion mas defensiva aunque siempre deberemos  de ser tambien offensivos,en fin  los tres representan una herramienta  valiosa para subsanar un poco nuestro nivel de paranoia aunque no nos salvamos de esos 0days  pero como alguien decia en una revista por ahi,podemos hacerle la vida mas dificil a nuestro atancante que por cierto ya haz tomado en cuenta si tu router,modem...etc tiene el firmware actualizado ojo que no vale de nada de tener tu cajita hardenizada y tener 123456 o admin de password en el router ... asi que si los que leen estas babosadas deberias de pensar primero en tu seguridad y que medidas tomas frente a un posible ataque en vez de atacar...

Hasta la proxima y recuerdo defender antes de reventar.

Otros Interesantes que podrias buscar en red :
Securing debian manual 
packet filtering intro 
Pax 
bastille
htop && lsof 
chkconfig 
rootkit  (sans)



Digg it StumbleUpon del.icio.us

Nanny "Parental Control for Ubuntu and Debian"

Nanny is powerful parental control though for ubuntu ,we can use it via ppa,i would not say that is the best Parental control,but it is reliable and extremely good for my own use well,as you know i use debian and  here we go :-D  :

first step:

add ppa repo,you can find info about  repo here :
open a shell :

vim /etc/apt/source.list

deb-src http://ppa.launchpad.net/nanny/ppa/ubuntu lucid main 

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 132D48BA

 you will get this messages :


Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.904SlXc0AT --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 132D48BA
gpg: solicitando clave 132D48BA de hkp servidor keyserver.ubuntu.com
gpg: clave 132D48BA: "Launchpad nanny" sin cambios
gpg: Cantidad total procesada: 1
gpg:              sin cambios: 1

after that you might add and install nanny :


aptitude update && aptitude install nanny
configure nanny is pretty simple ,you just will  add a list from internet :


remenber nanny is web filtering not pidgin or other software,i hope you enjoy this post and if you know another parental control please comment.

sources:

pd :if you  found problems with dependencies you just do:

  • apt-get -f install  
Digg it StumbleUpon del.icio.us

2/05/2011 Debian Squeezy Release Party and Live Microblogging


Hi again Folks!

During the last months the Team of Security and Developers of Debian proyect have been working in a Squeezy the next release of Debian Stable,in the maintime in around the world is doing a parties today 5 and 6 of february ,for these today i share the next links ,there you will found all information about the party and your town here,also  is starting  a party line in the account of Identi.ca/debian  .The Debian Party Line is a distributed release celebration. Using mumble we can all voice chat together, on a virtual party line.

Some Details :

who


Debian users and developers.

when


February 5th and 6th.

We will follow the events leading up to the release of Squeeze. Developers who have a view into the process are invited to provide play-by-play commentary. And then we will ring in the new release.

Schedule

February 5th



  • 1:00 GMT - party line officially opens, but this may be a quiet time (check if your sound setup works, etc)

  • 14:00-23:59 GMT - Joey plans to be on the party line during much of this time period, to welcome guests and provide play-by-play of the release process.


February 6th



  • 14:00 GMT - Joey resumes play-by-play if release hasn't happened yet

  • 23:59 GMT - party line probably closes


where


Everywhere there's bandwidth. Mumble needs 10-40 kbit/s outgoing bandwidth, and the same amount incoming for each user who's talking. We hope any reasonable broadband connection will do.

The mumble server is mumble.debian.net. It is located in the UK.

how


See instructions for using mumble.

In Colombia :

Colombia Chaparral-Tolima



  • When: El 5 o 6 febrero (el día será cuando se pueda descargar la versión estable de la página oficial)

  • Where: en mi casa :) (en las profundidades inexorables de mi habitación)

  • What: pos no se... zurumba, chicha lo que sea... se descargará la versión estable y se procederá a la instalación del sistema operativo y subsecuentemente a la instalación y configuración de algunos programas

  • Bring: pos upe turupe que tampoco se... ahí verán


nota: como al parecer y hasta donde me he enterado en donde habito soy el único que utiliza Gnu-Linux entonces realizaré la fiesta de lanzamiento sólo... esto con el objetivo primero de disfrutar de la instalación de la nueva versión estable de Debian y también con el objetivo tal vez de incentivar a que en un futuro sean más las personas que realicemos y participemos de esta fiesta de lanzamiento




Colombia: Bogotá



 

Participants



  1. oscar3425

  2. AndresVia





Colombia: Medellin






Colombia: Pereira



  • When: February 5, 2011 - 19:00

  • Where: Parnaso Bar - Cr6 23-35

  • What: Beer, food, talk, meet debian users

  • Bring: Whatever you want

  • More info: diegomad(at)gmail(dot)com - webchat



 

 

 

 
Digg it StumbleUpon del.icio.us