Saturday, May 31, 2014

Set up proxy connection, TinyCore

Log out current session.
Type:
export http_proxy="http://192.168.50.131:3128"
export ftp_proxy="http://192.168.50.131:3128"
export https_proxy="http://192.168.50.131:3128"
startx
where http://192.168.50.131:3128 is your proxy server address and port.
With authorization use http://username:password@host:port

Friday, May 30, 2014

40 ways to stay creative

 1) CREATE AN INSPIRATION BOARD
 2) GET OUT MORE!
 3) SKETCH MORE!
 4) EXPERIMENT
 5) SOCIALIZE
 6) KEEP UP WITH TRENDS
 7) LEARN A NEW SKILL!
 8) READ BOOKS!
 9) USE STICKY NOTES
10) BREAK YOUR RUTINE
11) BE AROUND CREATIVE PEOPLE
12) SPY ON THE COMPETITION
13) VISIT EXHBITIONS
14) COLLABORATE WITH OTHERS!
15) TRAVEL!
16) GET A NEW HOBBY
17) CHALLANGE YOURSELF!
18) MAKE LISTS!
19) MEDITATE
20) GET FEEDBACK FROM PEERS
21) LISTEN TO MUSIC
22) WATCH FILMS
23) TAKE RISKS!
24) WRITE STUFF DOWN
25) DECLUTTER YOUR WORKSPACE
26) LOVE WHAT YOU DO
27) FINISH YOUR PROJECTS!
28) VISIT MUSEUMS & GALLERIES
29) KEEP A DREAM DIARY
30) HAVE SEX!
31) TAKE NAPS
32) WATCH MOTIVATIONAL SPEECHES
33) GO TO THE THEATRE
34) PRACTICE!
35) EAT DIFFERENT CUISINE
36) STOP COMPAROING YOURSELF TO OTHERS
37) QUESTION THINGS!
38) TURN OFF DISTRACTIONS
39) LET GO OF FEAR)
40) BE CURIOUS

Related:
http://www.layerform.com/40-ways-stay-creative-infographic/
http://www.redbubble.com/people/layerform/works/11994957-40-ways-to-stay-creative-poster?p=poster

Wednesday, May 28, 2014

Re-write PDFSaM language in global configuration file

For a fresh PDFSaM installation you can rewrite global configuration to use another language in program.
To do it so use awk.exe utility to replace some lines content in configuration file.

In directory where awk.exe is having a good time create a little batch script.
For example for Brazilian Portuguese use code pt_BR
type "C:\Program Files\PDF Split And Merge Basic\pdfsam-config.xml" |^
"%~dp0awk.exe" "{sub(/i18n value.*\\\"/,"""i18n value=\\\"pt_BR\\\"""");print}" > "%temp%\pdfsam-config.xml"
move /Y "%temp%\pdfsam-config.xml" "C:\Program Files\PDF Split And Merge Basic\"
For Russian use ru
For French use fr
For Polish use pl
For German use de

If the user have already launched the PDFSaM then you have to manually delete %userprofile%\.pdfsam directory.

How to headless Kali linux on Raspberry Pi

Extract image file from
https://images.offensive-security.com/arm-images/kali-2.1.2-rpi2.img.xz
e78fd159d2567a6ce0ab67123e5a15d4
db36fcd53c630fd32f2f8943dddd9f57b3673c5a

Use Win32DiskImager to write the image

Plug the Ethernet cable and launch the Pi

Use another computer and go to router DHCP client list and find out kali IP address.

On Windows open putty to enter the system

Login to the system with user root and password toor

Fix all repository changes and upgrade the whole system
apt-get update && apt-get upgrade -y

Install tightvnc server
apt-get install tightvncserver -y
Launch VNC server and enter password which you want to use on TightVNC viewer
tightvncserver
Open new service configuration
nano /etc/init.d/tightvnc
Paste the content. Change resolution if necessary.
#!/bin/sh
### BEGIN INIT INFO
# Provides: tightvncserver
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start vnc server
# Description:
### END INIT INFO

case "$1" in
start)
su root -c 'vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565:'
echo "VNC Started"
;;
stop)
pkill Xtightvnc
echo "VNC Terminated"
;;
*)
echo "Usage: /etc/init.d/tightvnc {start|stop}"
exit 1
;;
esac
Let the file to be executable
chmod 755 /etc/init.d/tightvnc
Refresh global service configuration
update-rc.d tightvnc defaults
Restart system
reboot
Now use TightVNC viewer to connect the Kali

First time select [Use default config]

And you get to the desktop

Related:
http://docs.kali.org/armel-armhf/install-kali-linux-arm-raspberry-pi

Sunday, May 25, 2014

Puppy linux with xmms, firefox, opera, chrome, keepass, deluge

What's new:

Added XMMS which looks like old Winamp
Configured /usr/local/bin/defaultaudioplayer to open with XMMS
Added few nice radio stations in default playlist

Installed Google Chrome

Added Firefox

Installed Opera deb package from
http://get.opera.com/pub/opera/linux/1216/

Added KeePassX to work exactly with KeePass version 1.27

ROX default view changed to list with small icons
Changed default wallpaper with KDE3 wallpaper "No-One-Laughing"
It is can be found /usr/share/backgrounds

Added deluge so now it is possible to connect to raspberry's pi torrent box out of the box

Integrated all devx package so you are ready to compile other application from source

