[125004050010] |Ease Out Your Copy Paste Woes: Use Shantz Copy Basket [125004050020] |Introduction: [125004050030] |I’m sure you have copied/moved files on your computer from one place to another. [125004050040] |And I’m sure often you have to do more than just “single-shot” copying that is copy a few files to one place, move a few to another, and copy yet some more to one more location. [125004050050] |Well, I had to do this quite a few times (e.g. [125004050060] |I ran out of disk space recently on a partition and had to empty out my “Movies” and “Songs” folders to move a few movies/songs each to all other partitions/disks according to the space available). [125004050070] |Hence, I wrote this little command line program, which behaves like a basket. [125004050080] |You can put any number of files from any number of different locations into it in a single shot. [125004050090] |It will store their locations and give them an ID. [125004050100] |Now, you can copy/move those files to differnet destinations based on their IDs. [125004050110] |What’s even better is that your basket will remain intact even across reboots. [125004050120] |So, you can continue working on the files in the basket even for days. [125004050130] |Requirements: [125004050140] |The program is multi-platform compatible as I wrote it in Perl and took care of using portable methods only. [125004050150] |So, if you have perl installed, you can just download the above perl file and install “File-Copy-Recursive” Module (rest are most probably installed already) and you are good to go. [125004050160] |For people who don’t have perl, I’ve uploaded the stand-alone packages for windows as well as linux users. [125004050170] |Download according to your platform and you can use them straight away without any hassles. [125004050180] |For the record, I tested this script as well as the executables on Windows XP SP2 and Ubuntu Feisty Fawn 7.04. [125004050190] |Usage: [125004050200] |shantz-cp [OPTION] [FILE] [DESTPATH] [125004050210] |Options: -l, --list List files in the basket. [125004050220] |Doesn’t take [FILE]/[DEST] Arguments -a, --add Add file(s) to the basket. [125004050230] |Provide absolute/relative path of file(s) as argument -r, --remove Remove file(s) from the basket Provide absolute/relative path of file(s) as argument -ri, --removeid Remove file(s) from the basket using their basket id Provide id(s) of file(s) as argument -pi, --pasteid Paste a file from the basket to the given destination Provide file id(s) to be pasted followed by relative/absolute path of destination -m, --move Use this option along with paste option to move the files instead of copy [125004050240] |Arguments: [FILE] Any number of files can be mentioned Paths can be relative to current dir or absolute Cannot use with list option [DESTPATH] Only 1 path can be given Path can be relative to current dir or absolute Can be used only with paste option [125004050250] |Notes: 1. [125004050260] |Only 1 option can be used at a time, except for the “move” and “pasteid” combinations 2. [125004050270] |For any queries/help/updates, please post a comment here. [125004050280] |Examples: [125004050290] |shantanu@wtf:~/stuff$ ./shantz-cp -a * File /home/shantanu/stuff/conky.sh already exists at ID 1 File /home/shantanu/stuff/hosts.txt already exists at ID 0 File /home/shantanu/stuff/movie2mobile.py already exists at ID 2 Added /home/shantanu/stuff/places_menu.txt at ID 3 Added /home/shantanu/stuff/rapt at ID 4 [125004050300] |shantanu@wtf:~/stuff$ ./shantz-cp -l No of files in basket: 5 File ID. [125004050310] |0: /home/shantanu/stuff/hosts.txt File ID. [125004050320] |1: /home/shantanu/stuff/conky.sh File ID. [125004050330] |2: /home/shantanu/stuff/movie2mobile.py File ID. [125004050340] |3: /home/shantanu/stuff/places_menu.txt File ID. [125004050350] |4: /home/shantanu/stuff/rapt [125004050360] |shantanu@wtf:~/stuff$ ./shantz-cp -ri 2 Removed /home/shantanu/stuff/movie2mobile.py from basket [125004050370] |shantanu@wtf:~/stuff$ ./shantz-cp -pi 1 3 temp/ Copied /home/shantanu/stuff/conky.sh to /home/shantanu/stuff/temp/ Copied /home/shantanu/stuff/places_menu.txt to /home/shantanu/stuff/temp/ [125004050380] |shantanu@wtf:~/stuff$ ./shantz-cp -m -pi 0 /home/shantanu Moved /home/shantanu/stuff/hosts.txt to /home/shantanu [125004050390] |Files: [125004050400] |shantz-cp.pl [125004050410] |shantz-cp-windows [125004050420] |shantz-cp-linux [125004060010] |Tip: Getting Your Webcam To Work In Ubuntu [125004060020] |I have an old noname cheapo webcam, that I dusted out of my junk (why? More on that in a post coming soon). [125004060030] |I hoped that it would work in my Ubuntu setup out of the box like most of my other hardware. [125004060040] |I connected it to my laptop’s usb port. dmesg gave the following output: [125004060050] |[21328.211333] usb 1-1: new full speed USB device using ohci_hcd and address 2 [21328.319698] usb 1-1: configuration #1 chosen from 1 choice [21328.439705] Linux video capture interface: v2.00 [21328.458509] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.05 [21328.459113] usb 1-1: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8/0x301B) [21328.520576] usb 1-1: PB-0330 image sensor detected [21328.870287] usb 1-1: Initialization succeeded [21328.870919] usb 1-1: V4L2 device registered as /dev/video0 [21328.871001] usbcore: registered new interface driver zc0301 [21328.913737] usbcore: registered new interface driver gspca [21328.913811] ubuntu/media/gspcav1/gspca_core.c: gspca driver 01.00.12 registered [125004060060] |Great! [125004060070] |Everything set up, I thought. [125004060080] |But running various programs, camorama, camE, kopete, everything gave weird errors like “Connection could not be made”, “device not ready” or just showed a blank screen. [125004060090] |But soon, after few trial and errors, I found the solution. [125004060100] |Basically the “zc0301″ module is the culprit and all you have to do to get your camera working is prevent it from loading. [125004060110] |So, this is what I did: [125004060120] |sudo modprobe -r gspca sudo modprobe -r zc0301 sudo modprobe gspca [125004060130] |And voila! the webcam started working like magic. [125004060140] |Of course, this tip is only for webcams that use this particular chip. [125004060150] |And if you want to make this change permanent so that you don’t have to run these commands everytime you want to use your webcam, all you have to do is add the following line to your /etc/modprobe.d/blacklist file [125004060160] |blacklist zc0301 [125004060170] |This would prevent the module from loading whenever you connect your webcam to your computer. [125004060180] |Let me know if this worked for you or if you have some of your own tips/tricks/hacks to get this or other webcams working on linux. [125004070010] |Howto Install TOR,Privoxy and Tor GUI Programs (Vidalia,Tork and Torbutton)in Ubuntu [125004070020] |Tor is a software project that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. [125004070030] |Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. [125004070040] |Tor works with many of your existing applications, including web browsers, instant messaging clients, remote login, and other applications based on the TCP protocol. [125004070050] |Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data, managing HTTP cookies, controlling access, and removing ads, banners, pop-ups and other obnoxious Internet junk. [125004070060] |Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. [125004070070] |Privoxy has application for both stand-alone systems and multi-user networks. [125004070080] |Install Tor and privoxy in Ubuntu [125004070090] |sudo aptitude install tor privoxy [125004070100] |This will complete the installation. [125004070110] |GUI Tools Available for Tor [125004070120] |Currently we have the following TOR GUI Applications [125004070130] |Vidalia [125004070140] |Vidalia is a cross-platform controller GUI for the Tor software, built using the Qt framework. [125004070150] |Using Vidalia, you can start and stop the Tor software, view its status at a glance, and monitor bandwidth usage. [125004070160] |Vidalia also makes it easy to contribute to the Tor network by helping you set up and manage your own relay. [125004070170] |Torbutton [125004070180] |Torbutton is a 1-click way for Firefox users to enable or disable the browser’s use of Tor. [125004070190] |It adds a panel to the statusbar that says “Tor Enabled” (in green) or “Tor Disabled” (in red). [125004070200] |The user may click on the panel to toggle the status. [125004070210] |If the user (or some other extension) changes the proxy settings, the change is automatically reflected in the statusbar. [125004070220] |Some users may prefer a toolbar button instead of a statusbar panel. [125004070230] |Such a button is included, and one adds it to the toolbar by right-clicking on the desired toolbar, selecting “Customize…”, and then dragging the Torbutton icon onto the toolbar. [125004070240] |There is an option in the preferences to hide the statusbar panel (Tools->Extensions, select Torbutton, and click on Preferences). [125004070250] |Newer Firefoxes have the ability to send DNS resolves through the socks proxy, and Torbutton will make use of this feature if it is available in your version of Firefox. [125004070260] |TorK [125004070270] |TorK is a powerful anonymity manager for the KDE Desktop on Linux and Unix systems. [125004070280] |It first helps you to install, configure and use Tor. [125004070290] |It then reduces the task of anonymizing most applications to a single-click, including Firefox, Opera, Konqueror, Pidgin, Kopete, SSH, and IRC. [125004070300] |For advanced users TorK [125004070310] |provides detailed network information, and more, in an accessible manner. [125004070320] |If you wish to run TorK locally, please install the tor and privoxy packages. [125004070330] |Features include: [125004070340] |* Browse anonymously on Konqueror/Firefox/Opera. [125004070350] |* Send anonymous email via the MixMinion network. [125004070360] |* Use Internet Messaging and IRC anonymously. [125004070370] |* Create and manage hidden services. [125004070380] |Install Vidalia in Ubuntu Gutsy and Hardy [125004070390] |You need to edit the /etc/apt/sources.list file using the following command or Go to System->Preferences->Software Sources and enter these repositories into 3rd Party Repositories and click on reload. [125004070400] |sudo gedit /etc/apt/sources.list [125004070410] |add the following lines [125004070420] |For Hardy Users [125004070430] |deb http://ppa.launchpad.net/adnarim/ubuntu hardy main deb-src http://ppa.launchpad.net/adnarim/ubuntu hardy main [125004070440] |For Gutsy Users [125004070450] |deb http://ppa.launchpad.net/adnarim/ubuntu gutsy main deb-src http://ppa.launchpad.net/adnarim/ubuntu gutsy main [125004070460] |Save and exit the file [125004070470] |Now you need to update the source list using the following command [125004070480] |sudo aptitude update [125004070490] |Install Vidalia using the following command [125004070500] |sudo aptitude install vidalia [125004070510] |this will complete the installation. [125004070520] |Now you need to open Vidalia Go to Applications--->Internet--->Vidalia [125004070530] |After opening you should be able see similar to the following screen.If you want to change the settings click on settings in the following screen [125004070540] |If you want to see Network Map click on View the Network on the above Screen [125004070550] |Tor Bandwidth usage [125004070560] |If Tor is working you can see similar to the following icon marked in Red in your notification area [125004070570] |If you want to configure firefox for browsing check this [125004070580] |Install TorK in Ubuntu [125004070590] |If you want to install TorK use the following command [125004070600] |sudo aptitude install tork [125004070610] |Install Torbutton in Ubuntu [125004070620] |Download Torbutton from here and install for your firefox. [125004080010] |Installing WeatherBug For Linux [125004080020] |After much thought and ongoing questions regarding the best way to install the new WeatherBug for Linux application, I have opted to create a simple how-to here at Ubuntu Geek. [125004080030] |Installing the application is easy with Ubuntu, however there are a few things to be aware of before making the install process a reality. [125004080040] |
  • Make sure your Multiverse repository is enabled. [125004080050] |Because the application uses light Java, you will want to make sure that the installer is able to install the needed Java app without any hassles.
  • [125004080060] |
  • Debian package or CNR.com utility. [125004080070] |Neither is really better or worse than the other, it is simply a matter of preference.
  • [125004080080] |
  • Auto-starting the application. [125004080090] |Again, fairly easy. [125004080100] |Just goto System, Preferences and select Sessions. [125004080110] |From there, name box should say WeatherBug and the command box (case sensitive) should say weatherbug . [125004080120] |Save and it will now start with every boot.
  • [125004080130] |That is all there is to it. [125004080140] |You can find the latest, up to date packages from the following two areas: [125004080150] |
  • Linux.WeatherBug.com
  • [125004080160] |or [125004080170] |
  • CNR.com/product/weatherbug
  • [125004080180] |With any luck, this will keep the “how do I” questions down to a dull roar and enable users to use the application the first time, without any Java issues. [125004080190] |If you are still having Java issues, I would suggest making sure you are using at least Java 1.5 at the earliest if possible. [125004080200] |I have not yet tested the app out with Iced Tea Java, so those who have it working with it are encouraged to share results here in the comments. [125004080210] |Sample Screenshot [125004090010] |Fix for Feisty-Sound-Toshiba Laptop [125004090020] |Total newb. [125004090030] |It took me days to find this solution so I thought it worth posting to improve somebody else’s chances of finding it. [125004090040] |Laptop: Toshiba A135-S4527 [125004090050] |No sound output [125004090060] |lspci output: Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) [125004090070] |Solution: [125004090080] |ADD OPTION TO /etc/modprobe.d/alsa-base [125004090090] |Insert last line: “options snd-hda-intel model=3stack” [125004100010] |Fix for OpenSSL/SSH/VPN Vulnerability in Ubuntu 7.04/7.10/8.04 [125004100020] |A weakness has been discovered in the random number generator used by OpenSSL on Debian and Ubuntu systems. [125004100030] |As a result of this weakness, certain encryption keys are much more common than they should be, such that an attacker could guess the key through a brute-force attack given minimal knowledge of the system. [125004100040] |This particularly affects the use of encryption keys in OpenSSH, OpenVPN and SSL certificates.You can check Ubuntu security notice from here [125004100050] |This vulnerability only affects operating systems which (like Ubuntu) are based on Debian. [125004100060] |However, other systems can be indirectly affected if weak keys are imported into them. [125004100070] |We consider this an extremely serious vulnerability, and urge all users to act immediately to secure their systems. [125004100080] |(CVE-2008-0166) This advisory also applies to the corresponding versions of Kubuntu, Edubuntu, and Xubuntu. [125004100090] |Affected keys include SSH keys, OpenVPN keys, DNSSEC keys, and key material for use in X.509 ertificates and session keys used in SSL/TLS connections. [125004100100] |Keys generated with GnuPG or GNUTLS are not affected, though. [125004100110] |The following Ubuntu releases are affected: [125004100120] |Ubuntu 7.04 Ubuntu 7.10 Ubuntu 8.04 LTS [125004100130] |Solution 1 [125004100140] |You can download and install .deb packages from here [125004100150] |Upgrade instructions ----------------- [125004100160] |dpkg -i file.deb - will install the referenced file. [125004100170] |If you are using the apt-get package manager, use the line for sources.list as given below: [125004100180] |apt-get update - will update the internal database [125004100190] |apt-get upgrade - will install corrected packages [125004100200] |Solution 2 [125004100210] |In this method you can check your SSH key is effected with this security hole or not [125004100220] |Download the following files [125004100230] |dowkd.pl.gz [125004100240] |dowkd.pl.gz.asc [125004100250] |(OpenPGP signature) [125004100260] |Upgrade instructions -------------------- [125004100270] |wget url - will fetch the file for you and download pgp file also [125004100280] |wget http://security.debian.org/project/extra/dowkd/dowkd.pl.gz [125004100290] |gunzip dowkd.pl.gz [125004100300] |chmod +x dowkd.pl [125004100310] |./dowkd.pl file /etc/ssh/ssh_host_{dsa,rsa}_key.pub 2>/dev/null [125004100320] |This will tell you if the public key is weak. [125004100330] |If it is, you should move/remove the key pair, then generate a new pair with the following command [125004100340] |sudo dpkg-reconfigure -plow openssh-server [125004100350] |Authorized keys, that can login using key based authentication. [125004100360] |./dowkd.pl file ~/.ssh/authorized_keys 2>/dev/null [125004100370] |This will return any weak keys that are authorized to login using key based authentication, these entries should be removed and a new one generated and added to the file. [125004100380] |You can create a new one using “ssh-keygen”, and redistribute the public key [125004110010] |Howto Install Truecrypt with GUI tool in Ubuntu Gutsy [125004110020] |TrueCrypt is a software system for establishing and maintaining an on-the-fly-encrypted volume (data storage device). [125004110030] |On-the-fly encryption means that data are automatically encrypted or decrypted right before they are loaded or saved, without any user intervention. [125004110040] |No data stored on an encrypted volume can be read (decrypted) without using the correct password/keyfile(s) or correct encryption keys. [125004110050] |Entire file system is encrypted (e.g.., file names, folder names, contents of every file, free space, meta data, etc). [125004110060] |Files can be copied to and from a mounted TrueCrypt volume just like they are copied to/from any normal disk (for example, by simple drag-and-drop operations). [125004110070] |Files are automatically being decrypted on-the-fly (in memory/RAM) while they are being read or copied from an encrypted TrueCrypt volume. [125004110080] |Similarly, files that are being written or copied to the TrueCrypt volume are automatically being encrypted on-the-fly (right before they are written to the disk) in RAM. [125004110090] |Note that this does not mean that the whole file that is to be encrypted/decrypted must be stored in RAM before it can be encrypted/decrypted. [125004110100] |There are no extra memory (RAM) requirements for TrueCrypt. [125004110110] |Preparing your System [125004110120] |sudo aptitude install sun-java6-jre python-pexpect build-essential [125004110130] |Now you need to download the truecrypt .deb package from here for your ubuntu version. [125004110140] |Now you should be having truecrypt-4.3a-ubuntu-7.10-x86.tar.gz file extract this using the following command [125004110150] |sudo tar xzvf truecrypt-4.3a-ubuntu-7.10-x86.tar.gz [125004110160] |Now you have truecrypt-4.3a folder [125004110170] |Go into the folder and install .deb package [125004110180] |sudo dpkg -i truecrypt_4.3a-0_i386.deb [125004110190] |Now you should be able to see the following error [125004110200] |Selecting previously deselected package truecrypt. [125004110210] |(Reading database …133570 files and directories currently installed.) [125004110220] |Unpacking truecrypt (from truecrypt_4.3a-0_i386.deb) …dpkg: dependency problems prevent configuration of truecrypt: truecrypt depends on dmsetup; however: Package dmsetup is not installed. dpkg: error processing truecrypt (--install): dependency problems - leaving unconfigured Errors were encountered while processing: truecrypt [125004110230] |To fix the above error run the following command [125004110240] |sudo apt-get -f install [125004110250] |This will complete the TrueCrypt installation. [125004110260] |tcgui - TrueCrypt GUI [125004110270] |These functions are integrated already: [125004110280] |Mount/Unmount TrueCrypt volumes Create volumes easily with the wizard Change volume password easily Backup / Restore volume headers Manage your favourites Mount several volumes with one click [125004110290] |The tcgui looks similar to the windows GUI for truecrypt [125004110300] |You need to download tcgui from here [125004110310] |now you have tcgui.0.4.tar.gz file extract using the following command [125004110320] |sudo tar xzvf tcgui.0.4.tar.gz [125004110330] |Now you have tcgui-0.4 go in to this folder run the following command [125004110340] |cd tcgui-0.4 [125004110350] |sudo bash install.sh $USER [125004110360] |Note:- simply copy &paste the above command [125004110370] |Using tcgui [125004110380] |If you want to open goto Applications--->Accessories--->TrueCrypt GUI [125004110390] |Click on “Yes” if you agree with the warranty agreement. [125004110400] |Once it opens you should be able to see similar to the following screen [125004110410] |Uninstall tcgui [125004110420] |If you want to Uninstall the TrueCrypt GUI open a terminal and enter the following command [125004110430] |sudo bash /usr/share/tcgui/uninstall.sh [125004110440] |Note: The group “truecrypt” will not be deleted and the changes in the sudo configuration will not be restored. [125004120010] |Watching Live-TV On Your Ubuntu Desktop With Zattoo [125004120020] |Zattoo has developed a software program that allows you to watch TV on your computer. [125004120030] |All you need is a broadband connection and a current operating system (Windows XP or Vista, Mac OS X, or Linux). [125004120040] |The service is legal and free of charge. [125004120050] |To watch live TV on your PC, simply download the Zattoo Player, register, and get channel-surfing! [125004120060] |If you run into any problems, take a look at our FAQ section. [125004120070] |Where can I use Zattoo? [125004120080] |Zattoo is currently available in Belgium, Denmark, France, Germany, Norway, Spain, Switzerland, and the UK. [125004120090] |We’ll be launching in new countries and continents soon, so check back frequently. [125004120100] |Preparing for Installation [125004120110] |Before you can download the Zattoo player, you must register on the Zattoo web site . [125004120120] |It’s possible that Zattoo isn’t available yet in your country - the Zattoo web site will tell you if this is the case. [125004120130] |Now you need to make sure you have install adobe flash player.If you want to install this in hardy use the following command [125004120140] |sudo aptitude install flashplugin-nonfree libflashsupport [125004120150] |Install Zattoo in Ubuntu [125004120160] |Now you need to download zattoo from here by clicking “Download Zattoo for Linux (.DEB) [125004120170] |Select Open with GDebi Package Installer (default) in Firefox and click ok [125004120180] |Now you need to click on Install Package [125004120190] |Downloading packages in progress [125004120200] |Zattoo Installation in progress [125004120210] |Zattoo Installation finished click close [125004120220] |Using Zattoo [125004120230] |start Zattoo from Applications >Sound &Video >Zattoo Player [125004120240] |If you’re using Zattoo for the first time, you must accept its license [125004120250] |After opening you can login using your login details or from here also you can create your new account. [125004120260] |After login you can see all the available channels and double click on your choice of channel to watch. [125004120270] |Some sample channels [125004120280] |Manage you Channels [125004120290] |If you want to manage your channels go to View--->Manage Channels [125004120300] |You can see the list of available channels [125004120310] |Program Details as follows [125004120320] |Zattoo Version Details [125004130010] |Show The Computer, home, Network and Trash icons on Your Ubuntu desktop [125004130020] |By default, Ubuntu does not show Computer,home,network and Trash icon on the desktop in Ubuntu. [125004130030] |Instead Ubuntu shows the Trash icon on the extreme right of the bottom panel. [125004130040] |Also having the Trash icon on the desktop in Ubuntu is a good option, because it becomes easier to drag - drop files onto the Trash icon. [125004130050] |A Computer icon on your desktop gives you easy access to all mounted drives and your home folder at one place just like Windows does. [125004130060] |Here is how you can show the Computer,home,network and Trash icon on your Ubuntu Desktop. [125004130070] |Press Alt + F2 and type gconf-editor in the dialog box and Click Run to start the GNOME Configuration Editor. [125004130080] |Now you need to Go to the apps/nautilus/desktop from left menu and On the right hand side,you need to check the following options [125004130090] |trash_icon_visible computer_icon_visible home_icon_visible network_icon_visible [125004130100] |You can do few more things from that place too, change the trash_icon_name,home_icon_name,network_icon_name and computer_icon_name. [125004130110] |That’s it now you should see The Computer, home and Trash,Network icons on Your Ubuntu desktop [125004140010] |Using IPW3945 instead IWL3945 for Intel wireless 3945 in hardy [125004140020] |while i’m using my dell d620 with an intel wireless 3945 card i have the following problems with hardy and the new iwl3945: [125004140030] |-throughput is limited 110kb/s rx -the wireless lan is very unstable -sometimes the system freezes while scanning for networks [125004140040] |i tried some things to workaround: [125004140050] |- installed the ubuntu-backports (so the driver 1.2.25 is install) = ok the wlan led works again [125004140060] |- add the file /etc/modprobe.d/iwl3945 (alias wlan0 iwl3945 options iwl3945 disable_hw_scan=1) [125004140070] |- to config the card i used wicd (wicd.sourceforge.net)instead of the builtin network-admin [125004140080] |now i decided to backport to the old ipw3945 driver which has do everything fine in gutsy… [125004140090] |1. sudo vim /etc/modprobe.d/blacklist [125004140100] |added the lines # blacklist new iwl3945 blacklist iwl3945 blacklist mac8021 [125004140110] |so the new iwl3945 won’t load at system startup [125004140120] |2. Reboot [125004140130] |3. Download ipw3945 microcode (http://ipw3945.sourceforge.net) and copy it into /lib/firmware/2.6.24-17-generic/ [125004140140] |4. Download ipw3945 regulatory daemon from here and copy it into /sbin/ (copy the file within folder x86 to /sbin/ too) [125004140150] |5. get the patch from here thanks [125004140160] |6. get the ipw driver http://ipw3945.sourceforge.net/#downloads [125004140170] |7. patch -p1 (target file = ipw3945.h) [125004140180] |8. make [125004140190] |9. sudo make install [125004140200] |10. sudo chmod 777 /sbin/ipw* [125004140210] |11. add a file /etc/modprobe.d/ipw3945 add lines: install ipw3945 /sbin/modprobe -i ipw3945 ; sleep 0.5 ; /sbin/ipw3945d –quiet remove ipw3945 /sbin/ipw3945d --kill ; /sbin/modprobe -r -i ipw3945 [125004140220] |12. sudo modprobe ipw3945 [125004140230] |13. reboot [125004140240] |14. set the correct interface (eth1) in the wicd [125004140250] |et voila [125004150010] |Toshiba Laptops Alive to the Sound of Music [125004150020] |I’ve commented in recent articles about how to get every aspect of your sound card working on a Toshiba laptop. [125004150030] |I should know - I’ve run every version of Ubuntu since Feisty on a Satellite L20 - here is the quick and easy guide to getting the sound working. [125004150040] |First off, open up a terminal and type: [125004150050] | [125004150060] |In the file that pops up, add the following to the end: [125004150070] |(if 3stack doesn’t work, then try ‘lenovo’ or ‘auto’ - ‘toshiba’ doesn’ work particularly well!) [125004150080] |save and exit. [125004150090] |Now type this into a terminal: [125004150100] |In the blank file that appears, enter the following before saving and exitting: [125004150110] |No reboot. [125004150120] |You’ll get the comforting sounds of Ubuntu’s system as you login, but if you want your headphones to work, you’re about half way there. [125004150130] |Now type this into a terminal: [125004150140] |In the window that appears, use the arrow keys to move around and press ‘m’ on anything with ‘MM’ underneath it, and press the up arrow to up the volume. [125004150150] |Press ‘Esc’ to save and exit. [125004150160] |Not open up your volume control - make sure nothing is unmuted, and in edit >preferences… make the ‘surround’ channel available. [125004150170] |Move this up to the max (this helps you control your volume later). [125004150180] |Now you should have fully working sound and headphone support! [125004150190] |Your microphone slot should also be supported, though you’ll probably want to tweak a few volume settings for your favoured apps! [125004160010] |QEMU - machine emulator and virtualizer Setup in Ubuntu [125004160020] |QEMU is a generic and open source machine emulator and virtualizer.When used as a machine emulator, QEMU can run OSes and programs made for one machine (e.g. an ARM board) on a different machine (e.g. your own PC). [125004160030] |By using dynamic translation, it achieves very good performances. [125004160040] |When used as a virtualizer, QEMU achieves near native performances by executing the guest code directly on the host CPU. [125004160050] |A host driver called the QEMU accelerator (also known as KQEMU) is needed in this case. [125004160060] |The virtualizer mode requires that both the host and guest machine use x86 compatible processors. [125004160070] |QEMU Front End GUI [125004160080] |Currently there are two GUIs for QEMU [125004160090] |qemu-launcher [125004160100] |GTK+ front-end to QEMU computer emulator Qemu Launcher provides a graphical front-end to all basic, and many advanced QEMU computer emulator options. [125004160110] |It allows you to create, save, and run multiple virtual machine configurations, create and convert disk images. [125004160120] |Qemu Launcher utilizes the full system emulation mode of QEMU that allows you to run unmodified operating system on virtual hardware. [125004160130] |qemulator [125004160140] |a solution for easy setup and management of qemuQemulator is a full featured emulation suite for the qemu virtual engine, with on demand job control written in python GTK/Glade2. [125004160150] |It provides an easy and fast to use image and device management, a “My machines” list and interactive job control. [125004160160] |It comes with a list of all running jobs from where you can open the contol panel for each job and performing on demand action. [125004160170] |Full interaction for mounted volumes, usb devices, keyboard and mouse interaction, screenshots, wave capture and save/restore machine state and open vnc viewer is provided [125004160180] |Install QEMU in ubuntu [125004160190] |sudo aptitude install qemu qemulator [125004160200] |If you want qemu-launcher install with the following command [125004160210] |sudo aptitude install qemu-launcher [125004160220] |This will complete the instalaltion [125004160230] |Configuring Virtual Machines [125004160240] |Configuring virtual machines in qemu you need to use qemulatoropen this from Applications--->Accessories--->Qemulator [125004160250] |Qemulator is Loading [125004160260] |First you need to configure qemulator for this go to Settings--->Preferences [125004160270] |The first and most important step is the selection of the path, where your qemu images are currently stored or will be stored. [125004160280] |The content of this folder will be shown in the main window of Qemulator.If you want to use the real physical cdromdrives of your PC, add them to the list. [125004160290] |Enter a name of your choice and the path to the device (not to the mount point!).Add all qemu apps for the different emulation-plattforms with the paths of the application to the list for using them in Qemulator. [125004160300] |The default settings should fit for most common systems. [125004160310] |In the tab “Main window” you can specify the behavior of the GUI. [125004160320] |The Control monitor tab provides setup options for the behaviour of the control monitor. [125004160330] |External applications tab [125004160340] |Virtual machine setup [125004160350] |Click the + button in the main toolbar or select “System -> Create new image” from main menu. [125004160360] |Give a name for the new machine. [125004160370] |Here you need to filled all the information as per your requirements and click ok [125004160380] |You can see your configured new virtual machine if you want to start this click on green arrow mark on the top right corner [125004160390] |If you have some bootable images in your main images directory, change to the “Main images folder” tab and select one of your bootable images, eg. an iso image from a live CD.If you selected a bootable image from the images list before, the image type should have been autodetected by Qemulator and the boot settings should be set to fitting values. [125004160400] |If not, select your required boot image in the section “Boot from image”. [125004160410] |After this All volume and boot options should be autodetected and set up also. [125004160420] |Select physical Drives [125004170010] |Howto Install Mysql Database Server with Phpmyadmin Frontend [125004170020] |MySQL is a widely used and fast SQL database server. [125004170030] |It is a client/server implementation that consists of a server daemon (mysqld) and many different client programs/libraries. [125004170040] |Installing Mysql database in Ubuntu [125004170050] |sudo aptitude install mysql-server mysql-client libmysqlclient15-dev [125004170060] |This will complete the installation of mysql server 5.0.45 in ubuntu gutsy. [125004170070] |Configuring Mysql in ubuntu [125004170080] |MySQL initially only allows connections from the localhost (127.0.0.1). [125004170090] |We’ll need to remove that restriction if you wish to make it accessible to everyone on the internet. [125004170100] |Open the file /etc/mysql/my.cnf [125004170110] |sudo gedit /etc/mysql/my.cnf [125004170120] |Find the line bind-address = 127.0.0.1 and comment it out … #bind-address = 127.0.0.1 … [125004170130] |You can check your configuration using the following command [125004170140] |#netstat -tap [125004170150] |Output Looks like below [125004170160] |tcp 0 0 *:mysql *:* LISTEN 4997/mysqld [125004170170] |MySQL comes with no root password as default. [125004170180] |This is a huge security risk. [125004170190] |You’ll need to set one. [125004170200] |So that the local computer gets root access as well, you’ll need to set a password for that too. [125004170210] |The local-machine-name is the name of the computer you’re working on. [125004170220] |For more information see here [125004170230] |sudo mysqladmin -u root password your-new-password [125004170240] |sudo mysqladmin -h root@local-machine-name -u root -p password your-new-password [125004170250] |sudo /etc/init.d/mysql restart [125004170260] |Manage Mysql using Phpmyadmin [125004170270] |phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. [125004170280] |Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges,export data into various formats and is available in 54 languages. [125004170290] |GPL License information. [125004170300] |Install phpmyadmin in ubuntu [125004170310] |sudo aptitude install phpmyadmin [125004170320] |This will complete the installation. [125004170330] |Now you need to goto http://serverip/phpmyadmin/ [125004170340] |Login using your mysql root as username and password [125004180010] |How to Replace Nautilus with PCMan File Manager in Ubuntu [125004180020] |an extremely fast and lightweight file manager for X.PCMan File Manager is a gtk2 based file manager for the X Window System. [125004180030] |Features [125004180040] |* Extremly fast and lightweight [125004180050] |* Can be started in one second on normal machine [125004180060] |* Tabbed browsing (similar to Firefox) [125004180070] |* Drag &Drop support [125004180080] |* Files can be dragged among tabs [125004180090] |* Load large directories in reasonable time [125004180100] |* File association support (Default application) [125004180110] |* Basic thumbnail support [125004180120] |* Bookmarks support [125004180130] |* Handles non-UTF-8 encoded filenames correctly [125004180140] |* Provide icon view and detailed list view [125004180150] |* Standard compliant (Follows FreeDesktop.org) [125004180160] |* Clean and user-friendly interface (GTK+ 2) [125004180170] |Install pcmanfm using the following command [125004180180] |sudo aptitude install pcmanfm [125004180190] |This will complete the instalaltion [125004180200] |Replacing Nautilus with PCman [125004180210] |You need to open pcman from Applications >System Tools >PCMan File Manager [125004180220] |Now you need to type the following path in address bar and press enter [125004180230] |/usr/share/applications [125004180240] |Now you need to go Tools >Open Current Folder as root. [125004180250] |Enter the root password and click ok [125004180260] |Now you should see similar to the following screen [125004180270] |Make a backup copy of the files below (copy and paste and add “_bak” on the end of the file name) [125004180280] |/usr/share/applications/nautilus-computer.desktop [125004180290] |/usr/share/applications/nautilus-folder-handler.desktop [125004180300] |Now you need to open the nautilus-computer.desktop,nautilus-folder-handler.desktop files and Change the line in each with starts with Exec= [125004180310] |For nautilus-computer.desktop: [125004180320] |Exec=pcmanfm / [125004180330] |For nautilus-folder-handler.desktop: [125004180340] |Exec=pcmanfm %U [125004180350] |After changes Save and exit those files. [125004180360] |From now on your Nautilus replaced with fileman you can see as follows [125004180370] |PCman version details [125004190010] |Manage your personal accounts at home with homebank in Ubuntu [125004190020] |HomeBank is free software. [125004190030] |Use it to manage your personal accounts. [125004190040] |It is designed to easy to use. [125004190050] |Analyse your finances in detail using powerful filtering tools and graphs. [125004190060] |HomeBank benefits from more than 10 years of user experience and feedback. [125004190070] |Its development started in 1995 on Amiga computers. [125004190080] |It is now available on GNU/Linux, FreeBSD, MacOSX and Amiga. [125004190090] |A version for Microsoft Windows is being considered. [125004190100] |If you are looking for an easy way manage your accounts then HomeBank should be the software of choice. [125004190110] |Take some time to try it out, you won’t regret it. [125004190120] |Specific features [125004190130] |Here is why HomeBank is… different: [125004190140] |transaction import in CSV format (homebank specific format) pre-defined transactions, which can be automated pre-filling of transactions from a bookmark dual pad of cheque and automated cheque number increment add transactions by inherit from existing ones multiple transactions edit for each columns at once easy transfert between accounts, which can be automated dynamic transactions filter everywhere visual paymode and additional info text field visual status of transactions transaction remind (kind of ‘post-it’) dynamic minor currency display toggle for Euro countries [125004190150] |Analysis features [125004190160] |Dynamic, easy and powerful reports with graphical charts: complete filter for every transaction fields easy period change with some useful presets ‘Statictics’ is the main report and show results computed by: Payee, Categories, Months, Years ‘Budget’ track the decay from what was normaly planned ‘Overdrawn’ focuses on the balance and point transactions in the ‘red zone’ ‘Car cost’ analyze your car specific costs and consumption of fuel [125004190170] |Common features [125004190180] |multi-accounts payee assign to transactions categories and subcategories assign to transactions simple annual budget [125004190190] |Install homebank in Ubuntu [125004190200] |sudo aptitude install homebank [125004190210] |This will complete the installation. [125004190220] |Using homebank [125004190230] |If you want to open homebank go to Applications--->Office--->HomeBank [125004190240] |Once it opens you should see similar to the following screen [125004190250] |Homebank version details [125004190260] |If you want to know howto use this http://homebank.free.fr/help/index.html check this documentation [125004200010] |CuteFlow - Document circulation and workflow system Setup in Ubuntu [125004200020] |CuteFlow is a web based open source document circulation and workflow system. [125004200030] |Users are able to define “documents” which are send step by step to every station/user in a list.It’s an electronical way for doing (i.e. internal) document circulations. [125004200040] |A document can be assembled from input fields of different types. [125004200050] |The fields can be filled with values by the receiver of the document directly in the users E-Mail-Client. [125004200060] |After a completed circulation you will have a completely filled document. [125004200070] |Also attachments to the document are possible (i.e. for illustration material).All operations like starting a workflow, tracking, workflow-definition or status observation can be done within a comfortable and easy to use web interface. [125004200080] |Main Features [125004200090] |Free and Open Source! [125004200100] |Webbased User Interface [125004200110] |Easy to install, setup and use [125004200120] |Integration of workflow documents in e-mail message [125004200130] |Support for different workflow “mailingslists” [125004200140] |Unlimited amount of sender, fields, slots, receiver…) [125004200150] |Workflows can attach data and files [125004200160] |OS-Independent through the usage of PHP [125004200170] |Flexible user management with substitutes [125004200180] |Requirements [125004200190] |Webserver with PHP (V.5.0.x or higher) [125004200200] |MySQL Database (support for other databases is planned for future versions) [125004200210] |SMTP E-Mail Server for sending workflow e-mails [125004200220] |Install CuteFlow in Ubuntu [125004200230] |Preparing Your System [125004200240] |sudo aptitude install build-essential zip unzip php5-ldap [125004200250] |Apache Web Server With PHP Support check here [125004200260] |Database server installation with PHP support [125004200270] |Install mysql with php support in Ubuntu [125004200280] |sudo apt-get install mysql-server mysql-client libmysqlclient15-dev [125004200290] |sudo apt-get install php4-mysql [125004200300] |If you want to install php5 support use the following command [125004200310] |sudo apt-get install php5-mysql [125004200320] |Install postfix for SMTP support in Ubuntu [125004200330] |sudo aptitude install postfix mailx [125004200340] |choose satellite system and just press enter when asked other questions, but don’t select any relay host (remove smtp.xxx.xxxx) [125004200350] |Change /etc/mailname to say: test.com [125004200360] |Change /etc/aliases such that, [125004200370] |# Added by installer for initial user root: holst@test.com [125004200380] |Replace holst@test.com with your own e-mail address! [125004200390] |Finally, do as root [125004200400] |newalises [125004200410] |restart postfix using the following command [125004200420] |sudo /etc/init.d/postfix restart [125004200430] |Now you need to download cuteflow from here using the following command in to your web server root directory i.e /var/www/ [125004200440] |wget http://puzzle.dl.sourceforge.net/sourceforge/cuteflow/CuteFlow_v2100_bin.zip [125004200450] |Now you have CuteFlow_v2100_bin.zip file unzip this using the following command [125004200460] |sudo unzip CuteFlow_v2100_bin.zip [125004200470] |Now you have V.2.10.0 directory move this to cuteflow [125004200480] |sudo mv V.2.10.0 cuteflow [125004200490] |Now you need to change the permissions and ownership of this folder [125004200500] |sudo chown -R www-data:www-data cuteflow [125004200510] |sudo chmod 755 cuteflow [125004200520] |Now you need to point your web browser [125004200530] |http://serverip/cuteflow/ [125004200540] |This will start the installation process select the Language and click Install [125004200550] |Here you need to make sure everything should be ok if you see any red you need to fix other than if you want to use ldap you need to install LDAP extension otherwise you can ignore this click continue [125004200560] |Enter the database settings and click continue [125004200570] |Test Install Database successfull click continue [125004200580] |Enter your cuteflow server setting and SMTP settings click continue [125004200590] |SMTP Seetings Successfully written click continue [125004200600] |Installing test data click continue [125004200610] |Installing test data Successfully click continue [125004200620] |Installation completed click on Start cuteflow [125004200630] |cuteflow login Screen here Use admin/admin to login [125004200640] |After you login You should see similar to the following screen [125004200650] |Test Data Circulations [125004200660] |Check this documentation how to use cuteflow document circulation and workflow system [125004210010] |Simple Compizconfig settings manager in Ubuntu 8.04(Hardy heron) [125004210020] |In Ubuntu 8.04 if you want to configure compiz manually we have a new tool called Simple Compizconfig settings manager.The OpenCompositing Project brings 3D desktop visual effects that improve usability of the X Window System and provide increased productivity. [125004210030] |This package contains a simple compizconfig settings manager application [125004210040] |Install Simple Compizconfig settings manager in ubuntu 8.04 [125004210050] |sudo aptitude install simple-ccsm [125004210060] |This will complete the installation. [125004210070] |Using Simple Compizconfig settings manager [125004210080] |If you want to open Simple Compizconfig settings manager go to System--->Preferences--->Simple Compizconfig settings manager [125004210090] |Once it opens you should see similar to the following screen from here you can configure [125004210100] |If you want to access complete compiz configuration options you need to install the following package compizconfig-settings-manager [125004210110] |sudo aptitude install compizconfig-settings-manager [125004210120] |This will complete the installation. [125004210130] |If you want to access compizconfig-settings-manager Go to System--->Preferences--->Advanced Desktop Effects Settings [125004210140] |Once it opens you should see similar to the following option [125004210150] |If you use any one of the above tool you need to have the custom effects option selected. [125004220010] |How to get information about your file system in Ubuntu [125004220020] |If you want to know more details about your file system you need to use dumpe2fs utility.dumpe2fs prints the super block and blocks group information for the filesystem present on device.dumpe2fs is similar to Berkeleyâs dumpfs program for the BSD Fast File System. [125004220030] |If you want to use dumpe2fs in ubuntu you need to install e2fsprogs package. [125004220040] |Install e2fsprogs package using the following command [125004220050] |sudo aptitude install e2fsprogs [125004220060] |This will complete the installation. [125004220070] |Now if you want to know more about your file system use the following command [125004220080] |dumpe2fs [125004220090] |Using dumpe2fs [125004220100] |Syntax [125004220110] |dumpe2fs [ -bfhixV ] [ -ob superblock ] [ -oB blocksize ] device [125004220120] |Available option details [125004220130] |-b - print the blocks which are reserved as bad in the filesystem. [125004220140] |-ob superblock - use the block superblock when examining the filesystem. [125004220150] |This option is not usually needed except by a filesystem wizard who is examining he remains of a very badly corrupted filesystem. [125004220160] |-oB blocksize - use blocks of blocksize bytes when examining the filesystem. [125004220170] |This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem. [125004220180] |-f - force dumpe2fs to display a filesystem even though it may have some filesystem feature flags which dumpe2fs may not understand (and which can cause some of dumpe2fsâs display to be suspect). [125004220190] |-h - only display the superblock information and not any of the block group descriptor detail information. [125004220200] |-i - display the filesystem data from an image file created by e2image, using device as the pathname to the image file. [125004220210] |-x - print the detailed group information block numbers in hexadecimal format [125004220220] |-V - print the version number of dumpe2fs and exit. [125004220230] |dumpe2fs Examples [125004220240] |dumpe2fs /dev/sda1 | more [125004220250] |Sample Output [125004220260] |dumpe2fs 1.40.2 (12-Jul-2007) Filesystem volume name: Last mounted on: Filesystem UUID: ec7a16c5-c680-45ac-9f1b-856ab960d759 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file Filesystem flags: signed directory hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 997472 Block count: 1994060 Reserved block count: 99703 Free blocks: 722777 Free inodes: 807799 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 486 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 16352 Inode blocks per group: 511 Filesystem created: Thu Oct 25 18:29:45 2007 Last mount time: Thu Mar 6 13:02:32 2008 Last write time: Thu Mar 6 13:02:32 2008 Mount count: 4 Maximum mount count: 34 Last checked: Thu Feb 14 15:10:27 2008 Check interval: 15552000 (6 months) Next check after: Tue Aug 12 16:10:27 2008 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 First orphan inode: 50414 Default directory hash: tea Directory Hash Seed: 836ca201-5370-43e7-a6ce-1606f2a7cd37 Journal backup: inode blocks [125004230010] |How to Install Firefox 3 RC1 in Ubuntu 8.04 (Hardy Heron) [125004230020] |This tutorial will explain howto install Firefox 3 RC1 in Ubuntu Hardy.go to System >Administration >Software Sources [125004230030] |Now you need to Third-Party Software tab and click Add [125004230040] |Add the following line and click on add source [125004230050] |deb http://ppa.launchpad.net/fta/ubuntu hardy main [125004230060] |After adding new source list you can see similar to the following screen and click on close [125004230070] |Now you need to click on reload in the following screen [125004230080] |Install firefox 3 RC1 in Ubuntu [125004230090] |open a terminal and try to use the following comamnds [125004230100] |sudo aptitude update [125004230110] |sudo aptitude dist-upgrade [125004230120] |This will install the firefox 3 RC1 from the source list we have added. [125004230130] |Firefox 3 RC1 in Action [125004240010] |How to install Helix audio and video player in Hardy [125004240020] |The Helix Player is an audio and video player based on the Helix DNA Client engine. [125004240030] |It includes a Mozilla browser plug-in and supports local file playback and streaming over RTSP/RTP and HTTP. [125004240040] |It supports video zoom in original, double size, and full screen, and supports: [125004240050] |* Theora (Alpha 3 encoded content), Vorbis, Ogg [125004240060] |* Basic SMIL 2.0 [125004240070] |* H.263 [125004240080] |* RealPix, RealText, RealEvents [125004240090] |* RAM and RPM playlist formats [125004240100] |* RTSP streaming with RTP, HTTP streaming [125004240110] |This package contains just the player, install mozilla-helix-player for the browser plugins for Mozilla based browsers. [125004240120] |Install helix-player in hardy [125004240130] |sudo aptitude install helix-player [125004240140] |This will complete the installation. [125004240150] |Using Helix-player [125004240160] |If you want to open helix player go to Applications--->Sound &Video--->Helix Player [125004240170] |If you are opening first time you should be able to see similar to the following screen click on Forward [125004240180] |Release notes information click on Forward [125004240190] |Helix Player [125004240200] |Helix Player version details [125004240210] |Install mozilla Browser plugin for helix player [125004240220] |If you want to Install mozilla Browser plugin use the following command [125004240230] |sudo aptitude install mozilla-helix-player [125004250010] |Update IP addresses at dynamic DNS services Using ddclient [125004250020] |If you are using zoneedit.com or dyndns.org for your DNS service so that you can access your server using a URL, then you might have to update your DNS record at the service periodically whenever the IP address of your computer changes.Now here is simple solution for this ddclient. [125004250030] |Update IP addresses at dynamic DNS services.A perl based client to update your dynamic IP address at DynDNS.com (or other dynamic DNS services such as Hammernode, Zoneedit or EasyDNS), thus allowing you and others to use a fixed hostname (myhost.dyndns.org) to access your machine. [125004250040] |This client supports both the dynamic and (near) static services, MX setting, and alternative host. [125004250050] |It caches the address, and only attempts the update if the address actually changes. [125004250060] |Install ddclient in ubuntu [125004250070] |sudo aptitude install ddclient [125004250080] |This will complete the installation [125004250090] |Configuring ddclient [125004250100] |If you want to reconfigure you seetings use the following command [125004250110] |dpkg-reconfigure ddclient [125004250120] |You want to make sure it runs as a service and monitors changes in ppp–something that the install wizard doesn’t cover. [125004250130] |Edit the configuration file /etc/ddclient.conf [125004250140] |sudo gedit /etc/ddclient.conf [125004250150] |# Configuration file for ddclient generated by debconf # # /etc/ddclient.conf pid=/var/run/ddclient.pid protocol=easydns use=web server=members.easydns.com login=yournamehere password=’password’ *.your.domain [125004250160] |If you can’t find the public IP address, then you can have ddclient check your public IP address from the web by editing /etc/ddclient.conf and making it use the web by saying [125004250170] |use=web [125004250180] |or [125004250190] |use=web, web=checkip.dyndns.org/, web-skip=’IP Address’ [125004250200] |Save and exit the file [125004250210] |Restart ddclient service using the following command [125004250220] |sudo /etc/init.d/ddclient restart [125004260010] |A much easier way to install Ubuntu on a USB device (Stick or HD)! [125004260020] |I was reading How to install Ubuntu Linux from USB Stick posted on this site a while ago, and found it to be quite some work to get Ubuntu working on a USB stick. [125004260030] |Besides, having to prepare your USB device, creating a separate partition on it which will be more or less “useless” after the installation, giving up 750MB of space? [125004260040] |There had to be a better way. [125004260050] |Together with a colleague of mine, I decided to figure out whether there could be an easier way to install Ubuntu on a USB device. [125004260060] |I found a way of doing it in a much simpler way… without creating the separate partition to store the LiveCD: [125004260070] |A couple of assumptions to take into account when going through this manual: [125004260080] |
  • My computer (Dell D820 laptop) has 1 internal disk, devided into 3 partitions (dell utility - windows - Ubuntu 8.04)
  • [125004260090] |
  • Just one USB device (in my case a 250GB harddisk
  • [125004260100] |
  • BIOS configured to enable boot from internal HDD, CD/DVD and USB Storage device
  • [125004260110] |(I didn’t take screenshots, so I will be explaining a lot about the screens… It looks like a lot of work, but trust me: it is not, and it really is easy:-) [125004260120] |
  • Insert the LiveCD into your computer;
  • [125004260130] |
  • Connect your USB device;
  • [125004260140] |
  • Boot your computer from the liveCD;
  • [125004260150] |
  • Once Ubuntu is started, go to System - Administration - Partition Manager This will open the Partion Editor. [125004260160] |Select your USB device and delete all partitions on it. [125004260170] |Click Apply and exit Partition Editor;
  • [125004260180] |
  • Double Click the Install Icon. [125004260190] |This will start the Installer;
  • [125004260200] |
  • The Welcome Screen is shown. [125004260210] |Choose your language and click Forward;
  • [125004260220] |
  • Select your Time Zone and click Forward;
  • [125004260230] |
  • Choose your Keyboard Layout and click Forward;
  • [125004260240] |
  • The partitioner will be started, and you will be given the choice where to install Ubuntu. [125004260250] |Choose Guided - Use entire disk, selecting your USB device (this will most likely be /dev/sdb, don’t choose /dev/sdb1!);
  • [125004260260] |
  • The next sceen you will give your username/password information. [125004260270] |Provide the required info and hit Forward;
  • [125004260280] |
  • If there is anything to migrate from other installations on your computer (most likely not), do whatever you want, and click Forward;
  • [125004260290] |
  • The next screen is important - It is titled: “Ready to Install”. [125004260300] |Be careful here: before clicking on Forward, make sure you click on the “Advanced” Button! [125004260310] |This will open a new screen, giving you the option whether and where to install the bootloader. [125004260320] |Select your USB device (in my case it was /dev/sdb) to install the bootloader to; Exit this screen and click on Forward in the “Ready to Install” screen, which will be shown;
  • [125004260330] |
  • The installation will be started now. [125004260340] |Just be patient, grab a cup of coffee and come back 15 minutes later, your installation will be more or less finished by then.
  • [125004260350] |So you have finished the installation. [125004260360] |However, when you will be restarting your system from USB, you will find out that the partition you just installed Ubuntu to cannot be mounted. [125004260370] |Here comes the trick: [125004260380] |
  • Once the installation is finished, reboot your PC (this is the safest) from your LiveCD, with your USB device connected;
  • [125004260390] |
  • Once started, open up a terminal (Applications - Accessories - Terminal);
  • [125004260400] |
  • In the Terminal, type: sudo -i (which will give you root privileges, so be careful from now on!);
  • [125004260410] |
  • Change directories to /media/disk/boot/grub - This will take you to the “/boot/grub” directory on the USB device;
  • [125004260420] |
  • open menu.lst with vi (make a backup first!)
  • [125004260430] |
  • Go to line 130 (or somewhere in that area). [125004260440] |You will find a line looking like: ## ## End Default options ## And underneath it you will find three entries pointing to your Ubuntu you just installed: title Ubuntu 8.04, kernel 2.6.24-16-generic root (hd1,0) kernel /boot/vmlinuz……… initrd /boot/initrd……. quiet (the above 5 lines repeat 3 times with slight differences)
  • [125004260450] |
  • The magic trick is to change (hd1,0) into (hd0,0) for all these three entries. [125004260460] |Why? [125004260470] |Booting from USB device makes your USB device hd0, in stead of hd1 at time of installation.
  • [125004260480] |
  • Search for the line starting with “# groot=(hd1,0)” and change (hd1,0) to (hd0,0) - Don’t delete the # at te beginning of this line!
  • [125004260490] |
  • Once you did this, you can optionally remove the remaining of the file (everything underneath ### END DEBIAN AUTOMATIC KERNELS LIST);
  • [125004260500] |
  • Save the file, make sure it is owned by root:ubuntu (chgrp ubuntu menu.* will do)
  • [125004260510] |
  • Edit device.map (in the same directory) and change the mapping of hd0 to /dev/sdb.
  • [125004260520] |
  • Reboot your machine, from USB, choose the Ubuntu installation from the Boot Loader and you are one happy person.
  • [125004260530] |I guess that is it. [125004260540] |If I missed something, please comment. [125004260550] |Regards, [125004270010] |Listadmin - Command line tool to manipulate the queues of messages [125004270020] |listadmin is a command line tool to manipulate the queues of messages held for moderator approval by mailman. [125004270030] |It is designed to keep user interaction to a minimum, in theory you could run it from cron to prune the queue. [125004270040] |It can use the score from a header added by SpamAssassin to filter, or it can match specific senders, subjects, or reasons. [125004270050] |Install listadmin in Ubuntu [125004270060] |Installing listadmin is very simple using the following command [125004270070] |sudo aptitude install listadmin [125004270080] |This will complete the installation. [125004270090] |Configuring listadmin [125004270100] |Now you need to create a ~/.listadmin.ini file in your home directory [125004270110] |touch .listadmin.ini [125004270120] |Now you need to edit this file using the following command [125004270130] |vi .listadmin.ini [125004270140] |enter the following information [125004270150] |default skip [125004270160] |log ~/.listadmin.log [125004270170] |# this example uses the same password for the users, process and admin lists [125004270180] |adminurl http://{domain}/mailman/admindb/{list} password yourpassword users@lists.domain.com process@lists.domain.com admin@lists.domain.com [125004270190] |# this example uses different passwords for the supporters and staff lists [125004270200] |adminurl https://{domain}/mailman/admindb/{list} [125004270210] |password “yourotherpassword” support@lists.domain1.com [125004270220] |password “youranotherpassword” team@lists.domain1.com [125004270230] |Now you need to save and exit the file. [125004270240] |Make sure you are having the correct permission for this file [125004270250] |chmod 744 .listadmin.ini [125004270260] |That’s it now you need to run the listadmin command from comman line [125004270270] |listadmin [125004270280] |Start moderating all your groups in single command [125004280010] |Howto Create Name Based and IP Based Virtual hosts in Apache [125004280020] |We have already seen the apache2 installation if you want to check here [125004280030] |Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.com) on a single machine. [125004280040] |Virtual hosts can be “IP-based”, meaning that you have a different IP address for every web site, or “name-based”, meaning that you have multiple names running on each IP address. [125004280050] |The fact that they are running on the same physical server is not apparent to the end user. [125004280060] |Apache was one of the first servers to support IP-based virtual hosts right out of the box. [125004280070] |Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). [125004280080] |The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts. [125004280090] |Basics Of Virtual Hosts [125004280100] |Using virtual hosts, host several domains with a single web server. [125004280110] |In this way, save the costs and administration workload for separate servers for each domain. [125004280120] |There are several options regarding virtual hosts [125004280130] |Name-based virtual hosts [125004280140] |IP-based virtual hosts [125004280150] |Operation of multiple instances of Apache on one machine [125004280160] |Name-Based Virtual Hosts [125004280170] |With name-based virtual hosts, one instance of Apache hosts several domains. [125004280180] |You do not need to set up multiple IPs for a machine. [125004280190] |This is the easiest, preferred alternative. [125004280200] |Reasons against the use of name-based virtual hosts are covered in the Apache documentation. [125004280210] |Configure it directly by way of the configuration file /etc/apache2/ sites-available/filename(by default we have default name file take this as reference and create new file). [125004280220] |To activate name-based virtual hosts, specify a suitable directive. [125004280230] |NameVirtualHost *. * is sufficient to prompt Apache to accept all incoming requests. [125004280240] |Subsequently, configure the individual hosts: [125004280250] |NameVirtualHost * ServerName www.example.com DocumentRoot /home/www/htdocs/example.com ServerAdmin webmaster@example.com ErrorLog /var/log/apache2/www.example.com-error_log CustomLog /var/log/apache2/www.example.com-access_log common [125004280260] |ServerName www.myothercompany.com DocumentRoot /home/www/htdocs/myothercompany.com ServerAdmin webmaster@myothercompany.com ErrorLog /var/log/apache2/www.myothercompany.com-error_log CustomLog /var/log/apache2/www.myothercompany.com-access_log common [125004280270] |A VirtualHost entry must also be configured for the domain originally hosted on the server (www.example.com). [125004280280] |In this example, the original domain and one additional domain (www.myothercompany.com) are hosted on the same server. [125004280290] |Just as in NameVirtualHost, a * is used in the VirtualHost directives. [125004280300] |Apache uses the host field in the HTTP header to connect the request to the virtual host. [125004280310] |The request is forwarded to the virtual host whose ServerName matches the host name specified in this field. [125004280320] |For the directives ErrorLog and CustomLog, the log files do not need to contain the domain name. [125004280330] |Here, use a name of your choice. [125004280340] |ServerAdmin designates the e-mail address of the responsible person that can be contacted if problems arise. [125004280350] |In the event of errors, Apache gives this address in the error messages it sends to clients. [125004280360] |IP-Based Virtual Hosts [125004280370] |This alternative requires the setup of multiple IPs for a machine. [125004280380] |In this case, one instance of Apache hosts several domains, each of which is assigned a different IP. [125004280390] |The following example shows how Apache can be configured to host the original IP (192.168.1.10) plus two additional domains on additional IPs (192.168.1.20 and 192.168.1.21). [125004280400] |This particular example only works on an intranet, because IPs ranging from 192.168.0.0 to 192.168.255.0 are not routed on the Internet. [125004280410] |Configuring IP Aliasing [125004280420] |For Apache to host multiple IPs, the underlying machine must accept requests for multiple IPs. [125004280430] |This is called multi-IP hosting. [125004280440] |For this purpose, IP aliasing must be activated in the kernel. [125004280450] |Once the kernel has been configured for IP aliasing, the commands ifconfig and route can be used to set up additional IPs on the host. [125004280460] |These commands must be executed as root. [125004280470] |For the following example, it is assumed that the host already has its own IP, such as 192.168.1.10, which is assigned to the network device eth0. [125004280480] |Enter the command ifconfig to find out the IP of the host. [125004280490] |Further IPs can be added with commands like the following: [125004280500] |/sbin/ifconfig eth0:0 192.168.1.20 /sbin/ifconfig eth0:1 192.168.1.21 [125004280510] |All these IPs are assigned to the same physical network device (eth0). [125004280520] |Virtual Hosts with IPs [125004280530] |Once IP aliasing has been set up on the system or the host has been configured with several network cards, Apache can be configured. [125004280540] |Specify a separate VirtualHost block for every virtual server: ServerName www.myothercompany.com DocumentRoot /home/www/htdocs/myothercompany.com ServerAdmin webmaster@myothercompany.com ErrorLog /var/log/apache2/www.myothercompany.com-error_log CustomLog /var/log/apache2/www.myothercompany.com-access_log common [125004280550] |ServerName www.anothercompany.com DocumentRoot /home/www/htdocs/anothercompany.com ServerAdmin webmaster@anothercompany.com ErrorLog /var/log/apache2/www.anothercompany.com-error_log CustomLog /var/log/apache2/www.anothercompany.com-access_log common VirtualHost directives are only specified for the additional domains. [125004280560] |The original domain (www.example.com) is configured through its own settings (under DocumentRoot, etc.) outside the VirtualHost blocks. [125004280570] |Multiple Instances of Apache [125004280580] |With the above methods for providing virtual hosts, administrators of one domain can read the data of other domains. [125004280590] |To segregate the individual domains, start several instances of Apache, each with its own settings for User, Group, and other directives in the configuration file. [125004280600] |In the configuration file, use the Listen directive to specify the IP handled by the respective Apache instance. [125004280610] |For the above example, the directive for the first Apache instance would be: [125004280620] |Listen 192.168.1.10:80 [125004280630] |For the other two instances [125004280640] |Listen 192.168.1.20:80 Listen 192.168.1.21:80 [125004280650] |In Apache2 to configure virtual hosts there are two important files i.e [125004280660] |/etc/apache2/sites-available and /etc/apache2/sites-enabled/ [125004280670] |We need to create symlink between these two folders for each virtual host or you can use a2ensite and a2dissite [125004280680] |sudo a2ensite [125004280690] |This Will create the correct symlinks in sites-enabled to allow the site configured in sitefilename to be served [125004280700] |sudo a2dissite [125004280710] |This Will remove the symlinks from sites-enabled so that the site configured in sitefilename will not be served [125004280720] |Example for name based virtual hosts [125004280730] |Apache 2.0, the default site is instead the first file (in alphabetical order) in the /etc/apache2/sites-enabled directory. [125004280740] |After initial installation, there will be a symlink from 000-default in this directory to /etc/apache2/sites-available/default. [125004280750] |As you can see from this, Apache 2.0 offers another level of abstraction in the Virtual Hosts by recommending putting the actual files in /etc/apache2/sites-available and then symlinking from there to /etc/apache2/sites-enabled. [125004280760] |I would recommend following this convention, but it’s not mandatory. [125004280770] |In our example above, we would create two files, /etc/apache2/sites-available/default and /etc/apache2/sites-available/example.com. [125004280780] |Our /etc/apache2/sites-available/default file would look like this [125004280790] |NameVirtualHost * ServerName incorrect.com DocumentRoot /home/www/html/default [125004280800] |And our /etc/apache2/sites-available/example.com would look like this [125004280810] |NameVirtualHost * ServerName www.example.com ServerAlias example.com DocumentRoot /home/www/html/example.com/html CustomLog logs/www.example.com-access_log common [125004280820] |We would then create symlinks to the /etc/apache2/sites-enabled directory with the ln -s [125004280830] |sudo ln -s /etc/apache2/sites-available/example.com /etc/apache2/sites-enabled/example.com [125004280840] |or you can use the following command [125004280850] |sudo a2ensite example.com [125004280860] |Site www.example.com installed. [125004280870] |Now you need to restart the apache web server using the following command [125004280880] |sudo /etc/init.d/apache2 restart [125004280890] |Now we have our Virtual Hosts configured, it’s time to test. [125004280900] |Fire up a browser and head to www.example.com [125004280910] |Example for IP based virtual hosts [125004280920] |/etc/apache2/sites-available/example.com would look like this: [125004280930] |ServerName www.example.com ServerAlias example.com DocumentRoot /home/www/html/example.com/html CustomLog logs/www.example.com-access_log common [125004280940] |We would then create symlinks to the /etc/apache2/sites-enabled directory with the ln -s [125004280950] |sudo ln -s /etc/apache2/sites-available/example.com /etc/apache2/sites-enabled/example.com [125004280960] |or you can use the following command [125004280970] |sudo a2ensite example.com [125004280980] |Site www.example.com installed. [125004280990] |Now you need to restart the apache web server using the following command [125004281000] |sudo /etc/init.d/apache2 restart [125004281010] |Now we have our Virtual Hosts configured, it’s time to test.Fire up a browser and head to www.example.com to see if your web site is working or not.Before testing you need to make sure your DNS server was configured with correct A record.Create all the required directories and files for configuring websites. [125004290010] |How to enable the universe and multiverse repositories in Ubuntu 8.04 (Hardy) [125004290020] |There are thousands of programs available to install on Ubuntu. [125004290030] |These programs are stored in software archives (repositories) and are available for installation over the Internet. [125004290040] |This makes it very easy to install new programs. [125004290050] |It is also very secure, because each program you install is thoroughly tested and built specifically for Ubuntu. [125004290060] |The universe and multiverse repositories are official Ubuntu repositories, with safe, well-tested programs. [125004290070] |The only difference between them and the repositories enabled by default is that the universe and multiverse repositories are maintained by the Ubuntu community rather than by paid Ubuntu developers. [125004290080] |There are three ways to enable the universe and multiverse repositories in Ubuntu 8.04 (Hardy Heron): via the graphical Software Sources tool,via the Synaptic Package Manager or via the command line. [125004290090] |Using Software Sources [125004290100] |To enable the universe and multiverse repositories using the Software Sources tool, you need to follow this procedure [125004290110] |Go to System->Administration->Software Sources [125004290120] |Enter your root password if you are prompted.Once the program loads, check the boxes next to “Community-maintained Open Source software (universe)” and “Software restricted by copyright or legal issues (multiverse)” click on close . [125004290130] |A dialog will prompt you to reload the package information. [125004290140] |Click the “reload” button. [125004290150] |If you do not see any errors, then you have successfully enabled the universe and multiverse repositories. [125004290160] |Using Synaptic Package Manager [125004290170] |To enable the universe and multiverse repositories using the Synaptic Package Manager, follow this procedure [125004290180] |Open System->Administration->Synaptic Package Manager [125004290190] |Enter your root password if you are prompted Once the program loads, look at the menu at the top. [125004290200] |Click Settings->Repositories. [125004290210] |Check the boxes next to “Community-maintained Open Source software (universe)” and “Software restricted by copyright or legal issues (multiverse)” click on close. [125004290220] |A dialog will appear with The repository information has changed.You have to Click the “reload” button… and click on close. [125004290230] |Now you need to click on Reload from the top menu [125004290240] |If you do not see any errors, then you have successfully enabled the universe and multiverse repositories. [125004290250] |Using Command Line (Only for advanced Users) [125004290260] |To enable the universe and multiverse repositories using the command line, you can execute the following steps: [125004290270] |Open a terminal and open your sources.list file using the following command [125004290280] |sudo gedit /etc/apt/sources.list [125004290290] |Assuming you are using the default sources.list, you should be able to replace everything currently in that file with the following [125004290300] |## MAIN REPOSITORIES deb http://gb.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse [125004290310] |## MAJOR BUG FIX UPDATES produced after the final release deb http://gb.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse [125004290320] |## UBUNTU SECURITY UPDATES deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse [125004290330] |If you wish to enable the backports and proposed repositories as well (recommended), then add these lines as well [125004290340] |## BACKPORTS REPOSITORY deb http://gb.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse [125004290350] |## PROPOSED REPOSITORY deb http://archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse [125004290360] |Now save and close the file, and then reload new source list using the following command [125004290370] |sudo apt-get update [125004290380] |If that command runs with no errors, then you have successfully enabled the universe and multiverse repositories. [125004300010] |Enable the Advanced File Permissions Dialog in Nautilus -- The GUI Way [125004300020] |Recently on Tombuntu there’s a post which tells you how to Enable the Advanced File Permissions Dialog in Nautilus by issuing the command in a terminal: [125004300030] |“gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions True'' (without the quotes, to disable the feature, simply replace `True' with `False') [125004300040] |If you feel more comfortable to achieve the goal through a GUI way. [125004300050] |Here you go: [125004300060] |
  • press Alt+F2
  • [125004300070] |
  • type gconf-editor and
  • [125004300080] |
  • from the left pane in the pop-up window, choose app -> nautilus -> preferences
  • [125004300090] |
  • go to the right pane, find out the show_advanced_permissions, check the box on its right
  • [125004300100] |
  • close the window, done.
  • [125004300110] |As you look around, you can change other configurations “under the hood” in the same way. [125004300120] |It’s said that ubuntu-tweak also lets you do many configurations easily, including enable this “show advanced file permission” feature in Nautilus, but I have not try it. [125004310010] |How to change settings for the bootloader and splash screen in Ubuntu [125004310020] |StartUp Manager, or SUM, is a gui tool for changing settings in Grub, Grub2 and Usplash.SUM should work with recent versions of Debian and Debian-based distributions such as Ubuntu. [125004310030] |StartUp Manager Features [125004310040] |Change [125004310050] |Grub timeout Default boot title Number of kernels in bootloader menu Enable/disable boot option for memtest86 Enable/disable boot option for “rescue mode” If the default boot option should be automatically updated Bootup resolution and color depth Grub menu colors Grub menu resolution(Grub2 only) If Splashy should be loaded from initramfs [125004310060] |Create [125004310070] |Rescue floppy [125004310080] |Change visibility of [125004310090] |Grub menu Grub menu colors Grub menu background image Splash screen and boot text [125004310100] |Password protect [125004310110] |Grub menu from editing “Alternate” boot options Old boot options [125004310120] |Themes [125004310130] |Install/change/remove Grub backgrounds Install/change/remove Usplash themes Install/change/remove Splashy themes Preview Splashy themes [125004310140] |Install StartUp Manager in Ubuntu [125004310150] |sudo aptitude install startupmanager [125004310160] |This will complete the installtion [125004310170] |Using StartUp Manager [125004310180] |If you want to open StartUp Manager go to System--->Administration--->Startup-Manager [125004310190] |This will prompt for root password enter and click ok [125004310200] |Startup-manager is loading [125004310210] |Once it open you should see similar to the following screen here you can change boot options screen [125004310220] |If you want to change appearance change on this screen [125004310230] |Security screen [125004310240] |Advanced screen [125004320010] |Howto install Google Gadgets in ubuntu 8.04 (Hardy Heron) [125004320020] |Google Gadgets for Linux provides a platform for running desktop gadgets under Linux, catering to the unique needs of Linux users. [125004320030] |We are compatible with the gadgets written for Google Desktop for Windows as well as the Universal Gadgets on iGoogle. [125004320040] |Following Linux norms, this project will be open-sourced, under the Apache License. [125004320050] |The Windows and Mac versions of Google Desktop has provided gadget hosting functionality on Windows and Mac for a while now and the Linux version of Google Gadgets will extend this platform to Linux users. [125004320060] |By enabling cross-platform gadgets, a large library of existing gadgets are immediately available to Linux users. [125004320070] |In addition, gadget developers will benefit from a much larger potential user base without having to learn a new API. [125004320080] |There’s two main components to the application: one is a common gadget library responsible for running and presenting a gadget, and the other is a host program that allows the user to choose gadgets and run them on the desktop. [125004320090] |Currently we have hosts written for GTK+ and QT, with the GTK+ host offering a sidebar similiar to that of Google Desktop for Windows. [125004320100] |Install Google Gadgets in ubuntu 8.04 [125004320110] |You need to edit /etc/apt/sources.list [125004320120] |sudo gedit /etc/apt/sources.list [125004320130] |add the following lines [125004320140] |deb http://ppa.launchpad.net/googlegadgets/ubuntu hardy main deb-src http://ppa.launchpad.net/googlegadgets/ubuntu hardy main [125004320150] |Save and exit the file [125004320160] |Now you need to update the source list using the following commnd [125004320170] |sudo aptitude update [125004320180] |or you can use the following procedure [125004320190] |Go to System ---> Administration ---> Software Sources, click on the Third-Party tab, then Add, and paste the following line [125004320200] |deb http://ppa.launchpad.net/googlegadgets/ubuntu hardy main [125004320210] |Then click Close and Reload. [125004320220] |Install Google Gadgets using the following command from terminal [125004320230] |sudo aptitude install google-gadgets [125004320240] |This complete the installation process [125004320250] |Using Google gadgets [125004320260] |After finishing installation press Alt+F2, and type ggl-gtk click on Run to start Google Gadgets. [125004320270] |Now You should see a small icon show up in your system tray - right-click on it and select ‘Add Gadgets’ to show a menu [125004320280] |After opening Google gadgets browser you can see similar to the following scree here you can select one and add [125004320290] |After adding you can see similar to the following screen [125004320300] |Add Google Gadgets in Sidebar [125004320310] |If you want to add Google Gadgets in your side bar follow this procedure [125004320320] |Press Alt+F2, and type ggl-gtk -s -bg click on Run to start Google Gadgets [125004320330] |After adding google gadgets you should see similar to the following screen [125004320340] |Start Google Gadgets at startup [125004320350] |Go to System --> Preferences --> Sessions [125004320360] |Once it opens you should see similar to the following screen here you need to click on ‘Add’ [125004320370] |Enter the following details and click on ok [125004320380] |Uninstall Google Gadgets in Ubuntu [125004320390] |If you want to uninstall Google Gadgets in Ubuntu go to Applications --->Accessories--->Terminal enter the following command [125004320400] |sudo aptitude remove google-gadgets [125004320410] |and you need to remove Google Gadgets from startup [125004330010] |Webalizer - Apache web server log file analysis Tool [125004330020] |The Webalizer is a fast, free web server log file analysis program. [125004330030] |It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser. [125004330040] |Install webalizer in ubuntu [125004330050] |sudo apt-get install webalizer This will complete the installation. [125004330060] |Configuring Webalizer [125004330070] |Enable the apache2 hostname resolution for this you need to edit /etc/apache2/apache2.conf file and [125004330080] |sudo vi /etc/apache2/apache2.conf [125004330090] |HostnameLookups Off [125004330100] |into [125004330110] |HostnameLookups On [125004330120] |By default the package will install a daily cron job which will cause the system to process the logfiles once a day, it will always run after the default Apache logfile rotation, which means that instead of examining the logfile /var/log/apache2/access.log it will use the previous one /var/log/apache2/access.log.1 [125004330130] |If you want to change to current apache log file you need to edit /etc/webalizer/webalizer.conf [125004330140] |sudo vi /etc/webalizer/webalizer.conf [125004330150] |change the following parameters [125004330160] |LogFile /var/log/apache2/access.log.1 [125004330170] |to [125004330180] |LogFile /var/log/apache2/access.log [125004330190] |OutputDir /home/www/webalizer [125004330200] |Incremental yes [125004330210] |PageType htm* [125004330220] |PageType cgi [125004330230] |PageType php [125004330240] |HideURL *.gif [125004330250] |HideURL *.GIF [125004330260] |HideURL *.jpg [125004330270] |HideURL *.JPG [125004330280] |HideURL *.ra [125004330290] |IgnoreURL /taskbar* [125004330300] |Each parameter in Detail [125004330310] |LogFile /var/log/apache2/access.log [125004330320] |The option LogFile specifies the logfile to use with Webalizer. [125004330330] |The default log file is supposed to be the access_log of Apache Web Server, but you can specifies a different one, like the one Squid Proxy Server makes named access.log if you use it in httpd-accelerator mode. [125004330340] |OutputDir /home/www/webalizer [125004330350] |The option OutputDir specifies the location of the output directory to use for the reports of Webalizer. [125004330360] |All present and future report files generated by the Webalizer program will be hosted in this directory. [125004330370] |It is recommended that you create this directory where your Apache web site resides. [125004330380] |Incremental yes [125004330390] |The option Incremental if set to Yes tells the program only to process partial logs file, and allows you to rotate your log files as much as you want without the loss of access information. [125004330400] |It’s recommended to set this option to Yes. [125004330410] |PageType htm* cgi php [125004330420] |The option PageType specifies what file extensions you want Webalizer to consider as a page to count. [125004330430] |Each added file extensions must be specified on its own line as shown in the Webalizer configuration file above. [125004330440] |HideURL *.gif *.GIF *.jpg *.JPG *.ra [125004330450] |The option HideURL specifies what kind of items such as graphic files, audio files or other non-html files to hide from the reports page. [125004330460] |Each added item must be specified on its own line as shown in the Webalizer configuration file above. [125004330470] |IgnoreURL /taskbar* [125004330480] |The option IgnoreURL specifies URLs to be completely ignored from the generated statistics reports. [125004330490] |This option can be used to ignore directories that are not important in our statistics reports. [125004330500] |It’s also useful when you want to manage and class which URLs should be monitored and which should be ignored. [125004330510] |After configuring all the required options .Now you need to restart the Apache2 server using [125004330520] |sudo /etc/init.d/apache2 restart [125004330530] |Running Webalizer manually first time [125004330540] |Now it’s time to run the program to generate reports, html and graphics in the default Webalizer directory so that we can see them in our web browser interface. [125004330550] |This step is required just the first time you install and use Webalizer, since it’s preferable to use a cron job to automate this task in the future. [125004330560] |To run Webalizer manually, to generate reports, use the following command [125004330570] |webalizer [125004330580] |At this stage, we should verify that Webalizer is working on the system. [125004330590] |To do that, point your web browser to the following address: [125004330600] |http://my-web-server/webalizer/. [125004330610] |The my-web-server is the address where your Apache web server lives, and usage is the directory that host all the Webalizer reports files. [125004330620] |This works well for single sites, but if you have a group of websites all on the same machine you might need to make some changes. [125004330630] |The way that you handle multiple websites on one host is to place all the files beneath a common directory /home/www, such as: [125004330640] |/home/www/ [125004330650] |www.domain1.com/logs/ and www.domain1.com/stats [125004330660] |www.domain2.com/logs and www.domain2.com/stats [125004330670] |Here we have two sites www.domain1.com, and www.domain2.com, each has its own logs,stats/ subdirectory where Apache places the logfiles and stat files. [125004330680] |To handle this simply you merely copy the default webalizer.conf file from /etc into each of the log directories: [125004330690] |cp /etc/webalizer.conf /home/www.domain1.com/logs [125004330700] |cp /etc/webalizer.conf /home/www.domain2.com/logs [125004330710] |Now if you make the changes to the configuration file so that each one has: [125004330720] |Logfile access.log [125004330730] |OutputDir ../stats/ [125004330740] |You can update the stats by running [125004330750] |cd /home/www/www.domain1.com/logs [125004330760] |webalizer -q [125004330770] |cd /home/www/www.domain2.com/logs [125004330780] |webalizer -q [125004330790] |(The -q flag merely makes the program run quietly). [125004330800] |These two commands can be placed inside a shell script and invoked automatically be a cron job belonging to a user who can write to the stats directory - and you can remove the default job by running [125004330810] |rm /etc/cron.daily/webalizer