Blog

Category Filtering: 'Linux'

Remove Filter


Display Number of Processors-Cores assigned on Linux

Posted by Luis Majano
Sep 20, 2013 11:37:00 UTC

Here is a simple nice command to figure out how many processors or cores are assigned to a *unix machine.

cat /proc/cpuinfo | grep processor | wc -l

 

This basically processes the lines containing the processor information and counts them up for you, I got 4.  Try the same commands without the word count (wc) pipe and you can get much more information in detail.

cat /proc/cpuinfo | grep processor

 

By trying the above I got the following:

processor	: 0
processor	: 1
processor	: 2
processor	: 3

 

Try it even further without the grep for processor and you get lots of detailed information about your system.  Try it out!

cat /proc/cpuinfo

 

Installing JoliCloud VirtualBox additions

Posted by Luis Majano
Apr 23, 2010 21:52:12 UTC
This is more of a memo for me than anything else.  I just recently downloaded JoliCloud to give it a spin before I decided what OS to run on my new netbook.  I am very impressed with JoliCloud and love its look and feel.  Here are the instructions I have found in order to make VirtualBox additions work:

Jolicloud doesn't come with everything you need to build the extra kernel extensions, so you'll need to install a couple of things. First you need to mount the Guest Additions ISO (click the Devices menu, the Install Guest Additions). Once you have it mounted open up a new Terminal window and type the following:

sudo apt-get update

sudo apt-get install make linux-headers-$(uname -r)

cd /media/cdrom0

sudo ./VBoxLinuxAdditions-x86.run

Hope this helps out

How to mount a remote ssh filesystem on ubuntu

Posted by Luis Majano
Nov 22, 2005 00:00:00 UTC
I have been fooling around with CFEclipse for a while, and one of the things it still lacks is full FTP support. For some reason my VSFTP at home on my Ubuntu box was throwing a out of index error on Eclipse. So I decided to mount my filesystem via ssh, for more security, on my Ubuntu distro on a laptop.

The following is a guide of how to mount an SSH filesystem using sshfs on Ubuntu (Breezy 5.10).

Please note that SSH is a more secure protocol than ftp or Samba.

The first thing you need to do is install sshfs via the apt-get utility. Below is a description of sshfs:

sshfs is a filesystem client based on the SSH File Transfer Protocol.

Since most SSH servers already support this protocol it is very easy to

set up: i.e. on the server side there?s nothing to do. On the client

side mounting the filesystem is as easy as logging into the server with

ssh.

Install sshfs by doing a:

$sudo apt-get install sshfs

This will install fuse-utils and libfuse2 which are required. After the install is successfull then you will need to change the permissions on the following file in order to run an sshfs command.

$sudo chmod +x /usr/bin/fusermount

This will allow your user to run the fusermount command, which is used by sshfs to mount ssh filesystems.

After this you are ready to use the command. However, you will need to create the mount point of where you want the ssh directory to be mounted. Let's say that you want to connect to the following directory in your server via ssh: "/MyDocuments" and you want to mount this directory in the following local directory: "/home/luis/Mounts/MyDocuments"

If this is the case then I would run the following command to mount the ssh filesystem:

$sshfs [email protected]:/MyDocuments /home/luis/Mounts/MyDocuments/

After you run this command you will be prompted for your account password. Once you successfully enter your password, your filesystem will be mounted.

Please remember that if you want to mount an ssh filesystem, you need to have an active SSH account on the system you are trying to connect to.

Now if you need to unmount the filesystem, then run the following command:

$sudo umount /home/luis/Mounts/MyDocuments/

And you will unmount the ssh filesystem.

You can find much more information about ssh and ubuntu in the following location:

http://fuse.sourceforge.net/sshfs.html

And there you go.

Upgrade MySQL 5.0.13 to 5.0.15 Guide

Posted by Luis Majano
Nov 07, 2005 00:00:00 UTC
I just finished upgrading my MySQL Release Candidate installation to the Final MySQL 5.0 Release and found and interesting tip. My OS is Ubuntu 5.10 and I had MySql 5.0.13 RC installed. The following is my setup:

MySQL Install Dir:

/opt/mysql-standard-5.0.13

MySQL Link

/usr/local/mysql ==> /opt/mysql-standard-5.0.13

To upgrade to the new release, I downloaded the Linux (x86, glibc-2.3, dynamic, gcc) Standard Binary

I then extracted the archive to the following location:

/opt/mysql-standard-5.0.15

I continued to copy all of my data folder from my previous install to the new install. Now I fired up a terminal to fix the permission, groups and ownerships following the readme. Below is what you need to do:

shell> cd to /usr/local/mysql

shell> chown -R root .

shell> chown -R mysql data

shell> chgrp -R mysql .

The first command changes the owner attribute of the files to the `root' user. The second changes the owner attribute of the data directory to the `mysql' user. The third changes the group attribute to the `mysql' group.

I then proceed to startup my database. I use webmin, if not just type in the following command:

shell> bin/mysqld_safe --user=mysql &

Everything should be working great now. However, my InnoDB structure databases are somehow "FLOPPED." For some reason, which I still have not been able to figure out, the tables are not working. So a simple workaround, is just to do a simple backup of your InnoDB databases using the MySQL Administrator and then importing them back to the new install. This actually is the approach that the MySQL manual advices.

So there it is, simple, yea right!! MySQL Upgrade.

Ubuntu Breeze Badger 5.10 Released

Posted by Luis Majano
Oct 27, 2005 00:00:00 UTC
I have been out of it for the past days with all these hurricanes, and well Wilma pretty much ravaged south florida.

Anyways, I just found out that Ubuntu has release "Breezy Badger" 5.10. I have been using this distro for a long time now and it is incredible. So this will be an upgrade night.

You can download the new Ubuntu from here:

http://www.ubuntu.com/download/

Below are just some of the new features this incredible Linux Distribution has to offer.

On the Desktop

* GNOME 2.12.1

* OpenOffice.org 2.0 beta 2

* X.org 6.8.2 with wider hardware support

* An enhanced tool for easily installing new applications (see "Add Applications" on the Applications menu)

* A new tool which makes it easy to install support for multiple languages (Language Selector)

* Editable GNOME menus

* Applications are now linked into the Launchpad infrastructure (new entries on the Help menus for translation and support)

* Support for writing audio CDs (Serpentine)

* Graphical startup process with progress bar (USplash)

* New documentation (Ubuntu 5.10 Quick Tour and Ubuntu 5.10 FAQ Guide)

* Language packs with updates from the Rosetta translation platform, part of Launchpad.net, which makes contributing translations easy for everybody in any language.

On the Server

* Kernel support for cluster filesystems (OCFS2 and GFS)

* Plone 2.1 & Zope 2.8.1

* PHP5

* Support for automatic storage allocation into LVM volumes

* Built-in thin client functionality produced in cooperation with the LTSP project

* Simple NFS root setup with automatic hardware detection through initramfs-tools

* Support for up to 4 gigabytes of RAM by default on 32-bit architectures

Hardware Support Improvements

* Linux 2.6.12.6 with many updated drivers from third parties

* Further enhancements to laptop support (hot keys, and working suspend/resume on more models)

* HP all-in-one printer/scanner devices are supported out of the box

* Bluetooth input devices (such as keyboards and mice) are supported out of the box

* Multiple audio devices are handled more gracefully (and one can easily select the default device)

* 64-bit PowerPC kernel available

Installation

* A new OEM mode to simplify the process of preinstalling Ubuntu on computers for resale or redistribution

* Automatically makes existing hard drive partitions available to the desktop

* Simple "dual boot" configuration with automatic resizing of an existing installed OS

* The second stage of the installation now has a progress bar

"Under the hood"

* GCC 4.0.1

* glibc 2.3.5

* New early userspace infrastructure based on initramfs-tools

* More modular X.org packaging

* Python 2.4.2

As always, Ubuntu includes the very best of the 100% free/libre application software world, and each new release incorporates countless new features and bugfixes from the global development community.

Upgrading Ubuntu 5.04 to 5.10

Posted by Luis Majano
Oct 27, 2005 00:00:00 UTC
I found this great Wiki article on the Ubuntu wiki that I wanted to share to all those folks that need a whitepaper on how to upgrade Ubuntu to the latest release. I have not yet implemented it, but I will surely do and let you know how it goes.

Ubuntu Wiki Upgrade Whitepaper

I have also attached the whitepaper in PDF format for your convenience.

Let me know how your upgrades go?

Ubuntu Best Distro!!

Posted by Luis Majano
Oct 10, 2005 00:00:00 UTC
Ubuntu has done it again!!

It has won the UK Linux & Open Source Best Distribution award.

Best Linux/Open Source Distribution

Winner - Ubuntu - Canonical

Finalists:

Debian - Debian

Fedora - RedHat

I have been using Ubuntu for about a year now and it has been an incredible ride. It is the first distribution that I have real admiration for, well FEDORA too. But this distribution really has their stuff together. Give it a try, its free!!

Ubuntu is a complete Linux-based operating system, freely available with both community and professional support.

Ubuntu will always be free of charge, and there is no extra fee for the "enterprise edition", we make our very best work available to everyone on the same Free terms.

Ubuntu comes with full commercial support from hundreds of companies around the world. Ubuntu is released regularly and predictably; a new release is made every six months. Each release is supported with free security updates and fixes for at least 18 months.

Ubuntu includes the very best in translations and accessibility infrastructure (the Rosetta system) that the Free Software community has to offer, to make Ubuntu usable by as many people as possible. We collaborate as widely as possible on bug fixing and code sharing.

Ubuntu is entirely committed to the principles of free software development; we encourage people to use free and open source software, improve it and pass it on.

Site Updates

Archives

Entries Search