Download:
https://drive.google.com/drive/folders/0Bw6O2bpd3mobdzBZcTF1TS1NOHc
2014-05-24-xmms-firefox-opera-chrome-keepass-deluge.iso
298dc2822c33b06efda1d641604cb519
732a588588787aa127627d3a4d5d8ac8b051e591

Knowing issues:
First time when launch Firefox the windows "Firefox is not your default browser.." shows only few seconds and the it disappears. In this case you have to still try find the "missing" window and answer the question about default browser.
Otherwise the Firefox do not let you click anything.

Saturday, May 24, 2014

Install Firefox on Puppy linux

# download tar.bz2 archive
wget http://download-installer.cdn.mozilla.net/pub/firefox/releases/29.0.1/linux-i686/en-US/firefox-29.0.1.tar.bz2

# extract files from tar.bz2 archive to /opt
tar xvjf firefox-29.0.1.tar.bz2 -C /opt

# assign firefox icon to firefox binary
awk '/<special-files>/{print;print "  <rule match=\"/opt/firefox/firefox\">\n    <icon>/opt/firefox/browser/icons/mozicon128.png</icon>\n  </rule>";next}1' ~/.config/rox.sourceforge.net/ROX-Filer/globicons > /tmp/globicons
mv /tmp/globicons ~/.config/rox.sourceforge.net/ROX-Filer/globicons

# make symbolic link to let you launch firefox from any directory
ln -s /opt/firefox/firefox /usr/local/bin/firefox

# create desktop icon with location 288,128
awk '/\/backdrop/{print;print "  <icon x=\"288\" y=\"128\" label=\"firefox\">/opt/firefox/firefox</icon>";next}1' ~/Choices/ROX-Filer/PuppyPin > /tmp/PuppyPin
mv /tmp/PuppyPin ~/Choices/ROX-Filer/PuppyPin
rox -p ~/Choices/ROX-Filer/PuppyPin
Firefox icon will appears after restarting X server.

Related:
http://www.theunixschool.com/2012/06/insert-line-before-or-after-pattern.html
https://download-installer.cdn.mozilla.net/pub/firefox/releases/

Thursday, May 22, 2014

Reaver offline package for BackTrack linux

https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/reaver-wps/reaver-1.4.tar.gz
05441dda7bacfcbe1e831c85d1ea3bc9
2ebec75c3979daa7b576bc54adedc60eb0e27a21

Extract archive, move to the source, configure, compile and install
tar zxvf reaver-1.4.tar.gz
cd reaver-1.4
cd src
./configure
make
make install
Put the second wireless adapter in monitor mode
airmon-ng start wlan1
Se what is happening
airodump-ng mon0
Download BackTrack5R3 GNOME:
https://docs.google.com/file/d/0BxJgS33zZl9bbHB3Q0xpSXl2QkE/edit?usp=sharing
aafff8ff5b71fdb6fccdded49a6541a0
abb7821f5e8f0b4ca0ae99c7e1a7e2c027fb9901

Wednesday, May 21, 2014

USB wifi dongle with AP support for Raspberry Pi

The first and the smallest is "USB Wireless N 802.11N Nano Dongle".
This chipset use rt2800usb module
The id of device is VID_148F&PID_5370&REV_0101

Another great is "TP-Link WN722N" which use ath9k_htc module.
This is the best option for cost and wifi range. Totally must have.
The id of device is VID_0CF3&PID_9271&REV_0108

If your reputation do not let you to buy cheap adapter then buy "Alfa AWUS036NHA". This adapter is more expensive. It also uses ath9k_htc module. The advantage of this adapter is that you have additional USB cable option to extend the placement. Also you have addition cool gadgets to easily stick the adapter to the window or hook somewhere

A lot of USB adapters is created nowadays but only few works out of the box in linux environment.
Even less can work as and Access Point. So if you want to buy one i recommend to start from the driver side.
Search the driver module name in Google to find out which adapters can use this driver ;)

Here is the list of drivers which is used in manufactures who have ever created an USB wifi dongle with AP feature:
DriverManufacturercfg80211APIBSSmeshmonitorPHY modesBuses
ath9k_htcAtherosyesyesyesnoyesB/G/NUSB
libertas_tfMarvellyesyesnoyes?B/GUSB
mwifiexMarvellyesyesyes??A/B/G/NUSB
p54usbIntersil/ConexantyesyesyesyesyesA(1)/B/GUSB
rt73usbRalinkyesyesyesnoyesA(1)/B/GUSB
rt2500usbRalinkyesyesyesnoyesA(1)/B/GUSB
rt2800usbRalinkyesyesyesyes(5)yesA(1)/B/G/NUSB
zd1211rwZyDAS/AtherosyesyesyesyesyesA(2)/B/GUSB
Related:
http://wireless.kernel.org/en/users/Drivers

Tuesday, May 20, 2014

Remove action center icon via group policy, HideSCAHealth


This will automatically disables all action center messages about Windows Update, Internet security settings, Network firewall, Spyware and related protection, User Account Control, Virus Protection, Windows Backup, Windows Troubleshooting, Check for updates

To do it so..
Go to User Configuration > Policies > Administrative Templates > Start Menu and Taskbar

Open Remove the Action Center icon and set Enable

To do this cheat in current user profile without group policy just launch windows command prompt in "Run as administrator" mode and paste:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v HideSCAHealth /t REG_DWORD /d 1 /f

Blog Archive