Silviu Says

Quick notes on HOWTO without blabla

WordPress post permalinks not found


After a failed WordPress update and a clean installation, you might find out, after you migrated everything to the new installation folder (mostly wp-config.php and themes/plugins), that your post permalinks won’t work anymore. They all point towards 404 Not Found pages. The thing that did the trick for me: recover the .htaccess from the root folder of a backup of your blog and copy it to the root of the new folder.

posted under Wordpress | No Comments »

Install .deb package with dependencies


While installing a (freshly) downloaded .deb package like described in this earlier post, errors might come up as dependencies are missing…

How about letting apt-get handle the situation (if those dependencies can be found in the repositories):

sudo apt-get -f install
posted under Linux | No Comments »



FTPS is FTP over Secure Socket Layer (SSL).
SFTP is a FTP like session over an encrypted SSH connection.

As both are methods of encrypting FTP traffic, a major difference would be that users of SFTP need to have a shell account on the system (aka SSH access), instead of a nologin shell (as it could be the case for FTPS).

posted under Linux | No Comments »

Download and Install Firefox in Ubuntu – the old fashioned way


Get a compatible version of Firefox from their website/ftp. We are going to use Firefox 12.0 for Linux x64 in US english from here.

Extract the archive as explained before, move the firefox folder to


and create a symbolic link to point to it so you can use it anywhere:

sudo ln -s /opt/firefox/firefox /usr/bin/firefox
posted under Linux | No Comments »

Create tar.gz and tar.bz2 compressed archives in Ubuntu


You can create the compressed archive from a file or from a folder.

For gzip compression:

tar czf {new archive}.tar.gz {your file or folder}

For bzip2 compression:

tar cjf {new archive}.tar.bz2 {your file or folder}
c - create an archive
z - using gzip
j - using bzip2
f - using the following file(s)

Note that you can create archives using multiple files or folders as input. You just have to enumerate them.

tar czf {new archive}.tar.gz {folder1} {folder2} {file1} {file2}

Also note that using:

tar cf {new archive}.tar {your file or folder}

will create a simple uncompressed .tar archive.

posted under Linux | No Comments »

Extract tar.gz and tar.bz2 archives in Ubuntu


Common question. Here’s the answer.

For tar.gz – gzip archive:

tar xzf {name}.tar.gz

For tar.bz2 – bzip2 archive:

tar xjf {name}.tar.bz2
x - extract the archive
z - using gzip
j - using bzip2
f - using the file {name}
v - verbose mode
posted under Linux | 1 Comment »

Install .deb package in Ubuntu


As the title says, it’s done using dpkg:

sudo dpkg -i package.deb
posted under Linux | 1 Comment »

Orange launches its new web browser – Adventurer


HTML5 compatible and with a Chrome look and feel, Adventurer is Orange’s new web browser. Even though, for now, it’s only available in french, I have to admit that I quite didn’t expect this to happen. It has the ability to integrate Orange services and others (like Deezer) and it will soon support add-ons.

You can read more about it and eventually download it here.

posted under News | No Comments »

Creating your first function in Ubuntu


We talked about aliases and aliases with variables… which you can’t create! Well, here’s the solution: functions!

I will give you a nice working example on this one. A pretty print function using ls piped with awk and variables, just for the sake of it!

Function looks like this:

myls () { ls -la --color=yes --group-directories-first | awk '{print $6 "\t" $8 "\t" $1}'; }

Put this at the beginning of:


which you can find in your home directory. Now you can type myls and let the magic happen!

posted under Linux | No Comments »

Aliases in Ubuntu – all you need to know


Aliases are used to make a long command (maybe with a lot of arguments) callable by a short string.

To create an alias:

alias {string}='{command} -{arguments}'

To view the current aliases:


To delete an alias:

unalias {string}

If you want to create more sophisticated aliases with variables, well you can’t! Aliases don’t support variables. Take a look at functions instead…

posted under Linux | 1 Comment »
« Older Entries

StackExchange Network

profile for Silviu Coca on Stack Exchange, a network of free, community-driven Q&A sites