Tuesday, April 29, 2008

Mount ntfs external Hard disk in Ubuntu

mount -t ntfs-3g /dev/sdxx /folder -o force


folder is a folder in Ubuntu
/dev/sdxx is the attached device (look dmesg)

Friday, April 25, 2008

Bacula Client - iptables

iptables -A INPUT -p tcp --dport 9102 -j ACCEPT

iptables -A OUTPUT -p tcp --dport 9103 -j ACCEPT

Thursday, April 24, 2008

Install Asus Onboard LAN in Ubuntu

Download the proper Driver:

http://atl1.sourceforge.net/

and unzip that.

install Linux-Headers:

apt-get install linux-headers-$(uname -r)

go to src folder of Driver:

make
make install
modprobe atl1

add eth1 to /etc/network/interface.

Wednesday, April 16, 2008

OpenVPN with Dynamic IP

Create an account on DYNDNS.

Register a new Domain, for example: mytest.ath.cx

On Router define the Dynamic DNS with information above.

Put a free port for OpenVPN on Router: for example 1194

Install OpenVPN and ddclient on Server.

On OpenVPN Client's Config file put this line:

remote mytest.ath.cx 1194

Friday, April 11, 2008

Ubuntu - Share windows

Share the Folder in windows.

run this command on Ubuntu:

echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

Mount the share in Ubuntu:

mount -t cifs //win.ip.no.here/ShareName /Floder-in-Ubuntu -o username=administrator,password=password-for-admin,
uid=1000,umask=000


Mount permanently by add this line into /etc/fstab:

//win.ip.no.here/ShareName /Folder-in-ubumntu smbfs auto,username=Administrator,password=password 0 0

Thursday, April 10, 2008

Windows File Synchronization

Dimio's Site:

http://dimio.altervista.org/eng/


Dimio's Tools:

Dshutdown:
http://dimio.altervista.org/stats/download.php?id=2

DSynchronize:
http://dimio.altervista.org/stats/download.php?id=3


Tuesday, April 8, 2008

Dynamic and Static IP in Ubuntu

Edit the following file:
/etc/network/interfaces 
for Dynamic IP:
auto eth0
iface eth0 inet dhcp

for Static IP:

auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1