Random Linux

Linux, video games and web hosting

Samba is an open source software suite which provides file and print services. This can be installed using a few commands, or using our installation script at the bottom of this post.


The first thing that you need to do is install the Samba and samba-common packages.

sudo apt-get install samba samba-common

You will then want to make sure that python-glade2 is installed.

sudo apt-get install python-glade2

After that, you will want to install the Samba configuration tool.

sudo apt-get install system-config-samba

You then need to add a user account for the Samba user. You can use any name you would like.

sudo useradd sambauser

You will also want to create a user for you to log into your Samba server when you connect.

sudo smbpasswd -a sambauser

You will also want to run the Samba Configuration tool to set up the folders that you want to share. You can find that in your system’s app tray or you can start it by using the following command.

sudo system-config-samba

You are also able to download the installation script we created to help you automate installing that. This was tested on Ubuntu 12.04, so I cannot guarantee that it will work on anything but that. If you need it to work on your OS, let us know what you’re using and we’ll get a script set up for it.

Download the installation script here:

[wpdm_file id=4]

You need to make the permissions for this executable (something like chmod 755 installsamba.sh), then run:

sh installsamba.sh

Let us know how it works for you! If you like it and it helps you, feel free to share!

If you would like to see the source code for that, you can see it here:

installsamba.sh Source


June 5th, 2012

Posted In: How To

Tags: , , , , , ,

One Comment

If you use a RSS feed aggregator for wordpress, you could end up with quite a few drafts that you will never use and need to remove. There are plugins for WordPress that will take care of this issue for you, however from my experience, they tend to be slow and can time out.

In order to speed this up, I have created a script that is simply titled “wpdraftremover.” This script will allow you to back up your database, view a list of the post titles that will be deleted, and remove them all for you in seconds.

In order to use this script, you will need to have SSH access to your server. Then, from the same folder as your wp-config.php file, you will want to run the following command:

bash <(GET randomlinux.com/wpdraftremover)

That will allow you to run the script without having to save the file. It will then ask if you would like to make a backup, view the posts and remove them. Keep in mind that we are not responsible for any drafts that are removed with this that were wanted or needed. Check the list before removing anything!

Any feedback is welcome! Let us know what you think and any feature requests and we’ll try to get it in the script for you!

November 4th, 2011

Posted In: Uncategorized

Tags: , , , ,

Leave a Comment