28 Eylül 2013 Cumartesi

Google Drive,Skybox,Dropbox ve hash,checksum kontrol.

Google Drive,Skybox ve Dropbox'da sha512 algoritmasını kullanarak
oluşturmuş olduğum şifreli dosyaların içinde yapmış olduğum değişikleri algılayan
ve bulut üzerindeki veriyi tek güncelleyebilen hizmet dropbox'un verdiği hizmet olmuştur.

Bu tespitle google drive ve skybox'un checksum ve hash kontrolü yapmayıp sadece dosyanın öz niteliklerine göre
buluttaki yığınla senkronizasyon sağladığı görülmüştür.

Umarım google ve microsoft en kısa zamanda bu sorunu çözer.

Sağlıcakla kalın.

Yavuz ALNIAK
29 Eylül 2013

8 Aralık 2012 Cumartesi

Debian Squuzee için qf9700 usb ethernet driver derleme


qf9700 Driver Derleme

1. apt-get update 
2. apt-get install linux-headers-`uname -r`
3. wget http://www.elite.uk.com/mike/qf9700/qf9700-2.6.32.tar.gz
4. tar zxvf qf9700-2.6.32.tar.gz
5. cd qf9700
6. make
7. cp *.ko lib/modules/`uname -r`/kernel/drivers/net/usb
8. depmod
9. reboot

tested Debian 2.6.32-5 kernel by Yavuz ALNIAK 

11 Eylül 2012 Salı

ftp alanını samba ile paylaştırma


Mounting an FTP/SMB site as a Linux Share


sudo apt-get install curlftpfs
mkdir mntdir #make mountpoint
FTPPW=12345678
FTPUSER=username%40site.org # if contains @ then use %40
sudo curlftpfs -o allow_other,uid=1000 ftp://$FTPUSER:$FTPPW@ftp.site.org mntdir

The uid is needed if you want write access for a non-root user. Find it by typing id at the console.
You will have to edit /etc/fuse.conf to allow_other and also make sure the current user is a member of the fuse group:

adduser andrewf fuse

Add to /init/fstab using:

curlftpfs#user:pass@ftp.site.org /home/andrewf/xxx fuse rw,uid=1000,user,noauto 0 0

You can unmount with:

fusermount -u mountpoint # use -u -z to force

To mount a Samba share you can create a mount script such as:

mount -t smbfs //Stillwaterfs/Users/Andrew /home/andrewf/sw -o username=Andrewf,uid=andrewf

or on Red Hat:

sudo mount -t cifs //Stillwaterfs/Users/Andrew /home/andrewf/sw -o username=Andrewf,uid=andrewf

31 Ağustos 2012 Cuma

Ext3,Ext4 Bad Geometry Hataları Düzeltme

Örnek :

1. fsck /dev/sdc

2. dmesg

EXT4-fs (sdc): bad geometry: block count 366284646 exceeds size of device (366284381 blocks)

3. resize2fs /dev/sdc 366284381

23 Ağustos 2012 Perşembe

ftpfs ile lokal bağlantı

ftpfs ile lokal bağlantı

1. Installation First install curlftpfs package.
   On Debian or Ubuntu it would simple as:

apt-get install curlftpfs

2. Mount ftp directory What needs to be done next is to create a mount point:

# mkdir /mnt/my_ftp

next use curlftpfs to mount your remote ftp site. Suppose my access credentials are as follows:
username: ftp-user password: ftp-pass host/IP: my-ftp-location.local
the actual curlftpfs mount command would be:

# curlftpfs ftp-user:ftp-pass@my-ftp-location.local /mnt/my_ftp/

Caution: ftp uses unencrypted passwords so anyone can intercept your password without much effort.
Therefore use curlftpfs in combination with SSL certificates if your are not mounting some local LAN ftp server.
On Debian you can mount ftp using curlftpfs as a root and this allows only root user to access ftp mount.
No other users are allowed since by default only users that mounts has and access to mount directory.
When mounting ftp as a non-root user you may get a following error message: fuse: failed to open /dev/fuse:

Permission denied Rather that changing permissions of /dev/fuse
you can allow other users to access ftp mount directory with an curlftpfs's option allow_other.
The command will look similar to the one below:

# curlftpfs -o allow_other ftp-user:ftp-pass@my-ftp-location.local /mnt/my_ftp/

 3. Mount ftp with curlftpfs using /etc/fstab Since we do not want put any passwords to /etc/fstab file we will first create a /root/.netrc file with a ftp username and password using this
format:
machine my-ftp-location.local
login ftp-user
password ftp-pass

Now change permissions of this file to 600:

# chmod 600 /root/.netrc

Check uid and gid of your non-root user.
This user will have a access to ftp mount directory:

 $ id In the next step add a following line to your /etc/fstab file ( change credentials for your ftp user ):

curlftpfs#my-ftp-location.local /mnt/my_ftp fuse allow_other,uid=1000,gid=1000,umask=0022 0 0

Now mount ftp with:

mount -a

24 Ocak 2012 Salı

Linux'ta radvd ipv6 almak istemiyorsak

echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra

sunucuyu kapatıp açın.

Yavuz ALNIAK
http://www.manisateknikservis.com

26 Aralık 2011 Pazartesi

Link Aggregation + Bonding (Yük Dengeleme) Debian,Ubuntu

apt-get install ifenslave-2.6

modprobe bonding

Debian Link Aggregation (Network Bonding)
Here we are going setup link aggregation for Debian. Your system must have at least 2 network interfaces (but not limited to).
Bonding

Install ifenslave-2.6 package:

apt-get install ifenslave-2.6

Load bonding kernel module:

modprobe bonding

Note that you shouldn't have any configuration for eth0 and eth1, they are attached as slaves for bond0 interface. Network configuration (file /etc/network/interfaces):

auto bond0
iface bond0 inet static
address 192.168.10.14
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1

slaves eth0 eth1

# Transmit packets in sequential order
# from the first available slave through
# the last. This mode provides load
# balancing and fault tolerance.
bond-mode balance-rr

# Only one slave in the bond is active.
# A different slave becomes active if,
# and only if, the active slave fails.
#This mode provides fault tolerance.
#bond-mode active-backup

bond-miimon 100
bond-downdelay 200
bond-updelay 200

Once above is complete you need to reboot your server so the network changes take place (that should be faster than bringing up/down network interfaces and restarting networking service).

Bridge
You can use link aggregation with network bridge, for example if you are using lxc / kvm virtualization. Here is network configuration (file /etc/network/interfaces):

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond-mode balance-rr
bond-miimon 100
bond-downdelay 200
bond-updelay 200

auto br0
iface br0 inet static
address 192.168.10.14
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
bridge_ports bond0
bridge_fd 0
bridge_maxwait 0
bridge_stp off

Network Switch
If your switch supports port trunking you should add the switch ports used by eth0 and eth1 to a single trunk

link : http://mindref.blogspot.com/2011/05/debian-link-aggregation-bonding.html