October 29, 2011

set network settings using netsh(ip+alias)

@echo off
REM set network settings for home lan network
netsh interface ip set address name="lan" static 192.168.1.196 255.255.255.0 192.168.1.1 1
netsh interface ip add address name="lan" 192.168.57.196 255.255.255.0
netsh interface ip set dns name="lan" static 192.168.1.1

October 27, 2011

adding disk space to freebsd-based vmware

adding disk space freebsd-based vmware

issues installing sup - mail client written in ruby

_installing sup mail client

current restriction
use ruby-1.9.1-p378
you will need to install iconv for ruby (use this article http://tokarchuk.ru/2011/05/iconv-for-ruby-1-9-2/)

1_ get sup using git
2_ gem install sup

following problems could appear:

1_ ncurses - incorrect s.date = "2010-11-9 00:00:00.000000000Z"
ncursesw-1.2.4.3.gemspec - comment line with s.date

2_ libc.so.6 is missing go to your /lib/ and hardlink to libc.so.7 if installed "ln -s libc.so.7 libc.so.6"

rvm usage examples

http://beginrescueend.com/workflow/examples/

rvm install package

rvmsude rvm install pkg name_of_the_package

rvm list of known packages

rvm list known

how to install iconv for ruby 1.9.2 on freebsd

http://tokarchuk.ru/2011/05/iconv-for-ruby-1-9-2/

New post

test

October 19, 2011

October 10, 2011

automatically answer yes to all fsck questions

fsck -y /dev/....

advanced mount with locales

if you are planning to mount windows share as freebsd volume & windows share contains russian characters
you should use this options to encode characters mount_smbfs -E koi8-r:cp866 -W //user_name@name_of_server/shared_folder /where_to_mount

list network interfaces

netsh interface ipv4 show interfaces

mount windows share to folder vis smbclient

mount_smbfs -I ip_of_the_server //user_name@name_of_server/share_name /whereto_mount

connect to windows share

smbclient \\ip\share_name -U user_name

cheat sheet for vi

http://www.lagmonster.org/docs/vi.html

excellent hosting

http://www.hetzner.de

upload your pics to picasa usign googlecl

 google picasa post --title "dom" dom/*

check folder size

du -d 1 -h

check used & free space

df -h

setting time and date

date yymmddhhmm

How to type letters with accent

Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/