Ubuntu

Install Gyachi

Precondition:

  • Having a Linux station
    • In this case I will describe the installation only under Ubuntu version
    • Being able to install stuff, having the necessary rights on the system.
  • Needing a Yahoo messenger with more than only chatting functionality

Steps:

  1. Open up a terminal
  2. Type in “sudo add-apt-repository ppa:user/ppa-name”
  3. Replace “user” by your username
  4. Afterwards type in your password
  5. Update the repository by typi ng : “sudo apt-get update”
  6. Type in the normal install commands your used to under Ubuntu :
  7. “sudo apt-get install gyachi”
  8. Password again ;)
  9. Use your newly installed Gyachi and enjoy functionality ;)
  10. If you cant find it under your programs in the GUI just type gyachi again in a console ;)

Useful sites:
http://www.technixupdate.com/download-yahoo-messenger-for-ubuntu-linux-w...
http://in.docs.yahoo.com/messenger/download/unix.html
http://gyachi.sourceforge.net/

Taggings:

Using wkhtmltoimage to produce screenshots of a website

wkhtmltoimage is a tool that I found to be quite useful when producing screendumps of websites. The homepage may be found here. I'm using it on several servers and have not had any difficulties yet.

With newer versions there are almost no system prerequisites. Depending on the distribution you may have to install one or two X11 libraries to get the fonts right. For example some users reported that they had to install urw-fonts or libx11-dev. Otherwise the static binary runs out of the box, tested on Ubuntu, RHEL and Arch Linux.

Usage in the simplest case amounts to just "wkhtmltoimage [input file] [output file]" where the input file can either be a web address or a local html file. Additionally the application comes with a lot of optional parameters which include e.g. disabling JavaScript, using custom style sheets or even modifying cookies.

There is also a version that produces PDF instead of images called wkhtmltopdf. It can be found on the same website.

Using Ubuntu Linux to spoof MAC address

Since MAC address authentication is based on the MAC address we need to change the MAC address to an address that is not in the list of allowed MAC addresses of the WiFi access point.
Usually the MAC address is fixed in hardware but most operating systems allow you to change the address.

To change the MAC address in Ubuntu Linux follow these steps:

  • use the command ifconfig wlan0 to look up your old IP address, write it down.
  • shut down WiFisudo su
    ifconfig wlan0 down
  • change the MAC address ifconfig wlan0 hw ether 00:11:22:33:44:55
  • start WiFi ifconfig wlan0 up

Taggings:

Add route to vpn server

  1. Make a normal profile for your vpn connection.
  2. Because there is a bug with the vpnc in Ubuntu 9.04 you have to do route add <ip_of_vpn_server> dev eth1 before calling sudo vpnc ...

Taggings:

Add route to vpn server

  1. Make a normal profile for your vpn connection.
  2. Because there is a bug with the vpnc in Ubuntu 9.04 you have to do route add <ip_of_vpn_server> dev eth1 before calling sudo vpnc ...

EDIT: This is not the solution to the challenge mentioned above, but for https://techscreen.tuwien.ac.at/?q=node/325 Sorry! :)

Taggings:

How to setup your imap server via procmail and fetchmail to filter your emails from different mail accounts

What do you need
--> linux server (Ubuntu can do the job http://www.ubuntu.com/GetUbuntu/download)
--> imap (http://ubuntuforums.org/showthread.php?t=57157)
--> fetchmail (http://fetchmail.berlios.de/)
--> procmail (http://www.procmail.org/)

How to configure
--> start a shell and log on your server

fetchmail
--> enter vim .fetchmail.rc
--> enter i to insert content
--> now you can add several servers
--> example: you have to edit content inside {} delete{} afterwards
#Server gmx
server pop.gmx.net
#protocoll
proto pop3
#
#User and Password
user {yourusername}
pass {yourpass}
#
#Options keep-> leaves messages on the server
keep
mda 'procmail -f-'
mda "/usr/bin/procmail -d %s"

#another server configuration
server mail.student.tuwien.ac.at
proto pop3
user {yourusername}
pass {yourpass}
#keep
mda 'procmail -f-'
mda "/usr/bin/procmail -d %s"

--> after you have finished your configuration enter ESC umschalt+:x enter to save the file

procmail
--> now we have to configure the procmail config to filter our emails
--> enter vim .procmailrc
--> enter i to insert content
--> now you can enter a bunch of filter rules
--> gilters are regex compatible (http://de.wikipedia.org/wiki/Regulärer_Ausdruck)
--> each filter begins with :0:, next line is the regex statement and the last line is the folder where you want to put your filtered emails.
--> example (you have to edit content inside {} delete{} afterwards)

MAILDIR=$HOME/mail
LOGFILE=$HOME/.procmaillog
:0:
* ^List-Id: {some mailing list name}
{foldername}
:0:
* ^To:.*{your email adress}*
{foldername}
:0:
*^To:.*
notfiltered
:0: spamassassin.lock
| spamc
:0:
* X-Spam-Level: \*\*\*\*\*\*
spam

--> after you have finished your configuration type ESC umschalt+:x enter to save the file
--> now we have to give that file the permission to be executed by the group
--> enter chmod u=rwx,g=x,o-rx .procmailrc

forward

--> now we have to edit the .forward file
--> enter vim .forward
--> enter i to insert content
--> enter |/usr/bin/procmail
--> after you have finished your configuration type ESC umschalt+:x enter to save the file

crontab

-->the last step is to make a cronjob, so that our mails are fetched from the servers and filtered every 6 minutes
--> enter export EDITOR=vim
--> enter crontab -e
--> enter i to insert content
--> example (you have to edit content inside {} delete{} afterwards)
# m h dom mon dow command
*/10 * * * * /usr/bin/fetchmail -s -f /home/{yourusername}/.fetchmailrc

--> after you have finished your configuration type ESC umschalt+:x enter to save the file

Finished! Now your mails get fetched from different servers and filtered into your MAILDIR into different folders and you can config your thunderbird to see your mails from everywhere.

Taggings:

Pages

Subscribe to Ubuntu