Advertisement
Guest User

Wheezy Setup

a guest
Aug 25th, 2013
1,410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.95 KB | None | 0 0
  1. Here is some of my configurations / tips and useful commands I have on my D830:
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. sudo apt-get update && sudo apt-get upgrade
  9. sudo apt-get remove
  10. sudo apt-get --purge remove
  11. sudo apt-get clean
  12. sudo apt-get update
  13. sudo apt-get upgrade
  14. sudo apt-get autoremove
  15. sudo apt-get install -f
  16.  
  17. sudo ntpdate -u ntp.ubuntu.com
  18.  
  19.  
  20. ifquery --list --allow=hotplug
  21. wlan0
  22.  
  23. iwconfig
  24. iwlist wlan0 scan
  25. iwconfig wlan0 essid NETWORK_ID
  26. dhclient wlan0
  27.  
  28.  
  29. sudo ifdown wlan0
  30. sudo ifup wlan0
  31. sudo ifup --force wlan0
  32. sudo /etc/network/interfaces restart
  33.  
  34.  
  35. lsusb
  36. lsmod
  37. dmesg
  38. uname -a
  39.  
  40.  
  41. lsb_release -c
  42. cat /etc/debian_version
  43.  
  44.  
  45.  
  46. "C:\Program Files\putty-0.62\putty.exe" -ssh pi@192.168.0.29 -P 29 -pw raspberrypi
  47.  
  48.  
  49. Alt+F1 = Aapplication
  50. Alt+F2 = Run application
  51.  
  52.  
  53.  
  54.  
  55. http://www.rockbox.org/wiki/LatexInstallation#Debian_47_Ubuntu
  56. ==============================================================
  57. apt-get install texlive-latex-base texlive-binaries texlive-latex-extra tex4ht texlive-fonts-recommended lmodern latex-xcolor
  58.  
  59.  
  60.  
  61. Shorewall Live LOG
  62. tail -f /var/log/messages
  63.  
  64.  
  65.  
  66.  
  67. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  68. # Set up SSH port
  69. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  70. sudo nano /etc/ssh/sshd_config
  71.  
  72. 29
  73. TCP protocol
  74.  
  75.  
  76. SSH login without password
  77. http://linuxproblem.org/art_9.html
  78.  
  79. RSA authentication key to be able to log into a remote site from your account, without having to type your password.
  80. http://www.debian.org/devel/passwordlessssh
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  91. # STATIC IP Address with Wi-Fi
  92. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  93. Wireless Access Point - SKYXXXXXX
  94. Physical Address: 08:XX:XX:XX:XX:XX
  95. Network Name (SSID): SKYXXXXXX
  96. Interface Type: 802.11b/g/n
  97. Band: 2.4GHz
  98. Security Mode: WPA-PSK
  99. WPA-PSK Preshared Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  100. WPA-PSK Encryption: AES
  101. WPA-PSK Version: WPA2
  102.  
  103.  
  104. sudo nano /etc/network/interfaces
  105. #################################
  106.  
  107. auto lo
  108. iface lo inet loopback
  109.  
  110. #auto wlan0
  111. allow-hotplug wlan0
  112. iface wlan0 inet static
  113. address 192.168.0.XXX
  114. netmask 255.255.255.0
  115. gateway 192.168.1.254
  116. network 192.168.1.0
  117. broadcast 192.168.1.255
  118. metric 10
  119. wpa-conf /etc/wpa.conf
  120.  
  121.  
  122.  
  123.  
  124.  
  125. sudo nano /etc/wpa.conf
  126. #######################
  127. network={
  128. ssid="SKYXXXXX"
  129. proto=RSN
  130. key_mgmt=WPA-PSK
  131. pairwise=CCMP
  132. group=CCMP
  133. psk="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  134. }
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  143. # Update and Upgrade system files
  144. # Install software ALL AT ONECE
  145. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  146. sudo nano /etc/apt/sources.list
  147.  
  148.  
  149. sudo apt-get update
  150. sudo apt-get upgrade
  151. or
  152. sudo apt-get safe-upgrade
  153.  
  154.  
  155. #
  156. sudo apt-get update && sudo apt-get upgrade
  157. #
  158. sudo apt-get install mc htop iptraf iftop nmap w3m git ntfs-3g eject samba samba-common-bin minidlna ntpdate libssl-dev atomicparsley whois tcpdump \
  159. ftp libsdl1.2-dev patchutils libproc-processtable-perl dnsutils mpg321 mencoder zip minicom gsmartcontrol gparted blender bootlogd gnome-commander \
  160. meld geany byobu audacity xpdf
  161.  
  162.  
  163.  
  164.  
  165. # Update TIME and DATE
  166. sudo ntpdate -u ntp.ubuntu.com
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  179. # Support for compressing and de-compressing files
  180. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  181. http://zachariasblog.wordpress.com/2013/05/07/debian-wheezy-a-humble-post-install-guide/
  182.  
  183.  
  184. sudo apt-get install unace rar unrar zip unzip p7zip p7zip-full p7zip-rar mpack sharutils uudeview arj cabextract
  185.  
  186. E: Package 'rar' has no installation candidate
  187. E: Package 'unrar' has no installation candidate
  188. E: Package 'p7zip-rar' has no installation candidate
  189.  
  190.  
  191. sudo apt-get install unace zip unzip p7zip p7zip-full mpack sharutils uudeview arj cabextract
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  200. # Adding user
  201. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  202.  
  203.  
  204. go thrugh the questions ...
  205. ============================
  206. sudo adduser username
  207.  
  208.  
  209.  
  210. add to SUDOers afile
  211. ============================
  212. sudo visudo
  213.  
  214.  
  215. ####################
  216. pi ALL=(ALL) ALL
  217. user ALL=(ALL) ALL
  218. ####################
  219. user ALL=(ALL) NOPASSWD: ALL
  220.  
  221.  
  222.  
  223. removing user
  224. ============================
  225. sudo deluser pi
  226.  
  227.  
  228.  
  229. semoving user and his folder
  230. ============================
  231. sudo deluser -remove-home pi
  232.  
  233.  
  234.  
  235.  
  236. sudo adduser user
  237. sudo deluser -remove-home user
  238.  
  239.  
  240.  
  241.  
  242.  
  243. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  244. ## Debian Wheezy & GDM3 :: Disable User List
  245. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  246. http://forums.debian.net/viewtopic.php?f=6&t=104468
  247.  
  248.  
  249. nano /etc/gdm3/greeter.gsettings
  250. ################################
  251.  
  252. disable-user-list=true
  253. ################################
  254.  
  255. if does not work look here:
  256. http://sysadminnygoodness.blogspot.fr/2012/03/debian-wheezy-gdm3-disable-user-list.html
  257. http://unix.stackexchange.com/questions/38789/how-can-i-disable-the-user-list-login-screen-in-gnome-3-on-fedora-16-or-17
  258.  
  259. http://sysadminnygoodness.blogspot.co.uk/2012/03/debian-wheezy-gdm3-disable-user-list.html
  260.  
  261. sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  273. ## GNOME reset
  274. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  275. http://www.linuxjournal.com/content/resetting-gnomes-settings-ubuntu
  276. http://askubuntu.com/questions/56313/how-do-i-reset-gnome-to-the-defaults
  277.  
  278.  
  279.  
  280. rm -rf .gnome .gnome2 .gconf .gconfd .metacity
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290. --------------------------------------------------------------------------------------------------------------------
  291. ## Gnome Classic as a default Desktop
  292. --------------------------------------------------------------------------------------------------------------------
  293. http://www.linuxquestions.org/questions/debian-26/gnome-classic-as-a-default-desktop-928199/
  294.  
  295.  
  296. sudo update-alternatives --config x-session-manager
  297.  
  298.  
  299.  
  300. and choose option 2
  301.  
  302. Selection Path Priority Status
  303. ------------------------------------------------------------
  304. 0 /usr/bin/gnome-session 50 auto mode
  305. 1 /usr/bin/gnome-session 50 manual mode
  306. * 2 /usr/bin/gnome-session-fallback 40 manual mode
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315. --------------------------------------------------------------------------------------------------------------------
  316. ## No GDM3 on boot (autostart disabled)
  317. --------------------------------------------------------------------------------------------------------------------
  318. http://www.debianuserforums.org/viewtopic.php?f=7&t=2302
  319.  
  320.  
  321. update-rc.d gdm3 disable
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329. --------------------------------------------------------------------------------------------------------------------
  330. ## Top Panel Properties etc...
  331. --------------------------------------------------------------------------------------------------------------------
  332. http://unix.stackexchange.com/questions/77723/lock-to-launcher-pin-to-taskbar-in-debian-wheezy-gnome-was-possible-in-squeeze
  333.  
  334. Use the Alt key together with the right-mouse.
  335.  
  336. On applications that should give you the possibility to Move/Remove. On the open area of the taskbar in Add to Panel…
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343. --------------------------------------------------------------------------------------------------------------------
  344. ## Top Panel Properties etc...
  345. --------------------------------------------------------------------------------------------------------------------
  346. http://www.linuxquestions.org/questions/debian-26/how-to-add-panel-in-gnome-debian-wheezy-4175463451/
  347.  
  348.  
  349. I had the same problem for a few days.
  350. Run "Advanced Settings" (I think this is "gnome-tweak-tool), and click on the "Shell Extensions" section.
  351. You can then slide any existing extension as "ON".
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  366. # SAMBA config
  367. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  368. sudo /etc/init.d/samba stop
  369. sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bakORIGINAL
  370. sudo nano /etc/samba/smb.conf
  371.  
  372.  
  373. [global]
  374. ; General server settings
  375. netbios name = D830
  376. server string = Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
  377. workgroup = WORKGROUP
  378. announce version = 5.0
  379. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
  380. ; interfaces = lo, eth0
  381. ; bind interfaces only = true
  382.  
  383. passdb backend = tdbsam
  384. security = user
  385. null passwords = true
  386. username map = /etc/samba/smbusers
  387. name resolve order = hosts wins bcast
  388.  
  389. wins support = yes
  390.  
  391. printing = CUPS
  392. printcap name = CUPS
  393.  
  394. syslog = 1
  395. syslog only = yes
  396.  
  397. ; NOTE: If you need access to the user home directories uncomment the
  398. ; lines below and adjust the settings to your hearts content.
  399. ;[homes]
  400. ;valid users = %S
  401. ;create mode = 0600
  402. ;directory mode = 0755
  403. ;browseable = no
  404. ;read only = no
  405. ;veto files = /*.{*}/.*/mail/bin/
  406.  
  407. ; NOTE: Only needed if you run samba as a primary domain controller.
  408. ; Not needed as this config doesn't cover that matter.
  409. ;[netlogon]
  410. ;path = /var/lib/samba/netlogon
  411. ;admin users = Administrator
  412. ;valid users = %U
  413. ;read only = no
  414.  
  415. ; NOTE: Again - only needed if you're running a primary domain controller.
  416. ;[Profiles]
  417. ;path = /var/lib/samba/profiles
  418. ;valid users = %U
  419. ;create mode = 0600
  420. ;directory mode = 0700
  421. ;writeable = yespython-smbpasswd
  422. ;browseable = no
  423.  
  424. ; NOTE: Inside this place you may build a printer driver repository for
  425. ; Windows - I'll cover this topic in another HOWTO.
  426. [print$]
  427. path = /var/lib/samba/printers
  428. browseable = yes
  429. guest ok = yes
  430. read only = yes
  431. write list = root
  432. create mask = 0664
  433. directory mask = 0775
  434.  
  435. [printers]
  436. path = /tmp
  437. printable = yes
  438. guest ok = yes
  439. browseable = no
  440.  
  441. ; Uncomment if you need to share your CD-/DVD-ROM Drive
  442. [DVD-ROM Drive]
  443. path = /media/cdrom
  444. browseable = yes
  445. read only = yes
  446. guest ok = yes
  447.  
  448.  
  449. [MyFiles]
  450. path = /media/samba/
  451. browseable = yes
  452. read only = no
  453. guest ok = no
  454. create mask = 0644
  455. directory mask = 0755
  456. force user = user
  457. force group = user
  458.  
  459.  
  460. [Share]
  461. comment = Share
  462. path = /share
  463. browseable = yes
  464. writeable = yes
  465. guest ok = no
  466. read only = no
  467. create mask = 0644
  468. directory mask = 0755
  469. force user = admin
  470. force group = admin
  471.  
  472.  
  473.  
  474.  
  475. sudo mkdir /share
  476. sudo chmod 0777 /share
  477.  
  478. sudo mkdir /media/samba/
  479. sudo chmod 0777 /media/samba/
  480.  
  481.  
  482. sudo /etc/init.d/samba start
  483. sudo /etc/init.d/samba restart
  484.  
  485.  
  486.  
  487.  
  488.  
  489. To add LatitudeD830
  490. ------------------------
  491. sudo useradd -s /bin/true admin
  492. sudo smbpasswd -L -a admin
  493. sudo smbpasswd -L -e admin
  494.  
  495.  
  496. To add LatitudeD410
  497. ------------------------
  498. sudo useradd -s /bin/true user
  499. sudo smbpasswd -L -a user
  500. sudo smbpasswd -L -e user
  501.  
  502.  
  503.  
  504. smb://user@40.30.20.10/user
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  530. # CIFS - Common Internet File System with NAS
  531. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  532. sudo apt-get install cifs-utils
  533.  
  534.  
  535. sudo mkdir /mnt/LS-WSXL/
  536. sudo mkdir /mnt/LS-WSXL/usbdisk1/
  537. sudo chmod 755 /mnt/LS-WSXL/usbdisk1/
  538. sudo mount -t cifs //192.168.0.1/usbdisk1/ /mnt/LS-WSXL/usbdisk1/ -o username=Workgroup/pi,password='raspberrypi'
  539. or
  540. sudo mount -t cifs //192.168.0.1/usbdisk1/ /mnt/LS-WSXL/usbdisk1/ -o credentials=/securedir/nas
  541.  
  542.  
  543. SECURE DIR
  544. sudo mkdir /securedir
  545. sudo chmod 0700 /securedir
  546. sudo chown root /securedir
  547.  
  548.  
  549. sudo nano /securedir/nas
  550. ########################
  551. username=Workgroup/pi
  552. password=raspberrypi
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. DOES nOT WORK!
  565. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  566. # NFS - Network File System
  567. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  568. http://docs.oracle.com/cd/E23824_01/html/821-1454/rfsrefer-45.html
  569. http://v1chak.blogspot.co.uk/2013/03/raspbianraspbmc-how-to-mount-nfs.html
  570. http://buffalo.nas-central.org/wiki/NFS_for_Beginners
  571. http://www.michaelwood.me.uk/blag/2011/09/16/inhibit/
  572.  
  573.  
  574. sudo mkdir /mnt/LS-WSXL/
  575. sudo mkdir /mnt/LS-WSXL/usbdisk1/
  576.  
  577.  
  578.  
  579.  
  580. nano /etc/fstab
  581. ###############
  582. 192.168.0.1:/volume1/video /mnt/video nfs nouser,atime,auto,rw,dev,exec,suid 0 0
  583. ###############
  584.  
  585.  
  586.  
  587. sudo mount -a
  588.  
  589.  
  590.  
  591.  
  592. Mini LS-WSX1.0TL and Debian Wheezy
  593. I have migrated from Windows 7 to Debian Wheezy (GNOME) nad have been trying to map the dives I have on my LS-WSX1.0TL
  594. but without a sucess :(
  595.  
  596.  
  597. Now I am a complete newbie to Debian so I would appretiate
  598. I have found that my LS-WSX1.0TL does NOT support NFS so I am stuck with CIFS or FTP or SFTP (please someone correct me if I am wrong)
  599.  
  600. Which of those methods is the best to access my NAS?
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  611. # SFTP
  612. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  613. sftp user@domain_or_IP
  614.  
  615.  
  616. Chroot SFTP
  617. http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  629. # Configure MiniDLNA
  630. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  631.  
  632. sudo cp /etc/minidlna.conf /etc/minidlna.conf.bakORIGINAL
  633. sudo nano /etc/minidlna.conf
  634.  
  635. # Change db_dir so that the database is saved across reboots
  636. db_dir=/home/pi/.minidlna
  637.  
  638. # Name that the DLNA server presents to clients.
  639. friendly_name=D830
  640.  
  641. # Serial number the server reports to clients.
  642. # A
  643. serial=12345678
  644.  
  645.  
  646. media_dir=/share
  647.  
  648.  
  649.  
  650. #Rebuild database!!!!!!
  651. sudo minidlna -R
  652.  
  653.  
  654. or
  655. sudo minidlna -R
  656. sudo service minidlna restart
  657. sudo service minidlna start
  658. sudo service minidlna force-reload
  659. sudo update-rc.d minidlna defaults
  660.  
  661.  
  662. http://192.168.0.2:8200/
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678. --------------------------------------------------------------------------------------------------------------------
  679. ## Mounting ISO image
  680. --------------------------------------------------------------------------------------------------------------------
  681. http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html
  682.  
  683.  
  684. sudo mkdir -p /mnt/disk
  685. sudo mount -o loop disk1.iso /mnt/disk
  686. sudo mount -t iso9660 -o loop disk1.iso /mnt/disk
  687. sudo umount /mnt/disk
  688. sudo rmdir /mnt/disk
  689.  
  690.  
  691.  
  692. $>modprobe loop
  693. $>mount -t iso9660 -o loop disk1.iso /mnt/disk
  694.  
  695.  
  696.  
  697.  
  698.  
  699. mkdir -p /media/ISO
  700. mount -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.way.of.the.dragon/VIDEO_TS.iso /media/ISO
  701.  
  702.  
  703.  
  704.  
  705.  
  706. sudo mkdir -p /mnt/iso
  707. sudo mount -o loop /share/tails-i386-0.20.iso /mnt/iso
  708. sudo mount -t iso9660 -o loop /share/tails-i386-0.20.iso /mnt/iso
  709. sudo umount /mnt/iso
  710.  
  711. sudo rmdir /mnt/iso
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720. sudo mount -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.the.man.the.legend.iso /mnt/iso
  721. sudo mount -t iso9660 -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.the.man.the.legend.iso /mnt/iso
  722. sudo umount /mnt/iso
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. --------------------------------------------------------------------------------------------------------------------
  732. ## Multimedia
  733. --------------------------------------------------------------------------------------------------------------------
  734.  
  735. sudo nano /etc/apt/sources.list
  736.  
  737.  
  738. ## Multimedia for wheezy (stable) amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc and sparc packages
  739. deb http://www.deb-multimedia.org wheezy main non-free
  740.  
  741.  
  742.  
  743. sudo apt-get update
  744. sudo apt-get install deb-multimedia-keyring
  745. sudo apt-get upgrade
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759. --------------------------------------------------------------------------------------------------------------------
  760. ## Multimedia & dvd::rip
  761. --------------------------------------------------------------------------------------------------------------------
  762. http://www.exit1.org/dvdrip/doc/install.cipp
  763.  
  764. sudo apt-get install dvdrip
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  778. ## get_iplayer
  779. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  780. http://ftp.uk.debian.org/debian/pool/main/g/get-iplayer/
  781.  
  782. cd /share
  783. wget http://ftp.uk.debian.org/debian/pool/main/g/get-iplayer/get-iplayer_2.83-1_all.deb
  784. sudo dpkg -i get-iplayer_2.83-1_all.deb
  785. sudo apt-get -f install
  786. sudo apt-get install atomicparsley ffmpeg
  787.  
  788.  
  789.  
  790.  
  791. VIDEO
  792. -----
  793. http://www.bbc.co.uk/iplayer/episode/b00gbchl/The_Ladykillers/
  794. get_iplayer --info --fields=pid b00gbchl
  795. get_iplayer --pid b00gbchl --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
  796.  
  797.  
  798. AUDIO
  799. -----
  800. http://www.bbc.co.uk/iplayer/episode/b00db35n/4_at_the_Store_Series_2_Episode_3/
  801. get_iplayer --info --type=radio --fields=pid b00db35n
  802. -m4a
  803. get_iplayer --pid=b01ptghz --multimode --modes=flashaudio,flashhigh,flashaacstd --force --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
  804. -flv
  805. get_iplayer --pid=b01ptghz --multimode --modes=flashaudio,flashhigh,flashaacstd --force --raw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
  806. -mp3
  807. get_iplayer --pid=b00db35n --multimode --modes=flashaudio,flashhigh,flashaacstd --force --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
  808. get_iplayer --pid=b00db35n --modes=best --force --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
  809. get_iplayer --get --type=radio --pid=b01ptghz --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819. http://www.bbc.co.uk/iplayer/episode/b037y0zf/hd/Horizon_20122013_Whats_Killing_Our_Bees_A_Horizon_Special/
  820. get_iplayer --info --fields=pid b037y0zf
  821. get_iplayer --pid b037y0zf --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/marcel/Videos
  822.  
  823.  
  824. get_iplayer --pid b037y0zf --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/media/2TBgreen/get_iPlayer
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834. --------------------------------------------------------------------------------------------------------------------
  835. ## Installation de HandBrake sur Debian Wheezy
  836. --------------------------------------------------------------------------------------------------------------------
  837. http://sourceforge.net/projects/handbrake/files/
  838.  
  839.  
  840. http://slauncha.dyndns.org/index.php?article17/installation-de-handbrake-0-9-9-sur-debian-wheezy
  841.  
  842.  
  843. sudo apt-get install yasm build-essential \
  844. autoconf libtool zlib1g-dev libbz2-dev libfribidi-dev \
  845. intltool libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev \
  846. libgudev-1.0-dev libwebkit-dev libnotify-dev \
  847. libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \
  848. libass-dev libtheora-dev libvorbis-dev libsamplerate0-dev
  849.  
  850.  
  851.  
  852. http://handbrake.fr/rotation.php?file=HandBrake-0.9.9.tar.bz2
  853. -------------------------------------------------------------
  854. sudo wget http://downloads.sourceforge.net/project/handbrake/0.9.9/HandBrake-0.9.9.tar.bz2
  855. md5sum HandBrake-0.9.9.tar.bz2
  856.  
  857.  
  858. ee81337a46f8af76599d6038f193a2c1 HandBrake-0.9.9.tar.bz2
  859.  
  860.  
  861. bunzip2 HandBrake-0.9.9.tar.bz2
  862. tar -xvf HandBrake-0.9.9.tar
  863. cd HandBrake-0.9.9
  864. ./configure --launch
  865. cd ./build && sudo make install
  866.  
  867.  
  868. Alt+F2
  869. /usr/local/bin/ghb
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  888. # MKVToolNix
  889. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  890. https://www.bunkus.org/videotools/mkvtoolnix/downloads.html#debian
  891.  
  892.  
  893.  
  894. wget -O - http://www.bunkus.org/gpg-pub-moritzbunkus.txt | sudo apt-key add -
  895. sudo nano /etc/apt/sources.list
  896. ###############################
  897.  
  898. ## MKVToolNix
  899. deb http://www.bunkus.org/debian/wheezy/ ./
  900. deb-src http://www.bunkus.org/debian/wheezy/ ./
  901.  
  902. ###############################
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909. apt-get update
  910. apt-get install mkvtoolnix mkvtoolnix-gui
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  924. # MakeMKV
  925. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  926. http://www.makemkv.com/download/
  927. http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224
  928.  
  929.  
  930. sudo apt-get install build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev
  931. cd /share
  932. wget http://www.makemkv.com/download/makemkv-bin-1.8.4.tar.gz
  933. tar -xvzf makemkv-bin-1.8.4.tar.gz
  934. cd makemkv-bin-1.8.4
  935. make -f makefile.linux
  936. sudo make -f makefile.linux install
  937.  
  938.  
  939.  
  940. cd /share
  941. wget http://www.makemkv.com/download/makemkv-oss-1.8.4.tar.gz
  942. tar -xvzf makemkv-oss-1.8.4.tar.gz
  943. cd makemkv-oss-1.8.4
  944. make -f makefile.linux
  945. sudo make -f makefile.linux install
  946.  
  947.  
  948.  
  949.  
  950.  
  951. The application will be installed as "/usr/bin/makemkv".
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958. http://www.makemkv.com/download/ffmpeg/
  959. http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
  960. http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
  961. http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.8.0.patch.gz
  962.  
  963. http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.7.7.tbz
  964. http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.7.8.tbz
  965. http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.8.0.tar.bz
  966.  
  967.  
  968.  
  969.  
  970.  
  971. NAME THE EPISODES in
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  988. # MediaInfo
  989. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  990. http://mediaarea.net/en/MediaInfo/Download/Debian
  991.  
  992.  
  993.  
  994. wget http://mediaarea.net/download/binary/mediainfo-gui/0.7.64/mediainfo-gui_0.7.64-1_i386.Debian_7.0.deb
  995. wget http://mediaarea.net/download/binary/mediainfo/0.7.64/mediainfo_0.7.64-1_i386.Debian_7.0.deb
  996. wget http://mediaarea.net/download/binary/libmediainfo0/0.7.64/libmediainfo0_0.7.64-1_i386.Debian_7.0.deb
  997. wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0_0.4.29-1_i386.Debian_7.0.deb
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005. sudo dpkg -i mediainfo-gui_0.7.64-1_i386.Debian_7.0.deb
  1006. sudo dpkg -i mediainfo_0.7.64-1_i386.Debian_7.0.deb
  1007. sudo dpkg -i libmediainfo0_0.7.64-1_i386.Debian_7.0.deb
  1008. sudo dpkg -i libzen0_0.4.29-1_i386.Debian_7.0.deb
  1009. sudo apt-get -f install
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1029. # LaTeX -> TeX Live
  1030. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1031. http://latex-project.org/ftp.html
  1032.  
  1033.  
  1034.  
  1035. http://okomestudio.net/biboroku/?p=1870
  1036. =======================================
  1037. sudo aptitude install texlive texlive-latex-extra
  1038. sudo aptitude install dvipng
  1039.  
  1040. sudo aptitude install gedit-latex-plugin
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048. http://bramp.net/blog/2010/02/13/latex-qr-based-business-card/
  1049. ==============================================================
  1050. business card with a QR card:
  1051. http://forthescience.org/blog/2010/02/02/my-business-card-with-qr-code-geeky/
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057. took a LaTeX template from here:
  1058. http://blog.widmann.org.uk/2009/05/27/1297/
  1059. ===========================================
  1060. http://www.vistaprint.co.uk/
  1061.  
  1062.  
  1063. When we set up our company, we needed some business cards.
  1064.  
  1065. VistaPrint will make business cards from a PDF file made according to the following specifications: “Full Bleed Size: 90mm x 52mm; Document Trim Size: 87mm x 49mm”.
  1066.  
  1067. I prefer doing typography in LaTeX, so I just needed to set this up properly.
  1068.  
  1069. I had a few problems with the margins, but with some help from DK-TUG‘s mailing list, I came up with the following:
  1070.  
  1071. \documentclass[11pt,a4paper]{memoir}
  1072. \setstocksize{52mm}{90mm}
  1073. \setpagecc{49mm}{87mm}{*}
  1074. \settypeblocksize{43mm}{81mm}{*}
  1075. \setulmargins{3mm}{*}{*}
  1076. \setlrmargins{3mm}{*}{*}
  1077. \setheadfoot{0.1pt}{0.1pt}
  1078. \setheaderspaces{1pt}{*}{*}
  1079. \checkandfixthelayout[fixed]
  1080. \pagestyle{empty}
  1081. \usepackage{color}
  1082. \begin{document}
  1083. \pagecolor[cmyk]{...}
  1084. ...
  1085. \end{document}
  1086.  
  1087. The “[fixed]” option is very important here, but it is only available in the newest versions of memoir, so you might need to upgrade this package if you have problems getting it to work.
  1088.  
  1089. After designing the actual business card, I ran it through pdflatex and uploaded the resulting file to VistaPrint, and it worked beautifully, as can be seen on the photo.
  1090.  
  1091.  
  1092.  
  1093. http://www.tug.org/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099. learnt the MECARD format:
  1100. http://www.nttdocomo.co.jp/english/service/developer/make/content/barcode/function/application/addressbook/index.html
  1101.  
  1102. http://www.nttdocomo.co.jp/english/service/developer/make/content/barcode/tool/download/index.html
  1103. http://www.nttdocomo.co.jp/english/binary/archive/service/developer/make/content/barcode/tool/download/qrfactory_v35.zip
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111. GNU TeXmacs is a free scientific word processor and typesetting component of the GNU Project. It was inspired by TeX and GNU Emacs, though it shares no code with those programs. TeXmacs does use TeX fonts
  1112. sudo aptitude install emacs
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119. TeX and LaTeX
  1120. http://mathsci.appstate.edu/faculty-information/TeX
  1121.  
  1122. Small Business Card with QR Code vCard
  1123. http://mathsci.appstate.edu/sites/mathsci.appstate.edu/files/LaTeX%20QR%20vCard.zip
  1124. http://en.wikipedia.org/wiki/QR_code
  1125. http://en.wikipedia.org/wiki/VCard
  1126. http://mathsci.appstate.edu/sites/mathsci.appstate.edu/files/LaTeX_QR_vCard.pdf
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1143. # NX, NoMachine
  1144. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1145. http://www.nomachine.com/download.php
  1146.  
  1147.  
  1148.  
  1149. http://www.nomachine.com/download-package.php?Prod_Id=3773
  1150.  
  1151.  
  1152.  
  1153. wget http://web04.nomachine.com/download/3.5.0/Linux/nxclient_3.5.0-7_i386.deb
  1154. wget http://web04.nomachine.com/download/3.5.0/Linux/nxnode_3.5.0-9_i386.deb
  1155. wget http://web04.nomachine.com/download/3.5.0/Linux/FE/nxserver_3.5.0-11_i386.deb
  1156.  
  1157.  
  1158.  
  1159. sudo dpkg -i nxclient_3.5.0-7_i386.deb
  1160. chmod 755 /usr/lib/cups/backend/ipp
  1161.  
  1162. sudo dpkg -i nxnode_3.5.0-9_i386.deb
  1163. /usr/NX/scripts/setup/nxnode --nxprintsetup <pathname>
  1164.  
  1165. sudo dpkg -i nxserver_3.5.0-11_i386.deb
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180. --------------------------------------------------------------------------------------------------------------------
  1181. # Off-the-Record Messaging
  1182. --------------------------------------------------------------------------------------------------------------------
  1183. https://en.wikipedia.org/wiki/Off-the-Record_Messaging
  1184.  
  1185.  
  1186. https://download.jitsi.org/jitsi/debian/
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207. --------------------------------------------------------------------------------------------------------------------
  1208. ## Skype
  1209. --------------------------------------------------------------------------------------------------------------------
  1210. http://www.skype.com/en/download-skype/skype-for-linux/
  1211. http://www.skype.com/go/getskype-linux-deb-32
  1212.  
  1213.  
  1214.  
  1215. wget http://download.skype.com/linux/skype-debian_4.2.0.11-1_i386.deb
  1216.  
  1217. dpkg -i skype-debian_4.2.0.11-1_i386.deb
  1218. sudo apt-get install -f
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. --------------------------------------------------------------------------------------------------------------------
  1229. ## DROPBOX
  1230. --------------------------------------------------------------------------------------------------------------------
  1231. https://www.dropbox.com/install?os=lnx
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239. Install Dropbox via command line
  1240.  
  1241. The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.
  1242.  
  1243. 32-bit:
  1244.  
  1245. cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
  1246.  
  1247. 64-bit:
  1248.  
  1249. cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
  1250.  
  1251. Next, run the Dropbox daemon from the newly created .dropbox-dist folder.
  1252.  
  1253. ~/.dropbox-dist/dropboxd
  1254.  
  1255. If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create
  1256. a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory.
  1257. Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.
  1258.  
  1259. https://www.dropbox.com/download?dl=packages/dropbox.py
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268. wget https://www.dropbox.com/download?dl=packages/debian/dropbox_1.6.0_i386.deb
  1269. dpkg -i dropbox_1.6.0_i386.deb
  1270.  
  1271.  
  1272.  
  1273. cat /etc/apt/sources.list
  1274. sudo nano /etc/apt/sources.list
  1275. ################################################
  1276. ## Dropbox
  1277. deb http://linux.dropbox.com/debian wheezy main
  1278.  
  1279. ################################################
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1297. # Lighttpd
  1298. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1299. ##############################################################################################################################################
  1300. CLEAN INSTALL ################################################################################################################################
  1301. ##############################################################################################################################################
  1302. # Lighttpd with mod_h264 streaming (mp4)
  1303. # http://www.gnutoolbox.com/lighttpd-modh264-streaming-mp4/
  1304.  
  1305.  
  1306. # http://redmine.lighttpd.net/projects/lighttpd/wiki/GetLighttpd
  1307. or
  1308. # https://wiki.ubuntu.com/Lighttpd%2BPHP
  1309. or
  1310. # http://www.penguintutor.com/linux/light-webserver
  1311.  
  1312. # with Suhosin-Patch Server
  1313. # http://www.hardened-php.net/suhosin/why.html
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319. sudo apt-get install lighttpd lighttpd-doc php5-common php5-cgi php5
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326. # To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command
  1327. sudo lighty-enable-mod fastcgi-php
  1328. sudo lighty-enable-mod cgi
  1329.  
  1330. # Enable
  1331. sudo lighttpd-enable-mod fastcgi fastcgi-php
  1332.  
  1333. # Enable http://redmine.lighttpd.net/projects/1/wiki/Docs_ModUserDir
  1334. sudo lighty-enable-mod userdir
  1335.  
  1336.  
  1337.  
  1338.  
  1339. # Check
  1340. ps -u www-data u
  1341.  
  1342.  
  1343. # Check what groups and IDs are associated with current user
  1344. groups
  1345. id
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351. # WEB PAGES
  1352. sudo nano /var/www/t.php
  1353. ###########################
  1354. <?php
  1355. print <<< EOT
  1356. <!doctype html>
  1357. <html lang="en">
  1358. <head>
  1359. <meta charset="UTF-8">
  1360. <title>Test successful</title>
  1361. </head>
  1362. <body>
  1363. <h1>Test successful</h1>
  1364. <p>Congratulations.</p>
  1365. <p>Apache and PHP are working.</p>
  1366. </body>
  1367. </html>
  1368. EOT;
  1369. ?>
  1370. ###########################
  1371.  
  1372.  
  1373.  
  1374.  
  1375. # WEB PAGES
  1376. sudo nano /var/www/phpinfo1.php
  1377. ###########################
  1378. <? phpinfo() ?>
  1379. ###########################
  1380.  
  1381.  
  1382.  
  1383.  
  1384. # PHP Info
  1385. echo '<?php phpinfo(); ?>' | sudo tee /var/www/phpinfo2.php
  1386.  
  1387. or
  1388.  
  1389. # WEB PAGES
  1390. sudo nano /var/www/phpinfo2.php
  1391. ##############################
  1392. <?php phpinfo(); ?>
  1393. ##############################
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401. # WEB PAGES
  1402. sudo nano /var/www/t.txt
  1403. ###########################
  1404. TEST - test - TEST - t.txt
  1405. ###########################
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413. # View access.log in webpage
  1414. sudo mkdir /var/www/log
  1415. sudo nano /var/www/log/index.php
  1416. ############################################
  1417. <html><head><title>access.log</title></head>
  1418. <body>
  1419. <?php
  1420. $file = "/var/log/lighttpd/access.log";
  1421. echo "$file<hr />";
  1422. ?>
  1423. <pre>
  1424. <?php
  1425. $f = fopen($file, "r");
  1426. while ( $line = fgets($f, 1000) ) {
  1427. print $line;
  1428. }
  1429. ?>
  1430. </pre>
  1431. </body>
  1432. </html>
  1433. ############################################
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439. sudo cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bakORIGINAL
  1440. sudo nano /etc/lighttpd/lighttpd.conf
  1441. ## add below to config file :) to accesslog and enable php???
  1442. ========================================================================================
  1443. # to change default port 80 to 81
  1444. server.port = 22222
  1445.  
  1446. server.modules = (
  1447. "mod_accesslog",
  1448. "mod_fastcgi",
  1449. '
  1450.  
  1451. # Log access :)
  1452. accesslog.filename = "/var/log/lighttpd/access.log"
  1453.  
  1454. ## http://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting#dir-listingactivate
  1455. ## Enable Directory listings :))) for all DIR with no INDEX file present
  1456. dir-listing.activate = "enable"
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462. ## http://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting#dir-listingactivate
  1463. ## If you need it only for a directory, use conditionals:
  1464.  
  1465. $HTTP["url"] =~ "^/download($|/)" {
  1466. dir-listing.activate = "enable"
  1467. }
  1468.  
  1469.  
  1470.  
  1471.  
  1472. DOES NOT WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  1473. # password protected access
  1474. # http://www.cyberciti.biz/tips/lighttpd-setup-a-password-protected-directory-directories.html
  1475.  
  1476. server.modules += ( "mod_auth" )
  1477.  
  1478. auth.debug = 2
  1479. auth.backend = "plain"
  1480. auth.backend.plain.userfile = "/etc/lighttpd/lighttpdpassword"
  1481.  
  1482. sudo nano /etc/lighttpd/lighttpdpassword
  1483. marcel:mysecretepassword test:test
  1484.  
  1485.  
  1486. sudo chown lighttpd:lighttpd /etc/lighttpd/.lighttpdpassword //DOES NOT WORK chown: invalid user: `lighttpd:lighttpd'
  1487. sudo chown www-data:www-data /etc/lighttpd/.lighttpdpassword
  1488. sudo chown lighttpd:lighttpd /etc/lighttpd/.lighttpdpassword
  1489. sudo chown -R www-data:www-data /etc/lighttpd/.lighttpdpassword
  1490. sudo chown -R www-data:www-data /etc/lighttpd/lighttpdpassword
  1491.  
  1492. sudo /etc/init.d/lighttpd restart
  1493.  
  1494.  
  1495.  
  1496.  
  1497. # sudo nano /etc/lighttpd/lighttpd.conf
  1498. #######################################
  1499. auth.require = ( "/log/" =>
  1500. (
  1501. "method" => "basic",
  1502. "realm" => "Password protected area",
  1503. "require" => "valid-user"
  1504. )
  1505. )
  1506. }
  1507. #######################################
  1508.  
  1509. valid-user
  1510. "user=user|user=test"
  1511.  
  1512.  
  1513.  
  1514.  
  1515. DOES NOT WORK
  1516. secure digest authentication(mod_auth) DOES NOT WORK
  1517. ======================================
  1518. sudo apt-get install htdigest
  1519. sudo htdigest -c /etc/lighttpd/.lighttpdpasswd \91Authorized users only\92 marcel
  1520.  
  1521.  
  1522. auth.require = ( "/log/" =>
  1523. (
  1524. "method" => "digest",
  1525. "realm" => "Authorized users only",
  1526. "require" => "valid-user"
  1527. )
  1528. )
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537. ### Then reload the server using
  1538. sudo service lighttpd force-reload
  1539.  
  1540. ### To checck the config is OK
  1541. sudo lighttpd -t -f lighttpd.conf
  1542. sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf
  1543.  
  1544. ### Restart
  1545. sudo /etc/init.d/lighttpd restart
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552. # Log rotation
  1553. # http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html
  1554.  
  1555. sudo nano /etc/logrotate.d/lighttpd
  1556. ###################################
  1557. yearly
  1558. ###################################
  1559.  
  1560.  
  1561.  
  1562.  
  1563. # LOGS
  1564. sudo cat /var/log/lighttpd/error.log
  1565. sudo cat /var/log/lighttpd/access.log
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572. # SYMLINK to SHARE directory from WWW/share
  1573. CREATE
  1574. sudo ln -s /share/ /var/www/share
  1575. CHECK
  1576. sudo ls -ld /var/www/share
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583. NOT TESTED!
  1584. To reduce the memory usage even further:
  1585.  
  1586. sudo nano /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
  1587. ########################################################
  1588.  
  1589. "PHP_FCGI_CHILDREN" => "4",
  1590. change to:
  1591. "PHP_FCGI_CHILDREN" => "0",
  1592.  
  1593.  
  1594.  
  1595.  
  1596. and
  1597.  
  1598.  
  1599. "PHP_FCGI_MAX_REQUESTS" => "100000"
  1600. change to:
  1601. "PHP_FCGI_MAX_REQUESTS" => "100"
  1602.  
  1603. ########################################################
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626. IN INSTALL
  1627. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1628. # Webalizer
  1629. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1630. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=22519
  1631.  
  1632. sudo apt-get install webalizer geoip-database
  1633.  
  1634.  
  1635. sudo cp /etc/webalizer/webalizer.conf /etc/webalizer/webalizer.conf.bakORIGINAL
  1636. sudo nano /etc/webalizer/webalizer.conf
  1637. #######################################
  1638.  
  1639. #LogFile /var/log/apache/access.log.1
  1640.  
  1641. LogFile /var/log/lighttpd/access.log
  1642. OutputDir /var/www/webalizer
  1643. HistoryName webalizer.hist
  1644. Incremental yes
  1645.  
  1646. GeoIP yes
  1647. GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
  1648.  
  1649. CountryGraph yes
  1650. CountryFlags yes
  1651. FlagDir flags
  1652.  
  1653. DailyGraph yes
  1654. DailyStats yes
  1655.  
  1656. HourlyGraph yes
  1657. HourlyStats yes
  1658.  
  1659. GraphLegend yes
  1660.  
  1661. IgnoreSite 192.168.0.*
  1662. IgnoreSite XXX.XXX.XXX.XXX
  1663. #######################################
  1664.  
  1665.  
  1666.  
  1667. sudo wget -P /var/www/webalizer ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz
  1668. cd /var/www/webalizer
  1669. sudo tar xvzf /var/www/webalizer/webalizer-flags.tgz
  1670.  
  1671.  
  1672. http://flags.blogpotato.de/
  1673. http://flags.blogpotato.de/zip/small/world.zip
  1674. http://flags.blogpotato.de/zip/large/world.zip
  1675. http://flags.blogpotato.de/zip/marker/world.zip
  1676. http://flags.blogpotato.de/zip/maxmind/world.zip
  1677.  
  1678.  
  1679. sudo webalizer /var/log/lighttpd/access.log
  1680. or
  1681. sudo webalizer -c /etc/webalizer/webalizer.conf
  1682.  
  1683.  
  1684. http://192.168.0.XX/webalizer
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1699. # Tor Project
  1700. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  1701. # Download and install software to access the Tor Project: https://www.torproject.org.
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707. cd /share
  1708.  
  1709.  
  1710. for Linux
  1711. https://www.torproject.org/dist/torbrowser/linux/
  1712. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-8-dev-en-US.tar.gz
  1713. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-8-dev-en-US.tar.gz.asc
  1714.  
  1715.  
  1716.  
  1717. cd /share
  1718. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz
  1719. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz.asc
  1720.  
  1721.  
  1722. gpg --keyserver hkp://keys.gnupg.net --recv-keys 0x63FEE659
  1723. gpg --fingerprint 0x63FEE659
  1724. gpg --verify tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz.asc tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz
  1725.  
  1726. tar -xvzf tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz
  1727. cd tor-browser_en-US
  1728. ./start-tor-browser
  1729. (NOT AS ROOT!!!!!!!!!!)
  1730.  
  1731.  
  1732. or will install Tor server nebo neco takoveho # https://www.torproject.org/docs/debian.html.en
  1733. apt-get install tor
  1734.  
  1735.  
  1736. https://www.torproject.org/download/download-easy.html.en#warning
  1737. https://www.torproject.org/download/download.html.en
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744. Android
  1745. https://www.torproject.org/docs/android.html.en
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754. cd /home/user/Downloads
  1755. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-12-dev-en-US.tar.gz
  1756. wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-12-dev-en-US.tar.gz.asc
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773. DOES NOT WORK!!
  1774. --------------------------------------------------------------------------------------------------------------------
  1775. ## VPN and IPsec
  1776. --------------------------------------------------------------------------------------------------------------------
  1777.  
  1778.  
  1779. https://code.google.com/p/vpnpptp/
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786. http://strongvpn.com/forum/viewtopic.php?pid=1844/
  1787.  
  1788. 1.
  1789.  
  1790. apt-get -y install openswan xl2tpd
  1791. or
  1792. for the RPi
  1793. apt-get install openswan xl2tpd ppp lsof
  1794. or
  1795. apt-get install l2tp-ipsec-vpn-daemon
  1796.  
  1797.  
  1798. An X.509 certificate for this host can be automatically created or imported. It can be used to authenticate IPsec connections to other hosts and is the │
  1799. │ preferred way of building up secure IPsec connections. The other possibility would be to use shared secrets (passwords that are the same on both sides of the │
  1800. │ tunnel) for authenticating a connection, but for a larger number of connections, key based authentication is easier to administer and more secure. │
  1801. │ │
  1802. │ Alternatively you can reject this option and later use the command "dpkg-reconfigure openswan" to come back. │
  1803. │ │
  1804. │ Use an X.509 certificate for this host?
  1805.  
  1806. Configuring openswan:
  1807. An X.509 certificate for this host can be automatically created or imported. It can be used to authenticate IPsec connections to other hosts and is the │
  1808. │ preferred way of building up secure IPsec connections. The other possibility would be to use shared secrets (passwords that are the same on both sides of the │
  1809. │ tunnel) for authenticating a connection, but for a larger number of connections, key based authentication is easier to administer and more secure. │
  1810. │ │
  1811. │ Alternatively you can reject this option and later use the command "dpkg-reconfigure openswan" to come back. │
  1812. │ │
  1813. │ Use an X.509 certificate for this host?
  1814.  
  1815. dpkg-reconfigure openswan
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823. 2.
  1824.  
  1825. sudo mv /etc/ipsec.conf /etc/ipsec.conf.bakORIGINAL
  1826. nano /etc/ipsec.conf
  1827.  
  1828. config setup
  1829. virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
  1830. nat_traversal=yes
  1831. protostack=netkey
  1832. oe=no
  1833. # Replace wlan0 with your network interface
  1834. plutoopts="--interface=eth0"
  1835. conn L2TP-PSK
  1836. authby=secret
  1837. pfs=no
  1838. auto=add
  1839. keyingtries=3
  1840. dpddelay=30
  1841. dpdtimeout=120
  1842. dpdaction=clear
  1843. rekey=yes
  1844. ikelifetime=8h
  1845. keylife=1h
  1846. type=transport
  1847. # Replace IP address with your local IP
  1848. left=192.168.0.XXX
  1849. leftnexthop=%defaultroute
  1850. leftprotoport=17/1701
  1851. # Replace IP address with your VPN server's IP
  1852. right=180.199.224.130
  1853. rightprotoport=17/1701
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860. 3.
  1861.  
  1862. nano /etc/ipsec.secrets
  1863.  
  1864. 172.16.17.3 68.68.32.79 : PSK "your_pre_shared_key"
  1865.  
  1866. 192.168.0.X 180.199.224.130 : PSK "vpn"
  1867.  
  1868.  
  1869.  
  1870. 4.
  1871.  
  1872. sudo mv /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/xl2tpd.conf.bakORIGINAL
  1873. nano /etc/xl2tpd/xl2tpd.conf
  1874.  
  1875.  
  1876. [lac mosrois.opengw.net]
  1877. lns = 180.199.224.130
  1878. ppp debug = yes
  1879. pppoptfile = /etc/ppp/options.l2tpd.client
  1880. length bit = yes
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886. 5.
  1887.  
  1888.  
  1889. nano /etc/ppp/options.l2tpd.client
  1890.  
  1891.  
  1892.  
  1893. ipcp-accept-local
  1894. ipcp-accept-remote
  1895. refuse-eap
  1896. require-mschap-v2
  1897. noccp
  1898. noauth
  1899. idle 1800
  1900. mtu 1410
  1901. mru 1410
  1902. defaultroute
  1903. replacedefaultroute
  1904. usepeerdns
  1905. debug
  1906. lock
  1907. connect-delay 5000
  1908. name vpn
  1909. password vpn
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915. 6.
  1916.  
  1917. ip ro ad 192.168.1.X via 180.199.224.130
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923. 7.
  1924.  
  1925.  
  1926. invoke-rc.d ipsec restart
  1927. invoke-rc.d xl2tpd restart
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933. 8.
  1934.  
  1935. sudo ipsec verify
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941. 9.
  1942.  
  1943. Startup sequence:
  1944. ipsec auto --up L2TP-PSK
  1945. echo "c vpn-sf14" > /var/run/xl2tpd/l2tp-control
  1946.  
  1947. Shutdown sequence:
  1948. echo "d vpn-sf14" > /var/run/xl2tpd/l2tp-control
  1949. ipsec auto --down L2TP-PSK
  1950.  
  1951. Note that 'vpn-sf14' and 'L2TP-PSK' are identifiers used in appropriate config files.
  1952. If you wish to start VPN with the system boot, you will need to place startup commands in /etc/rc.local
  1953.  
  1954. Following versions were used:
  1955. kernel 2.6.32-5
  1956. openswan 1:2.6.28+dfsg-1
  1957. xl2tpd 1.2.7+dfsg-1
  1958.  
  1959.  
  1960.  
  1961. DOES NOT WORK!!!!!!
  1962.  
  1963. apt-get install pptpd
  1964.  
  1965.  
  1966. Gnome Network Manager VPN Tab Disabled ( Greyed out )
  1967. http://www.cyberciti.biz/faq/deiban-ubuntu-linux-networkmanager-pptp-cisco-vpn-tab-disabled/
  1968.  
  1969. # network management framework OpenVPN plugin GNOME GUI
  1970. apt-get install network-manager-openvpn network-manager-openvpn-gnome
  1971.  
  1972.  
  1973. # network management framework PPTP plugin GNOME GUI
  1974. apt-get install network-manager-pptp network-manager-pptp-gnome
  1975.  
  1976.  
  1977. # network management framework strongSwan ipsec vpn plugin
  1978. apt-get install network-manager-strongswan
  1979.  
  1980.  
  1981. # network management framework (VPNC plugin GNOME GUI)
  1982. apt-get install network-manager-vpnc network-manager-vpnc-gnome
  1983.  
  1984.  
  1985. # Odebere IPsec a naainstaluje OpenVPN aaa a zrusi IPsec
  1986. apt-get install l2tp-ipsec-vpn
  1987.  
  1988.  
  1989. # restart NetworkManager
  1990. /etc/init.d/network-manager restart
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003. OpenVPN settings
  2004.  
  2005.  
  2006. # network management framework OpenVPN plugin GNOME GUI
  2007. apt-get install network-manager-openvpn network-manager-openvpn-gnome
  2008.  
  2009. apt-get -f install
  2010.  
  2011.  
  2012. http://www.vpngate.net/en/
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021. OpenVPN @ Wheezy
  2022. https://integrityvpn.com/guides/openvpn/linux
  2023.  
  2024.  
  2025. 1. Open Applications -> System Tools -> Add/Remove Software and search for “Network-manager”.
  2026. 2. Click on “More info” in the result found (network-manager-gnome).
  2027. 3. Tick the box “OpenVPN plugin GNOME GUI” and then “Apply”.
  2028.  
  2029. 4. Download the configuration files at https://integrityvpn.com/openvpn/integrity.zip and unzip somewhere you will find them.
  2030. 5. Open network manager by right clicking on the Network icon in the top right corner of your screen.
  2031. 6. Click the VPN tab and then “import”. Locate the integrity.ovpn-file included in the zip-archive you unpacked in step 4, and click open.
  2032. 7. Type in “ovpn.se.integrityvpn.com” as the gateway, as well as your IntegrityVPN username and password. For CA Certificate, choose the openvpn.ca-file included in the Zip archive you unpacked in step 4.
  2033. 8. Open Network Manager again, and choose VPN-Connections -> Integrity. When it prompts you for a password, enter your IntegrityVPN user password.
  2034. 9. You are now using your secure IntegrityVPN connection!
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2058. # iptables shorewall
  2059. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2060. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=12014
  2061. http://andrum99.blogspot.co.uk/2012/10/putting-your-raspberry-pi-on-internet.html
  2062. http://www.nano-editor.org/dist/v2.2/nano.html
  2063. http://wowtutorial.org/tutorial/16.html
  2064.  
  2065.  
  2066.  
  2067. /sbin/shorewall status
  2068. /sbin/shorewall stop
  2069. /sbin/shorewall start
  2070. /sbin/shorewall restart
  2071.  
  2072.  
  2073.  
  2074.  
  2075. list
  2076. sudo iptables -L
  2077. sudo ip6tables -L
  2078. sudo iptables -F
  2079. ip rule show
  2080.  
  2081.  
  2082. flush
  2083. iptables -L -v
  2084. iptables -F
  2085. iptables -X
  2086. iptables -t nat -F
  2087. iptables -t nat -X
  2088. iptables -t mangle -F
  2089. iptables -t mangle -X
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095. 1. INSTALL
  2096. apt-get update
  2097. apt-get install shorewall shorewall-doc
  2098.  
  2099.  
  2100. 2. START-UP ON BOOR
  2101. nano /etc/default/shorewall
  2102. startup=1
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108. 3. COPY PROFILES
  2109. cp -r /usr/share/doc/shorewall/examples/Universal /etc/shorewall
  2110.  
  2111. or Latitude D830 (Debian 7) Wheezy
  2112. cp -r /usr/share/doc/shorewall/examples/one-interface /etc/shorewall
  2113.  
  2114. and choose:
  2115. nano /etc/shorewall/zones
  2116. nano /etc/shorewall/interfaces
  2117. nano /etc/shorewall/blacklist
  2118. nano /etc/shorewall/policy
  2119. nano /etc/shorewall/rules
  2120.  
  2121.  
  2122.  
  2123. 4. CONFIGURE ZONES ============ DONE
  2124. http://www.shorewall.net/manpages/shorewall-zones.html
  2125.  
  2126. nano /etc/shorewall/zones
  2127.  
  2128. # /etc/shorewall/zones CONFIG
  2129. ###################################################################
  2130. #ZONE TYPE OPTIONS IN OPTIONS OUT OPTIONS
  2131. fw firewall
  2132. net ipv4
  2133. dmz ipv4
  2134. loc ipv4
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140. 5. CONFIGURE INTERFACES ========== DONE
  2141. http://www.shorewall.net/manpages/shorewall-interfaces.html
  2142. http://www.shorewall.net/manpages/shorewall-blacklist.html
  2143.  
  2144. nano /etc/shorewall/interfaces
  2145.  
  2146. # /etc/shorewall/interfaces - CONFIG
  2147. ###############################################
  2148. #ZONE INTERFACE BROADCAST OPTIONS
  2149. net eth0 detect dhcp,routefilter,logmartians,nosmurfs,tcpflags,blacklist
  2150. dmz eth1 detect dhcp
  2151. loc eth2 detect dhcp
  2152. net wlan0 detect dhcp,routefilter,logmartians,nosmurfs,tcpflags,blacklist
  2153. dmz wlan1 detect dhcp
  2154. loc wlan2 detect dhcp
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160. 6. BLACKLIST
  2161. nano /etc/shorewall/blacklist
  2162. ############################################
  2163. #ADDRESS/SUBNET PROTOCOL PORT
  2164. - udp 1024:1033,1434
  2165. - tcp 57,1433,1434,2401,2745,3127,3306,3410,4899,5554,6101,8081,9898
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171. 7. CONFIGURE POLICY ================== DONE
  2172. http://www.shorewall.net/manpages/shorewall-policy.html
  2173. http://wiki.debian.org/HowTo/shorewall
  2174.  
  2175. nano /etc/shorewall/policy
  2176.  
  2177. # add few lines below into policy files - CONFIG
  2178. ###########################################
  2179. #SOURCE DEST POLICY LOG BURST:LIMIT
  2180. # LEVEL
  2181. net all DROP info
  2182. dmz all REJECT info
  2183. loc all REJECT info
  2184. fw net ACCEPT info
  2185. fw loc ACCEPT info
  2186.  
  2187. # THE FOLLOWING POLICY MUST BE LAST
  2188. all all REJECT info
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196. 8. CONFIGURE RULES - Creating Rules (where you will spend most your time in the future!)
  2197. http://www.shorewall.net/manpages/shorewall-rules.html
  2198. http://wiki.debian.org/HowTo/shorewall
  2199.  
  2200.  
  2201. nano /etc/shorewall/rules
  2202. or
  2203. nano -w /etc/shorewall/rules
  2204. or
  2205. nano --nowrap /etc/shorewall/rules
  2206.  
  2207.  
  2208.  
  2209. # add few lines below into rules file - CONFIG
  2210. ############################################################################################################
  2211. #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE
  2212. # PORT PORT(S) DEST LIMIT
  2213. SSH(ACCEPT) net all - - - - s:1/min:3
  2214. ACCEPT loc net tcp 80,443
  2215. ACCEPT loc fw udp 53
  2216. ACCEPT all dmz tcp 80
  2217.  
  2218.  
  2219. ACCEPT net fw icmp 8
  2220. ACCEPT fw net icmp
  2221. ACCEPT net fw tcp ssh,www,https,smtp,pop3,pop3s,imap2,imaps,submission
  2222. ACCEPT net fw udp https
  2223. # ACCEPT net:10.1.1.1 fw tcp ssh
  2224. #SSH(ACCEPT) net:192.168.1.0/24 $FW
  2225.  
  2226. # ACCEPT SSH from 192.168.1.0/24 range on port 22222 FUNGUJE
  2227. ACCEPT net:192.168.1.0/24 $FW tcp 29
  2228.  
  2229.  
  2230.  
  2231.  
  2232. 8b. SMABA
  2233. http://www.shorewall.net/samba.htm
  2234.  
  2235. cp /usr/share/shorewall/action.Drop /etc/shorewall
  2236. cp /usr/share/shorewall/action.Reject /etc/shorewall
  2237.  
  2238.  
  2239. nano /etc/shorewall/action.Drop
  2240. nano /etc/shorewall/action.Reject
  2241.  
  2242.  
  2243. shorewall restart
  2244.  
  2245.  
  2246. 9. CHECK THE CONFIG
  2247. shorewall check
  2248. shorewall show capabilities
  2249. shorewall show policies
  2250. shorewall show zones
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257. 10. START THE FIREWALL
  2258. sudo /etc/init.d/shorewall start
  2259. sudo /etc/init.d/shorewall restart
  2260. sudo /etc/init.d/shorewall stop
  2261.  
  2262. /sbin/shorewall status
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270. 11. CHECK THE LOG
  2271. nano -v /var/log/shorewall-init.log
  2272. or
  2273. cat /var/log/shorewall-init.log
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281. 12. CHECK THE LOG Live
  2282. tail -f /var/log/messages
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2316. # FAIL 2 BAN
  2317. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2318. http://www.fail2ban.org/wiki/index.php/MANUAL_0_8
  2319.  
  2320. sudo apt-get install fail2ban
  2321.  
  2322.  
  2323. /etc/fail2ban/
  2324. ├── action.d
  2325. │ ├── dummy.conf
  2326. │ ├── hostsdeny.conf
  2327. │ ├── iptables.conf
  2328. │ ├── mail-whois.conf
  2329. │ ├── mail.conf
  2330. │ └── shorewall.conf
  2331. ├── fail2ban.conf
  2332. ├── fail2ban.local
  2333. ├── filter.d
  2334. │ ├── apache-auth.conf
  2335. │ ├── apache-noscript.conf
  2336. │ ├── couriersmtp.conf
  2337. │ ├── postfix.conf
  2338. │ ├── proftpd.conf
  2339. │ ├── qmail.conf
  2340. │ ├── sasl.conf
  2341. │ ├── sshd.conf
  2342. │ └── vsftpd.conf
  2343. ├── jail.conf
  2344. └── jail.local
  2345.  
  2346.  
  2347.  
  2348. chkconfig -a fail2ban
  2349.  
  2350. DEFAULT CONFIG
  2351. sudo nano /etc/fail2ban
  2352.  
  2353. MY OWN CONFIG
  2354. sudo nano /etc/fail2ban/jail.local
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361. lastlog
  2362. nano -v /var/log/sshd.log
  2363.  
  2364. nano -v /etc/syslog.conf
  2365.  
  2366. nano -v /var/log/secure
  2367.  
  2368.  
  2369.  
  2370. http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&sektion=5
  2371. http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
  2372. http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
  2373.  
  2374. http://en.wikipedia.org/wiki/Liar_paradox
  2375.  
  2376. nano /etc/ssh/sshd_config
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382. nmap -p- IP -all ports scann
  2383.  
  2384.  
  2385. nano -v /var/log/dpkg.log
  2386.  
  2387.  
  2388. apt-key fingerprint
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405. --------------------------------------------------------------------------------------------------------------------
  2406. ## Google Chrome + plugins
  2407. --------------------------------------------------------------------------------------------------------------------
  2408. https://www.google.com/intl/en_uk/chrome/browser/
  2409. https://www.google.com/intl/en_uk/chrome/browser/thankyou.html
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416. apt-get install google-chrome-stable
  2417. or
  2418. cd /share
  2419. wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
  2420. sudo dpkg -i google-chrome-stable_current_i386.deb
  2421. apt-get -f install
  2422.  
  2423.  
  2424. sudo apt-get remove google-chrome-stable
  2425.  
  2426.  
  2427. uname -a; cat /etc/debian_version; dpkg -l | grep base-files
  2428.  
  2429. cat /etc/debian_version
  2430. uname -s -r -v -o
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438. HTTPS Everywhere (plugin) encrypts your communications with many major websites, making your browsing more secure.
  2439. ==================================================================================================================
  2440. https://chrome.google.com/webstore/detail/https-everywhere/gcbommkclmclpchllfjekcdonpmejbdp
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446. A Little Privacy – Prevents passing referrer to third parties, removes redirect trackers, resolves short URLs, and more.
  2447. =======================================================================================================================
  2448. https://chrome.google.com/webstore/detail/a-little-privacy/kjhmfidomefgpbbebodnbakelpabilga
  2449.  
  2450.  
  2451.  
  2452.  
  2453. NotScripts
  2454. ==========
  2455. https://chrome.google.com/webstore/detail/odjhifogjcknibkahlpidmdajjpkkcfn
  2456.  
  2457.  
  2458. NotScripts | Options
  2459. ====================
  2460. chrome-extension://odjhifogjcknibkahlpidmdajjpkkcfn/options.html
  2461.  
  2462.  
  2463.  
  2464. sudo nano ~/.config/google-chrome/Default/Extensions/odjhifogjcknibkahlpidmdajjpkkcfn
  2465. sudo nano /home/user/.config/google-chrome/Default/Extensions/odjhifogjcknibkahlpidmdajjpkkcfn/0.9.6_0/CHANGE__PASSWORD__HERE.js
  2466.  
  2467. Choose a password for NotScripts with the following restrictions:
  2468.  
  2469. Length: 20 minimum, 100 maximum
  2470. Allowed Characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_1234567890
  2471. Spaces: Allowed
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2502. ## SeaMonkey Download & Releases
  2503. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2504. http://www.seamonkey-project.org/releases/
  2505.  
  2506. ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/2.20/linux-i686/en-GB/
  2507.  
  2508.  
  2509.  
  2510. Windows 7
  2511. Users\<UserName>\AppData\Roaming\Mozilla\SeaMonkey
  2512.  
  2513. Windows XP
  2514. Documents and Settings\<UserName>\Application Data\Mozilla\SeaMonkey
  2515.  
  2516. Linux
  2517. ~/.mozilla/seamonkey
  2518.  
  2519.  
  2520.  
  2521.  
  2522. 1. ROOT!!!!!
  2523. ===================================================================================
  2524. mkdir /usr/local/seamonkey2
  2525. cd /usr/local/seamonkey2
  2526.  
  2527.  
  2528. or
  2529. cd /usr/local/
  2530.  
  2531.  
  2532. wget http://download.cdn.mozilla.net/pub/mozilla.org/seamonkey/releases/2.19/linux-i686/en-GB/seamonkey-2.19.tar.bz2
  2533. tar jxvf seamonkey-2.19.tar.bz2
  2534.  
  2535. wget http://download.cdn.mozilla.net/pub/mozilla.org/seamonkey/releases/2.20/linux-i686/en-GB/seamonkey-2.20.tar.bz2
  2536. tar jxvf seamonkey-2.20.tar.bz2
  2537.  
  2538.  
  2539.  
  2540.  
  2541. 2. Custom Aplication Launcher (Alt + Right Click)
  2542. ===================================================================================
  2543. Launch Properties
  2544. Type: Aplication
  2545. Name: SeaMonkey
  2546. Command: /usr/local/seamonkey2/seamonkey/seamonkey
  2547. Comment: Web-browser, advanced e-mail, newsgroup and feed client, IRC chat, and HTML editing made simple—all your Internet needs in one application.
  2548.  
  2549.  
  2550. Icon: /usr/local/seamonkey/chrome/icons/default48.png
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557. 3. COPY profiles.ini
  2558. ===================================================================================
  2559. cd /home/user/.mozilla/seamonkey
  2560.  
  2561.  
  2562. copy from *.zip//Mozilla/SeaMonkey/profile.ini into /home/user/.mozilla/seamonkey/
  2563. edit and delete Profiles/Xxxxxxxxx.default to Xxxxxxx.default in Path field
  2564.  
  2565.  
  2566. nano /home/user/.mozilla/seamonkey/profiles.ini
  2567. #################################################
  2568. [General]
  2569. StartWithLastProfile=1
  2570.  
  2571. [Profile0]
  2572. Name=Default User
  2573. IsRelative=1
  2574. Path=Xxxxxxxxxx.default
  2575. Default=1
  2576.  
  2577.  
  2578.  
  2579.  
  2580. 4. COPY Xxxxxxxxx.default
  2581. ===================================================================================
  2582. cd /home/user/.mozilla/seamonkey
  2583.  
  2584. copy from *.zip//Mozilla/SeaMonkey/Profiles/Xxxxxxxxxx.default into /home/user/.mozilla/seamonkey/
  2585.  
  2586.  
  2587.  
  2588. can delete IMAP folders :) as they will get downloaded again
  2589.  
  2590.  
  2591.  
  2592.  
  2593. 5. EDIT prefs.js
  2594. ===================================================================================
  2595. http://kb.mozillazine.org/Editing_configuration
  2596. http://kb.mozillazine.org/Prefs.js_file
  2597.  
  2598. about:config
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605. RENAME Path=name of profile from
  2606.  
  2607. c:\Users\admin\AppData\Roaming\Mozilla\SeaMonkey\Profiles\
  2608. /Documents and Settings/admin/Application Data/Mozilla/SeaMonkey/Profiles/NAME OF TH PROILE
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615. 6. USER!!!! -manual launching make sure there is NO INTERNET connection, so POP3 server do not pull mail!!!!!!!!
  2616. ===================================================================================
  2617. cd seamonkey
  2618. or
  2619. cd /usr/local/seamonkey2/seamonkey
  2620. ./seamonkey
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628. Add-ons CTRL + Shift + A
  2629. https://addons.mozilla.org/en-US/seamonkey/
  2630. ========================================================================
  2631. SeaMonkey Modern 2.20
  2632.  
  2633. Adblock Plus 2.1
  2634. DOM Inspector 2.0.14
  2635. Event Spy 0.5
  2636. FireQuery 1.3
  2637. FlashGot 1.5.5.5
  2638. FxIF 0.4.7.1
  2639. Session Manager 0.8.0.8
  2640. User Agent Switcher 0.7.3
  2641.  
  2642.  
  2643. BetterPrivacy 1.67
  2644. Britiash English Dictionary 1.19.1
  2645. ChatZilla 0.9.90.1.
  2646. Download YouTube Videos as MP4 1.6.5
  2647. JavaScrip Debugger 0.9.89
  2648. Live HTTP headers 0.17
  2649. NoScript 2.6.7.1
  2650. ShowIP 2.0
  2651.  
  2652.  
  2653. Display Mail User Agent 1.6.9
  2654. FlagFox
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661. Enigmail 1.5.2
  2662. https://www.enigmail.net/home/index.php
  2663. https://www.enigmail.net/documentation/enigmail-quickstart.pdf
  2664.  
  2665.  
  2666. # gpg --version
  2667. gpg (GnuPG) 1.4.12
  2668. Copyright (C) 2012 Free Software Foundation, Inc.
  2669. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  2670. This is free software: you are free to change and redistribute it.
  2671. There is NO WARRANTY, to the extent permitted by law.
  2672.  
  2673. Home: ~/.gnupg
  2674. Supported algorithms:
  2675. Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
  2676. Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
  2677. CAMELLIA192, CAMELLIA256
  2678. Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
  2679. Compression: Uncompressed, ZIP, ZLIB, BZIP2
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689. https://www.enigmail.net/documentation/quickstart-ch2.php
  2690. SeaMonkey -mail
  2691. OpenPGP -> Key Management -> Generate -> New Key Pair (NEW WINDOW WILL OPEN)
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697. OpenPGP Prompt
  2698.  
  2699. Just encrypt/sign the message text, but not the aattachments
  2700. Encrypt/sign each attachment separately and send the message using inline PGP
  2701. Encrypt/sign the message as a whole and sned it using PGP/MIME
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708. https://www.enigmail.net/documentation/quickstart-ch3.php
  2709. Finding keys
  2710.  
  2711. OpenPGP --> Key Managemen -> Keyserver -> Search for keys
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2735. # VirtualBox 4.2.16 for Linux
  2736. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2737. https://www.virtualbox.org/wiki/Linux_Downloads
  2738.  
  2739.  
  2740. cd /share
  2741. wget http://download.virtualbox.org/virtualbox/4.2.16/virtualbox-4.2_4.2.16-86992~Debian~wheezy_i386.deb
  2742. wget http://download.virtualbox.org/virtualbox/4.2.16/SHA256SUMS
  2743. sha256sum virtualbox-4.2_4.2.16-86992~Debian~wheezy_i386.deb
  2744.  
  2745.  
  2746.  
  2747. sudo nano /etc/apt/sources.list
  2748. ###############################
  2749.  
  2750. ## Oracle VirtualBox
  2751. deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
  2752. ###############################
  2753.  
  2754.  
  2755. http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
  2756. sudo apt-key add oracle_vbox.asc
  2757.  
  2758. or
  2759.  
  2760. wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
  2761.  
  2762.  
  2763. sudo apt-get update
  2764. sudo apt-get install virtualbox-4.2
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770. Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules
  2771. (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade.
  2772. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later.
  2773. The dkms package can be installed through the Synaptic Package manager or through the following command:
  2774. =======================================================================================================
  2775. sudo apt-get install dkms
  2776.  
  2777.  
  2778.  
  2779. What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?
  2780. ===============================================================================================================================
  2781. # sudo -s -H
  2782. # apt-get clean
  2783. # rm /var/lib/apt/lists/*
  2784. # rm /var/lib/apt/lists/partial/*
  2785. # apt-get clean
  2786. # apt-get update
  2787.  
  2788.  
  2789.  
  2790.  
  2791. Hard Drive file type:
  2792. VDI (VirtualBox Disk Image) ==========
  2793. VMDK (Virtual Machine Disk)
  2794. VHD (Virtual Hard Disk)
  2795. HDD (Paaarallels Hard Disk)
  2796. QED (QEMU enhanced disk)
  2797. QCOW (QEMU Copy-On_Write)
  2798.  
  2799.  
  2800. Storage on physicaal hard drive:
  2801. Dynamically allocated =================
  2802. Fixed size
  2803.  
  2804.  
  2805. Dell_Win_7_Pro_32-Bit
  2806.  
  2807. File locatioin and size: 20GB
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814. http://download.virtualbox.org/virtualbox/4.2.16/Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack
  2815.  
  2816.  
  2817. File - Preference - Extensions - Add Package - Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack - Install
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2842. # Tails
  2843. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2844. https://tails.boum.org/
  2845.  
  2846.  
  2847.  
  2848.  
  2849. wget http://dl.amnesia.boum.org/tails/stable/tails-i386-0.20/tails-i386-0.20.iso
  2850. wget https://tails.boum.org/torrents/files/tails-i386-0.20.iso.sig
  2851. wget https://tails.boum.org/tails-signing.key
  2852.  
  2853.  
  2854. sudo apt-get update
  2855. sudo apt-get install seahorse-plugins
  2856.  
  2857. https://tails.boum.org/tails-signing.key
  2858. https://tails.boum.org/torrents/files/tails-i386-0.20.iso.sig
  2859.  
  2860.  
  2861.  
  2862. cat tails-signing.key | gpg --keyid-format long --import
  2863.  
  2864. gpg --keyid-format long --verify tails-i386-0.20.iso.sig tails-i386-0.20.iso
  2865.  
  2866.  
  2867. cfea09a901c3f8610f7a566d6984f282cd4b3eaf716c96e78148b8b0eca165a8
  2868.  
  2869.  
  2870. $ sha256sum tails-i386-0.20.iso
  2871. cfea09a901c3f8610f7a566d6984f282cd4b3eaf716c96e78148b8b0eca165a8 tails-i386-0.20.iso
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892. DOES NOT WORK!!!!!
  2893. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2894. # Bitmessage is a P2P communications protocol used to send encrypted messages to another person or to many subscribers
  2895. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2896. https://bitmessage.org/wiki/Main_Page
  2897. https://bitmessage.org/wiki/Compiling_instructions
  2898.  
  2899. http://cryptojunky.com/blog/2013/03/09/setting-up-and-using-bitmessage-an-encrypted-communications-platform-based-on-bitcoin/
  2900.  
  2901.  
  2902. sudo apt-get install python openssl git python-qt4
  2903. git clone https://github.com/Bitmessage/PyBitmessage $HOME/PyBitmessage
  2904. ~/PyBitmessage/src/bitmessagemain.py
  2905.  
  2906. cd PyBitmessage/src/
  2907. python bitmessagemain.py
  2908.  
  2909. .config/PyBitmessage/
  2910.  
  2911.  
  2912. $ ~/PyBitmessage/src/bitmessagemain.py
  2913. Not using the gevent module as it was not found. No need to worry.
  2914. Loading existing config files from /home/user/.config/PyBitmessage/
  2915. 2013-08-24 13:29:21,769 - DEBUG - reloading keys from keys.dat file
  2916. Database file already exists.
  2917. Failure reading namecoin config file: [Errno 2] No such file or directory: '/home/user/.namecoin/namecoin.conf'
  2918. 2013-08-24 13:29:21,779 - DEBUG - reloading subscriptions...
  2919. 2013-08-24 13:29:22,312 - ERROR - Could not find any typelib for MessagingMenu
  2920. bitmessagemain.py: cannot connect to X server
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928. TO UPGRADE
  2929. cd $HOME/PyBitmessage
  2930. git pull
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2948. # Serial Number
  2949. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2950. cat /proc/cpuinfo
  2951.  
  2952.  
  2953.  
  2954. $ cat /proc/cpuinfo
  2955. processor : 0
  2956. vendor_id : GenuineIntel
  2957. cpu family : 6
  2958. model : 15
  2959. model name : Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
  2960.  
  2961. ...................................
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2983. # biosdecode a dmidecode
  2984. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  2985. sudo biosdecode
  2986. sudo dmidecode
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993. $ sudo biosdecode
  2994. # biosdecode 2.11
  2995. SYSID present.
  2996. Revision: 0
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003. marcel@LatitudeD830:/share$ sudo dmidecode
  3004. # dmidecode 2.11
  3005. SMBIOS 2.4 present.
  3006. 63 structures occupying 2942 bytes.
  3007. Table at 0x000F68B0.
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3019. # Bluetooth
  3020. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3021. lsusb | grep -i bluetooth
  3022. Bus 003 Device 002: ID 413c:8140 Dell Computer Corp. Wireless 360 Bluetooth
  3023.  
  3024.  
  3025.  
  3026.  
  3027. sudo /etc/init.d/bluetooth status
  3028.  
  3029. sudo hciconfig set name D830
  3030.  
  3031.  
  3032.  
  3033. sudo hciconfig -a
  3034. sudo hciconfig -a shows
  3035. sudo hcitool dev
  3036. sudo hcitool scan
  3037. sudo hcitool inq
  3038. sudo hcitool info 18:1X:X6:X1:XX:X4
  3039. sudo l2ping -c 1 18:1X:X6:X1:XX:X4
  3040.  
  3041. # http://www.wolfteck.com/projects/raspi/bluetooth-iphone-internet/
  3042. # To set buetooth to ask on pairing :)
  3043. grep KeyboardDisplay /usr/bin/bluez-simple-agent
  3044. sudo perl -i -pe 's/KeyboardDisplay/DisplayYesNo/' /usr/bin/bluez-simple-agent
  3045. grep DisplayYesNo /usr/bin/bluez-simple-agent
  3046.  
  3047.  
  3048. sudo bluez-simple-agent hci0 18:1X:X6:X1:XX:X4
  3049. sudo bluez-test-device trusted 18:1X:X6:X1:XX:X4 yes
  3050. sudo bluez-test-input connect 18:1X:X6:X1:XX:X4
  3051.  
  3052.  
  3053. sudo bluetooth-agent 7472 &
  3054. sudo rfcomm connect hci0 18:1X:X6:X1:XX:X4
  3055. sudo hcitool con
  3056.  
  3057.  
  3058.  
  3059. $ sudo hciconfig -a
  3060. [sudo] password for xxxxxxxx:
  3061. hci0: Type: BR/EDR Bus: USB
  3062. BD Address: 18:1X:X6:X1:XX:X4 ACL MTU: 310:10 SCO MTU: 64:8
  3063. UP RUNNING PSCAN
  3064. RX bytes:1284061 acl:84666 sco:0 events:1102 errors:0
  3065. TX bytes:2463 acl:67 sco:0 commands:98 errors:0
  3066. Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
  3067. Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
  3068. Link policy: RSWITCH HOLD SNIFF PARK
  3069. Link mode: SLAVE ACCEPT
  3070. Name: 'D830'
  3071. Class: 0x420100
  3072. Service Classes: Networking, Telephony
  3073. Device Class: Computer, Uncategorized
  3074. HCI Version: 2.0 (0x3) Revision: 0x10db
  3075. LMP Version: 2.0 (0x3) Subversion: 0x10db
  3076. Manufacturer: Cambridge Silicon Radio (10)
  3077.  
  3078.  
  3079.  
  3080.  
  3081. # sudo hcitool dev
  3082. Devices:
  3083. hci0 18:1X:X6:X1:XX:X4
  3084.  
  3085.  
  3086.  
  3087. # sudo hcitool scan
  3088. Scanning ...
  3089. 18:1X:X6:X1:XX:X4 Nokia N8
  3090.  
  3091.  
  3092.  
  3093. # sudo hcitool inq
  3094. Inquiring ...
  3095. 18:1X:X6:X1:XX:X4 clock offset: 0x1f37 class: 0x5a020c
  3096.  
  3097. .
  3098.  
  3099. # lsmod
  3100.  
  3101. Module Size Used by
  3102. nls_utf8 12416 1
  3103. nls_cp437 12417 1
  3104. vfat 17116 1
  3105. fat 44497 1 vfat
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113. dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
  3114. hciconfig hci0 piscan
  3115. dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:off
  3116. hciconfig hci0 noscan
  3117.  
  3118.  
  3119. bluetooth-agent 0000
  3120. (Pincode request for device /org/bluez/2149/hci0/dev_1X_XX_XX_XX_XX_XX)
  3121.  
  3122.  
  3123. sudo service bluetooth restart
  3124. sudo /etc/init.d/bluetooth restart
  3125.  
  3126.  
  3127. hciconfig hci0 down
  3128. and
  3129. hciconfig hci0 up
  3130.  
  3131.  
  3132.  
  3133. lsusb
  3134. hciconfig -a
  3135. hcitool dev
  3136. hcitool scan
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142. sudo nano /etc/default/bluetooth
  3143.  
  3144. sudo nano /etc/bluetooth/audio.conf
  3145. sudo nano /etc/bluetooth/imput.conf
  3146. sudo nano /etc/bluetooth/main.conf
  3147. sudo nano /etc/bluetooth/network.conf
  3148. sudo nano /etc/bluetooth/proximity.conf
  3149. sudo nano /etc/bluetooth/rfcomm.conf
  3150. sudo nano /etc/bluetooth/serial.conf
  3151.  
  3152. # DOES NOT EXIST
  3153. sudo nano /etc/bluetooth/link_key
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3174. # Kismet
  3175. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3176. http://www.kismetwireless.net/code/
  3177. http://www.kismetwireless.net/documentation.shtml
  3178.  
  3179.  
  3180. sudo apt-get update
  3181. sudo apt-get install xz-utils ncurses-dev libpcap-dev libnl-dev tcpdump wireshark
  3182.  
  3183.  
  3184. wget http://www.kismetwireless.net/code/kismet-2013-03-R1b.tar.gz
  3185. tar xfvz kismet-2013-03-R1b.tar.gz
  3186. cd kismet-2013-03-R1b
  3187.  
  3188. ./configure
  3189.  
  3190. Configuration complete. Run 'make dep' to generate dependencies
  3191. and 'make' followed by 'make install' to compile and install.
  3192.  
  3193. *** WARNING ***
  3194. In some situations, libpcap links to libnl. If Kismet finds a newer
  3195. libbl, it can cause an immediate segfault when starting Kismet.
  3196.  
  3197. It is very hard to test at compile time (and run-time changes can
  3198. cause it to break). If you experience immediate segfaults when
  3199. trying to start kismet_server, check your libpcap.so with 'ldd'
  3200. and either install a libpcap which does not link libnl1, or
  3201. force Kismet to compile with a degraded libnl via
  3202. ./configure --with-netlink-version=1
  3203.  
  3204.  
  3205.  
  3206. sudo make dep
  3207. sudo make install
  3208. (go make a cup of tea)
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218. lsusb
  3219.  
  3220. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  3221. Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3222. Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3223. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3224. Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3225. Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3226. Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  3227. Bus 002 Device 002: ID 413c:8140 Dell Computer Corp. Wireless 360 Bluetooth
  3228. Bus 003 Device 002: ID 413c:8137 Dell Computer Corp. Wireless 5520 Voda L Mobile Broadband (3G HSDPA) Minicard Status Port
  3229. Bus 007 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
  3230. Bus 007 Device 003: ID 1234:5678 Brain Actuated Technologies
  3231. Bus 006 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
  3232. Bus 006 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
  3233. Bus 006 Device 004: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
  3234.  
  3235.  
  3236.  
  3237. sudo lsusb -s 1:6 -vvv
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243. sudo cp /usr/local/etc/kismet.conf /usr/local/etc/kismet.conf.BACKUP
  3244. sudo nano /usr/local/etc/kismet.conf
  3245.  
  3246.  
  3247. DOES NOT WORK!
  3248. less /usr/share/doc/kismet/README.gz
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3265. # Open Office
  3266. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3267. http://www.openoffice.org/download/other.html
  3268.  
  3269.  
  3270. wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.0/binaries/en-GB/Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz
  3271. wget http://www.apache.org/dist/openoffice/4.0.0/binaries/en-GB/Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz.asc
  3272. wget http://www.apache.org/dist/openoffice/4.0.0/binaries/en-GB/Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz.md5
  3273. wget http://www.apache.org/dist/openoffice/4.0.0/binaries/en-GB/Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz.sha256
  3274.  
  3275.  
  3276. sha256sum Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz
  3277. sha256sum Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz.sha256
  3278.  
  3279.  
  3280.  
  3281. tar -xvzf Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz
  3282. en-GB
  3283.  
  3284.  
  3285. sudo dpkg -i *.deb.
  3286.  
  3287.  
  3288.  
  3289.  
  3290. sudo apt-get install gtkhash
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314. = IN INSTALL
  3315. --------------------------------------------------------------------------------------------------------------------
  3316. ## 3D creation for everyone, free to use for any purpose.
  3317. --------------------------------------------------------------------------------------------------------------------
  3318. http://www.blender.org/download/get-blender/
  3319.  
  3320.  
  3321. apt-get install blender
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336. = IN INSTALL
  3337. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3338. # bootlogd
  3339. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3340. https://wiki.debian.org/bootlogd
  3341.  
  3342.  
  3343. sudo apt-get install bootlogd
  3344.  
  3345.  
  3346.  
  3347. aptitude show bootlogd
  3348.  
  3349.  
  3350. sono nano /var/log/boot
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357. = IN INSTALL
  3358. --------------------------------------------------------------------------------------------------------------------
  3359. ## Byobu is a GPLv3 open source text-based window manager and terminal multiplexer.
  3360. --------------------------------------------------------------------------------------------------------------------
  3361. http://byobu.co/downloads.html
  3362.  
  3363.  
  3364. apt-get install byobu
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370. = IN INSTALL
  3371. --------------------------------------------------------------------------------------------------------------------
  3372. ## Hard Disk Partition Manager
  3373. --------------------------------------------------------------------------------------------------------------------
  3374. sudo apt-get install gparted
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381. = IN INSTALL
  3382. --------------------------------------------------------------------------------------------------------------------
  3383. ## GSmartControl - Hard disk drive health inspection tool
  3384. --------------------------------------------------------------------------------------------------------------------
  3385. http://gsmartcontrol.berlios.de/home/index.php/en/Downloads
  3386. sudo apt-get install gsmartcontrol
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395. = IN INSTALL
  3396. --------------------------------------------------------------------------------------------------------------------
  3397. ## tcpdump - powerful command-line packet analyzer; and libpcap, a portable C/C++ library for network traffic capture.
  3398. --------------------------------------------------------------------------------------------------------------------
  3399. http://www.tcpdump.org/tcpdump_man.html
  3400. sudo apt-get install tcpdump
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408. = IN INSTALL
  3409. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3410. # SendEmail is a lightweight, completely command line based, SMTP email agent.
  3411. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3412. http://caspian.dotconf.net/menu/Software/SendEmail/
  3413. http://packages.debian.org/wheezy/sendemail
  3414.  
  3415. sudo apt-get install sendemail
  3416.  
  3417.  
  3418.  
  3419. sendEmail -f "fromaddress" -t "toaddress" -u "Subjectlinei" -m "Mymessage" -s "mysmtpserver":26 -o tls=no -xu "loginusername" -xp "loginpassword"
  3420. sendEmail -f "fromaddress" -t "toaddress" -u "Subjectlinei" -m "Mymessage" -s "mysmtpserver":25 -o tls=no -xu "loginusername" -xp "loginpassword"
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435. --------------------------------------------------------------------------------------------------------------------
  3436. ## Minimal "gnome classic" install in Wheezy
  3437. --------------------------------------------------------------------------------------------------------------------
  3438. http://forums.debian.net/viewtopic.php?f=6&t=84763
  3439.  
  3440. sudo apt-get install lightdm xorg gnome-session-fallback nautilus --no-install-recommends
  3441.  
  3442. sudo apt-get install gnome-session-fallback -s
  3443.  
  3444.  
  3445.  
  3446. Remove It
  3447. ------------
  3448. sudo apt-get --purge remove lightdm gnome-session-fallback
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456. --------------------------------------------------------------------------------------------------------------------
  3457. ## policykit configuration files. All the secret is in /etc/polkit
  3458. --------------------------------------------------------------------------------------------------------------------
  3459.  
  3460. /etc/polkit-1/localauthority# cat 10-udisks.pkla
  3461. [udisks]
  3462. Identity=unix-group:storage
  3463. Action=org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.filesystem-mount
  3464. ResultAny=yes
  3465.  
  3466.  
  3467.  
  3468.  
  3469. --------------------------------------------------------------------------------------------------------------------
  3470. ## Debian Tools and Tips
  3471. --------------------------------------------------------------------------------------------------------------------
  3472. http://debianhelp.wordpress.com/2012/10/02/crunchbang-11-waldorf-debian-wheezy-os/
  3473.  
  3474.  
  3475.  
  3476.  
  3477.  
  3478.  
  3479. #######################
  3480. #######################
  3481. #######################
  3482.  
  3483.  
  3484.  
  3485. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3486. ## MATE DEsktop
  3487. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3488.  
  3489.  
  3490. apt-get install sudo
  3491.  
  3492.  
  3493.  
  3494. # sudo blkid
  3495.  
  3496.  
  3497.  
  3498.  
  3499. sudo mkdir /media/FAT32
  3500. sudo mount -t vfat `blkid -U 4ABCD` /media/FAT32
  3501.  
  3502.  
  3503.  
  3504. nano /media/FAT32/share/etc-apt--sources.list
  3505.  
  3506. ## Multimedia
  3507. ## For wheezy (stable) amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc and sparc packages
  3508. #deb http://www.deb-multimedia.org wheezy main non-free
  3509.  
  3510.  
  3511.  
  3512. ## MKVToolNix
  3513. deb http://www.bunkus.org/debian/wheezy/ ./
  3514. deb-src http://www.bunkus.org/debian/wheezy/ ./
  3515.  
  3516.  
  3517.  
  3518. ## MATE Desktop
  3519. # main repository
  3520. deb http://repo.mate-desktop.org/debian wheezy main
  3521.  
  3522. # mirrors
  3523. deb http://packages.mate-desktop.org/repo/debian wheezy main
  3524. deb http://mirror1.mate-desktop.org/debian wheezy main
  3525.  
  3526.  
  3527. nano /etc/apt/sources.list
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533. nano /media/FAT32/share/MATE.txt
  3534.  
  3535.  
  3536.  
  3537.  
  3538. apt-get update
  3539. apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring
  3540. apt-get update
  3541.  
  3542. # Now to install MATE choose 1 of the 3 apt-get lines below.
  3543. # this installs the base packages
  3544. apt-get install mate-core
  3545.  
  3546. # or this to install mate-core and more extras
  3547. apt-get install mate-desktop-environment
  3548.  
  3549. #or this to install mate-core + mate-desktop-environment and even more extras.
  3550. apt-get install mate-desktop-environment-extra
  3551.  
  3552.  
  3553.  
  3554.  
  3555. # to start the X windows ;) otherwise it does not work.
  3556. sudo apt-get install xinit
  3557. startx
  3558.  
  3559.  
  3560.  
  3561.  
  3562. apt-get install sudo gnome-nettool software-center baobab gnome-commander gnome-disk-utility nautilus network-manager-gnome
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568. http://askubuntu.com/questions/18926/how-to-control-gnomes-auto-mounting-capabilities
  3569. Go to System->Administration->User and Groups, choose the user, click on
  3570. "Properties", then go to the "User Privileges" tab. You should have the
  3571. "Access external storage devices automatically" option
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579. gconf-editor
  3580. /apps/nautilus/preferences/media_automount
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3592. # Downloading Debian CD images with jigdo / jigdo - Jigsaw Download
  3593. # Jigdo is a tool for distributing and obtaining Debian ISOs in an easy, fast and very efficient manner.
  3594. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3595. http://www.debian.org/CD/jigdo-cd/
  3596. http://atterer.org/jigdo/
  3597.  
  3598.  
  3599. http://atterer.org/jigdo/debian-jigdo-mini-howto#HOWJIGDOWORKS
  3600. sudo apt-get install jigdo-file
  3601.  
  3602.  
  3603.  
  3604. http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/
  3605. jigdo-lite
  3606.  
  3607.  
  3608. http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/debian-7.1.0-i386-CD-1.jigdo
  3609. http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/debian-7.1.0-i386-CD-1.template
  3610.  
  3611.  
  3612.  
  3613.  
  3614. debian-7.1.0-i386-CD-1.iso
  3615.  
  3616.  
  3617.  
  3618.  
  3619.  
  3620.  
  3621. $ sha512sum debian-7.1.0-i386-CD-1.iso
  3622. f83ddd502c442a5fb44a618d0cd45b109b6d7db547194674d4408b9398691e96a35993636d7d54692c46005985b66f929de0f51a6934b136213668e55ee82473 debian-7.1.0-i386-CD-1.iso
  3623.  
  3624.  
  3625. http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/SHA512SUMS
  3626. f83ddd502c442a5fb44a618d0cd45b109b6d7db547194674d4408b9398691e96a35993636d7d54692c46005985b66f929de0f51a6934b136213668e55ee82473 debian-7.1.0-i386-CD-1.iso
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3634. ## TZ - Time Zone data
  3635. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3636. http://en.wikipedia.org/wiki/Tz_database
  3637. ftp://ftp.iana.org/tz/
  3638.  
  3639.  
  3640. ftp://ftp.iana.org/tz/tzcode-latest.tar.gz
  3641. ftp://ftp.iana.org/tz/tzdata-latest.tar.gz
  3642.  
  3643.  
  3644. http://cs.ucla.edu/~eggert/tz/tz-link.htm
  3645. mkdir tz
  3646. cd tz
  3647. wget --retr-symlinks 'ftp://ftp.iana.org/tz/tz*-latest.tar.gz'
  3648. gzip -dc tzcode-latest.tar.gz | tar -xf -
  3649. gzip -dc tzdata-latest.tar.gz | tar -xf -
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3666. ## Matrix Screen Saver
  3667. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3668. http://www.cyberciti.biz/faq/run-execute-sh-shell-script/
  3669.  
  3670. wget http://bruxy.regnet.cz/linux/matrix/matrix.sh
  3671.  
  3672.  
  3673.  
  3674.  
  3675. #!/bin/bash
  3676. echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true
  3677. do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`;
  3678. do c=`printf '\\\\0%o' $[RANDOM%57+33]` ### http://bruxy.regnet.cz/web/linux ###
  3679. $e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ]
  3680. then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`; #[mat!rix]
  3681. do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done #(c) 2011 -- [ BruXy ]
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687. sh matrix.sh
  3688. bash matrix.sh
  3689. sudo bash matrix.sh
  3690.  
  3691. chmod +x matrix.sh
  3692. ./file.sh
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.  
  3701.  
  3702.  
  3703.  
  3704.  
  3705.  
  3706.  
  3707. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3708. ## LOok INTO
  3709. ------------------------------------------------------------------------------------------------------------------------------------------------------------
  3710. =============================================================================
  3711. The LogAnalyzer project provides an easy to use but powerful front end for searching, reviewing and analyzing network event data, including syslog, windows event log and many other event sources.
  3712. http://loganalyzer.adiscon.com/
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.  
  3719.  
  3720. =============================================================================
  3721. http://www.mollify.org/features.php
  3722. wget http://www.mollify.org/download/latest.php
  3723. wget http://mollify.googlecode.com/files/mollify_1.8.9.3.zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement