linux
How to download recursive folders in linux with command line ftp
Nov 10th
Ok so all you want to is to ssh into your server and pull a stack of files over from another PC via ftp. Sounds simple does it now. This is linux we are talking about.. nothing is simple.
The short answer.. sod ftp use wget like
[bash]wget -r ftp://user: pass@domain/folder/*[/bash]
Long answer
And being linux all the help is just as cryptic as the manual.
So you probably tried to ftp in to the remote PC and use get to get the files… ha you hapless fool. Then you googled a bit and found that mget command gets more then 1 file so you tried
mget *
you then get sick of answering YES to every prompt.
the someone points out that if you enter
ftp> prompt
it will toggle out of prompt mode
then you realise that this is only downloading files anyway.
argghhh
eventually you google for “lunux ftp recursive” and finally you have cracked it.
Increase the size of tmpfs and leave files intact
Oct 27th
very cool trick
Increase the size of a ramdisk:
mount -t tmpfs tmpfs /tmp -o size=2000M,mode=1777,remount
This increases the ramdisk’s size to 2000M. No file is destroyed.
Read more: http://wiki.linuxquestions.org/wiki/Tmpfs#ixzz13amAsYk1
How to fix a range of sounds problems in Linux / Ubuntu and enable Dolby / DTS over SPDIF
Sep 17th
For the record I am trying to persuade Ubuntu 10.04 to spit out Dolby ac3 compressed digital signal via the SPDIF at the back of my Asus R1F tablet laptop. The spdif works out of the box!! An amazing achievement! However, I cant for the life of my persuade any content to be sent to my receiver as Dolby Digital. I have not quite given up yet but the answer still eludes me. The SPDIF will only send a sterio signal and will only reproduce a 5.1 setup when the compressed stream to sent to an external receiver. As far as I am aware there is no way to encode information on the fly and then send as 5.1.. which is a shame. I have the alc6660vd chip in the R1F.
More >
Zip files corrupted on download in internet explorer no FF or Chrome
Jul 20th
Aghh the joys of working with websites..
One step forward another step back.
Scenario
You have zipped files available for download from your site, blog, CMS etc. When you test the download process our in IE you get an error:
The Compressed (zipped) Folder is invalid or corrupted.
How to extract *.tgz or *.tar.gz
Jul 18th
To extract .tar.gz or .tgz files from terminal or via ssh
tar -zxvf file.tar.gz
or
tar -zxvf filename.tgz
I don’t know about anyone else but 99% of the time when faced with a compressed tar file I want to extract it to its own folder and view the progress of the decompression. So why it is that every time you seek the answer to this question do most linux support sites feel the need to explain over 1500 words every single possible switch and variant of the tar command coupled with the historical development and legacy options of the command. WE DON’T CARE.
SSH as a different user on remote linux box
Jul 18th
Scenario:
You are sat at a linux box (ubuntu, fedora, suse etc) and want to ssh into another linux box (probably your webserver). By default typing ssh remote-domain.com will attempt to log you in as the user you are currently logged in as. However, you may want to log into the remote machine as someone else.
Short answer:
in a linux terminal enter
ssh user@remote.com
Long answer:
More >
ubuntu 10.04 1st impressions
May 15th
I have installed this on two machines now. The 1st is the samsung nc10. I instaled through wubi as this is a great way of installing Ubuntu if you wish to keep your Windows installation in one piece (and who wouldn’t). All the hardware is working on 1st attempt including bluetooth and wireless. Even most of the keyboard f keys are working with the exception of the brightness keys. The system is responsive and comparable to windows 7. The open office spreadsheet loads in a reasonable time ( a few seconds) and is very usable. Clearly, the Ubuntu team have worked hard to ensure that Netbooks are covered.
More >
How to fix VNC in opensuse 11.2
Mar 17th
Just to give a bit of background.. We have a load of PCs in the house.. 3 in the study, 1 in the kitchen, a couple of floating laptops and an old tablet PC acting as a media centre in the lounge. It is the latter that has been the cause of my latest grief. Having so many PCs means it is very expensive to upgrade everything to Windows 7. I tried the early betas and the RC of Windows 7 on just about everything we had to see how it performed with different hardware and I have to say Windows 7 is awesome.
However, MS are still greedy sods and it costs way to much for a house hold like ours. So the fall back is Linux. Last week the Tablet PC laptop started to reboot every 2 hours anouncing the end of the RC period for windows 7. Time to find an alternative. My default Linux dostro is Ubuntu apart from failing to install the wireless drivers this generally detects everything and works a treat (once you get rid of that god awful orange and brown).
I installed Ubuntu on this aging Asus R1F and all looked good. Movies streamed from my main Windows 7 machines and I nearly died when for a laugh I threw the toggle switch and discovered that the bluetooth AND the WIFI worked out of the box!! This is an amazing achievement for Ubuntu. So all was well in the world till we sat down to watch the latest Supernatural… where was the sound!!
More >