Monthly Archives: February 2014

Gnome tips: add minimize and maximize buttons

Gnome tips: add minimize and maximize buttonsEver missed the minimize and maximize buttons on your Ubuntu gnome installation? In this post I show you how you can easily add them to your Gnome installation. All you need is the dconf-editor (use apt-get install to install it if you have not already done so):

Open the dconf-editor and navigate to “org -> gnome -> shell -> override”. Select the button layout item and change its value from “:close” to “menu,:close,minimize,maximize”.

The menu is placed left and the items to the right of the column are positioned right on the window bar.

The GUI is immediately updated with your changes.

Share

FTP with curlftpfs

You can easily use curlftpfs to FTP your files. The command below FTP’s a complete directory structure to your local machine. The advantage over the wget command is that the curlftpfs command preserves your file and directory permissions.

Mount an FTP folder with the following command:

curlftpfs ftp.srv.nl /tmp/ftp/ -o user=[username]:[password],allow_other

This will mount the remote (FTP) directory on /tmp/ftp

 

Share

FTP a folder with wget

You can easily use wget to FTP your files. The command below FTP’s a complete directory structure to your local machine.

wget -r -nH ==cut-dirs=4 ftp://[username]:[password]ftp.svr.nl/webspace/httpdocs/site1.nl

 

The above command retrieves all files with the folder webspace/httpdocs/site1.nl . The -nH  options makes sure that there is no folder ftp.svr.nl is created. The –cut-dirs=3  options removes 3 (webspace, httpdocs and site1.nl) folders from the remote directory structure and re-creates the structure local (excluding the 3 levels) local.

Share