Samba Configuration
|LINUX|
Once Again about file sharing.
Samba is free software which re-implementation of SMB/CIFS networking protocol, that is developed by Adrew Tridgell. With samba, it will enable us to sharing file among some operating system based on Unix / Linux, Windows, everthan MacOS.
How to configure samba in Linux?
You must have samba software in your Tux. By default, it will be installed automatically at fisrt time. Ensure samba was installed and then do this:
(In this case, we will share folder with samba)
Edit Configuration of samba
$ sudo vim /etc/samba/smb.conf
[Guest Share]Check your samba sharing!
comment = share to all
path = /path/directory
browseable = yes
writeable = yes
read only = yes
guest ok = yes
encrypt password = yes
smbpasswd file = /etc/samba/smbpasswd
hosts allow = 192.168.19.0/255.255.255.0
Restart service of samba
$ sudo /etc/init.d/samba restart
$ testparm
For complete setting, check this out!
[global]
workgroup = MSHOME
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = lo eth0
bind interfaces only = true
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
[Media]
comment = Full Access Media Share
path = /media/Media
browseable = yes
read only = yes
guest ok = yes
If you want to certain user can open the sharing folder, you must add your user to user samba.
$ sudo smbpasswd -a
and in the configuration, add this:elshadino act
users valid =
Upgrade To Ubuntu 9.04
|UBUNTU|
Altough in April 23th, 2009 The Jaunty (Ubuntu 9.04) will be released, but it doesn't matter if you try the beta version of it!
To upgrade from Ubuntu 8.10 on a desktop system, press Alt+F2 and type in "update-manager -d" (without the quotes) into the command box. Update Manager should open up and tell you: New distribution release '9.04' is available. Click Upgrade and follow the on-screen instructions.
To upgrade from Ubuntu 8.10 on a server system: install the update-manager-core package if it is not already installed; edit /etc/update-manager/release-upgrades and set Prompt=normal; launch the upgrade tool with the command sudo do-release-upgrade; and follow the on-screen instructions.
Thanks to Ubuntu
elshadino act
Using NFS Sharing Via Exportfs
| CentOS |
Notice the step bellow:
1. Enter root login
2. Edit exportfs setting
$ vim /etc/exportfs
/home/ 192.168.19.0/255.255.255.0(ro,no_root_squash,no_all_squash,sync)
explaination:
/home/
This is filled by sharing path.
192.168.19.0/255.255.255.0
This is setting for sharing to all IP Class
3. Start the service
$ /sbin/service nfs start
4. Check the service
$ exportfs
elshadino act
User Management
| STARTCOM/REDHAT |
Adding user in terminal:
First way:
Login on root and follow this steps
$ adduser newusername -p newuserpassword
Second way:
Login on common user, and follow this steps
$ /usr/sbin/adduser newusername -p newuserpassword
elshadino act
Sax, Setting Your VGA
|OPEN SUSE|
In this time, I will review Open suse again. Do you know sax? The function of sax is similar with yast. Deferences between yast and sax is only on the spesific of setting. In sax, we only can set monitor, mouse, keyboard, tablet, and touch screen.
Why do we use Sax?
We use sax if the yast manager is not function well. The example is when your desktop open suse is looked big (resolution 800x600) and you can't set it bigger become 1024 x 768 resolution. This is the function of sax.
Using sax
In terminal, you can type
$ sudo sax2
and lets the application run.
Setting VGA Card
To setCard and monitor properties, you should use sax2 under shell via init 3 and below su.
In terminal (SU), type
$ sudo init 3
$ sax2
and the same thing, lets the application run.
elshadino act
Shortcut on Opensuse
|OPENSUSE|
First time I used Opensuse, I fell very guilty because I don't familiar with it. Once upon when my friend asked to me "Where is the task manager of OpenSuse?"
Ofcourse I don't know the answer. Shaming don't hear him, is the best answer.. Hahahaha...
After that, I try to search it in the forum. Do you know the answer?
Yes, you only push CTRL and ESC key together.
Another tip: To search file or folder, you can push CTRL and F2 key together.
elshadino act
Show Your Distro In Terminal
Many ways to show the linux version in terminal, they are:
$ dmesg | head -1
it will show you:
Linux version 2.6.18-92.el5xen (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Jun 10 19:55:54 EDT 2008
$ cat /proc/version
it will show you with the same as command before.
$ cat /etc/issue
it will show you this text
CentOS release final 5.2. (Final)
kernel \r on an \m
Start Service Server
To make service server run automatically:
$ sudo /usr/sbin/ntsysv
To make service server run manually:
$ sudo /sbin/service xxx {start|stop|restart|etc.}
elshadino act
Chmod
0 = Nothing
1 = Execute
2 = Write
3 = Execute & Write (2 + 1)
4 = Read
5 = Execute & Read (4 + 1)
6 = Read & Write (4 + 2)
7 = Execute & Read & Write (4 + 2 + 1)
elshadino act
DOWNLOAD WITH WGET
GNU Wget is a simple linux program that retrieves content from web. Its name is derived from World Wide Web and get, connotative of its primary function. It currently supports downloading via HTTP, HTTPS and FTP protocols, the most popular TCP-IP -based protocols used for web browsing.
How to use it?
Open your terminal, set wget proxy with su login. With vi/vim text editor, edit the wget rc.
# vim /etc/wgetrc
search the http and ftp setting, set as your server proxy.
To start downloading:
# wget -c -i file-link
or
# wget -c download_link_location
elshadino act
Remove Program
Any ways to unistall program on linux, from terminal you can use this:
# aptitude remove package
# rpm --erase package
# rpm -qa | grep package
# sudo apt-get remove package
Then if you want to know what program had been installed, you can use this command:
# dpkg --list
elshadino act
Tutorial for Newbee
Need tutorial for linux?
Just share for the newbee, you can klick in this baby tux and let's fun with linux...
elshadino act.