Posted by mcloide on September 28, 2009
is by far the best file / printer sharing service available for Linux. It will surely provides a way to share folders, files and printers with Linux systems and Windows systems, therefore installing it on Xubuntu have some tricks.
First, using Synaptic (or apt-get) install samba (lower case). It will also ask to install other libraries and install them as well.
The next step is to install swat (lower case) a web management tool for SAMBA. Just like SAMBA you can either use the Synaptic or the apt-get to install it.
Now come the tricks.
First make sure that the that the #<off># is removed in the /etc/inetd.conf file.
Now, with apt-get, install the xinetd server. This is the second most important step to allow SAMBA and SWAT to work together.
To finalize, open the xinetd.conf file (/etc/xinetd.conf) and add before the xinetd.d include:
# description: SAMBA SWAT
service swat
{
disable = no
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/sbin/swat
port = 901
}
With this it will be possible to access SWAT by 127.0.0.1:901 at your browser.
By default it will only enable the printer sharing to any users. To allow folder sharing, you must go to:
[Menu] Applications -> System -> Shared folders.
Now all is left is to configure SAMBA, a task that using SWAT, becomes very easy.
Have fun.
Posted in linux | Tagged: install, linux, samba, swat, xubuntu | 1 Comment »
Posted by mcloide on May 20, 2009
Some times doing the same action again and again is quite anoying, so creating a bash script might be the easier way out.
A bash script is simply a file that executes a series of commands. Something very similar to bat files on Windows.
As many other Xubuntu and Linux users, I had no idea of how to create a bash script and how to execute. Well is pretty simple. While surfing the net I found a pretty good tutorial that will give you the basics of how to create a very simple bash script: http://floppix.ccai.com/scripts1.html
Now some notes:
- The extension of the bash script does not matter, but the usual is .sh
- If you are saving something that will be used globally, the best place to save is /usr/local/bin
- If you are saving something that will be used only by your user then save it at ~bin
- Linux will look for any command that is inside the bin dir, but you can access it on it’s current directory by typing ./command
- the script will be written using c++ mostly (that is Linux main language)
Have fun.
Posted in development, linux | Tagged: bash, linux, script, xubuntu | Leave a Comment »
Posted by mcloide on May 18, 2009
I have been playing with Readyboost for Microsoft Windows Vista and it’s one of the best features (or the only good feature) that Vista has.
Usually I do my programming with a Xubuntu box, so I thought why not try the same with Xubuntu.
It’s not hard.
- Plug, if not plugged, the usb device
- Usually Xubuntu will mount the device (or at least show it for you on the desktop). Right click on the icon (Removable Volume) and check if it is mounted (if you can see the files inside the disk, it is mounted). If so, open a terminal screen and type mount. It will show a list of the mounted devices on y our PC. Try to identify the device name for your usb device. Usually is /dev/sda1, but, like in my case, it can change.
- Mount the device (if not mounted) and in a terminal screen, use the mount command to show a list with all devices mounted. If you are having trouble finding the device, copy the list to mousepad and umount the device (right click on the icon on desktop) and then, list the devices again. Most likely the device that is missing is your device.
- You can use the df -h to list the mounted devices and find out which one is the usb device
- Now, before creating the readyboost, you will need to umount the device, so go to the desktop and right click on the icon and umount it.
- Now let’s set up the swap file (readyboost).
- sudo mkswap /dev/sdf1
- Setting up swapspace version 1, size = 3917820 KiB no label [...]
- sudo swapon -p 32767 /dev/sdf1
- This will set up the swap priority for last (to avoid priority mix with the original swap file)
- Last step, let’s check the swap files:
- cat /proc/swaps
It’s not as easy as Windows Vista, but you can always create a script to run this every time.
Have fun.
Posted in linux | Tagged: linux, readyboost, xubuntu | 2 Comments »
Posted by mcloide on March 9, 2009
I have fought all this weekend with this hassle that is configuring the FreeTDS to correct work with PHP and unixODBC. Yeah, in this case we are talking all Linux.
Most of the times you will see something like this (actually the error message varies a bit, but…)
[unixODBC][FreeTDS][SQL Server]Unable to connect to data source.
What happens is that your data source configuration is either wrong or in the wrong place (yours trully).
To help you troubleshoot the error that you are getting, check the following configurations:
- /etc/odbc.ini
- /etc/odbcinst.ini
- /usr/local/freetds/freetds.conf
Update: Make sure that you are editing the correct freetds.conf file. For that you can use tsql -C that will show you all variables that are enabled in compile time, including the location of the freetds.conf.
These 3 configurations together will construct your data source and when PHP with unixODBC and PDO-DBLIB tries to connect it will run all of those configurations to construct the connection. If you have a wrong configuration you will have that error.
Another thing that you can troubleshoot is checking the FreeTDS configuration in compile time ( tsql -C ). Check if all configuration is as it should. My issue was related to this. One of the configurations that I was missing was to enable freetds to work with msdblib module.
Other thing is to check if you have installed the unixODBC-dev package (source). When you install FreeTDS with unixODBC it will look for a sql.h library. This library is part of the unixODBC-dev package. Install it and it should be good to go.
I’m using Xubuntu 8.10 and 99% of the things that I have installed to make this work where done by the Symatic Package installer.
Hope it helps you as much as it did help me and if you have any questions, post it here and I will try to help you out as much as I can.
Posted in Database Related, PHP, development, linux, resources | Tagged: connect error, freetds, odbc, pdo-dblib, PHP, unixodbc, xubuntu | 4 Comments »
Posted by mcloide on February 23, 2009

Installing Skype under Xunbutu is not hard, but if you are having problems while installing, there is a good chance that you either might have the wrong version (32 or 64 bits) or you are not able to download additional packages because you don’t have the source set (yours trully).
If this is your case, then the solution is simple: Using the terminal, add the source and update it, so you have all sources set. Since this will vary by version, check this post on the Mediabuntu Community under adding repositories.
Run both commands and downlaod the Skype package from the Skype Linux Download Page.
Run the package installer and you should be good to go.
Have fun [Linux Version]
Posted in development | Tagged: install, repository, skype, xubuntu | Leave a Comment »
Posted by mcloide on November 10, 2008

I was reading some articles around and I found an article that is great, installing Ubuntu into your flash drive. Off course you will have some requirements and restrictions, but it is a great feature to test it on.
I will do some tests and latter place the results here, but meanwhile you can check the full article at: xUbuntu Blog
Posted in resources | Tagged: flash-drive, install, ubuntu, usb, xubuntu | 2 Comments »