Dienstag, 9. November 2010

ftp server vsftpd

after  adding dyndns for static IP access
sudo apt-get install vsftpd
added an ftp user
sudo adduser 

Samstag, 24. Juli 2010

2010 eddition: ubuntu server 10.04 on a DELL OPTLIPLEX G620

Well ,my T22 is dying after 4 years. So I got a new old DELL and the what I will do is
  • install  ubuntu 10.04 server edition
  • LAMP and SAMBA Packages
and then hook up my webcam, transmission including moblock (shall i give a try to the TOR and proxify as well ?) and  a mail server... then lets start
  • dowloaded and installed ubuntu-10.04-server-i386.iso 
  • installe LAMP, OpenSSH, SAMBA fileserver and MailServer
  • no root pwd on mysql
Postinstallation

done

using this time 192.168.1.221


  • SAMBA 
Follow this guide:http://www.unixmen.com/linux-tutorials/566-install-samba-server-in-ubuntu-karmic but used the existing user for
sudo smbpasswd  -a   "myuser"
 
Adding 
follow symlinks = yes
wide links = yes
unix extensions = no
to have access as well to mounted external harddrives
  • Transmission torrent
Following this guide http://www.techdrivein.com/2010/06/install-new-improved-transmission-20-in.html  
used this settings $ sudo nano /var/lib/transmission-daemon/info/settings.json
{
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "cache-size-mb": 2,
    "dht-enabled": true,
    "download-dir": "/home/daevu/download",
    "download-limit": 1000,
    "download-limit-enabled": 0,
    "encryption": 2,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/home/daevu/Downloads",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 53958,
    "peer-port-random-high": 64000,
    "peer-port-random-low": 42000,
    "peer-port-random-on-start": true,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 0.2500,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{81ed8acf066233eabf1621d75adc85f0a3faa20b8021nMli",
    "rpc-port": 9091,
    "rpc-username": "daevu",
    "rpc-whitelist": "127.0.0.1,192.168.*.*",
    "rpc-whitelist-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 5,
    "speed-limit-up-enabled": true,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "watch-dir": "/home/daevu/torrents/",
    "watch-dir-enabled": true
}
 





  •  JdDownloader: first install vncserver:
  • apt-get install -y vnc4server xinetd
    run vnc4passwd (enter desired pwd
    to run vncserver on startup: add this lieno to /etc/rc.local just before exit =
    • su "myusername" -c 'vnc4server :1 -geometry 1024x768 '
  • Install JAVA (since transmission works not with OpenJDK) 
    sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
    sudo apt-get update 
    sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin 
  • Download transmission over VNC
    $wget -c http://212.117.163.148/jd.sh
    After download let's make it executable and run it :
    $chmod +x jd.sh
    $./jd.sh


  • INSTALL WLAN Chipset (ZyDas1211) (Follow  http://wiki.ubuntuusers.de/WLAN/wpa_supplicant
     
    • To get MAC Address:
      •  ifconfig -a
    • to initially start it
      • sudo ifconfig wlan0 up
  • Edit /etc/initd.interfaces so it will start from boot  (comment out eth0)
##WLAN
auto wlan0
iface wlan0 inet static
address "your desired IP"
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-ssid "mynetwork"
wpa-psk "mypassphrase"
wpa-proto RSN
wpa-key_mgmt WPA-PSK
wpa-pairwise CCMP
wpa-group TKIP
         
         

TO DO
  • move torrent after finish: http://1000umbrellas.com/2010/04/28/how-to-automatically-move-and-remove-transmission-daemon-downloads does not work
  • TOR & privoxy
  • BAckup Pics and docs on the machine




    Dienstag, 13. Juli 2010

    transmission torretn client 2.0 on karmic

    according to http://www.techdrivein.com/2010/06/install-new-improved-transmission-20-in.html

    Montag, 12. April 2010

    JDOWNLOADER - Rapidshare on the headless machine

    Since torrents are getting scarce on the net, rapidshare seems to be an option

    Install
    sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin fluxbox tightvncserver
    Setting up vnc server 
    vncpasswd
    vncserver


    Connect with VncClient, like tightvnc (according to the port and pwd selected above)


    in the vnc Window (X server needed) install jdwonloader


    with
    $wget -c http://212.117.163.148/jd.sh
    After download let's make it executable and run it :
    $chmod +x jd.sh
    $./jd.sh


    Since my headless machine has only 128MB RAM , Jdownloader crashes after 5hours or so. Therefore I kill the java PID and restart it using cron (Assuming there is a vnc session on display1 and I configured JDownloader to automatically restart the app on startup)

    7 0,6,12,18 * * * killall java >/dev/null 2>&1; export DISPLAY=:1 ;/usr/bin/java -Xmx512m -jar .jd/JDownloader.jar >/dev/null 2>&1
    or even better: start the beast lke this in a vncserver bash

      while true; do killall java; java -Xmx1024m -jar /home/daevu/.jd/JDownloader.jar; sleep 21000; done

    Reference:

    http://service.jdownloader.net/old/wiki.jdownloader.org/indexd69d.html?title=Running_On_A_Headless_Linux_Server
    and
    http://www.skullbox.net/vncserver.php
    and
    http://www.ubuntu-inside.me/2009/02/jdownloader-ultimate-freepremium.html

    Samstag, 6. Februar 2010

    Transmission-daemon disk space in web gui

    follow this intructions: http://forum.transmissionbt.com/viewtopic.php?f=8&t=8610
    go for the lats AJAX solution

    Samstag, 30. Januar 2010

    torrent client, the 2010 edition

    Forget rtorrent, newest releases often report "bencoded" error, therefore swicth to

    tranmission

    sudo apt-get install transmission transmission-deamon

    then edit the /etc/transmission-daemon/settings.json to be compliant with tor privoxy, local port settings, watch dir. Bes sure to sto the deamon before editing the file


    {
    "alt-speed-down": 50,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "dht-enabled": true,
    "download-dir": "\/home\/daevu\/finished",
    "encryption": 1,
    "lazy-bitfield-enabled": true,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 62078,
    "peer-port-random-high": 64000,
    "peer-port-random-low": 62000,
    "peer-port-random-on-start": true,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "proxy": "127.0.0.1",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": true,
    "proxy-port": 8118,
    "proxy-type": 2,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": false,
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{9da631e4ce6a9d2e6408c781a2c18c41e5f03250qeZzHteA",
    "rpc-port": 9091,
    "rpc-username": "",
    "rpc-whitelist": "192.168.*.*",
    "rpc-whitelist-enabled": true,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 5,
    "speed-limit-up-enabled": true,
    "umask": 18,
    "upload-slots-per-torrent": 14,
    "watch-dir": "\/home\/daevu\/torrents\/",
    "watch-dir-enabled": true
    }



    check on client:
    install daemon
    add torrent
    $ transmission-remote -a one.torrent two.torrent
    transmission-remote -tall --start


    To move finished torretns to a predefined directory

    - sudo apt-get install php5-cli
    - add stop-and-move-finished.php script, modify it to your needs and
    - make a cronjob
    0,10,20,30,40,50 * * * * /usr/bin/php /home/daevu/top-and-move-finished.php >/dev/null 2>&1