web.trakic.com
2.24.2012
2.09.2012
SOPA killer?
Can this workoround be used as SOPA killer: http://zarb.org/~gc/html/udp-in-ssh-tunneling.html
Public ssh accounts anywhere?
Public ssh accounts anywhere?
11.30.2011
howto: pfsence 2.0 usb installer
UNetbootin and PhysDiskWrite did not worked for me but I've finally managed to create realieable Pfsence usb-installer on Win7 enviorement. The procedure is as follows:
Preparation
Installation process
Start writing raw image
Preparation
- - Create new folder e.g:
c:\foo - - Download http://pfsense.mirror.range-id.it/downloads/pfSense-memstick-2.0-RELEASE-i386.img.gz and extract it with your favorite gz utility
- - Download flashnul commandline utility http://shounen.ru/soft/flashnul/ (kudos to George Shuklin)
- - Place all three files (flashnul.exe, flashnul.conf and pfSense-memstick.img) within this folder you just created previously.
Installation process
- - Create shortcut on desktop for C:\Windows\System32\cmd.exe
- - Right click and start "run as Administrator" and change directory to: cd c:\foo
- - Carefully observe which USB drive has been assigned to your drive latter and verify with:
c:\foo> flashnul.exe -p
Avaible physical drives: 0 size = 160041885696 (149 Gb) 1 size = 8010194944 (7639 Mb) Avaible logical disks: C:\ D:\ E:\ Press ENTER to exit.
Start writing raw image
c:\foo> flashnul.exe e: -L pfSense-memstick.imgGetFreeDiskSpaceEx() failed: Access is denied.
Disk e: (UNC name: \\.\e:)
------------------------------------------------------------[Drive geometry]--
Cylinders/heads/sectors = 973/255/63
Bytes per sector = 512
CHS size = 8003197440 (7632 Mb)
---------------------------------------------------------------[Device size]--
Device size = 8010194944 (7639 Mb)
delta to near power of 2 = 579739648 (552 Mb), 7%
-----------------------------------------------[Adapter & Device properties]--
Bus type = (7) USB
Removable device = Yes
Command Queue = Unsupported
Device vendor = Kingston
Device name = DataTraveler G3
Revision = 1.00
Device serial = ?
--------------------------------------------------------------[Hotplug info]--
Device hotplug = Yes
Media hotplug = No
Selected operation: load file content
Selected drive: e:, 8010194944b (7639 Mb)
THIS OPERATION IS DESTRUCTIVE!!!
Type 'yes' to confirm operation. All other text will stop it.
Really destroy data on drive e:? :yes
-----------------------------------------------------------------------[Log]--
Runing operation [load file content] for drive e:
Writing 0xf770000 (247 Mb), 4017933 b/s
image load finished
----------------------------------------------------------[Operation result]--
passes: 1
errors: 0
write bytes: 259596288 (247 Mb)
avg. write speed: 4017539 (3923 kb/s)
max/min write speed: 0 (0 b/s) / 0 (0 b/s)
Press ENTER to exit. yo may now verify installation by booting from your USB drive.
Labels:
pfsence
11.28.2011
Install standalone tracd on Lacie Networkspace2
Before continuing your hardware should be loaded with (custom Capsule)
By default python installation on Lacie does not come with setuptools, so you need to adjust python enviorment additonally:
# mkdir -p /usr/include/python2.6/
# curl -k https://dev.openwrt.org/raw-attachment/ticket/8032/pyconfig.h >
foo
# mv foo pyconfig.h
# mkdir -p /usr/local/src && cd /usr/local/src
# wget http://peak.telecommunity.com/dist/ez_setup.py
# python ez_setup.py
# easy_install Genshi
Install Trac
# wget -c http://ftp.edgewall.com/pub/trac/Trac-0.12.2.tar.gz
# tar zxvf Trac-0.12.2.tar.gz
# cd Trac-0.12.2
# python ./setup.py install
Test: start Trac test enviorment on port 3333
# mkdir -p /tmp/test/trac
# trac-admin /tmp/test/trac initenv
# tracd -d --port 3333 /tmp/test/trac
# svn co svn:///localhost:3333/test
That's about all.
For autostart consider creating adding suitable `tracd` with `-d` daemon parameters within /etc/init.d/bootmisc do_start function. You may also consider viewing one of my previous posts running tracd on Debian: http://web.trakic.com/2010/06/trac-as-standalone-server-on-debian.html
By default python installation on Lacie does not come with setuptools, so you need to adjust python enviorment additonally:
# mkdir -p /usr/include/python2.6/
# curl -k https://dev.openwrt.org/raw-attachment/ticket/8032/pyconfig.h >
foo
# mv foo pyconfig.h
# mkdir -p /usr/local/src && cd /usr/local/src
# wget http://peak.telecommunity.com/dist/ez_setup.py
# python ez_setup.py
# easy_install Genshi
Install Trac
# wget -c http://ftp.edgewall.com/pub/trac/Trac-0.12.2.tar.gz
# tar zxvf Trac-0.12.2.tar.gz
# cd Trac-0.12.2
# python ./setup.py install
Test: start Trac test enviorment on port 3333
# mkdir -p /tmp/test/trac
# trac-admin /tmp/test/trac initenv
# tracd -d --port 3333 /tmp/test/trac
# svn co svn:///localhost:3333/test
That's about all.
For autostart consider creating adding suitable `tracd` with `-d` daemon parameters within /etc/init.d/bootmisc do_start function. You may also consider viewing one of my previous posts running tracd on Debian: http://web.trakic.com/2010/06/trac-as-standalone-server-on-debian.html
Labels:
linux
7.08.2011
6.10.2011
R project - my first impressions
I' ve just installed R on my computer.
Interesting project, although my old Matlab code cannot be used directly without further modifications.
Also plugin/package infrastucture it bit annoying: after base installation you need to know what each package provides but you need to install it first.
Interesting project, although my old Matlab code cannot be used directly without further modifications.
Also plugin/package infrastucture it bit annoying: after base installation you need to know what each package provides but you need to install it first.
Labels:
perl,
statistics
6.01.2011
Splitska riva (webcam)
Link koji ce sigurno biti interesantan za ljubitelje dobrog pogleda na more:
http://www.dalmacija.net/site/home/webcam.htm
http://www.dalmacija.net/site/home/webcam.htm
Labels:
holidays
2.09.2011
Debian chroot install on LaCie Network Space 2
Finally I have managed to install Debian testing and access it via ssh on Lacie Network Space 2.
The procedure is as follows:
1) On your existing debian machine create chroot enviorment:
2) Rsync the whole bundle on your NS2, eg.: /shares/MyShare/testing-armel-chroot
3) Symlink chroot destination /shares/MyShare/testing-armel-chroot to /debian
4) Create chroot one-time wrapper script in order to mount chroot enviorment correctly and prepare networking:
5) Done.
You may now access to your Debian chrrot either via chroot:
Or yoy can even start ssh deamon by adjusting dropbear configuration file:
Here are some interesting outputs from such setup:
Also X applications runs very well:
The procedure is as follows:
1) On your existing debian machine create chroot enviorment:
# debootstrap --arch armel testing ./testing-armel-chroot
2) Rsync the whole bundle on your NS2, eg.: /shares/MyShare/testing-armel-chroot
3) Symlink chroot destination /shares/MyShare/testing-armel-chroot to /debian
4) Create chroot one-time wrapper script in order to mount chroot enviorment correctly and prepare networking:
# cat /etc/chroot.debian
#!/bin/sh
ROOTFS=/debian
if test "$(whoami)" = "root" ; then
DEV=eth0:2
IP=192.168.1.10
ifconfig $DEV down
ifconfig $DEV $IP up
mount -t proc proc ${ROOTFS}/proc
mount --bind /dev ${ROOTFS}/dev
chroot ${ROOTFS} su root -c "/bin/bash $*"
fi
5) Done.
You may now access to your Debian chrrot either via chroot:
# chroot /debian /bin/bash
Or yoy can even start ssh deamon by adjusting dropbear configuration file:
# cat /debian/etc/dropbear/run
#!/bin/sh
exec 2>&1
OPTS="-F -E -p 2022 "
exec dropbear -d ./dropbear_dss_host_key -r ./dropbear_rsa_host_key $OPTS
# sh /etc/chroot.debian /etc/init.d/dropbear restart
Here are some interesting outputs from such setup:
(chroot-)root@nas2:~# arch
armv5tejl
(chroot-)root@nas2:~# uname -ar
Linux nas2 2.6.22.18 #1 Thu Nov 4 17:37:15 UTC 2010 armv5tejl GNU/Linux
(chroot-)root@nas2:~# cat /etc/debian_version
6.0
Also X applications runs very well:
Labels:
debian
1.13.2011
Subscribe to:
Posts (Atom)