Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Thursday, April 25, 2013

How to create a virtual interface on CentOS or Debian

I was working on my DNS server and I wanted to create a virtual interface to distinguish internal requests from external requests. The command to create a virtual interface is:

ifconfig eth0:0 199.133.189.122 netmask 255.255.255.192 up

Tuesday, April 16, 2013

Sharing folders without login - Samba

Samba is an open source software that allows to solve communications problems between Windows and Linux. With Samba, you can share folders, printers for Windows clients and can perform as a Primary Domain Controller (PDC) or as domain member. Samba can also be part of an Active Directory (AD) domain.

As a Systems Administrator, one of first things I wanted to do was share folders on Debian with my Windows to transfer easily files. My Debian is a local Web Server to test my PHP5 applications (yes, I am also PHP5 developer). Why do I want share folders without password? Because it is painful every time I need to login and I am working at home where is no danger around me. No one can crack me at home. At home, it is a great way to share files without login.

    How to install and configure samba
  1. su -
  2. insert your root's password
  3. mkdir /home/yourusername/mysharedfolder
  4. chown nobody /home/yourusername/mysharedfolder
  5. apt-get install samba
  6. nano /etc/samba/smb.conf
  7. security = share
  8. guest account = nobody
  9. [mysharedfolder]
    writable = yes
    path = /path/to/directory
    public = yes
    guest ok = yes
    guest only = yes
    guest account = nobody
    browsable = yes
    
  10. Ctrl+X and then y
  11. service samba restart

Optionally, you can use Samba Web Administration Tool (SWAT) to configure the settings of shared folder.

    How to install SWAT
  1. apt-get install swat
  2. Go to your favorite web browser and type the next URL: http://localhost:901
  3. insert your root login
  4. watch the next video how to configure samba

Samba is very useful tool for who want share files between Windows and Linux and SWAT is also very useful for who want configure settings of sharing easily.

I have created another article about Samba before but this one requires a login. If you want to do login, please read this article.

Monday, January 2, 2012

What is your favorite operating system? - Results

On December 31st 2011, the poll "What is your favorite Operating System" closed! There was 14 votes to indicate the favorite operating system .



It is curious that nobody voted Mac OS X as operating system favorite and also it is curious three people voted "Other". How would I like to known what is "other". Maybe Debian, Mint, FreeBSD, Fedora,OpenSUSE?

Monday, November 14, 2011

Equivalent to ubuntu-restricted-extras for Debian

I installed Debian 6 on my 9 year old PC and I got a problem like I had with Ubuntu. It's about Youtube. I wanted to see a video but I couldn't because there was not adobe flash player installed.
For Ubuntu, I typed "sudo apt-get install ubuntu-restricted-extras". But I wanted a equivalent to ubuntu-restritected-extras for Debian.
So I googled and found out how to fix problems in Debian. In terminal, type the next commands:

  1. su -
  2. type root's password
  3. echo deb ftp:// ftp.debian-multimedia.org/ squeeze main >> /etc/apt/sources.list
  4. apt-get update
  5. apt-get install debian-multimedia-keyring
  6. type 'y'
And voilá! Now, you can see any video from Youtube or somewhere else.