cool linux apps
lmms
handbrake
audacity
xbmc
hugin
htop - awesome coloured version of top
how to make a bitnami stack executable (bin file)
chmod 755 filename.bin
./filename.bin
check packet flow on linux with
iptstate
this uses the libnetfilter_conntrack part of linux kernel
It analyses all nics
If you can see traffic on a particular port and you want to see if it is coming from your machine check your /etc/services file to see if a known service is listed for it.
If you need more info use netstat:
netstat -nap
(you can pipe this to grep to analyse specific ports)
netstat -nap | grep ":22\s"
Look at devices
/sbin/lspci
or
/sbin/lspci -vv
for more detail
look for usb only
/sbin/lspci | grep -i usb
you can also run
/sbin/lsusb
Kernel modules are in
/lib/modules/
find the loaded ones using
lsmod
To find out what has been plugged or unplugged query the kernel with
dmesg
check disk space
df
Check io
iostat
or
iostat 5 5 (try 5 times with 5 second pause)
check processes
ps (plus switches)
create a folder
mkdir
or create nested folders
mkdir -p top/onedown/twodown
copy files
cp cheese.txt /folder/cheese.txt
send mail from the command line in linux (ubuntu)
sudo apt-get install ssmtp
Then edit the ssmtp configuration file:
sudo gedit /etc/ssmtp/ssmtp.conf
at the very least set the mailhub
Mailhub=foo.bar.thing.com
to enable 'mail' from the command line install the mail utils:
sudo apt-get install mailutils
then from the command line, any command can be piped to mail:
ls | mister@cheese.com
Compile a linux application from source:
Download source files
unpack to a working directory:
tar xzvf nameoffile.tgz
cd to this folder
To compile:
./configure
make
su -c "make install"
Apps to configure Linux iptables with a GUI:
www.fwbuilder.org
www.simonzone.com/software/guarddog
www.shorewall.net
APT commands
apt-get update
apt-get upgrade
apt-get install
apt-get remove
apt-get clean
apt-get autoclean
apt-get autoremove
No comments:
Post a Comment