Tag Archives: Linux

Open Media Vault

A few years ago many users, like my self, bought Windows home server but as you might know windows home server is dead.
So few years ago I tested a few NAS solutions like FreeNAS, Ubuntu Server + Webmin, etc.. but in the end I choose Open Media Vault.

OpenMediaServer
Why?

  1. I needed a very simple web interface to configure the server and FreeNAS and Open Media Vault has it.
  2. it has to be light not a resource hog.
  3. Support for samba, users, ftp, ssh, backups and other things I might need.
  4. Support for extensions/plugins.

Both FreeNAS and Open Media Vault have it but I sick with Open Media Vault mainly because it’s based on Debian and I’m more familiar with Debian than with FreeBSD.

I will post here a few links that worth check out so you can learn more about Open Media Vault.

Home
Live Demo
Features
Download
Virtual machine to test

Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Import CSV in MySql Workbench

This is a quick tip on how to import a csv with data into one of your tables.

1º Open MySql Workbench

2º run the following query

On linux:

load data local infile ‘/path/to/your/file.csv’ into table dbName.tableName fields terminated by ‘,’ enclosed by ‘”‘ lines terminated by ‘\n’;

On Windows

load data local infile ‘c:\\path\\to\\your\\file.csv’ into table dbName.tableName fields terminated by ‘,’ enclosed by ‘”‘ lines terminated by ‘\n’;

 

Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Mount box.com in ubuntu 12.04

If you have a Box account a would like to use it in ubuntu 12.04 these are the commands you will need to execute:

1º sudo apt-get install davfs2
2º sudo dpkg-reconfigure davfs2
    In the screen select Yes
3º sudo cp -r /etc/davfs2/ /home/[Your linux home]/.davfs2
4º sudo chown -R [Your linux user name] /home/[Your linux home]/.davfs2/
5º gedit ~/.davfs2/secrets
    Add this line at the end of the file:
    https://www.box.com/dav [Your box.com email]  [Your box.com password]
    Save the file
6º gedit ~/.davfs2/davfs2.conf
    uncomment remove char #:
    use_locks       0
7º sudo adduser [Your linux user name] davfs2
8º mkdir ~/box.com
9º sudo gedit /etc/fstab
    Add this line at the end of the file:
    https://www.box.com/dav/ /home/[Your linux home]/box.com  davfs  _netdev,rw,user 0 0
10º Restart your computer
And that’s it
Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Ubuntu 12.04 fix ath9k driver

In ubuntu 12.04 and like it’s predecessors ath9k has a huge problem that causes the wireless connection to become very slow and even drop. This is why I’ve migrated from ubuntu 11.04 to 12.04. And the problem isn’t fixed yet.

Goggling a little bit I think I’ve found the solution.
What I did was open this file:
sudo gedit /etc/modprobe.d/ath9k.conf
And add this line:
options ath9k nohwcrypt=1
Hope it helps 🙂
Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Install Ubuntu on Targa 826T MT32

A couple year ago I’ve bought an Targa 826T MT-32 it was a really good laptop and works really well with Windows XP.  This laptop is no more than a rebranded MSI MEGABOOK 635, with the MS-1029 motherboard.

A few years ago I’ve tried to install Linux in this laptop and the result was always the same. After boot the laptop completely frizzes and I had to do a restart, and the same happen again. What I thought was that this laptop was a Windows only laptop.
A few days ago I tried again and the result was the same, only this time I’ve read-it again and I’ve found the problem.
It appears that Targa Bios is sending wrong information and that kernels don’t like wrong information, from what I’ve read-it Linux kernel don’t like it and nither Windows 7. But it seems Windows XP can handle wrong information.
The solution wasn’t simple and I wasn’t able to find a bios that worked until one night that I’ve decided to try install MEGABOOK 635 instead of Targa bios. Since Targa 826T MT-32 is a MEGABOOK 635 it should work.
And I was right. Install MEGABOOK 635 on Targa 826T MT-32 works, and a result of that install I was able to install Ubuntu and use Ubuntu with no problem.
The next problem was Wi-fi. This laptop has a INPROCOMM IPN2220 Wireless LAN Card and this only works in Windows. To make-it work in Ubuntu I had to install NDISWrapper and the Windows Drivers.
Hope every one with this laptop can finally install Linux in It 🙂
Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Install latest ATI drivers in Ubuntu

Recently ATI released it’s latest drivers from linux. (Catalyst 11.9). Unfortunately Ubuntu doesn’t installs these latest version, so you will need to follow a few steps.

In this mini tutorial I will teach you how to install  Catalyst 11.9 on Ubuntu 11.04.
1º Open a terminal where you will run a few commands
2º If you have previous drivers installed you will need to remove them first. is you don’t have any, skip this step
sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove –purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
3º Create a dir where you will place some files
cd ~/
mkdir ati
cd ati/
4º Download latest drivers
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-9-x86.x86_64.run
5º Change file permissions
chmod +x ati-driver-installer-11-9-x86.x86_64.run
6º Create an executable .deb package (Note: if you don’t have Ubuntu 11.04 replace natty with your Ubuntu version)
sudo sh ./ati-driver-installer-11-9-x86.x86_64.run –buildpkg Ubuntu/natty
7º Install
sudo dpkg -i fglrx*.deb
8º Generate a generic /etc/X11/xorg.conf
sudo aticonfig –initial -f
9º This is an alternative step
reboot
10º Start configure you graphics card
Menu > System > Preferences > AMD Catalyst Control Center (Administrative)
11º Test your installation (in command line)
fglrxinfo
For additional information you can check this wiki.
Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter

Disable overlay scrollbar on Ubuntu

In Ubuntu 11.04 overlay scroll bars was introduced by default. If you are like me and don’t like it this is what you need to do:

Method 1 disable overlay scroll bars:
1º Go to the terminal and type:
2º sudo su
3º echo “export LIBOVERLAY_SCROLLBAR=0” > /etc/X11/Xsession.d/80overlayscrollbars
4º Reboot
If this doesn’t work try method 2.
Method 2 remove overlay scroll bars:
1º Go to the terminal and type:
2º sudo apt-get remove overlay-scrollbar liboverlay-scrollbar-0.1-0
3º reboot
Digg thisBuffer this pageShare on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrTweet about this on Twitter