Category Archive : Linux

Firefox Hits 20% Share Worldwide

Firefox is the best web browser, known for its great security, tons of plugins and of course it is open source. They made the first browser to offer multi-tab web browsing, which Bill and his thugs stole for the new IE.

Recently it just passed the 20% mark for market share. A few months ago they release FireFox 3, adding / fixing 15,000 features, and experienced world record breaking downloads.  There were 8,002,530 downloads in a 24 hour period for the new release.

If you’re still using Internet Explorer, then you’re missing out.  ( Really you’re an idiot and your mom is too. ) Firefox will give you a much better web experience.  Download it, try it and you can see for yourself.

Download FireFox here.

Read about firefoxes market share here.

World Record Download here.

Power In The Penguin

For the past 3 years we all have been Linux users in the Searle home.  We have been using a mixture of server based kernel for our files share and web site system, and the Ubuntu ( www.ubuntu.com ) for the desktops and laptops in our home.   We are really happy with the features that come with the systems, including DVD / CD mastering, multimedia, open office suite, email clients and the awesome firefox web browser.

The open source initiative has been and will continue to be a great force in bettering the software and operating system world.  Thousands of collaborating programmers, building and maintaining great software for all of us to use.  Great power and usability for free.

We have started using open source at work too, we have instant message system, databases, forums, wiki and of course Subversoin, the greatest source control system.  ( Subversion Here )

If you haven’t given linux a try, simply go to most any distribution that you want and download a ‘live’ CD.  You can burn the iso file to disc, put it in the drive and boot up.  It will allow you to try the operating system and software without installing anything.  Click on the penguin below for a list of distributions, or go to my favorite Ubuntu, also found below.

Subversion Setup

sudo apt-get install subversion libapache2-svn
sudo mkdir /var/sourcecontrol
sudo mkdir /var/sourcecontrol/repository
sudo vi /etc/apache2/mods-available/dav_svn.conf

SVNParentPath /var/sourcecontrol/repository
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
sudo htpasswd2 -c /etc/apache2/dav_svn.passwd username
sudo svnadmin create /var/sourcecontrol/repository/example
sudo chown www-data:www-data -R /var/sourcecontorol
sudo /etc/init.d/apache2 restart

ssh without password (for rsync)

Make the RSA key on the client:

  • ssh-keygen -t rsa
  • Don’t enter a password

Copy id_rsa.pub from .ssh/ to the server:

  • sftp <server>
  • put id_rsa.pub

Put the contents of id_rsa.pub in authorized_keys file on the server

  • echo id_rsa.pub >> .ssh/authorized_keys

Now you ssh into the server without a password.


MySQL Setup on Ubuntu

sudo apt-get install mysql-server

sudo apt-get install apache2

sudo apt-get install libapache2-mod-auth-mysql

sudo apt-get install php5

sudo apt-get install phpmyadmin

sudo apt-get install php5-adodb

Samba Server Setup

Install Samba Server on Ubuntu

If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.

To install, first open a terminal window and enter the following command:

sudo apt-get install samba smbfs

We’ve got samba installed, but now we’ll need to configure it to make it accessible. Run the following command to open the configuration file, substituting your editor of choice:

sudo gedit /etc/samba/smb.conf

Find this section in the file:


####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers

[MyFiles]
path = /media/samba/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = YOUR_USERNAME
force group = YOUR_USERGROUP

This will set Samba to use the smbusers file for looking up the user list.

Create a Samba User

There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a <username>

Raid 1

Good Raid Setup can be found at

http://users.piuha.net/martti/comp/ubuntu/en/raid.html

Add User

Options:

  • -d home directory
  • -s starting program (shell)
  • -p password
  • -g (primary group assigned to the users)
  • -G (Other groups the user belongs to)
  • -m (Create the user’s home directory

Example: To add a new user with:

  • a primary group of users
  • a second group mgmt
  • starting shell /bin/bash
  • password of xxxx
  • home directory of roger
  • create home directory
  • a login name of roger

You would:

sudo useradd -g users -G mgmt -s /bin/bash -p xxxx -d /home/roger -m roger

To add to sudo users:

sudo usermod -a -G admin username