#
#
#
#
#
#

Meaning of CHMOD

Chmod is the option for us to make file or folder have privilage status.
Standard form of chmod is:

$ chmod 421

The first digit : the file / folder is for user.
The second digit : file / folder is for group.
The third: universal user.

The amount of the number, has meanings:
4 >> Allow Read
2 >> Allow Write
1 >> Allow Execute

It is a standar number of chmod. If you meet 7,6,5,3, it must amount of standar number.
7 = 4 + 2 + 1
6 = 4 + 2
5 = 4 + 1
3 = 2 + 1

notes:
.. parent

elshadino act

Reconfigure Resolution

| UBUNTU |

Playing with xorg.conf can make monitor malfunction. Like can't enter the xorg server. To backup your the configuration of xorg.conf, give this command operation on your console:

$ sudo dpkg-reconfigure -phigh xserver-xorg

Automatically, your screen resolution will be health.

elshadino act

Install MySQL in Ubuntu

| UBUNTU |

It may seem easy for some, but for others, installing MySQL on Ubuntu or Debian Linux is not an easy task. This article explains to you how to install the MySQL Server and Client packages on a Ubuntu/Debian system.

First of all, make sure your package management tools are up-to-date. Also make sure you install all the latest software available.

sudo apt-get update
sudo apt-get dist-upgrade

After a few moments (or minutes, depending on the state of your system), you’re ready to install MySQL.

By default, recent Ubuntu/Debian systems install a MySQL Server from the 5-branch. This is a good thing, so don’t worry.

First, install the MySQL server and client packages:

sudo apt-get install mysql-server mysql-client

When done, you have a MySQL database read to rock ‘n roll. However, there’s more to do.

You need to set a root password, for starters. MySQL has it’s own user accounts, which are not related to the user accounts on your Linux machine. By default, the root account of the MySQL Server is empty. You need to set it. Please replace ‘mypassword’ with your actual password and myhostname with your actual hostname.

sudo mysqladmin -u root -h localhost password 'mypassword'
sudo mysqladmin -u root -h myhostname password 'mypassword'

Now, you probably don’t want just the MySQL Server. Most likely you have Apache+PHP already installed, and want MySQL to go with that. Here are some libraries you need to install to make MySQL available to PHP:

sudo apt-get install php5-mysql

Or for Ruby:

sudo apt-get install libmysql-ruby

You can now access your MySQL server like this:

mysql -u root -p

Have fun using MySQL Server.


source: ariejan.net

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]
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
Check your samba sharing!
$ 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:
users valid =
elshadino act

Which is Yours??

Followers

OGGIX