Tag Archives: linux

simple alarm clock with bash scripting

here is a simple bash programming that will execute alarm when it reach certain time setup by user
initially i coded just for exercise on bash scripting (practice make perfect right?) but i think it’s a good idea to share it with other people
here’s the code
#!/bin/bash
masa=”`date +%k:%M`”
mp3=”$HOME/Desktop/alarm.mp3″ #change this

if [ $# != 1 ]; then
echo “please [...]

tips on hardening your ubuntu box, or what ever your may call it

close all port
block all incoming connection
apt-get firewall
apt-get ids
apt-get rookit scanner/remover
check /var/log everyday
if those didn’t work, and here is my suggestion
unplugthecable
make a sticker with “apt-get a life” then it stick onto your box
hope this will help
p/s:why the hell my wp 2.3.1 editor broken?? wtf i have to use it without page style enabled.

check host uptime with hping2

here’s some trick to find a host uptime beside using nmap
type this command in your terminal/console (whatever you call it)
$ hping2 host -p portnumber -S –tcp-timestamp
where host is the ip/hostname of a machine you want to check and portnumber is the open port on remote machine.
oh, you be root in order to use that command.
here’s [...]