Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is some of my configurations / tips and useful commands I have on my D830:
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get remove
- sudo apt-get --purge remove
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get autoremove
- sudo apt-get install -f
- sudo ntpdate -u ntp.ubuntu.com
- ifquery --list --allow=hotplug
- wlan0
- iwconfig
- iwlist wlan0 scan
- iwconfig wlan0 essid NETWORK_ID
- dhclient wlan0
- sudo ifdown wlan0
- sudo ifup wlan0
- sudo ifup --force wlan0
- sudo /etc/network/interfaces restart
- lsusb
- lsmod
- dmesg
- uname -a
- lsb_release -c
- cat /etc/debian_version
- "C:\Program Files\putty-0.62\putty.exe" -ssh pi@192.168.0.29 -P 29 -pw raspberrypi
- Alt+F1 = Aapplication
- Alt+F2 = Run application
- http://www.rockbox.org/wiki/LatexInstallation#Debian_47_Ubuntu
- ==============================================================
- apt-get install texlive-latex-base texlive-binaries texlive-latex-extra tex4ht texlive-fonts-recommended lmodern latex-xcolor
- Shorewall Live LOG
- tail -f /var/log/messages
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Set up SSH port
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo nano /etc/ssh/sshd_config
- 29
- TCP protocol
- SSH login without password
- http://linuxproblem.org/art_9.html
- RSA authentication key to be able to log into a remote site from your account, without having to type your password.
- http://www.debian.org/devel/passwordlessssh
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # STATIC IP Address with Wi-Fi
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- Wireless Access Point - SKYXXXXXX
- Physical Address: 08:XX:XX:XX:XX:XX
- Network Name (SSID): SKYXXXXXX
- Interface Type: 802.11b/g/n
- Band: 2.4GHz
- Security Mode: WPA-PSK
- WPA-PSK Preshared Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- WPA-PSK Encryption: AES
- WPA-PSK Version: WPA2
- sudo nano /etc/network/interfaces
- #################################
- auto lo
- iface lo inet loopback
- #auto wlan0
- allow-hotplug wlan0
- iface wlan0 inet static
- address 192.168.0.XXX
- netmask 255.255.255.0
- gateway 192.168.1.254
- network 192.168.1.0
- broadcast 192.168.1.255
- metric 10
- wpa-conf /etc/wpa.conf
- sudo nano /etc/wpa.conf
- #######################
- network={
- ssid="SKYXXXXX"
- proto=RSN
- key_mgmt=WPA-PSK
- pairwise=CCMP
- group=CCMP
- psk="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Update and Upgrade system files
- # Install software ALL AT ONECE
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo nano /etc/apt/sources.list
- sudo apt-get update
- sudo apt-get upgrade
- or
- sudo apt-get safe-upgrade
- #
- sudo apt-get update && sudo apt-get upgrade
- #
- 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 \
- ftp libsdl1.2-dev patchutils libproc-processtable-perl dnsutils mpg321 mencoder zip minicom gsmartcontrol gparted blender bootlogd gnome-commander \
- meld geany byobu audacity xpdf
- # Update TIME and DATE
- sudo ntpdate -u ntp.ubuntu.com
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Support for compressing and de-compressing files
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://zachariasblog.wordpress.com/2013/05/07/debian-wheezy-a-humble-post-install-guide/
- sudo apt-get install unace rar unrar zip unzip p7zip p7zip-full p7zip-rar mpack sharutils uudeview arj cabextract
- E: Package 'rar' has no installation candidate
- E: Package 'unrar' has no installation candidate
- E: Package 'p7zip-rar' has no installation candidate
- sudo apt-get install unace zip unzip p7zip p7zip-full mpack sharutils uudeview arj cabextract
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Adding user
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- go thrugh the questions ...
- ============================
- sudo adduser username
- add to SUDOers afile
- ============================
- sudo visudo
- ####################
- pi ALL=(ALL) ALL
- user ALL=(ALL) ALL
- ####################
- user ALL=(ALL) NOPASSWD: ALL
- removing user
- ============================
- sudo deluser pi
- semoving user and his folder
- ============================
- sudo deluser -remove-home pi
- sudo adduser user
- sudo deluser -remove-home user
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## Debian Wheezy & GDM3 :: Disable User List
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://forums.debian.net/viewtopic.php?f=6&t=104468
- nano /etc/gdm3/greeter.gsettings
- ################################
- disable-user-list=true
- ################################
- if does not work look here:
- http://sysadminnygoodness.blogspot.fr/2012/03/debian-wheezy-gdm3-disable-user-list.html
- http://unix.stackexchange.com/questions/38789/how-can-i-disable-the-user-list-login-screen-in-gnome-3-on-fedora-16-or-17
- http://sysadminnygoodness.blogspot.co.uk/2012/03/debian-wheezy-gdm3-disable-user-list.html
- sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## GNOME reset
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.linuxjournal.com/content/resetting-gnomes-settings-ubuntu
- http://askubuntu.com/questions/56313/how-do-i-reset-gnome-to-the-defaults
- rm -rf .gnome .gnome2 .gconf .gconfd .metacity
- --------------------------------------------------------------------------------------------------------------------
- ## Gnome Classic as a default Desktop
- --------------------------------------------------------------------------------------------------------------------
- http://www.linuxquestions.org/questions/debian-26/gnome-classic-as-a-default-desktop-928199/
- sudo update-alternatives --config x-session-manager
- and choose option 2
- Selection Path Priority Status
- ------------------------------------------------------------
- 0 /usr/bin/gnome-session 50 auto mode
- 1 /usr/bin/gnome-session 50 manual mode
- * 2 /usr/bin/gnome-session-fallback 40 manual mode
- --------------------------------------------------------------------------------------------------------------------
- ## No GDM3 on boot (autostart disabled)
- --------------------------------------------------------------------------------------------------------------------
- http://www.debianuserforums.org/viewtopic.php?f=7&t=2302
- update-rc.d gdm3 disable
- --------------------------------------------------------------------------------------------------------------------
- ## Top Panel Properties etc...
- --------------------------------------------------------------------------------------------------------------------
- http://unix.stackexchange.com/questions/77723/lock-to-launcher-pin-to-taskbar-in-debian-wheezy-gnome-was-possible-in-squeeze
- Use the Alt key together with the right-mouse.
- On applications that should give you the possibility to Move/Remove. On the open area of the taskbar in Add to Panel…
- --------------------------------------------------------------------------------------------------------------------
- ## Top Panel Properties etc...
- --------------------------------------------------------------------------------------------------------------------
- http://www.linuxquestions.org/questions/debian-26/how-to-add-panel-in-gnome-debian-wheezy-4175463451/
- I had the same problem for a few days.
- Run "Advanced Settings" (I think this is "gnome-tweak-tool), and click on the "Shell Extensions" section.
- You can then slide any existing extension as "ON".
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # SAMBA config
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo /etc/init.d/samba stop
- sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bakORIGINAL
- sudo nano /etc/samba/smb.conf
- [global]
- ; General server settings
- netbios name = D830
- server string = Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
- workgroup = WORKGROUP
- announce version = 5.0
- socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
- ; interfaces = lo, eth0
- ; bind interfaces only = true
- passdb backend = tdbsam
- security = user
- null passwords = true
- username map = /etc/samba/smbusers
- name resolve order = hosts wins bcast
- wins support = yes
- printing = CUPS
- printcap name = CUPS
- syslog = 1
- syslog only = yes
- ; NOTE: If you need access to the user home directories uncomment the
- ; lines below and adjust the settings to your hearts content.
- ;[homes]
- ;valid users = %S
- ;create mode = 0600
- ;directory mode = 0755
- ;browseable = no
- ;read only = no
- ;veto files = /*.{*}/.*/mail/bin/
- ; NOTE: Only needed if you run samba as a primary domain controller.
- ; Not needed as this config doesn't cover that matter.
- ;[netlogon]
- ;path = /var/lib/samba/netlogon
- ;admin users = Administrator
- ;valid users = %U
- ;read only = no
- ; NOTE: Again - only needed if you're running a primary domain controller.
- ;[Profiles]
- ;path = /var/lib/samba/profiles
- ;valid users = %U
- ;create mode = 0600
- ;directory mode = 0700
- ;writeable = yespython-smbpasswd
- ;browseable = no
- ; NOTE: Inside this place you may build a printer driver repository for
- ; Windows - I'll cover this topic in another HOWTO.
- [print$]
- path = /var/lib/samba/printers
- browseable = yes
- guest ok = yes
- read only = yes
- write list = root
- create mask = 0664
- directory mask = 0775
- [printers]
- path = /tmp
- printable = yes
- guest ok = yes
- browseable = no
- ; Uncomment if you need to share your CD-/DVD-ROM Drive
- [DVD-ROM Drive]
- path = /media/cdrom
- browseable = yes
- read only = yes
- guest ok = yes
- [MyFiles]
- path = /media/samba/
- browseable = yes
- read only = no
- guest ok = no
- create mask = 0644
- directory mask = 0755
- force user = user
- force group = user
- [Share]
- comment = Share
- path = /share
- browseable = yes
- writeable = yes
- guest ok = no
- read only = no
- create mask = 0644
- directory mask = 0755
- force user = admin
- force group = admin
- sudo mkdir /share
- sudo chmod 0777 /share
- sudo mkdir /media/samba/
- sudo chmod 0777 /media/samba/
- sudo /etc/init.d/samba start
- sudo /etc/init.d/samba restart
- To add LatitudeD830
- ------------------------
- sudo useradd -s /bin/true admin
- sudo smbpasswd -L -a admin
- sudo smbpasswd -L -e admin
- To add LatitudeD410
- ------------------------
- sudo useradd -s /bin/true user
- sudo smbpasswd -L -a user
- sudo smbpasswd -L -e user
- smb://user@40.30.20.10/user
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # CIFS - Common Internet File System with NAS
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo apt-get install cifs-utils
- sudo mkdir /mnt/LS-WSXL/
- sudo mkdir /mnt/LS-WSXL/usbdisk1/
- sudo chmod 755 /mnt/LS-WSXL/usbdisk1/
- sudo mount -t cifs //192.168.0.1/usbdisk1/ /mnt/LS-WSXL/usbdisk1/ -o username=Workgroup/pi,password='raspberrypi'
- or
- sudo mount -t cifs //192.168.0.1/usbdisk1/ /mnt/LS-WSXL/usbdisk1/ -o credentials=/securedir/nas
- SECURE DIR
- sudo mkdir /securedir
- sudo chmod 0700 /securedir
- sudo chown root /securedir
- sudo nano /securedir/nas
- ########################
- username=Workgroup/pi
- password=raspberrypi
- DOES nOT WORK!
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # NFS - Network File System
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://docs.oracle.com/cd/E23824_01/html/821-1454/rfsrefer-45.html
- http://v1chak.blogspot.co.uk/2013/03/raspbianraspbmc-how-to-mount-nfs.html
- http://buffalo.nas-central.org/wiki/NFS_for_Beginners
- http://www.michaelwood.me.uk/blag/2011/09/16/inhibit/
- sudo mkdir /mnt/LS-WSXL/
- sudo mkdir /mnt/LS-WSXL/usbdisk1/
- nano /etc/fstab
- ###############
- 192.168.0.1:/volume1/video /mnt/video nfs nouser,atime,auto,rw,dev,exec,suid 0 0
- ###############
- sudo mount -a
- Mini LS-WSX1.0TL and Debian Wheezy
- 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
- but without a sucess :(
- Now I am a complete newbie to Debian so I would appretiate
- 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)
- Which of those methods is the best to access my NAS?
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # SFTP
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sftp user@domain_or_IP
- Chroot SFTP
- http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Configure MiniDLNA
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo cp /etc/minidlna.conf /etc/minidlna.conf.bakORIGINAL
- sudo nano /etc/minidlna.conf
- # Change db_dir so that the database is saved across reboots
- db_dir=/home/pi/.minidlna
- # Name that the DLNA server presents to clients.
- friendly_name=D830
- # Serial number the server reports to clients.
- # A
- serial=12345678
- media_dir=/share
- #Rebuild database!!!!!!
- sudo minidlna -R
- or
- sudo minidlna -R
- sudo service minidlna restart
- sudo service minidlna start
- sudo service minidlna force-reload
- sudo update-rc.d minidlna defaults
- http://192.168.0.2:8200/
- --------------------------------------------------------------------------------------------------------------------
- ## Mounting ISO image
- --------------------------------------------------------------------------------------------------------------------
- http://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html
- sudo mkdir -p /mnt/disk
- sudo mount -o loop disk1.iso /mnt/disk
- sudo mount -t iso9660 -o loop disk1.iso /mnt/disk
- sudo umount /mnt/disk
- sudo rmdir /mnt/disk
- $>modprobe loop
- $>mount -t iso9660 -o loop disk1.iso /mnt/disk
- mkdir -p /media/ISO
- mount -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.way.of.the.dragon/VIDEO_TS.iso /media/ISO
- sudo mkdir -p /mnt/iso
- sudo mount -o loop /share/tails-i386-0.20.iso /mnt/iso
- sudo mount -t iso9660 -o loop /share/tails-i386-0.20.iso /mnt/iso
- sudo umount /mnt/iso
- sudo rmdir /mnt/iso
- sudo mount -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.the.man.the.legend.iso /mnt/iso
- sudo mount -t iso9660 -o loop /media/3TB/ISO.Bruce.Lee.The.Ultimate.Collection.10xDVD5/bruce.lee.the.man.the.legend.iso /mnt/iso
- sudo umount /mnt/iso
- --------------------------------------------------------------------------------------------------------------------
- ## Multimedia
- --------------------------------------------------------------------------------------------------------------------
- sudo nano /etc/apt/sources.list
- ## Multimedia for wheezy (stable) amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc and sparc packages
- deb http://www.deb-multimedia.org wheezy main non-free
- sudo apt-get update
- sudo apt-get install deb-multimedia-keyring
- sudo apt-get upgrade
- --------------------------------------------------------------------------------------------------------------------
- ## Multimedia & dvd::rip
- --------------------------------------------------------------------------------------------------------------------
- http://www.exit1.org/dvdrip/doc/install.cipp
- sudo apt-get install dvdrip
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## get_iplayer
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://ftp.uk.debian.org/debian/pool/main/g/get-iplayer/
- cd /share
- wget http://ftp.uk.debian.org/debian/pool/main/g/get-iplayer/get-iplayer_2.83-1_all.deb
- sudo dpkg -i get-iplayer_2.83-1_all.deb
- sudo apt-get -f install
- sudo apt-get install atomicparsley ffmpeg
- VIDEO
- -----
- http://www.bbc.co.uk/iplayer/episode/b00gbchl/The_Ladykillers/
- get_iplayer --info --fields=pid b00gbchl
- get_iplayer --pid b00gbchl --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
- AUDIO
- -----
- http://www.bbc.co.uk/iplayer/episode/b00db35n/4_at_the_Store_Series_2_Episode_3/
- get_iplayer --info --type=radio --fields=pid b00db35n
- -m4a
- get_iplayer --pid=b01ptghz --multimode --modes=flashaudio,flashhigh,flashaacstd --force --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
- -flv
- get_iplayer --pid=b01ptghz --multimode --modes=flashaudio,flashhigh,flashaacstd --force --raw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
- -mp3
- get_iplayer --pid=b00db35n --multimode --modes=flashaudio,flashhigh,flashaacstd --force --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
- get_iplayer --pid=b00db35n --modes=best --force --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/pi/share
- get_iplayer --get --type=radio --pid=b01ptghz --aactomp3 --id3v2 --metadata=generic --thumb --thumbsize=6 --info --long
- http://www.bbc.co.uk/iplayer/episode/b037y0zf/hd/Horizon_20122013_Whats_Killing_Our_Bees_A_Horizon_Special/
- get_iplayer --info --fields=pid b037y0zf
- get_iplayer --pid b037y0zf --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/home/marcel/Videos
- get_iplayer --pid b037y0zf --modes=best --force --subtitles --subsraw --metadata=generic --thumb --thumbsize=6 --info --long --output=/media/2TBgreen/get_iPlayer
- --------------------------------------------------------------------------------------------------------------------
- ## Installation de HandBrake sur Debian Wheezy
- --------------------------------------------------------------------------------------------------------------------
- http://sourceforge.net/projects/handbrake/files/
- http://slauncha.dyndns.org/index.php?article17/installation-de-handbrake-0-9-9-sur-debian-wheezy
- sudo apt-get install yasm build-essential \
- autoconf libtool zlib1g-dev libbz2-dev libfribidi-dev \
- intltool libglib2.0-dev libdbus-glib-1-dev libgtk2.0-dev \
- libgudev-1.0-dev libwebkit-dev libnotify-dev \
- libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev \
- libass-dev libtheora-dev libvorbis-dev libsamplerate0-dev
- http://handbrake.fr/rotation.php?file=HandBrake-0.9.9.tar.bz2
- -------------------------------------------------------------
- sudo wget http://downloads.sourceforge.net/project/handbrake/0.9.9/HandBrake-0.9.9.tar.bz2
- md5sum HandBrake-0.9.9.tar.bz2
- ee81337a46f8af76599d6038f193a2c1 HandBrake-0.9.9.tar.bz2
- bunzip2 HandBrake-0.9.9.tar.bz2
- tar -xvf HandBrake-0.9.9.tar
- cd HandBrake-0.9.9
- ./configure --launch
- cd ./build && sudo make install
- Alt+F2
- /usr/local/bin/ghb
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # MKVToolNix
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://www.bunkus.org/videotools/mkvtoolnix/downloads.html#debian
- wget -O - http://www.bunkus.org/gpg-pub-moritzbunkus.txt | sudo apt-key add -
- sudo nano /etc/apt/sources.list
- ###############################
- ## MKVToolNix
- deb http://www.bunkus.org/debian/wheezy/ ./
- deb-src http://www.bunkus.org/debian/wheezy/ ./
- ###############################
- apt-get update
- apt-get install mkvtoolnix mkvtoolnix-gui
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # MakeMKV
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.makemkv.com/download/
- http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224
- sudo apt-get install build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev
- cd /share
- wget http://www.makemkv.com/download/makemkv-bin-1.8.4.tar.gz
- tar -xvzf makemkv-bin-1.8.4.tar.gz
- cd makemkv-bin-1.8.4
- make -f makefile.linux
- sudo make -f makefile.linux install
- cd /share
- wget http://www.makemkv.com/download/makemkv-oss-1.8.4.tar.gz
- tar -xvzf makemkv-oss-1.8.4.tar.gz
- cd makemkv-oss-1.8.4
- make -f makefile.linux
- sudo make -f makefile.linux install
- The application will be installed as "/usr/bin/makemkv".
- http://www.makemkv.com/download/ffmpeg/
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.8.0.patch.gz
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.7.7.tbz
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.7.8.tbz
- http://www.makemkv.com/download/ffmpeg/mmffmpeg-src-1.8.0.tar.bz
- NAME THE EPISODES in
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # MediaInfo
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://mediaarea.net/en/MediaInfo/Download/Debian
- wget http://mediaarea.net/download/binary/mediainfo-gui/0.7.64/mediainfo-gui_0.7.64-1_i386.Debian_7.0.deb
- wget http://mediaarea.net/download/binary/mediainfo/0.7.64/mediainfo_0.7.64-1_i386.Debian_7.0.deb
- wget http://mediaarea.net/download/binary/libmediainfo0/0.7.64/libmediainfo0_0.7.64-1_i386.Debian_7.0.deb
- wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0_0.4.29-1_i386.Debian_7.0.deb
- sudo dpkg -i mediainfo-gui_0.7.64-1_i386.Debian_7.0.deb
- sudo dpkg -i mediainfo_0.7.64-1_i386.Debian_7.0.deb
- sudo dpkg -i libmediainfo0_0.7.64-1_i386.Debian_7.0.deb
- sudo dpkg -i libzen0_0.4.29-1_i386.Debian_7.0.deb
- sudo apt-get -f install
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # LaTeX -> TeX Live
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://latex-project.org/ftp.html
- http://okomestudio.net/biboroku/?p=1870
- =======================================
- sudo aptitude install texlive texlive-latex-extra
- sudo aptitude install dvipng
- sudo aptitude install gedit-latex-plugin
- http://bramp.net/blog/2010/02/13/latex-qr-based-business-card/
- ==============================================================
- business card with a QR card:
- http://forthescience.org/blog/2010/02/02/my-business-card-with-qr-code-geeky/
- took a LaTeX template from here:
- http://blog.widmann.org.uk/2009/05/27/1297/
- ===========================================
- http://www.vistaprint.co.uk/
- When we set up our company, we needed some business cards.
- 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”.
- I prefer doing typography in LaTeX, so I just needed to set this up properly.
- I had a few problems with the margins, but with some help from DK-TUG‘s mailing list, I came up with the following:
- \documentclass[11pt,a4paper]{memoir}
- \setstocksize{52mm}{90mm}
- \setpagecc{49mm}{87mm}{*}
- \settypeblocksize{43mm}{81mm}{*}
- \setulmargins{3mm}{*}{*}
- \setlrmargins{3mm}{*}{*}
- \setheadfoot{0.1pt}{0.1pt}
- \setheaderspaces{1pt}{*}{*}
- \checkandfixthelayout[fixed]
- \pagestyle{empty}
- \usepackage{color}
- \begin{document}
- \pagecolor[cmyk]{...}
- ...
- \end{document}
- 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.
- 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.
- http://www.tug.org/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf
- learnt the MECARD format:
- http://www.nttdocomo.co.jp/english/service/developer/make/content/barcode/function/application/addressbook/index.html
- http://www.nttdocomo.co.jp/english/service/developer/make/content/barcode/tool/download/index.html
- http://www.nttdocomo.co.jp/english/binary/archive/service/developer/make/content/barcode/tool/download/qrfactory_v35.zip
- 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
- sudo aptitude install emacs
- TeX and LaTeX
- http://mathsci.appstate.edu/faculty-information/TeX
- Small Business Card with QR Code vCard
- http://mathsci.appstate.edu/sites/mathsci.appstate.edu/files/LaTeX%20QR%20vCard.zip
- http://en.wikipedia.org/wiki/QR_code
- http://en.wikipedia.org/wiki/VCard
- http://mathsci.appstate.edu/sites/mathsci.appstate.edu/files/LaTeX_QR_vCard.pdf
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # NX, NoMachine
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.nomachine.com/download.php
- http://www.nomachine.com/download-package.php?Prod_Id=3773
- wget http://web04.nomachine.com/download/3.5.0/Linux/nxclient_3.5.0-7_i386.deb
- wget http://web04.nomachine.com/download/3.5.0/Linux/nxnode_3.5.0-9_i386.deb
- wget http://web04.nomachine.com/download/3.5.0/Linux/FE/nxserver_3.5.0-11_i386.deb
- sudo dpkg -i nxclient_3.5.0-7_i386.deb
- chmod 755 /usr/lib/cups/backend/ipp
- sudo dpkg -i nxnode_3.5.0-9_i386.deb
- /usr/NX/scripts/setup/nxnode --nxprintsetup <pathname>
- sudo dpkg -i nxserver_3.5.0-11_i386.deb
- --------------------------------------------------------------------------------------------------------------------
- # Off-the-Record Messaging
- --------------------------------------------------------------------------------------------------------------------
- https://en.wikipedia.org/wiki/Off-the-Record_Messaging
- https://download.jitsi.org/jitsi/debian/
- --------------------------------------------------------------------------------------------------------------------
- ## Skype
- --------------------------------------------------------------------------------------------------------------------
- http://www.skype.com/en/download-skype/skype-for-linux/
- http://www.skype.com/go/getskype-linux-deb-32
- wget http://download.skype.com/linux/skype-debian_4.2.0.11-1_i386.deb
- dpkg -i skype-debian_4.2.0.11-1_i386.deb
- sudo apt-get install -f
- --------------------------------------------------------------------------------------------------------------------
- ## DROPBOX
- --------------------------------------------------------------------------------------------------------------------
- https://www.dropbox.com/install?os=lnx
- Install Dropbox via command line
- The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.
- 32-bit:
- cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
- 64-bit:
- cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
- Next, run the Dropbox daemon from the newly created .dropbox-dist folder.
- ~/.dropbox-dist/dropboxd
- 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
- a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory.
- Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.
- https://www.dropbox.com/download?dl=packages/dropbox.py
- wget https://www.dropbox.com/download?dl=packages/debian/dropbox_1.6.0_i386.deb
- dpkg -i dropbox_1.6.0_i386.deb
- cat /etc/apt/sources.list
- sudo nano /etc/apt/sources.list
- ################################################
- ## Dropbox
- deb http://linux.dropbox.com/debian wheezy main
- ################################################
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Lighttpd
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ##############################################################################################################################################
- CLEAN INSTALL ################################################################################################################################
- ##############################################################################################################################################
- # Lighttpd with mod_h264 streaming (mp4)
- # http://www.gnutoolbox.com/lighttpd-modh264-streaming-mp4/
- # http://redmine.lighttpd.net/projects/lighttpd/wiki/GetLighttpd
- or
- # https://wiki.ubuntu.com/Lighttpd%2BPHP
- or
- # http://www.penguintutor.com/linux/light-webserver
- # with Suhosin-Patch Server
- # http://www.hardened-php.net/suhosin/why.html
- sudo apt-get install lighttpd lighttpd-doc php5-common php5-cgi php5
- # To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command
- sudo lighty-enable-mod fastcgi-php
- sudo lighty-enable-mod cgi
- # Enable
- sudo lighttpd-enable-mod fastcgi fastcgi-php
- # Enable http://redmine.lighttpd.net/projects/1/wiki/Docs_ModUserDir
- sudo lighty-enable-mod userdir
- # Check
- ps -u www-data u
- # Check what groups and IDs are associated with current user
- groups
- id
- # WEB PAGES
- sudo nano /var/www/t.php
- ###########################
- <?php
- print <<< EOT
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Test successful</title>
- </head>
- <body>
- <h1>Test successful</h1>
- <p>Congratulations.</p>
- <p>Apache and PHP are working.</p>
- </body>
- </html>
- EOT;
- ?>
- ###########################
- # WEB PAGES
- sudo nano /var/www/phpinfo1.php
- ###########################
- <? phpinfo() ?>
- ###########################
- # PHP Info
- echo '<?php phpinfo(); ?>' | sudo tee /var/www/phpinfo2.php
- or
- # WEB PAGES
- sudo nano /var/www/phpinfo2.php
- ##############################
- <?php phpinfo(); ?>
- ##############################
- # WEB PAGES
- sudo nano /var/www/t.txt
- ###########################
- TEST - test - TEST - t.txt
- ###########################
- # View access.log in webpage
- sudo mkdir /var/www/log
- sudo nano /var/www/log/index.php
- ############################################
- <html><head><title>access.log</title></head>
- <body>
- <?php
- $file = "/var/log/lighttpd/access.log";
- echo "$file<hr />";
- ?>
- <pre>
- <?php
- $f = fopen($file, "r");
- while ( $line = fgets($f, 1000) ) {
- print $line;
- }
- ?>
- </pre>
- </body>
- </html>
- ############################################
- sudo cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bakORIGINAL
- sudo nano /etc/lighttpd/lighttpd.conf
- ## add below to config file :) to accesslog and enable php???
- ========================================================================================
- # to change default port 80 to 81
- server.port = 22222
- server.modules = (
- "mod_accesslog",
- "mod_fastcgi",
- '
- # Log access :)
- accesslog.filename = "/var/log/lighttpd/access.log"
- ## http://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting#dir-listingactivate
- ## Enable Directory listings :))) for all DIR with no INDEX file present
- dir-listing.activate = "enable"
- ## http://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting#dir-listingactivate
- ## If you need it only for a directory, use conditionals:
- $HTTP["url"] =~ "^/download($|/)" {
- dir-listing.activate = "enable"
- }
- DOES NOT WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- # password protected access
- # http://www.cyberciti.biz/tips/lighttpd-setup-a-password-protected-directory-directories.html
- server.modules += ( "mod_auth" )
- auth.debug = 2
- auth.backend = "plain"
- auth.backend.plain.userfile = "/etc/lighttpd/lighttpdpassword"
- sudo nano /etc/lighttpd/lighttpdpassword
- marcel:mysecretepassword test:test
- sudo chown lighttpd:lighttpd /etc/lighttpd/.lighttpdpassword //DOES NOT WORK chown: invalid user: `lighttpd:lighttpd'
- sudo chown www-data:www-data /etc/lighttpd/.lighttpdpassword
- sudo chown lighttpd:lighttpd /etc/lighttpd/.lighttpdpassword
- sudo chown -R www-data:www-data /etc/lighttpd/.lighttpdpassword
- sudo chown -R www-data:www-data /etc/lighttpd/lighttpdpassword
- sudo /etc/init.d/lighttpd restart
- # sudo nano /etc/lighttpd/lighttpd.conf
- #######################################
- auth.require = ( "/log/" =>
- (
- "method" => "basic",
- "realm" => "Password protected area",
- "require" => "valid-user"
- )
- )
- }
- #######################################
- valid-user
- "user=user|user=test"
- DOES NOT WORK
- secure digest authentication(mod_auth) DOES NOT WORK
- ======================================
- sudo apt-get install htdigest
- sudo htdigest -c /etc/lighttpd/.lighttpdpasswd \91Authorized users only\92 marcel
- auth.require = ( "/log/" =>
- (
- "method" => "digest",
- "realm" => "Authorized users only",
- "require" => "valid-user"
- )
- )
- ### Then reload the server using
- sudo service lighttpd force-reload
- ### To checck the config is OK
- sudo lighttpd -t -f lighttpd.conf
- sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf
- ### Restart
- sudo /etc/init.d/lighttpd restart
- # Log rotation
- # http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html
- sudo nano /etc/logrotate.d/lighttpd
- ###################################
- yearly
- ###################################
- # LOGS
- sudo cat /var/log/lighttpd/error.log
- sudo cat /var/log/lighttpd/access.log
- # SYMLINK to SHARE directory from WWW/share
- CREATE
- sudo ln -s /share/ /var/www/share
- CHECK
- sudo ls -ld /var/www/share
- NOT TESTED!
- To reduce the memory usage even further:
- sudo nano /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
- ########################################################
- "PHP_FCGI_CHILDREN" => "4",
- change to:
- "PHP_FCGI_CHILDREN" => "0",
- and
- "PHP_FCGI_MAX_REQUESTS" => "100000"
- change to:
- "PHP_FCGI_MAX_REQUESTS" => "100"
- ########################################################
- IN INSTALL
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Webalizer
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=22519
- sudo apt-get install webalizer geoip-database
- sudo cp /etc/webalizer/webalizer.conf /etc/webalizer/webalizer.conf.bakORIGINAL
- sudo nano /etc/webalizer/webalizer.conf
- #######################################
- #LogFile /var/log/apache/access.log.1
- LogFile /var/log/lighttpd/access.log
- OutputDir /var/www/webalizer
- HistoryName webalizer.hist
- Incremental yes
- GeoIP yes
- GeoIPDatabase /usr/share/GeoIP/GeoIP.dat
- CountryGraph yes
- CountryFlags yes
- FlagDir flags
- DailyGraph yes
- DailyStats yes
- HourlyGraph yes
- HourlyStats yes
- GraphLegend yes
- IgnoreSite 192.168.0.*
- IgnoreSite XXX.XXX.XXX.XXX
- #######################################
- sudo wget -P /var/www/webalizer ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz
- cd /var/www/webalizer
- sudo tar xvzf /var/www/webalizer/webalizer-flags.tgz
- http://flags.blogpotato.de/
- http://flags.blogpotato.de/zip/small/world.zip
- http://flags.blogpotato.de/zip/large/world.zip
- http://flags.blogpotato.de/zip/marker/world.zip
- http://flags.blogpotato.de/zip/maxmind/world.zip
- sudo webalizer /var/log/lighttpd/access.log
- or
- sudo webalizer -c /etc/webalizer/webalizer.conf
- http://192.168.0.XX/webalizer
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Tor Project
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Download and install software to access the Tor Project: https://www.torproject.org.
- cd /share
- for Linux
- https://www.torproject.org/dist/torbrowser/linux/
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-8-dev-en-US.tar.gz
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-8-dev-en-US.tar.gz.asc
- cd /share
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz.asc
- gpg --keyserver hkp://keys.gnupg.net --recv-keys 0x63FEE659
- gpg --fingerprint 0x63FEE659
- 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
- tar -xvzf tor-browser-gnu-linux-i686-2.3.25-10-dev-en-US.tar.gz
- cd tor-browser_en-US
- ./start-tor-browser
- (NOT AS ROOT!!!!!!!!!!)
- or will install Tor server nebo neco takoveho # https://www.torproject.org/docs/debian.html.en
- apt-get install tor
- https://www.torproject.org/download/download-easy.html.en#warning
- https://www.torproject.org/download/download.html.en
- Android
- https://www.torproject.org/docs/android.html.en
- cd /home/user/Downloads
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-12-dev-en-US.tar.gz
- wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-i686-2.3.25-12-dev-en-US.tar.gz.asc
- DOES NOT WORK!!
- --------------------------------------------------------------------------------------------------------------------
- ## VPN and IPsec
- --------------------------------------------------------------------------------------------------------------------
- https://code.google.com/p/vpnpptp/
- http://strongvpn.com/forum/viewtopic.php?pid=1844/
- 1.
- apt-get -y install openswan xl2tpd
- or
- for the RPi
- apt-get install openswan xl2tpd ppp lsof
- or
- apt-get install l2tp-ipsec-vpn-daemon
- 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 │
- │ 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 │
- │ tunnel) for authenticating a connection, but for a larger number of connections, key based authentication is easier to administer and more secure. │
- │ │
- │ Alternatively you can reject this option and later use the command "dpkg-reconfigure openswan" to come back. │
- │ │
- │ Use an X.509 certificate for this host?
- Configuring openswan:
- 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 │
- │ 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 │
- │ tunnel) for authenticating a connection, but for a larger number of connections, key based authentication is easier to administer and more secure. │
- │ │
- │ Alternatively you can reject this option and later use the command "dpkg-reconfigure openswan" to come back. │
- │ │
- │ Use an X.509 certificate for this host?
- dpkg-reconfigure openswan
- 2.
- sudo mv /etc/ipsec.conf /etc/ipsec.conf.bakORIGINAL
- nano /etc/ipsec.conf
- config setup
- virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
- nat_traversal=yes
- protostack=netkey
- oe=no
- # Replace wlan0 with your network interface
- plutoopts="--interface=eth0"
- conn L2TP-PSK
- authby=secret
- pfs=no
- auto=add
- keyingtries=3
- dpddelay=30
- dpdtimeout=120
- dpdaction=clear
- rekey=yes
- ikelifetime=8h
- keylife=1h
- type=transport
- # Replace IP address with your local IP
- left=192.168.0.XXX
- leftnexthop=%defaultroute
- leftprotoport=17/1701
- # Replace IP address with your VPN server's IP
- right=180.199.224.130
- rightprotoport=17/1701
- 3.
- nano /etc/ipsec.secrets
- 172.16.17.3 68.68.32.79 : PSK "your_pre_shared_key"
- 192.168.0.X 180.199.224.130 : PSK "vpn"
- 4.
- sudo mv /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/xl2tpd.conf.bakORIGINAL
- nano /etc/xl2tpd/xl2tpd.conf
- [lac mosrois.opengw.net]
- lns = 180.199.224.130
- ppp debug = yes
- pppoptfile = /etc/ppp/options.l2tpd.client
- length bit = yes
- 5.
- nano /etc/ppp/options.l2tpd.client
- ipcp-accept-local
- ipcp-accept-remote
- refuse-eap
- require-mschap-v2
- noccp
- noauth
- idle 1800
- mtu 1410
- mru 1410
- defaultroute
- replacedefaultroute
- usepeerdns
- debug
- lock
- connect-delay 5000
- name vpn
- password vpn
- 6.
- ip ro ad 192.168.1.X via 180.199.224.130
- 7.
- invoke-rc.d ipsec restart
- invoke-rc.d xl2tpd restart
- 8.
- sudo ipsec verify
- 9.
- Startup sequence:
- ipsec auto --up L2TP-PSK
- echo "c vpn-sf14" > /var/run/xl2tpd/l2tp-control
- Shutdown sequence:
- echo "d vpn-sf14" > /var/run/xl2tpd/l2tp-control
- ipsec auto --down L2TP-PSK
- Note that 'vpn-sf14' and 'L2TP-PSK' are identifiers used in appropriate config files.
- If you wish to start VPN with the system boot, you will need to place startup commands in /etc/rc.local
- Following versions were used:
- kernel 2.6.32-5
- openswan 1:2.6.28+dfsg-1
- xl2tpd 1.2.7+dfsg-1
- DOES NOT WORK!!!!!!
- apt-get install pptpd
- Gnome Network Manager VPN Tab Disabled ( Greyed out )
- http://www.cyberciti.biz/faq/deiban-ubuntu-linux-networkmanager-pptp-cisco-vpn-tab-disabled/
- # network management framework OpenVPN plugin GNOME GUI
- apt-get install network-manager-openvpn network-manager-openvpn-gnome
- # network management framework PPTP plugin GNOME GUI
- apt-get install network-manager-pptp network-manager-pptp-gnome
- # network management framework strongSwan ipsec vpn plugin
- apt-get install network-manager-strongswan
- # network management framework (VPNC plugin GNOME GUI)
- apt-get install network-manager-vpnc network-manager-vpnc-gnome
- # Odebere IPsec a naainstaluje OpenVPN aaa a zrusi IPsec
- apt-get install l2tp-ipsec-vpn
- # restart NetworkManager
- /etc/init.d/network-manager restart
- OpenVPN settings
- # network management framework OpenVPN plugin GNOME GUI
- apt-get install network-manager-openvpn network-manager-openvpn-gnome
- apt-get -f install
- http://www.vpngate.net/en/
- OpenVPN @ Wheezy
- https://integrityvpn.com/guides/openvpn/linux
- 1. Open Applications -> System Tools -> Add/Remove Software and search for “Network-manager”.
- 2. Click on “More info” in the result found (network-manager-gnome).
- 3. Tick the box “OpenVPN plugin GNOME GUI” and then “Apply”.
- 4. Download the configuration files at https://integrityvpn.com/openvpn/integrity.zip and unzip somewhere you will find them.
- 5. Open network manager by right clicking on the Network icon in the top right corner of your screen.
- 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.
- 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.
- 8. Open Network Manager again, and choose VPN-Connections -> Integrity. When it prompts you for a password, enter your IntegrityVPN user password.
- 9. You are now using your secure IntegrityVPN connection!
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # iptables shorewall
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=12014
- http://andrum99.blogspot.co.uk/2012/10/putting-your-raspberry-pi-on-internet.html
- http://www.nano-editor.org/dist/v2.2/nano.html
- http://wowtutorial.org/tutorial/16.html
- /sbin/shorewall status
- /sbin/shorewall stop
- /sbin/shorewall start
- /sbin/shorewall restart
- list
- sudo iptables -L
- sudo ip6tables -L
- sudo iptables -F
- ip rule show
- flush
- iptables -L -v
- iptables -F
- iptables -X
- iptables -t nat -F
- iptables -t nat -X
- iptables -t mangle -F
- iptables -t mangle -X
- 1. INSTALL
- apt-get update
- apt-get install shorewall shorewall-doc
- 2. START-UP ON BOOR
- nano /etc/default/shorewall
- startup=1
- 3. COPY PROFILES
- cp -r /usr/share/doc/shorewall/examples/Universal /etc/shorewall
- or Latitude D830 (Debian 7) Wheezy
- cp -r /usr/share/doc/shorewall/examples/one-interface /etc/shorewall
- and choose:
- nano /etc/shorewall/zones
- nano /etc/shorewall/interfaces
- nano /etc/shorewall/blacklist
- nano /etc/shorewall/policy
- nano /etc/shorewall/rules
- 4. CONFIGURE ZONES ============ DONE
- http://www.shorewall.net/manpages/shorewall-zones.html
- nano /etc/shorewall/zones
- # /etc/shorewall/zones CONFIG
- ###################################################################
- #ZONE TYPE OPTIONS IN OPTIONS OUT OPTIONS
- fw firewall
- net ipv4
- dmz ipv4
- loc ipv4
- 5. CONFIGURE INTERFACES ========== DONE
- http://www.shorewall.net/manpages/shorewall-interfaces.html
- http://www.shorewall.net/manpages/shorewall-blacklist.html
- nano /etc/shorewall/interfaces
- # /etc/shorewall/interfaces - CONFIG
- ###############################################
- #ZONE INTERFACE BROADCAST OPTIONS
- net eth0 detect dhcp,routefilter,logmartians,nosmurfs,tcpflags,blacklist
- dmz eth1 detect dhcp
- loc eth2 detect dhcp
- net wlan0 detect dhcp,routefilter,logmartians,nosmurfs,tcpflags,blacklist
- dmz wlan1 detect dhcp
- loc wlan2 detect dhcp
- 6. BLACKLIST
- nano /etc/shorewall/blacklist
- ############################################
- #ADDRESS/SUBNET PROTOCOL PORT
- - udp 1024:1033,1434
- - tcp 57,1433,1434,2401,2745,3127,3306,3410,4899,5554,6101,8081,9898
- 7. CONFIGURE POLICY ================== DONE
- http://www.shorewall.net/manpages/shorewall-policy.html
- http://wiki.debian.org/HowTo/shorewall
- nano /etc/shorewall/policy
- # add few lines below into policy files - CONFIG
- ###########################################
- #SOURCE DEST POLICY LOG BURST:LIMIT
- # LEVEL
- net all DROP info
- dmz all REJECT info
- loc all REJECT info
- fw net ACCEPT info
- fw loc ACCEPT info
- # THE FOLLOWING POLICY MUST BE LAST
- all all REJECT info
- 8. CONFIGURE RULES - Creating Rules (where you will spend most your time in the future!)
- http://www.shorewall.net/manpages/shorewall-rules.html
- http://wiki.debian.org/HowTo/shorewall
- nano /etc/shorewall/rules
- or
- nano -w /etc/shorewall/rules
- or
- nano --nowrap /etc/shorewall/rules
- # add few lines below into rules file - CONFIG
- ############################################################################################################
- #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE
- # PORT PORT(S) DEST LIMIT
- SSH(ACCEPT) net all - - - - s:1/min:3
- ACCEPT loc net tcp 80,443
- ACCEPT loc fw udp 53
- ACCEPT all dmz tcp 80
- ACCEPT net fw icmp 8
- ACCEPT fw net icmp
- ACCEPT net fw tcp ssh,www,https,smtp,pop3,pop3s,imap2,imaps,submission
- ACCEPT net fw udp https
- # ACCEPT net:10.1.1.1 fw tcp ssh
- #SSH(ACCEPT) net:192.168.1.0/24 $FW
- # ACCEPT SSH from 192.168.1.0/24 range on port 22222 FUNGUJE
- ACCEPT net:192.168.1.0/24 $FW tcp 29
- 8b. SMABA
- http://www.shorewall.net/samba.htm
- cp /usr/share/shorewall/action.Drop /etc/shorewall
- cp /usr/share/shorewall/action.Reject /etc/shorewall
- nano /etc/shorewall/action.Drop
- nano /etc/shorewall/action.Reject
- shorewall restart
- 9. CHECK THE CONFIG
- shorewall check
- shorewall show capabilities
- shorewall show policies
- shorewall show zones
- 10. START THE FIREWALL
- sudo /etc/init.d/shorewall start
- sudo /etc/init.d/shorewall restart
- sudo /etc/init.d/shorewall stop
- /sbin/shorewall status
- 11. CHECK THE LOG
- nano -v /var/log/shorewall-init.log
- or
- cat /var/log/shorewall-init.log
- 12. CHECK THE LOG Live
- tail -f /var/log/messages
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # FAIL 2 BAN
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.fail2ban.org/wiki/index.php/MANUAL_0_8
- sudo apt-get install fail2ban
- /etc/fail2ban/
- ├── action.d
- │ ├── dummy.conf
- │ ├── hostsdeny.conf
- │ ├── iptables.conf
- │ ├── mail-whois.conf
- │ ├── mail.conf
- │ └── shorewall.conf
- ├── fail2ban.conf
- ├── fail2ban.local
- ├── filter.d
- │ ├── apache-auth.conf
- │ ├── apache-noscript.conf
- │ ├── couriersmtp.conf
- │ ├── postfix.conf
- │ ├── proftpd.conf
- │ ├── qmail.conf
- │ ├── sasl.conf
- │ ├── sshd.conf
- │ └── vsftpd.conf
- ├── jail.conf
- └── jail.local
- chkconfig -a fail2ban
- DEFAULT CONFIG
- sudo nano /etc/fail2ban
- MY OWN CONFIG
- sudo nano /etc/fail2ban/jail.local
- lastlog
- nano -v /var/log/sshd.log
- nano -v /etc/syslog.conf
- nano -v /var/log/secure
- http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&sektion=5
- http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
- http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
- http://en.wikipedia.org/wiki/Liar_paradox
- nano /etc/ssh/sshd_config
- nmap -p- IP -all ports scann
- nano -v /var/log/dpkg.log
- apt-key fingerprint
- --------------------------------------------------------------------------------------------------------------------
- ## Google Chrome + plugins
- --------------------------------------------------------------------------------------------------------------------
- https://www.google.com/intl/en_uk/chrome/browser/
- https://www.google.com/intl/en_uk/chrome/browser/thankyou.html
- apt-get install google-chrome-stable
- or
- cd /share
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
- sudo dpkg -i google-chrome-stable_current_i386.deb
- apt-get -f install
- sudo apt-get remove google-chrome-stable
- uname -a; cat /etc/debian_version; dpkg -l | grep base-files
- cat /etc/debian_version
- uname -s -r -v -o
- HTTPS Everywhere (plugin) encrypts your communications with many major websites, making your browsing more secure.
- ==================================================================================================================
- https://chrome.google.com/webstore/detail/https-everywhere/gcbommkclmclpchllfjekcdonpmejbdp
- A Little Privacy – Prevents passing referrer to third parties, removes redirect trackers, resolves short URLs, and more.
- =======================================================================================================================
- https://chrome.google.com/webstore/detail/a-little-privacy/kjhmfidomefgpbbebodnbakelpabilga
- NotScripts
- ==========
- https://chrome.google.com/webstore/detail/odjhifogjcknibkahlpidmdajjpkkcfn
- NotScripts | Options
- ====================
- chrome-extension://odjhifogjcknibkahlpidmdajjpkkcfn/options.html
- sudo nano ~/.config/google-chrome/Default/Extensions/odjhifogjcknibkahlpidmdajjpkkcfn
- sudo nano /home/user/.config/google-chrome/Default/Extensions/odjhifogjcknibkahlpidmdajjpkkcfn/0.9.6_0/CHANGE__PASSWORD__HERE.js
- Choose a password for NotScripts with the following restrictions:
- Length: 20 minimum, 100 maximum
- Allowed Characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_1234567890
- Spaces: Allowed
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## SeaMonkey Download & Releases
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.seamonkey-project.org/releases/
- ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/2.20/linux-i686/en-GB/
- Windows 7
- Users\<UserName>\AppData\Roaming\Mozilla\SeaMonkey
- Windows XP
- Documents and Settings\<UserName>\Application Data\Mozilla\SeaMonkey
- Linux
- ~/.mozilla/seamonkey
- 1. ROOT!!!!!
- ===================================================================================
- mkdir /usr/local/seamonkey2
- cd /usr/local/seamonkey2
- or
- cd /usr/local/
- wget http://download.cdn.mozilla.net/pub/mozilla.org/seamonkey/releases/2.19/linux-i686/en-GB/seamonkey-2.19.tar.bz2
- tar jxvf seamonkey-2.19.tar.bz2
- wget http://download.cdn.mozilla.net/pub/mozilla.org/seamonkey/releases/2.20/linux-i686/en-GB/seamonkey-2.20.tar.bz2
- tar jxvf seamonkey-2.20.tar.bz2
- 2. Custom Aplication Launcher (Alt + Right Click)
- ===================================================================================
- Launch Properties
- Type: Aplication
- Name: SeaMonkey
- Command: /usr/local/seamonkey2/seamonkey/seamonkey
- Comment: Web-browser, advanced e-mail, newsgroup and feed client, IRC chat, and HTML editing made simple—all your Internet needs in one application.
- Icon: /usr/local/seamonkey/chrome/icons/default48.png
- 3. COPY profiles.ini
- ===================================================================================
- cd /home/user/.mozilla/seamonkey
- copy from *.zip//Mozilla/SeaMonkey/profile.ini into /home/user/.mozilla/seamonkey/
- edit and delete Profiles/Xxxxxxxxx.default to Xxxxxxx.default in Path field
- nano /home/user/.mozilla/seamonkey/profiles.ini
- #################################################
- [General]
- StartWithLastProfile=1
- [Profile0]
- Name=Default User
- IsRelative=1
- Path=Xxxxxxxxxx.default
- Default=1
- 4. COPY Xxxxxxxxx.default
- ===================================================================================
- cd /home/user/.mozilla/seamonkey
- copy from *.zip//Mozilla/SeaMonkey/Profiles/Xxxxxxxxxx.default into /home/user/.mozilla/seamonkey/
- can delete IMAP folders :) as they will get downloaded again
- 5. EDIT prefs.js
- ===================================================================================
- http://kb.mozillazine.org/Editing_configuration
- http://kb.mozillazine.org/Prefs.js_file
- about:config
- RENAME Path=name of profile from
- c:\Users\admin\AppData\Roaming\Mozilla\SeaMonkey\Profiles\
- /Documents and Settings/admin/Application Data/Mozilla/SeaMonkey/Profiles/NAME OF TH PROILE
- 6. USER!!!! -manual launching make sure there is NO INTERNET connection, so POP3 server do not pull mail!!!!!!!!
- ===================================================================================
- cd seamonkey
- or
- cd /usr/local/seamonkey2/seamonkey
- ./seamonkey
- Add-ons CTRL + Shift + A
- https://addons.mozilla.org/en-US/seamonkey/
- ========================================================================
- SeaMonkey Modern 2.20
- Adblock Plus 2.1
- DOM Inspector 2.0.14
- Event Spy 0.5
- FireQuery 1.3
- FlashGot 1.5.5.5
- FxIF 0.4.7.1
- Session Manager 0.8.0.8
- User Agent Switcher 0.7.3
- BetterPrivacy 1.67
- Britiash English Dictionary 1.19.1
- ChatZilla 0.9.90.1.
- Download YouTube Videos as MP4 1.6.5
- JavaScrip Debugger 0.9.89
- Live HTTP headers 0.17
- NoScript 2.6.7.1
- ShowIP 2.0
- Display Mail User Agent 1.6.9
- FlagFox
- Enigmail 1.5.2
- https://www.enigmail.net/home/index.php
- https://www.enigmail.net/documentation/enigmail-quickstart.pdf
- # gpg --version
- gpg (GnuPG) 1.4.12
- Copyright (C) 2012 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Home: ~/.gnupg
- Supported algorithms:
- Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
- Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
- CAMELLIA192, CAMELLIA256
- Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
- Compression: Uncompressed, ZIP, ZLIB, BZIP2
- https://www.enigmail.net/documentation/quickstart-ch2.php
- SeaMonkey -mail
- OpenPGP -> Key Management -> Generate -> New Key Pair (NEW WINDOW WILL OPEN)
- OpenPGP Prompt
- Just encrypt/sign the message text, but not the aattachments
- Encrypt/sign each attachment separately and send the message using inline PGP
- Encrypt/sign the message as a whole and sned it using PGP/MIME
- https://www.enigmail.net/documentation/quickstart-ch3.php
- Finding keys
- OpenPGP --> Key Managemen -> Keyserver -> Search for keys
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # VirtualBox 4.2.16 for Linux
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://www.virtualbox.org/wiki/Linux_Downloads
- cd /share
- wget http://download.virtualbox.org/virtualbox/4.2.16/virtualbox-4.2_4.2.16-86992~Debian~wheezy_i386.deb
- wget http://download.virtualbox.org/virtualbox/4.2.16/SHA256SUMS
- sha256sum virtualbox-4.2_4.2.16-86992~Debian~wheezy_i386.deb
- sudo nano /etc/apt/sources.list
- ###############################
- ## Oracle VirtualBox
- deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
- ###############################
- http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
- sudo apt-key add oracle_vbox.asc
- or
- wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install virtualbox-4.2
- Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules
- (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade.
- For Debian it is available in Lenny backports and in the normal repository for Squeeze and later.
- The dkms package can be installed through the Synaptic Package manager or through the following command:
- =======================================================================================================
- sudo apt-get install dkms
- What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?
- ===============================================================================================================================
- # sudo -s -H
- # apt-get clean
- # rm /var/lib/apt/lists/*
- # rm /var/lib/apt/lists/partial/*
- # apt-get clean
- # apt-get update
- Hard Drive file type:
- VDI (VirtualBox Disk Image) ==========
- VMDK (Virtual Machine Disk)
- VHD (Virtual Hard Disk)
- HDD (Paaarallels Hard Disk)
- QED (QEMU enhanced disk)
- QCOW (QEMU Copy-On_Write)
- Storage on physicaal hard drive:
- Dynamically allocated =================
- Fixed size
- Dell_Win_7_Pro_32-Bit
- File locatioin and size: 20GB
- http://download.virtualbox.org/virtualbox/4.2.16/Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack
- File - Preference - Extensions - Add Package - Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack - Install
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Tails
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://tails.boum.org/
- wget http://dl.amnesia.boum.org/tails/stable/tails-i386-0.20/tails-i386-0.20.iso
- wget https://tails.boum.org/torrents/files/tails-i386-0.20.iso.sig
- wget https://tails.boum.org/tails-signing.key
- sudo apt-get update
- sudo apt-get install seahorse-plugins
- https://tails.boum.org/tails-signing.key
- https://tails.boum.org/torrents/files/tails-i386-0.20.iso.sig
- cat tails-signing.key | gpg --keyid-format long --import
- gpg --keyid-format long --verify tails-i386-0.20.iso.sig tails-i386-0.20.iso
- cfea09a901c3f8610f7a566d6984f282cd4b3eaf716c96e78148b8b0eca165a8
- $ sha256sum tails-i386-0.20.iso
- cfea09a901c3f8610f7a566d6984f282cd4b3eaf716c96e78148b8b0eca165a8 tails-i386-0.20.iso
- DOES NOT WORK!!!!!
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Bitmessage is a P2P communications protocol used to send encrypted messages to another person or to many subscribers
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://bitmessage.org/wiki/Main_Page
- https://bitmessage.org/wiki/Compiling_instructions
- http://cryptojunky.com/blog/2013/03/09/setting-up-and-using-bitmessage-an-encrypted-communications-platform-based-on-bitcoin/
- sudo apt-get install python openssl git python-qt4
- git clone https://github.com/Bitmessage/PyBitmessage $HOME/PyBitmessage
- ~/PyBitmessage/src/bitmessagemain.py
- cd PyBitmessage/src/
- python bitmessagemain.py
- .config/PyBitmessage/
- $ ~/PyBitmessage/src/bitmessagemain.py
- Not using the gevent module as it was not found. No need to worry.
- Loading existing config files from /home/user/.config/PyBitmessage/
- 2013-08-24 13:29:21,769 - DEBUG - reloading keys from keys.dat file
- Database file already exists.
- Failure reading namecoin config file: [Errno 2] No such file or directory: '/home/user/.namecoin/namecoin.conf'
- 2013-08-24 13:29:21,779 - DEBUG - reloading subscriptions...
- 2013-08-24 13:29:22,312 - ERROR - Could not find any typelib for MessagingMenu
- bitmessagemain.py: cannot connect to X server
- TO UPGRADE
- cd $HOME/PyBitmessage
- git pull
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Serial Number
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- cat /proc/cpuinfo
- $ cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 6
- model : 15
- model name : Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
- ...................................
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # biosdecode a dmidecode
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- sudo biosdecode
- sudo dmidecode
- $ sudo biosdecode
- # biosdecode 2.11
- SYSID present.
- Revision: 0
- marcel@LatitudeD830:/share$ sudo dmidecode
- # dmidecode 2.11
- SMBIOS 2.4 present.
- 63 structures occupying 2942 bytes.
- Table at 0x000F68B0.
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Bluetooth
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- lsusb | grep -i bluetooth
- Bus 003 Device 002: ID 413c:8140 Dell Computer Corp. Wireless 360 Bluetooth
- sudo /etc/init.d/bluetooth status
- sudo hciconfig set name D830
- sudo hciconfig -a
- sudo hciconfig -a shows
- sudo hcitool dev
- sudo hcitool scan
- sudo hcitool inq
- sudo hcitool info 18:1X:X6:X1:XX:X4
- sudo l2ping -c 1 18:1X:X6:X1:XX:X4
- # http://www.wolfteck.com/projects/raspi/bluetooth-iphone-internet/
- # To set buetooth to ask on pairing :)
- grep KeyboardDisplay /usr/bin/bluez-simple-agent
- sudo perl -i -pe 's/KeyboardDisplay/DisplayYesNo/' /usr/bin/bluez-simple-agent
- grep DisplayYesNo /usr/bin/bluez-simple-agent
- sudo bluez-simple-agent hci0 18:1X:X6:X1:XX:X4
- sudo bluez-test-device trusted 18:1X:X6:X1:XX:X4 yes
- sudo bluez-test-input connect 18:1X:X6:X1:XX:X4
- sudo bluetooth-agent 7472 &
- sudo rfcomm connect hci0 18:1X:X6:X1:XX:X4
- sudo hcitool con
- $ sudo hciconfig -a
- [sudo] password for xxxxxxxx:
- hci0: Type: BR/EDR Bus: USB
- BD Address: 18:1X:X6:X1:XX:X4 ACL MTU: 310:10 SCO MTU: 64:8
- UP RUNNING PSCAN
- RX bytes:1284061 acl:84666 sco:0 events:1102 errors:0
- TX bytes:2463 acl:67 sco:0 commands:98 errors:0
- Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
- Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
- Link policy: RSWITCH HOLD SNIFF PARK
- Link mode: SLAVE ACCEPT
- Name: 'D830'
- Class: 0x420100
- Service Classes: Networking, Telephony
- Device Class: Computer, Uncategorized
- HCI Version: 2.0 (0x3) Revision: 0x10db
- LMP Version: 2.0 (0x3) Subversion: 0x10db
- Manufacturer: Cambridge Silicon Radio (10)
- # sudo hcitool dev
- Devices:
- hci0 18:1X:X6:X1:XX:X4
- # sudo hcitool scan
- Scanning ...
- 18:1X:X6:X1:XX:X4 Nokia N8
- # sudo hcitool inq
- Inquiring ...
- 18:1X:X6:X1:XX:X4 clock offset: 0x1f37 class: 0x5a020c
- .
- # lsmod
- Module Size Used by
- nls_utf8 12416 1
- nls_cp437 12417 1
- vfat 17116 1
- fat 44497 1 vfat
- dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
- hciconfig hci0 piscan
- dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:off
- hciconfig hci0 noscan
- bluetooth-agent 0000
- (Pincode request for device /org/bluez/2149/hci0/dev_1X_XX_XX_XX_XX_XX)
- sudo service bluetooth restart
- sudo /etc/init.d/bluetooth restart
- hciconfig hci0 down
- and
- hciconfig hci0 up
- lsusb
- hciconfig -a
- hcitool dev
- hcitool scan
- sudo nano /etc/default/bluetooth
- sudo nano /etc/bluetooth/audio.conf
- sudo nano /etc/bluetooth/imput.conf
- sudo nano /etc/bluetooth/main.conf
- sudo nano /etc/bluetooth/network.conf
- sudo nano /etc/bluetooth/proximity.conf
- sudo nano /etc/bluetooth/rfcomm.conf
- sudo nano /etc/bluetooth/serial.conf
- # DOES NOT EXIST
- sudo nano /etc/bluetooth/link_key
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Kismet
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.kismetwireless.net/code/
- http://www.kismetwireless.net/documentation.shtml
- sudo apt-get update
- sudo apt-get install xz-utils ncurses-dev libpcap-dev libnl-dev tcpdump wireshark
- wget http://www.kismetwireless.net/code/kismet-2013-03-R1b.tar.gz
- tar xfvz kismet-2013-03-R1b.tar.gz
- cd kismet-2013-03-R1b
- ./configure
- Configuration complete. Run 'make dep' to generate dependencies
- and 'make' followed by 'make install' to compile and install.
- *** WARNING ***
- In some situations, libpcap links to libnl. If Kismet finds a newer
- libbl, it can cause an immediate segfault when starting Kismet.
- It is very hard to test at compile time (and run-time changes can
- cause it to break). If you experience immediate segfaults when
- trying to start kismet_server, check your libpcap.so with 'ldd'
- and either install a libpcap which does not link libnl1, or
- force Kismet to compile with a degraded libnl via
- ./configure --with-netlink-version=1
- sudo make dep
- sudo make install
- (go make a cup of tea)
- lsusb
- Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 002 Device 002: ID 413c:8140 Dell Computer Corp. Wireless 360 Bluetooth
- Bus 003 Device 002: ID 413c:8137 Dell Computer Corp. Wireless 5520 Voda L Mobile Broadband (3G HSDPA) Minicard Status Port
- Bus 007 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
- Bus 007 Device 003: ID 1234:5678 Brain Actuated Technologies
- Bus 006 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
- Bus 006 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
- Bus 006 Device 004: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
- sudo lsusb -s 1:6 -vvv
- sudo cp /usr/local/etc/kismet.conf /usr/local/etc/kismet.conf.BACKUP
- sudo nano /usr/local/etc/kismet.conf
- DOES NOT WORK!
- less /usr/share/doc/kismet/README.gz
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Open Office
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.openoffice.org/download/other.html
- 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
- 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
- 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
- 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
- sha256sum Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz
- 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
- tar -xvzf Apache_OpenOffice_4.0.0_Linux_x86_install-deb_en-GB.tar.gz
- en-GB
- sudo dpkg -i *.deb.
- sudo apt-get install gtkhash
- = IN INSTALL
- --------------------------------------------------------------------------------------------------------------------
- ## 3D creation for everyone, free to use for any purpose.
- --------------------------------------------------------------------------------------------------------------------
- http://www.blender.org/download/get-blender/
- apt-get install blender
- = IN INSTALL
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # bootlogd
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://wiki.debian.org/bootlogd
- sudo apt-get install bootlogd
- aptitude show bootlogd
- sono nano /var/log/boot
- = IN INSTALL
- --------------------------------------------------------------------------------------------------------------------
- ## Byobu is a GPLv3 open source text-based window manager and terminal multiplexer.
- --------------------------------------------------------------------------------------------------------------------
- http://byobu.co/downloads.html
- apt-get install byobu
- = IN INSTALL
- --------------------------------------------------------------------------------------------------------------------
- ## Hard Disk Partition Manager
- --------------------------------------------------------------------------------------------------------------------
- sudo apt-get install gparted
- = IN INSTALL
- --------------------------------------------------------------------------------------------------------------------
- ## GSmartControl - Hard disk drive health inspection tool
- --------------------------------------------------------------------------------------------------------------------
- http://gsmartcontrol.berlios.de/home/index.php/en/Downloads
- sudo apt-get install gsmartcontrol
- = IN INSTALL
- --------------------------------------------------------------------------------------------------------------------
- ## tcpdump - powerful command-line packet analyzer; and libpcap, a portable C/C++ library for network traffic capture.
- --------------------------------------------------------------------------------------------------------------------
- http://www.tcpdump.org/tcpdump_man.html
- sudo apt-get install tcpdump
- = IN INSTALL
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # SendEmail is a lightweight, completely command line based, SMTP email agent.
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://caspian.dotconf.net/menu/Software/SendEmail/
- http://packages.debian.org/wheezy/sendemail
- sudo apt-get install sendemail
- sendEmail -f "fromaddress" -t "toaddress" -u "Subjectlinei" -m "Mymessage" -s "mysmtpserver":26 -o tls=no -xu "loginusername" -xp "loginpassword"
- sendEmail -f "fromaddress" -t "toaddress" -u "Subjectlinei" -m "Mymessage" -s "mysmtpserver":25 -o tls=no -xu "loginusername" -xp "loginpassword"
- --------------------------------------------------------------------------------------------------------------------
- ## Minimal "gnome classic" install in Wheezy
- --------------------------------------------------------------------------------------------------------------------
- http://forums.debian.net/viewtopic.php?f=6&t=84763
- sudo apt-get install lightdm xorg gnome-session-fallback nautilus --no-install-recommends
- sudo apt-get install gnome-session-fallback -s
- Remove It
- ------------
- sudo apt-get --purge remove lightdm gnome-session-fallback
- --------------------------------------------------------------------------------------------------------------------
- ## policykit configuration files. All the secret is in /etc/polkit
- --------------------------------------------------------------------------------------------------------------------
- /etc/polkit-1/localauthority# cat 10-udisks.pkla
- [udisks]
- Identity=unix-group:storage
- Action=org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.filesystem-mount
- ResultAny=yes
- --------------------------------------------------------------------------------------------------------------------
- ## Debian Tools and Tips
- --------------------------------------------------------------------------------------------------------------------
- http://debianhelp.wordpress.com/2012/10/02/crunchbang-11-waldorf-debian-wheezy-os/
- #######################
- #######################
- #######################
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## MATE DEsktop
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- apt-get install sudo
- # sudo blkid
- sudo mkdir /media/FAT32
- sudo mount -t vfat `blkid -U 4ABCD` /media/FAT32
- nano /media/FAT32/share/etc-apt--sources.list
- ## Multimedia
- ## For wheezy (stable) amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc and sparc packages
- #deb http://www.deb-multimedia.org wheezy main non-free
- ## MKVToolNix
- deb http://www.bunkus.org/debian/wheezy/ ./
- deb-src http://www.bunkus.org/debian/wheezy/ ./
- ## MATE Desktop
- # main repository
- deb http://repo.mate-desktop.org/debian wheezy main
- # mirrors
- deb http://packages.mate-desktop.org/repo/debian wheezy main
- deb http://mirror1.mate-desktop.org/debian wheezy main
- nano /etc/apt/sources.list
- nano /media/FAT32/share/MATE.txt
- apt-get update
- apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring
- apt-get update
- # Now to install MATE choose 1 of the 3 apt-get lines below.
- # this installs the base packages
- apt-get install mate-core
- # or this to install mate-core and more extras
- apt-get install mate-desktop-environment
- #or this to install mate-core + mate-desktop-environment and even more extras.
- apt-get install mate-desktop-environment-extra
- # to start the X windows ;) otherwise it does not work.
- sudo apt-get install xinit
- startx
- apt-get install sudo gnome-nettool software-center baobab gnome-commander gnome-disk-utility nautilus network-manager-gnome
- http://askubuntu.com/questions/18926/how-to-control-gnomes-auto-mounting-capabilities
- Go to System->Administration->User and Groups, choose the user, click on
- "Properties", then go to the "User Privileges" tab. You should have the
- "Access external storage devices automatically" option
- gconf-editor
- /apps/nautilus/preferences/media_automount
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- # Downloading Debian CD images with jigdo / jigdo - Jigsaw Download
- # Jigdo is a tool for distributing and obtaining Debian ISOs in an easy, fast and very efficient manner.
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.debian.org/CD/jigdo-cd/
- http://atterer.org/jigdo/
- http://atterer.org/jigdo/debian-jigdo-mini-howto#HOWJIGDOWORKS
- sudo apt-get install jigdo-file
- http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/
- jigdo-lite
- http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/debian-7.1.0-i386-CD-1.jigdo
- http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/debian-7.1.0-i386-CD-1.template
- debian-7.1.0-i386-CD-1.iso
- $ sha512sum debian-7.1.0-i386-CD-1.iso
- f83ddd502c442a5fb44a618d0cd45b109b6d7db547194674d4408b9398691e96a35993636d7d54692c46005985b66f929de0f51a6934b136213668e55ee82473 debian-7.1.0-i386-CD-1.iso
- http://cdimage.debian.org/debian-cd/7.1.0/i386/jigdo-cd/SHA512SUMS
- f83ddd502c442a5fb44a618d0cd45b109b6d7db547194674d4408b9398691e96a35993636d7d54692c46005985b66f929de0f51a6934b136213668e55ee82473 debian-7.1.0-i386-CD-1.iso
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## TZ - Time Zone data
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://en.wikipedia.org/wiki/Tz_database
- ftp://ftp.iana.org/tz/
- ftp://ftp.iana.org/tz/tzcode-latest.tar.gz
- ftp://ftp.iana.org/tz/tzdata-latest.tar.gz
- http://cs.ucla.edu/~eggert/tz/tz-link.htm
- mkdir tz
- cd tz
- wget --retr-symlinks 'ftp://ftp.iana.org/tz/tz*-latest.tar.gz'
- gzip -dc tzcode-latest.tar.gz | tar -xf -
- gzip -dc tzdata-latest.tar.gz | tar -xf -
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## Matrix Screen Saver
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://www.cyberciti.biz/faq/run-execute-sh-shell-script/
- wget http://bruxy.regnet.cz/linux/matrix/matrix.sh
- #!/bin/bash
- echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true
- do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`;
- do c=`printf '\\\\0%o' $[RANDOM%57+33]` ### http://bruxy.regnet.cz/web/linux ###
- $e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ]
- then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`; #[mat!rix]
- do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done #(c) 2011 -- [ BruXy ]
- sh matrix.sh
- bash matrix.sh
- sudo bash matrix.sh
- chmod +x matrix.sh
- ./file.sh
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- ## LOok INTO
- ------------------------------------------------------------------------------------------------------------------------------------------------------------
- =============================================================================
- 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.
- http://loganalyzer.adiscon.com/
- =============================================================================
- http://www.mollify.org/features.php
- wget http://www.mollify.org/download/latest.php
- wget http://mollify.googlecode.com/files/mollify_1.8.9.3.zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement