sudo add-apt-repository "deb http://archive.canonical.com/ [distro] partner"Where [distro] is, for example, lucid, natty, oneiric, precise, quantal.
This is for command-line options. This and desktop way cand be found here.
This is where I write new ways to do most things in Linux. I hope it may be useful to you. Please, write a comment if it was useful or if I need to make anything better.
sudo add-apt-repository "deb http://archive.canonical.com/ [distro] partner"Where [distro] is, for example, lucid, natty, oneiric, precise, quantal.
Where:word1-word2-extension-serial1-serial2-name.cmt
word1: any length
word2: any length
extension: any length
serial1: 6 chars
serial2: 6 chars
name: any lengthSo, these name would be ok, for instance:
CONTAB1-PALAVRA2-NMT-123456-123456-gilberto.cmt
CTB1-PLV2-XYZ-654321-000001-joaozinho.cmtFrom those names, everything before the serials should be extracted. That is:
CONTAB1-PALAVRA2-NMT
CTB1-PLV2-XYZAt first, the nightmare are the 3 variable length parts and the NAME
$ var='CONTAB1-PALAVRA2-NMT-123456-123456-gilberto.cmt'
$ echo ${var%%-??????-??????-*.cmt}
CONTAB1-PALAVRA2-NMTThe second example:
$ var='CTB1-PLV2-XYZ-654321-000001-joaozinho.cmt'
$ echo ${var%%-??????-??????-*.cmt}
CTB1-PLV2-XYZOnce again, the apparently cryptographic hieroglyphic SHELL did it!!!
$ sudo less /var/log/squid3/cache.log
CPU Usage: 0.044 seconds = 0.016 user + 0.028 sys
Maximum Resident Size: 23936 KB
Page faults with physical i/o: 0
2011/02/03 15:16:42| Starting Squid Cache version 3.0.STABLE19 for i486-pc-linux-gnu...
2011/02/03 15:16:42| Process ID 4628
2011/02/03 15:16:42| With 1024 file descriptors available
2011/02/03 15:16:42| Performing DNS Tests...
2011/02/03 15:16:42| Successful DNS name lookup tests...
2011/02/03 15:16:42| DNS Socket created at 0.0.0.0, port 35799, FD 7
2011/02/03 15:16:42| Adding nameserver 192.168.1.9 from squid.conf
2011/02/03 15:16:42| Unlinkd pipe opened on FD 12
2011/02/03 15:16:42| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/02/03 15:16:42| Swap maxSize 10240000 + 8192 KB, estimated 788322 objects
2011/02/03 15:16:42| Target number of buckets: 39416
2011/02/03 15:16:42| Using 65536 Store buckets
2011/02/03 15:16:42| Max Mem size: 8192 KB
2011/02/03 15:16:42| Max Swap size: 10240000 KB
2011/02/03 15:16:42| /var/spool/squid3/swap.state.new: (28) No space left on device
FATAL: storeDirOpenTmpSwapLog: Failed to open swap log.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9,2G 2,0G 6,8G 23% /
none 434M 208K 433M 1% /dev
none 438M 0 438M 0% /dev/shm
none 438M 68K 438M 1% /var/run
none 438M 0 438M 0% /var/lock
none 438M 0 438M 0% /lib/init/rw
/dev/sda3 63G 42G 18G 70% /var
$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 610800 70254 540546 12% /
none 110874 692 110182 1% /dev
none 111925 1 111924 1% /dev/shm
none 111925 36 111889 1% /var/run
none 111925 2 111923 1% /var/lock
none 111925 1 111924 1% /lib/init/rw
/dev/sda3 4153344 4153344 0 100% /var
$ sudo du -s /var/* | sort -n
$ sudo du -s /var/lib/* | sort -n
$ ls -l /var/lib/sarg/
total 52
drwxr-xr-x 7 root root 4096 2010-04-12 13:40 2010Apr12-2010Apr12
drwxr-xr-x 48 root root 4096 2010-04-15 04:00 2010Apr14-2010Apr14
drwxr-xr-x 45 root root 4096 2010-04-16 04:00 2010Apr15-2010Apr15
drwxr-xr-x 45 root root 4096 2010-04-16 16:45 2010Apr16-2010Apr16
drwxr-xr-x 41 root root 4096 2010-04-19 12:55 2010Apr19-2010Apr19
drwxr-xr-x 98 root root 4096 2010-09-06 14:22 2010Sep01-2010Sep06
drwxr-xr-x 168 root root 12288 2010-09-30 20:01 Daily
drwxr-xr-x 2 root root 4096 2010-04-12 13:40 images
-rw-r--r-- 1 root root 780 2010-09-30 20:00 index.html
drwxr-xr-x 8 root root 4096 2010-09-01 02:38 Montly
drwxr-xr-x 49 root root 4096 2010-09-27 01:03 Weekly
$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 610800 70254 540546 12% /
none 110874 692 110182 1% /dev
none 111925 1 111924 1% /dev/shm
none 111925 37 111888 1% /var/run
none 111925 2 111923 1% /var/lock
none 111925 1 111924 1% /lib/init/rw
/dev/sda3 4153344 1922631 2230713 47% /var
sudo rm -v /var/lib/apt/lists/*This is only needed because for an unknown reason the original lists has some errors. I am really not aware about these mistakes.
sudo apt-get update
sudo apt-get install vim aptitude htop ssh k3b ssh ipcalc \Compiz Configs
vlc gnome-mplayer compizconfig-settings-manager \
compiz-fusion-plugins-extra
as_active_plugins = core;ccp;move;resize;place;decoration;gnomecompat;workarounds;neg;vpswitch;text;svg;ring;regex;commands;dbus;session;imgjpeg;mousepoll;shift;png;reflex;resizeinfo;animation;wobbly;fade;cube;rotate;3d;cubeaddon;scale;scaleaddon;expo;ezoom;These configurations may be inserted through compizconfig-settings-manager, instead of dealing with configuration files.
as_next_key =Tab
as_prev_key =Tab
as_initiate_key = Disabled
$ sudo aptitude install python-software-properties
$ add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo aptitude install sun-java6-jdk sun-java6-jre
$ sudo aptitude install libjetty-extra-java libjetty-java jetty