Jun 11, 2008

Samba File Server

Now, i re-install one of the server to be pointed as a fileserver, which will stores files from the users here. I installed samba on Ubuntu Hardy Heron server edition

We will concentrate on /etc/samba/smb.conf ( samba configuration file )

The condition that i like to make are :

  1. one public shared folder
  2. some folder which can be access base on that folder password
Base on the above conditions, so :
  • sudo mkdir /home/shared { create a shared folder for public }
  • sudo adduser --home /home/source source {create source user}
  • sudo adduser --home /home/filing filing {create filing user}
  • sudo smbpasswd -a source {smbpasswd for source}
  • sudo smbpasswd -a filing {smbpasswd for filing}
  • sudo nano /etc/samba/smb.conf
below is the content that i adjusted of my smb.conf file;
[global]
workgroup = workgroup_name
netbios name = citserver { this computer name for network }
host allow = 192.168.1.0/24
server string = %h (Ubuntu Samba Server)
security = share
smb passwd file = /etc/bin/smbpasswd
dns proxy = no

[home]
read only = no
browseable = no

[shared]
path = /home/shared/
comment = X Directory
public = yes
read only = no
browseable = yes

don't forget to restart the samba service :==> sudo /etc/init.d/samba restart

Now, you can access samba shares from the clients
For Windows :==> type \\citserver\foldername on explorer bar
For Linux :==> smb://citserver/foldername on nautilus bar

For more and details info :==>
Ubuntu help
Thanks to Mr. Taufan Lubis



May 14, 2008

My MailServer

Since ClarkConnect Community Edition is only gave 10 Mailboxes, so i have to learn how to make a Mail Server by myself.

I built this Mail Server based on these links :

I lost my Mysql password ...but it can be recovered by doing ;
  1. Open Terminal then type sudo /etc/init.d/mysql stop
  2. then run : mysqld_safe --skip-grant-tables &
  3. you will be able to login as root with no password by : mysql -uroot mysql
  4. Then run : UPDATE user SET password=PASSWORD("abcd") WHERE user="root"; ( abcd means your new password for root )
  5. then run : FLUSH PRIVILEGES;
  6. Now you can login by : mysql -uroot -pabcd mysql
How to install Squirrelmail plugins ?
  1. Go to Squirrel plugins site to pick a plugins
  2. Download it
  3. Extract it to /usr/share/squirrelmail/plugins
  4. Open terminal, run : sudo squirrelmail-configure
  5. Select option 8
  6. Select the number of plugins that you wanted to run
  7. type Q to quit ( save before you quit by press S )
Next, i add these lines into /etc/postfix/main.cf
  • mailbox_size_limit = 51200000 { mailbox size approx = 50MB }
  • message_size_limit = 5120000 { message size + attachments approx = 5MB }

Regards;
~E~

May 13, 2008

Some things to :

Add some themes from the HH repo :
sudo apt-get install tropic-gdm-theme tropic-look tropic-session-splashes tropic-theme tropic-wallpapers blubuntu-gdm-theme blubuntu-look blubuntu-session-splashes blubuntu-theme blubuntu-wallpapers peace-gdm-theme peace-look peace-session-splashes peace-theme peace-wallpapers

type that from terminal......


Offline Windows Fonts installation

  1. Download msttcorefonts-offline from here
  2. Open Terminal, run : sudo dpkg -i msttcorefonts-offline_1.0-0ubuntu1_all.deb
  3. then sudo apt-get install msttcorefonts

Adding fonts to your Linux
  1. search the fonts in the internet and download them
  2. extract the font into a folder
  3. from terminal, copy that folder to /usr/share/fonts
  4. restart your OO....you will have new font(s)

Mounting a samba shared folder
  1. Open terminal : sudo mkdir /media/y
  2. then : sudo mount -t smbfs //computername/foldername /media/y -o username=username
  3. You will be asked for that folder password
  4. Now you have drive Y
  5. To unmount : sudo umount /media/y


Regards;
~E~