Posts Tagged ‘linux’

Linux: Cowsay and Fortune

Sunday, October 4th, 2020

So I got a “new” laptop which onto which I’ve installed Ubuntu 20.04 LTS (Focal Fossa).

What’s the first thing I needing done? Docker? Node? Even plain old Java? Nope, Cowsay and Fortune!

Takes my login from

:~$

to

 ___________________________________
/ Be security conscious -- National \
\ defense is at stake.              /
 -----------------------------------
       \   ^__^
        \  (oo)\_______
           (__)\       )\/\
               ||----w |
               ||     ||
:~$

Oh and…

:~$ tail -1 ~/.bashrc
fortune -s | cowsay

Tags: ,
Posted in quick tips | No Comments »

Reset Gnome desktop the easy way

Sunday, May 16th, 2010

I recently upgraded Ubuntu on one of machines from 9.10 (Karmic Koala) to 10.04 (Lucid Lynx). In the old version I had installed a lot of widgets, messed up the fonts, buttons – loads of things. I needed an easy way to restore/reset the Gnome desktop back to the default look and feel.

I could of course have used the gui’s to undo all the changes I made but why bother? This is Linux after all!

# cd
# [sudo] rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Tags: , ,
Posted in quick tips | No Comments »

Ubuntu Server Minimal Install

Sunday, January 3rd, 2010

This is the install I like to use for an Ubuntu Server, usually run headless, with a *very* basic desktop and some other bits and bobs I like.

First of all install the basic Ubuntu Server edition

Then run the following script……….
(more…)

Tags: ,
Posted in Development | 1 Comment »

How to Quickly Setup Subversion Server on Linux (Ubuntu)

Saturday, January 2nd, 2010

Installation

First of all you’ll need to see if you’ve got Subversion installed. Check this article on how to query installed packages or just try executing:

% svn help

If you haven’t got Subversion installed then:

% apt-get install subversion

Users and Groups

% addgroup subversion
% usermod -a -G subversion yourUser

Create Repository

% svnadmin create /path/to/repository

Configure Repository

% chgrp -R subversion /path/to/repository
% chmod -R g+rws /path/to/repository
% vi /path/to/repository/conf/svnserve.conf

Edit/uncomment the following lines:

anon-access = none
auth-access = write
password-db = passwd

% vi /path/to/repository/conf/passwd

Add the following line:

yourUser = yourSecretPassword

Start Subversion Server as Daemon

svnserve -d

Troubleshooting

You will need sudo or root access (unless you want to see a lot of permission denied errors!)
If you see this error (when using Windows SVN client):

Can’t move
‘..\..\.svn\entries’ to ‘..\..\.svn\entries’:
The file or directory is corrupted and unreadable.

Then try excluding the local directory from the Windows Indexer.

Tags: ,
Posted in Development, How to's | No Comments »

Show and search list of installed packages (Ubuntu)

Saturday, January 2nd, 2010

To show the complete list:

dpkg --get-selections

To filter the list

dpkg --get-selections | grep XXX

Tags: ,
Posted in Development, quick tips | 1 Comment »