Posted by on April 29, 2008 under Uncategorized |
Several quick posts to follow on sharing files on a network, to/ from Linux and Windows.
NFS is a fairly easy server setup on Ubuntu:
sudo apt-get install nfs-kernel-server nfs-common portmap
sudo vi /etc/exports
Here you will set read or read write permissions based on IP address:
Read-write in a class C:
/files 10.0.0.1/24(rw,no_root_squash,async)
Read only from a single host IP:
/files 10.0.0.21 (ro,async)
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a
Now for the Ubuntu NFS Client:
sudo apt-get install portmap nfs-common
EDIT THIS:
Mounting manually
Example to mount server.mydomain.com:/files to /files. In this example server.mydomain.com is the name of the server containing the nfs share, and files is the name of the share on the nfs server
The mount point /files must first exist on the client machine.
cd /
sudo mkdir files
to mount the share from a terminal type
sudo mount server.mydomain.com:/files /files
Note you may need to restart above services:
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart
Mounting at boot using /etc/fstab
Invoke the text editor using your favorite editor, or
gksudo gedit /etc/fstab
In this example my /etc/fstab was like this:
- server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr
You could copy and paste my line, and change “servername.mydomain.com:/files”, and “/files” to match your server name:share name, and the name of the mount point you created.
It is a good idea to test this before a reboot in case a mistake was made.
type
mount /files
in a terminal, and the mount point /files will be mounted from the server.
Read more of this article »
Posted by on April 28, 2008 under Uncategorized |
Finally - After about a MONTH (literally) I was able to get the SOGO (Scalable OpenGrOupware) server working. I am now going to backtrack, and try to re-trace my steps to get it installed. I fully implemented it 11 times before I got it working. The online instructions just don’t cover all the steps. In the end - I installed to Ubuntu Feisty, pointed to the OGo repositories, and followed the instructions more or less after that. What a PAIN!
However, from the pain, comes the joy - SOGo’s interfaces mirrors Thunderbird’s. So, providing connectivity to it (and migrating users to Thunderbird) along with all the features from the “Groupware” part of it will be great. Will still be implementing a Funambol Server for phone-sync, and now need to go back and re-implement LDAP/Postfix/Courier.
I will provide a detailed step-by-step on how to set it all up in a few weeks.
Read more of this article »
Posted by on April 25, 2008 under Uncategorized |
Some notes on using KVM on Ubuntu. Just some command snippets,,,
Create a Virtual Disk:
Example: 10 GB - VMWare Compatible expanding Virtual Disk
qemu-img create -f vmdk virtualdisk.vmdk 10G
Or a standard QCOW2 format (that stands for Qemu Copy On Write version 2):
qemu-img create -f qcow2 mydisk.qcow2 10G
QCOW2 has more capabilities than other formats. You could always convert to VMDK later if you had to run under VMWare.
Read more of this article »
Posted by on under Uncategorized |
000c.2982.b68a
show mac-address-table | include 000c.2982.b68a
How to setup forwarding in Linux:
echo “net.ipv4.ip_forward = 1″ >> /etc/sysctl.conf
echo “1″ > /proc/sys/net/ipv4/ip_forward
Line 1 is for after reboot. Line 2 is to change it live.
You may need to have NAT rules setup as well
no ip route 0.0.0.0 0.0.0.0 10.5.4.1 permanent
ip route 0.0.0.0 0.0.0.0 10.5.56.243 permanent
no ip route 0.0.0.0 0.0.0.0 10.5.56.243 permanent
ip route 0.0.0.0 0.0.0.0 10.5.4.1 permanent
Mambo How To:
http://ubuntuforums.org/showthread.php?t=128511
Creating login and password. Once done, you HAVE to login in the administration panel of Mambo and change the password.
Once Mambo is successfully installed, launch your preferred web browser to http://localhost/mambo/administrator
Created the following user and password:
user: debian
password: debian
Thanks for choosing Mambo and Debian
———————————
Outlook:
http://www.messagingtalk.org/content/412.html
——————————-
Disable MYSql Strict mode (for Mombo):
SET @@global.sql_mode= ”;
——————————–http://ubuntuforums.org/showthread.php?t=128511
Test current IPTables:
sudo iptables -L
Should show base config of:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
more at:
https://help.ubuntu.com/community/IptablesHowTo#head-d8c109d03d0a9a801811f098044e52946cba1a8c
http://www.yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html
——————-
Enable forward on interfaces:
Edit file
/etc/sysctl.conf:
net.ipv4.ip_forward = 1
in memory to test:
echo 1 > /proc/sys/net/ipv4/ip_forward
Ubuntu NAT Tables:
http://www.howtoforge.com/nat_iptables
iptables –flush # Flush all the rules in filter and nat tables
iptables –table nat –flush
iptables –delete-chain
# Delete all chains that are not in default filter and nat table
iptables –table nat –delete-chain
# Set up IP FORWARDing and Masquerading
iptables –table nat –append POSTROUTING –out-interface eth0 -j MASQUERADE
iptables –append FORWARD –in-interface eth1 -j ACCEPT
# Enables packet forwarding by kernel
echo 1 > /proc/sys/net/ipv4/ip_forward
#Apply the configuration
service iptables restart
additional info:
Replace xx.xx.xx.xx with your WAN IP
Replace yy.yy.yy.yy with your LAN IP
(i.e. 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 as suggested by Mr. tzs)
WAN = eth0 with public IP xx.xx.xx.xx
LAN = eth1 with private IP yy.yy.yy.yy/ 255.255.0.0
Step by Step Procedure
Step #1. Add 2 Network cards to the Linux box
Step #2. Verify the Network cards, Wether they installed properly or not
ls /etc/sysconfig/network-scripts/ifcfg-eth* | wc -l
Remove ads
( The output should be “2″)
Step #3. Configure eth0 for Internet with a Public ( IP External network or Internet)
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=xx.xx.xx.255 # Optional Entry
HWADDR=00:50:BA:88:72:D4 # Optional Entry
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0 # Provided by the ISP
NETWORK=xx.xx.xx.0 # Optional
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=xx.xx.xx.1 # Provided by the ISP
Step #4. Configure eth1 for LAN with a Private IP (Internal private network)
cat /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=none
PEERDNS=yes
HWADDR=00:50:8B:CF:9C:05 # Optional
TYPE=Ethernet
IPV6INIT=no
DEVICE=eth1
NETMASK=255.255.0.0 # Specify based on your requirement
BROADCAST=”"
IPADDR=192.168.2.1 # Gateway of the LAN
NETWORK=192.168.0.0 # Optional
USERCTL=no
ONBOOT=yes
Step #5. Host Configuration (Optional)Replace xx.xx.xx.xx with your WAN IP
Replace yy.yy.yy.yy with your LAN IP
(i.e. 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 as suggested by Mr. tzs)
WAN = eth0 with public IP xx.xx.xx.xx
LAN = eth1 with private IP yy.yy.yy.yy/ 255.255.0.0
Step by Step Procedure
Step #1. Add 2 Network cards to the Linux box
Step #2. Verify the Network cards, Wether they installed properly or not
ls /etc/sysconfig/network-scripts/ifcfg-eth* | wc -l
Remove ads
( The output should be “2″)
Step #3. Configure eth0 for Internet with a Public ( IP External network or Internet)
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=xx.xx.xx.255 # Optional Entry
HWADDR=00:50:BA:88:72:D4 # Optional Entry
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0 # Provided by the ISP
NETWORK=xx.xx.xx.0 # Optional
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=xx.xx.xx.1 # Provided by the ISP
Step #4. Configure eth1 for LAN with a Private IP (Internal private network)
cat /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=none
PEERDNS=yes
HWADDR=00:50:8B:CF:9C:05 # Optional
TYPE=Ethernet
IPV6INIT=no
DEVICE=eth1
NETMASK=255.255.0.0 # Specify based on your requirement
BROADCAST=”"
IPADDR=192.168.2.1 # Gateway of the LAN
NETWORK=192.168.0.0 # Optional
USERCTL=no
ONBOOT=yes
Step #5. Host Configuration (Optional)
cat /etc/hosts
127.0.0.1 nat localhost.localdomain localhost
Step #6. Gateway Configuration
cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=nat
GATEWAY=xx.xx.xx.1 # Internet Gateway, provided by the ISP
Step #7. DNS Configuration
cat /etc/resolv.conf
nameserver 203.145.184.13 # Primary DNS Server provided by the ISP
nameserver 202.56.250.5 # Secondary DNS Server provided by the ISP
cat /etc/hosts
127.0.0.1 nat localhost.localdomain localhost
Step #6. Gateway Configuration
cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=nat
GATEWAY=xx.xx.xx.1 # Internet Gateway, provided by the ISP
Step #7. DNS Configuration
cat /etc/resolv.conf
nameserver 203.145.184.13 # Primary DNS Server provided by the ISP
nameserver 202.56.250.5 # Secondary DNS Server provided by the ISP
Read more of this article »
Posted by on under Uncategorized |
I have been looking around for quite a while for a solid replacement to Outlook. Actually, I looked at Evolution a while back and found it lacking - I think now it was me.
I have used Thunderbird, Sunbird, Kontact (Kmail and all the others) and a few other forgetful applications. Unfortunately, MS has a bit of a coup where Outlook is concerned (especially when Exchange is the back-end). It is fast for one. Plus, all the Calendaring functions, along with Tasks and Contacts are well known and work reasonably well- again, you really need Exchange on the backend.
In my quest for an open-source solution, I had a few main points to consider:
- personal user - with whatever e-mail/ groupware solution I choose on the backend
- professional use - to use at work and integrate with Exchange
- professional use - to provide an option to others that I support (in my IT role) that can be used in place of Outlook
Overall, I am not advocating a change from Outlook for the sake of change (although moving from Exchange to open source alternatives I am highly advocating, and will write about later). For an end-user, if the application you are using works meets your requirements then the need is not there. However, I am looking for the best, open-source, easy to use, and fully featured solutions that I can find. Evolution is at a high enough watermark for me to write about. I am happy to say that I can finally get off of Outlook…
Read more of this article »
Posted by on under Uncategorized |
- Base Ubuntu 7.10 Server on Intel VT/ AMD-V capable proc
w/ KVM
Setup VM with IDE drive (as it is all that is avaialble) for base OS
Install iSCSI client in VM
Setup HOST with iSCSI server support
Setup at least 2 Virtual NICs, one for dedicated iSCSI (all virtual), one for bridged physical access
Host shares drive/ drive space/ partitions via iSCSI
Should have fast performance on virtual NIC, and potability between the available physical drives
Read more of this article »