[125002720010] |Useful and Fun things to do with the Ubuntu Terminal [125002720020] |If you want to have fun with ubuntu terminal this is for you [125002720030] |Entertainment [125002720040] |Watch Star Wars [125002720050] |telnet towel.blinkenlights.nl [125002720060] |Chat with a bot [125002720070] |telnet the-funk.net 7000 [125002720080] |Custom ascii text [125002720090] |banner [125002720100] |See how long your machine has been running [125002720110] |uptime [125002720120] |To see the arbitrary precision calculator (7^500 is interesting! That’s 7 to the 500th power) [125002720130] |bc [125002720140] |Must enter below code to use the next few [125002720150] |sudo apt-get install cowsaySee [125002720160] |your fortune [125002720170] |fortune [125002720180] |Use cowsay (replace “message” with your own text in single quotes) [125002720190] |cowsay ‘message’ [125002720200] |Cowsay your Amarok lyrics [125002720210] |dcop amarok player lyrics | cowsay [125002720220] |Must enter below code to use the next few [125002720230] |sudo apt-get emacs21 [125002720240] |To play ‘snake’ [125002720250] |emacs21 [125002720260] |Once emacs21 opens, hit… [125002720270] |Esc>>”X” [125002720280] |Type in… [125002720290] |snake [125002720300] |To play ‘tetris’ [125002720310] |emacs21 [125002720320] |Once emacs21 opens, hit… [125002720330] |Esc>>”X” [125002720340] |Type in… [125002720350] |tetris [125002720360] |Useful [125002720370] |Show some computer stats [125002720380] |lspci [125002720390] |Access a dictionary through terminal (must have a working internet connection) Note: Replace ‘word’ with whatever you’d like to search for (without quotes) [125002720400] |curl dict://dict.org/d:word [125002720410] |Check system temperature and battery charge [125002720420] |acpi -t [125002720430] |See a list of all running processes [125002720440] |ps aux [125002720450] |View the current time, date, and year [125002720460] |date [125002720470] |Show a simple calendar [125002720480] |cal [125002720490] |See what programs are running with the path names [125002720500] |ps -aux [125002720510] |See your current IP address [125002720520] |ifconfig -a [125002720530] |See what your system is doing at startup [125002720540] |dmesg [125002720550] |Show information about the computer users [125002720560] |finger -l [125002720570] |Show current Ubuntu version [125002720580] |cat /etc/issue [125002720590] |System Recovery [125002720600] |Backup xorg.conf [125002720610] |sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup [125002720620] |Replace current xorg.conf with a previously made backup [125002720630] |sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf [125002720640] |Delete auto xorg.conf backups [125002720650] |sudo rm /etc/X11/xorg.conf.2007* [125002720660] |Use nano to edit xorg.conf (works in “terminal-only” mode) [125002720670] |sudo nano /etc/X11/xorg.conf [125002720680] |Keyboard Shortcuts [125002720690] |Terminal keyboard shortcut for paste [125002720700] |Ctrl>>Shift>>Alt>>”V” [125002720710] |Or… [125002720720] |Shift>>Insert [125002720730] |Advanced Users Only [125002720740] |Open up a file browser with all privileges [125002720750] |gksudo nautilus [125002720760] |Edit color options (advanced users only) [125002720770] |gedit .gtkrc-2.0 [125002720780] |Give a .sh file executable priveledges [125002720790] |chmod +x [125002720800] |To clear all of the past commands you have run in the terminal history type: [125002720810] |history -c [125002720820] |If you use GNOME [125002720830] |Alt+F2 in your keyboard [125002720840] |and then type “free the fish” [125002720850] |SUPER COW POWERS [125002720860] |aptitude -h [125002720870] |Read the last line [125002720880] |apt-get moo [125002720890] |aptitude moo [125002720900] |aptitude -v moo [125002720910] |aptitude -v -v moo [125002720920] |aptitude -v -v -v moo [125002720930] |aptitude -v -v -v -v moo [125002720940] |aptitude -v -v -v -v -v moo [125002720950] |apt-get moo [125002720960] |Debian’s Top Secret List of planned Release Names [125002720970] |zcat /usr/share/doc/linux-image-`uname -r`/changelog.Debian.gz | egrep -e “Release” [125002720980] |zgrep “The.*Release” /usr/share/doc/dpkg/changelog.Debian.gz [125002730010] |Howto Clean up your packages [125002730020] |It’s worthwhile to do this every now again again on your ubuntu box when you’ve been installing and uninstalling new apps. [125002730030] |This will go through and check which packages have been installed that are no longer needed. [125002730040] |It will then remove them for you [125002730050] |apt-get autoremove [125002730060] |Output looks like below [125002730070] |Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libcommoncpp2-1.5.3-0 The following packages will be REMOVED libcommoncpp2-1.5.3-0 0 upgraded, 0 newly installed, 1 to remove and 29 not upgraded. [125002730080] |Need to get 0B of archives. [125002730090] |After unpacking 688kB disk space will be freed. [125002730100] |Do you want to continue [Y/n]? [125002730110] |Here you need to select Y to remove these packages [125002750010] |Howto install Firefox 3 Beta 2 in Ubuntu 7.10 (Gutsy Gibbon) [125002750020] |Firefox 3 Beta 2 is a developer preview release of Mozilla’s next generation Firefox browser and is being made available for testing purposes only. [125002750030] |These beta releases are targeted to Web developers and our testing community to gain feedback before advancing to the next stage in the release process. [125002750040] |The final version of Firefox 3 will be released when we qualify the product as fully ready for our users. [125002750050] |Firefox 3 Features [125002750060] |Firefox 3 is based on the new Gecko 1.9 Web rendering platform, which has been under development for the past 28 months and includes nearly 2 million lines of code changes, fixing more than 11,000 issues. [125002750070] |Gecko 1.9 includes some major re-architecting for performance, stability, correctness, and code simplification and sustainability. [125002750080] |Firefox 3 has been built on top of this new platform resulting in a more secure, easier to use, more personal product with a lot under the hood to offer website and Firefox add-on developers. [125002750090] |More Features check here [125002750100] |Installing Firefox3.0 beta2 in ubuntu [125002750110] |Preparing your system [125002750120] |sudo apt-get install libstdc++5 [125002750130] |Now you need to take backup of your old firefox prferences [125002750140] |sudo cp -R ~/.mozilla ~/.mozillabackup [125002750150] |Now you need to download firefox 3.0b2 from here [125002750160] |Now you have firefox-3.0b2.tar.bz2 file [125002750170] |Unzip the .tar.bz2 file in /opt directory using the following command [125002750180] |sudo tar -C /opt -jxvf firefox-3.0b2.tar.bz2 [125002750190] |Now you need to link the plugins using the following command [125002750200] |cd /opt/firefox/plugins/ [125002750210] |sudo ln -s /usr/lib/mozilla-firefox/plugins/* . [125002750220] |Now you need to create a link to your new firefox launcher using the following command [125002750230] |sudo dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox [125002750240] |sudo ln -s /opt/firefox/firefox /usr/bin/firefox [125002750250] |sudo dpkg-divert --divert /usr/bin/mozilla-firefox.ubuntu --rename /usr/bin/mozilla-firefox [125002750260] |sudo ln -s /opt/firefox/firefox /usr/bin/mozilla-firefox [125002750270] |This will complete the installation of firefox 3.0b2 [125002750280] |If you want to open firefox 3 beta 2 go to Applications--->Internet--->Firefox Web Browser [125002750290] |Once you open first time you should see similar to the following screen [125002750300] |Firefox 3.0 beta 2 in Action [125002750310] |Firefox Version Details [125002760010] |Howto Setup iTunes-compatible Media server in Ubuntu [125002760020] |mt-daapd is a DAAP server that works with most POSIX compatible operating systems. [125002760030] |It allows you to share your music collection over the local network using the same protocol iTunes uses, so real iTunes users may peruse your music. [125002760040] |Moreover, if your music is in more esoteric formats like FLAC, Ogg Vorbis, or Musepack, these can be converted on the fly to different formats (usually WAV), so that your entire music collection can be listened to by normal iTunes clients. [125002760050] |It also features a web interface that can be used to control components of the server, trigger database updates, and create playlists. [125002760060] |Preparing your system [125002760070] |First of all install ID3 tag support (so mt-daapd can read mp3 files) [125002760080] |sudo apt-get install libid3tag0 [125002760090] |Now install mt-daapd using the following command [125002760100] |sudo apt-get install mt-daapd [125002760110] |Configuring mt-daapd [125002760120] |Configuration file is located at /etc/mt-daapd.conf, so make your changes there and test this file using the following command [125002760130] |sudo mt-daapd -f [125002760140] |Also you have to remember to add the Avahi Daemon to your startup scripts with the following command [125002760150] |sudo update-rc.d avahi-daemon defaults [125002760160] |that provides mt-daapd the Apple ZeroConf services (also known as “Rendezvous” or “Bonjour”). [125002760170] |Otherwise your iTunes machines won’t be able to discover the mt-daapd server even thou the server itself is running properly. [125002760180] |To enable smart playlists you have to use the administration WebUI with http://localhost:3689. [125002760190] |Now it will prompt for the username and password as admin and your password setup in mt-daapd.conf file Once it opens you should see the following screen [125002760200] |You can edit smart playlists under the smart playlists tab either directly as logic script or using the wizard (provided) to fill the rules for playlist generation point-n-click way. [125002760210] |Configuration setup screen [125002770010] |How to install Epiphany web browser in Ubuntu [125002770020] |Epiphany is the web browser for the GNOME desktop. [125002770030] |Its goal is to be simple and easy to use. [125002770040] |Epiphany ties together many GNOME components in order to let you focus on the Web content, instead of the browser application. [125002770050] |As part of the GNOME project, Epiphany is Free Software. [125002770060] |Powered by the Gecko engine, Epiphany displays webpages with the same speed and accuracy as Mozilla Firefox. [125002770070] |In addition, it provides an elegant, responsive and uncomplicated user interface that fits in perfectly with GNOME, and it has been translated to over thirty languages! [125002770080] |epiphany-extensions [125002770090] |Adds extra features to GNOME’s Epiphany web browser, including action, adblocking, auto-reload, auto-scroller, console, extensions manager, find, greasemonkey, javaconsole, mouse gestures, move tabs between windows, python-console, pushscroller, rss extension, error viewer and validator, certificate viewer, sidebar, smart bookmarks, page info, CSS Stylesheet, favicon.ico, tab states and a GNOME Dashboard interface. [125002770100] |Epiphany Features [125002770110] |Security [125002770120] |Epiphany shows you clearly if the information you enter on a webpage is transmitted securely. [125002770130] |It can block popup windows, refuse cookies from untrusted sites and store your passwords in a safe place. [125002770140] |With Epiphany, you can rest assured that your online privacy is being guarded. [125002770150] |Customizable user interface [125002770160] |Epiphany lets you arrange user interface elements by simply dragging and dropping with your mouse. [125002770170] |It also provides tabs, so you can easily organize related webpages on your computer screen. [125002770180] |Smart bookmarks [125002770190] |Smart bookmarks make it a snap to lookup text in online knowledge bases, like dictionaries or search engines. [125002770200] |Also, you don’t have to keep track of in which subfolder you put that one bookmark -- just assign it some topic(s) and Epiphany will show you the relevant bookmarks in a dropdown menu. [125002770210] |Extensions and plugins [125002770220] |Need some specialized browser function that’s not available in the default menus? [125002770230] |There’s a good chance someone has already written an extension for you. [125002770240] |The Epiphany Extensions package is what you will need. [125002770250] |Epiphany runs all the same popular plugins that run in Mozilla. [125002770260] |Install Epiphany web browser in Ubuntu [125002770270] |sudo apt-get install epiphany-browser epiphany-extensions [125002770280] |This will complete the installation [125002770290] |Using Epiphany web browser [125002770300] |If you want to open Epiphany web browser go to Applications--->Internet--->Epiphany web browser [125002770310] |Epiphany web browser in Action [125002770320] |Epiphany web browser Version Details [125002770330] |If you want to enable Epiphany web browser Extensions go to Tools--->Extensions [125002770340] |Once it opens you should see the following screen where you can enable Extensions [125002780010] |Configuring XGI Volari XP5 video card on a Dell Inspiron 5160 [125002780020] |Installing Ubuntu on one of these is relatively straight forward, if it were not for the lack of graphics driver support out of the box. [125002780030] |It boots, gives the install menu, so you can choose “start or install ubuntu,” or “install in safe graphics mode” (i tried both) After loading for a little bit, it gives me the following blue screen: “Failed to start the X server (your graphical interface). [125002780040] |It is likely that it is not set up correctly. [125002780050] |Would you like to view the X server output to diagnose the problem?” [125002780060] |The Dell Inspiron 5160, contains the XGI Volari XP5 video card. [125002780070] |I don’t think Ubuntu has these drivers, or perhaps they are on the disk but the hardware isn’t being recognised. [125002780080] |The important piece of information here is that this card maker was bought by Trident, so look for them in the list of drivers, to see the list, you need to type in the following. [125002780090] |Use Ctrl-Alt-F1 to get access to a terminal [125002780100] |ubuntu@ubuntu sudo dpkg-reconfigure xserver-xorg [125002780110] |From here I was able to select Trident Select defaults for everything [125002780120] |then from a terminal, do the following [125002780130] |sudo /etc/init.d/gdm stop [125002780140] |sudo /etc/init.d/gdm start [125002780150] |It looks like 1024×768 is the resolution to go for. [125002780160] |Try system-config-display from a terminal and see if you can set the correct resolution, 1024×768 or whatever is correct for your laptop’s lcd [125002780170] |PC Repair Forum [125002790010] |How to change the background color of your screen in Ubuntu [125002790020] |If you want to change the background color of your screen follow any one of the options [125002790030] |Option 1 [125002790040] |First you need to edit the gdm.conf file using the following command [125002790050] |sudo vi /etc/gdm/gdm.conf [125002790060] |you can use gedit also [125002790070] |scroll to where it says BackgroundColor=#123123 [125002790080] |replace with your color (or just #000000 for black) [125002790090] |save and exit the file [125002790100] |Option2 [125002790110] |A user friendly way is to go System->Administration->Login Window [125002790120] |Once it opens you should see similar to the following screen [125002790130] |Select Local tab and click on next to background colour button [125002790140] |Once it opens you can select your background colour option and click on ok [125002800010] |Howto Install vmware tools in Ubuntu [125002800020] |We have already discussed about VMware server setup in gutsy.Now It is very important that you install VMware Tools in the guest operating system.With the VMware Tools SVGA driver installed, Workstation supports significantly faster graphics performance.The VMware Tools package provides support required for shared folders and for drag and drop operations. [125002800030] |Other tools in the package support synchronization of time in the guest operating system with time on the host, automatic grabbing and releasing of the mouse cursor, copying and pasting between guest and host, and improved mouse performance in some guest operating systems. [125002800040] |Click on VM in the top menu of the VMware Server console and select Install VMware Tools. [125002800050] |Now you should be able see the following screen here click on install [125002800060] |Now you should see similar to the following screen on your desktop [125002800070] |First copy the VMware Tools from the mounted iso to the temporary folder [125002800080] |cp /media/cdrom/VMwareTools-1.0.3-44356.tar.gz /tmp/ [125002800090] |Afterwards switch to the temporary folder and unpack the VMware Tools: [125002800100] |cd /tmp/ [125002800110] |tar xvfz VMwareTools-1.0.3-44356.tar.gz [125002800120] |Next switch to the folder with the unpacked files and execute the installer: [125002800130] |cd vmware-tools-distrib/ [125002800140] |sudo ./vmware-install.pl [125002800150] |Now you will be asked a few questions relating to installation paths etc. [125002800160] |Choose the default value every time (simply hit enter). [125002800170] |After the installation/configuration finished you have to start the VMware Tools: [125002800180] |vmware-toolbox & [125002800190] |Once it opens you should be able to see similar to the following screen [125002800200] |Vmware tools version details [125002800210] |Note: If you close the VMware Tools window, the VMware Tools will be disabled immediately. [125002800220] |Method 2 [125002800230] |Another simple method to install Vmware tools using simple scripts check here [125002810010] |HowTo install Avant Window Navigator (AWN) in Ubuntu 7.10 (Gutsy Gibbon) [125002810020] |Avant Window Navigator (Awn) is a dock-like bar which sits at the bottom of the screen. [125002810030] |It has support for launchers, task lists, and third party applets.The Awn project is the development of the ‘dock’, avant-window-navigator, and its corresponding shared library ‘libawn’, which is used to develop applets. [125002810040] |Note :- The Avant Window Navigator depends on compiz before installing Avant Window Navigator you need to make sure you have desktop effects enabled and without this you should not go through the trouble of installing Avant Window Navigator. [125002810050] |Thanks to Marius for this [125002810060] |First you need to edit the /etc/apt/sources.list file using the following command [125002810070] |sudo gedit /etc/apt/sources.list [125002810080] |add the following two lines [125002810090] |For Hardy Users [125002810100] |deb http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main [125002810110] |For Gutsy Users [125002810120] |deb http://ppa.launchpad.net/reacocard-awn/ubuntu gutsy main deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu gutsy main [125002810130] |For Feisty Users [125002810140] |deb http://ppa.launchpad.net/reacocard-awn/ubuntu feisty main deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu feisty main [125002810150] |Save and exit the file. [125002810160] |Update the source list using the following command [125002810170] |sudo aptitude update [125002810180] |Install Avant Window Navigator (AWN) in Ubuntu [125002810190] |sudo aptitude install avant-window-navigator-bzr awn-core-applets-bzr [125002810200] |This will complete the installation [125002810210] |You can now start AWN from Applications->Accessories->Avant Window Navigator [125002810220] |AWN Bar [125002810230] |Once it is running, you can right click on the bar that it opens up, and choose preferences to set all of the different things that you want AWN to handle [125002820010] |Reset the root password on MySQL [125002820020] |MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). [125002820030] |First released in January, 1998, MySQL is now one component of parent company MySQL AB’s product line of database servers and development tools. [125002820040] |Yes, it really is this easy.run the following command to change the mysql root password [125002820050] |sudo /etc/init.d/mysql reset-password New MySQL root password: Verify: Setting new MySQL root password [125002820060] |But how? [125002820070] |Debian (and by inheritance, Ubuntu) have a special user called ‘debian-sys-maint’ on each mysql install that has admin privileges on the server. [125002820080] |It’s used to shutdown the server gracefully, automatically check for corrupt tables, and resetting your password. [125002820090] |Its password is randomly generated, and stored in /etc/mysql/debian.cnf. [125002820100] |Handy if you want to do some admin scripts yourself. [125002830010] |What to Expect from Ubuntu 8.04 (Hardy Heron) [125002830020] |Hardy is on the way to be a better more reliable system than Windows, even if Gutsy and Feisty are, most windows users who used my Ubuntu installation or installed it on their own system didn’t really like it as they found it too complicated to do things such as syncing their iPods or installing the missing wi-fi drivers. [125002830030] |Here are propositions that I think would be able to make the average windows user more familiar with Ubuntu and have a better experience. [125002830040] |Wizard on first user login [125002830050] |The first time a user log in to their account on Ubuntu, a basic wizard should pop-up to allow the user to customize their account and install new programs from the internet according to their needs.(For users with non-administrator rights, installing software could cause a problem though, but if this idea is used maybe a workaround could be made.) [125002830060] |The wizard should have a Skip button, because sometimes, as we all know from using Windows, wizards are just a loss of time and can be a pain. [125002830070] |The wizard should present the user available themes and wallpapers and allow him to choose one. [125002830080] |After that it should ask what kind of desktop effects should be applied and install the proprietary graphics drivers if possible before showing them the desktop. [125002830090] |Then it should ask them for things such as: [125002830100] |Do you own an mp3 player(And is yes ask which one and install an mtp/iPod/iriver/generic mp3 management program if that program is easier to use and more productive than Rythmbox. [125002830110] |For example if the user has an MTP device, the wizard would enable the MTP plug-in in Rythmbox) [125002830120] |It could ask is the user is interested in video creation or often uses MSN(thus installing aMSN, a much better MSN client than) or Skype(Skype for Linux). [125002830130] |It could also ask about their web cam and see if its drivers can be installed. [125002830140] |When creating a new user account that doesn’t have admin privileges, the admin who created the account could allow this wizard to install new software from this wizard, but disable any other. [125002830150] |A program to compete with iTunes [125002830160] |Why are so many people asking about iTunes for Linux? [125002830170] |Because their is no other yes no other program that manages music and videos for an mp3 player as well as iTunes. [125002830180] |A program with these features should exist: [125002830190] |-Complete syncing of a library and converting the songs in another format if the mp3 player doesn’t support the source format.What I mean b complete syncing is that the player searches for all the tracks on the mp3 that you don’t have in your library then proposes to import them to our library or delete them from the mp3. [125002830200] |It should also support tag update, meaning that if you update a tag in the library with the mp3 disconnected, then next time the mp3 is connected, the file(s ) that have been update get updated too, instead of copying a second version of the file on the player. [125002830210] |-Directory Watch: Simple, just watching a directory for media that is in it. [125002830220] |-Fancy Cover presentation, not a coverflow copy but something like that, since that is one gimmick that most windows users that have tried ubuntu missed. [125002830230] |A nice GUI always looks better. [125002830240] |-Video Management: The player should be able to support any kind of video and offer a quicj*k single click conversion to the players supported video format, and if it is for iPod format, allow it to be a Music video with tags. [125002830250] |-Musicbrainz/Picard support, like Amarok, but at a larger scale meaning that whenever a file is imported, it is analysed and the correct tags are applied with the album cover. [125002830260] |This feature should be able to be disabled and only used whenever the user request so. [125002830270] |-LastFM support [125002830280] |-Photo support and tagging photos and transferring toward mp3/mp4. [125002830290] |Should be able to support Picasa, Digikam and F-Spot library. [125002830300] |- A decent speed, have you ever tried iTunes? [125002830310] |Isn’t it so slow you’d use it more often if it was faster? [125002830320] |-And ll the expected features of a multimedia manager. [125002830330] |Applications in General [125002830340] |Aren’t you ever disappointed that most Linux programs are just incomplete, or they never reach their 1.0 version or their features are much less than what you can get on Windows? [125002830350] |Example: F-Spot, Nautilus [125002830360] |Is there a decent video editing application out there? [125002830370] |Not really though KDEnlive seems to be ok. [125002830380] |The Gimp? [125002830390] |Much too complicated for an average user, even for a Photshop user like me(And Gimpshop doesn’t really help…). [125002830400] |Talking of Nautilus, it needs a big update Windows explorer beats it hands down, you can’t just select pictures and ask to flip them one way or another or change their angle. [125002830410] |Sharing files with Windows isn’t very easy for basic users who have just changed from Windows to Ubuntu specially if they are scared of command line. [125002830420] |Ability to install debs locally without admin password. [125002830430] |Like that a default user can still install basic software without risking to damage the computer without the hassle of asking the admin to allow him to. [125002830440] |Also add an option for the administrator to install that program system wide later, if he feel like it. [125002830450] |Convert Windows restricted formats into one supported by Linux applications [125002830460] |The user has installed Ubuntu, but unfortunately can’t access his old emails that where on Outlook. [125002830470] |Allow Evolution or Thunderbird etc upon first start to locate these files for the users and convert them to a readable format. [125002830480] |Most other application’s don’t need that, for example Gimp and PSD’s. [125002830490] |WINE integrated support [125002830500] |I saw that Wine was going to be included in Hardy with GUI implementation well here’s what I’m expecting: [125002830510] |-Nautilus is able to show the exe’s icons and not the mimetype exe default icon [125002830520] |-Frequent update of WINE on ubuntu repo’s, because I’m not sure it’ll be safe to install the debs from WINEhq because they might not support Ubuntu’s implementation and break most of it. [125002830530] |Some Backup Feature [125002830540] |Timevault is too complicated and sbackup is too simple. [125002830550] |Make one integrated to Ubuntu that support external hard-drives and that detects when they are disconnected. [125002830560] |Something to rival with TimeMachine. [125002830570] |Better web cam, scanner and wi-fi hardware support [125002830580] |Well you know how much of a pain it will be for the user to install their drivers manually. [125002830590] |Ubuntu 8.04 (Hardy Heron) Release schedule check here [125002840010] |sysvconfig - utility for configuring init script links [125002840020] |A text menu based utility for configuring init script links.It provides extensive explanations at each step. [125002840030] |Some features supported by sysvconfig are: [125002840040] |- Enable or disable services. [125002840050] |- Edit init links. [125002840060] |- Restore from backup file if you make a mistake. [125002840070] |- Menu or command line interface. [125002840080] |- View all services, each with its status and a brief description. [125002840090] |Sysvconfig also installs a ‘service’ script much like that found on Red Hat systems. [125002840100] |Install sysvconfig in ubuntu [125002840110] |sudo aptitude sysvconfig [125002840120] |This will complete the installation [125002840130] |Using sysvconfig [125002840140] |If you want to open sysvconfig use the following commnd [125002840150] |sysvconfig [125002840160] |Once it opens you should see similar to the following screen [125002840170] |if you want to enable/disable the services select the first option and press enter [125002840180] |Now you should see similar to the following screen here you can select or unselect the service [125002840190] |Using Service Command [125002840200] |Sysvconfig will install service command to start,stop,restart the service using service command use the follwoing format [125002840210] |sudo service apache2 restart [125002840220] |sudo service apache2 stop [125002840230] |BDV-886197-BDV [125002850010] |Howto create a Transparent Terminal in Ubuntu Desktop [125002850020] |This tutorial will explain how to create a Transparent Terminal in Gnome Background using alltray [125002850030] |With AllTray you can dock any application with no native tray icon (like Evolution, Thunderbird, Terminals) into the system tray. [125002850040] |A high-light feature is that a click on the “close” button will minimize back to system tray. [125002850050] |It works well with Gnome, KDE, XFCE 4*, Fluxbox* and WindowMaker*. (*) No drag ‘n drop support. [125002850060] |Enable with “-nm” option. [125002850070] |Install alltray in ubuntu [125002850080] |sudo aptitude install alltray [125002850090] |This will complete the installation [125002850100] |Configuring Transparent Terminal [125002850110] |First you need to open Gnome Terminal from applications--->Accessories--->Terminal [125002850120] |Once it opens go to Edit--->Profiles [125002850130] |Once it opens you should see similar to the following screen here you need to Press the New button [125002850140] |Once it opens you should see similar to the following screen here you need to give the new profile a name and click on create [125002850150] |The profile editor dialog should open. [125002850160] |Here, uncheck ‘Show menubar by default in new terminals’. [125002850170] |Go to Effects tab, select ‘Transparent background’ and set the transparency amount close to None. [125002850180] |Go to Scrolling tab and select Disabled from the drop-down list. [125002850190] |Close the editing profile dialog and in the Profiles dialog, select the newly created profile from the ‘Profile used when launching a new terminal’ drop-down list of your choice and close it. [125002850200] |Create a new launcher on the Desktop (right click on the background) [125002850210] |Now you need to enter a name for it,insert the following command in the ‘Command’ field,comment field and click on ok [125002850220] |alltray -x -st -g +380+5 “gnome-terminal --window-with-profile=tterm --geometry=110x30" [125002850230] |Launcher created on desktop as follows [125002850240] |Make sure that one of your Gnome panels has the ‘Notification Area’ applet.Open the launcher created on the desktop and click on the terminal icon in the notification area. [125002850250] |You should now have a transparent terminal in your background. [125002850260] |One more Transparent Terminal screenshot [125002860010] |Disable internet access for particular user in Ubuntu [125002860020] |This is very useful if you want to block internet access to your kids or particular users [125002860030] |First you need to edit the network interfaces file using the following comamnd [125002860040] |sudo vi /etc/network/interfaces [125002860050] |or [125002860060] |sudo gedit /etc/network/interfaces [125002860070] |Now you need to add the simple iptables rule to the interfaces file when the internet connection starts up [125002860080] |Simply add this under auto wlan0 or auto eth0 in the interfaces file [125002860090] |pre-up iptables -A OUTPUT -p tcp -m owner --uid-owner username -j DROP [125002860100] |save and exit the file. [125002860110] |Now you need to type in the terminal with the following command [125002860120] |sudo iptables -A OUTPUT -p tcp -m owner --uid-owner username -j DROP [125002860130] |and switch users to the username you blocked and try to access the internet. [125002870010] |Howto clear/Flush DNS Cache in Ubuntu [125002870020] |Some distributions run a caching nameserver in the background out of the box while some do not. [125002870030] |To clear the cache if you have such a daemon running, simply restart the nscd service in ubuntu. [125002870040] |Why would you clear your cache? [125002870050] |Most DNS clients will cache the results of name resolution request to speed up multiple lookups to the same URL. [125002870060] |Just think about how many requests are made to the same domain when visiting a single web page. [125002870070] |Every file, image, style sheet, etc. that is on that page and served from the same domain requires a DNS lookup. [125002870080] |So if you have an invalid DNS entry cached on your local client you’ll need to flush it out of the cache so your client can do a new lookup and get the correct information. [125002870090] |Or your other option is to wait until that DNS entry expires and the cache flushes it automatically… which typically takes about 24 hours. [125002870100] |In ubuntu if you want to flush DNS cache you need to restart nscd daemon [125002870110] |Install nscd using the following command [125002870120] |sudo aptitude install nscd [125002870130] |Flush DNS Cache in Ubuntu Using the following command [125002870140] |sudo /etc/init.d/nscd restart [125002880010] |GLPI - IT and asset Managemet Software [125002880020] |GLPI stands for “Gestionnaire libre de parc informatique”, GLPI is the Information Resource Manager with an additional Administration- Interface. [125002880030] |You can use it to build up a database with an inventory for your company (computer, software, printers…). [125002880040] |It has enhanced functions to make the daily life for the administrators easier, like a job tracking system with mail-notification and methods to build a database with basic information about your network-topology. [125002880050] |GLPI Requirements [125002880060] |Linux or Windows Operating system [125002880070] |Apache webserver with php support [125002880080] |Mysql Database with php support [125002880090] |Preparing your system for GLPI Installation [125002880100] |WARNING: “this tutorial is meant for users that have a good knowledge of development tools and manual installation process and will be hardly supported by the Ubuntu community. [125002880110] |Standard supported procedure are to install packages from the official repositories, not to compile them by hand”. [125002880120] |Install apache2 with php support in Ubuntu [125002880130] |If you want to install apache2 with php support follow these steps [125002880140] |sudo aptitude install apache2 [125002880150] |This will complete the installation of apache2 web server and now you need to know where the configuration files and document root for your apache web server. [125002880160] |By default all your configuration files are located at /etc/apache2.Default document root for apache2 is /var/www.If you want to change the default document root you need to edit the /etc/apache2/sites-available/default file and look for this line “DocumentRoot /var/www/” here you can change where ever you want to change.For example if you want to change /home/wwww the above line looks like this “DocumentRoot /home/www/”. [125002880170] |The main configuration file located at /etc/apache2/apche2.conf. [125002880180] |Install php support for apache2 [125002880190] |If you want to add support of php and cgi scripts install the following packages libapache2-mod-php5,php5-cli,php5-common,php5-cgi [125002880200] |sudo aptitude install libapache2-mod-php5 php5-cli php5-common php5-cgi [125002880210] |This will complete the installation of php support for apache2. [125002880220] |If you want to allow the different index files types check for the following line in etc /apache2/apache2.conf file [125002880230] |DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml [125002880240] |Install Mysql Database server in Ubuntu with php support [125002880250] |If you want to install mysql database server with php support in ubuntu use the following command [125002880260] |sudo aptitude mysql-server php5-mysql [125002880270] |At the time of installation it will prompt for mysql server root password and it will complete the installation [125002880280] |Install GLPI in Ubuntu [125002880290] |First you need to download the GLPT .tar.gz file from the download section of GLPI website in to your webserver root directory.For debian users default document root is /var/www/ so i am downloading in to this. [125002880300] |wget http://www.glpi-project.org/IMG/gz/glpi-0.68.3-2.tar.gz [125002880310] |sudo tar xzvf glpi-0.68.3-2.tar.gz [125002880320] |Now you should be having glpi directory in /var/www/ and change permissions for config and files directories using the following command. [125002880330] |sudo chmod 777 config/ files/ [125002880340] |To begin the installation you must to use your browser point to http://yourserverip/glpi/ [125002880350] |During the first connection, a step by step installation starts and you should see the following screen in this you need to select your language and click ok. [125002880360] |Now you have to accept the licence and click on continue. [125002880370] |Next screen you need to select install or update.I have selected install in this option. [125002880380] |Once you click on install you should see the screen “checking the compatibility of your environment” if something is missing it will give the error and you need to fix.If everything is fine you should see the following screen and click on continue. [125002880390] |Now you need to setup database connection here you need to enter your mysql server, mysql user and mysql user password and click on continue. [125002880400] |Here you need to select create new database,enter glpi (any of your choice) and click on continue. [125002880410] |This time the database is initialized with the default values. [125002880420] |Some informations are given to you on these values. [125002880430] |Read this information attentively and click on continue. [125002880440] |Now it will display the information about the installation of GLPI is now finished, a summary is displayed. [125002880450] |Read these informations attentively and click on use GLPI. [125002880460] |Once you click on use GLPI you should see the following screen asking for username and password. [125002880470] |By defauly glpi is having the following username and passwords to login [125002880480] |glpi/glpi for the administrator account tech/tech for the technician account normal for the normal account post-only/post-only for the postonly account [125002880490] |Select glpi username and password to login in to the glpi with administrator permissions and you should see the following screen. [125002880500] |GLPI Plugins [125002880510] |Add simply and easily new functionalities to GLPI using plugins. [125002880520] |The plugins need to be uncompress and copy in the “plugins” directory of your GLPI installation. [125002880530] |Each plugin is contained in a repertory [125002880540] |Download GLPI Plugins from here [125002890010] |Howto Install KDE 4.0 (Stable) in Ubuntu Gutsy [125002890020] |KDE 4.0 is the innovative Free Software desktop containing lots of applications for every day use as well as for specific purposes. [125002890030] |Plasma is a new desktop shell developed for KDE 4, providing an intuitive interface to interact with the desktop and applications. [125002890040] |The Konqueror web browser integrates the web with the desktop. [125002890050] |The Dolphin file manager, the Okular document reader and the System Settings control center complete the basic desktop set. [125002890060] |KDE is built on the KDE Libraries which provide easy access to resources on the network by means of KIO and advanced visual capabilities through Qt4. [125002890070] |Phonon and Solid, which are also part of the KDE Libraries add a multimedia framework and better hardware integration to all KDE applications. [125002890080] |First you need to edit the /etc/apt/sources.list file [125002890090] |sudo gedit /etc/apt/sources.list [125002890100] |add the following line [125002890110] |deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main [125002890120] |Save and exit the file [125002890130] |Update the source list using the following command [125002890140] |sudo aptitude update [125002890150] |Install KDE 4.0 in Ubuntu [125002890160] |First you need to remove any exiting kde4 using the following command [125002890170] |sudo aptitude remove kdelibs5 kde4base-data kde4libs-data [125002890180] |Now install kde4.0 [125002890190] |sudo aptitude install kde4-core [125002890200] |This will complete the kde4.0 installation [125002890210] |you can run a full session by selecting “KDE 4″ from your login manager. [125002890220] |To avoid having to start a second X server for a full session install xserver-xephyr and run Xephyr :1 export DISPLAY=:1; xterm and run startkde in the Xerphyr xterm. [125002890230] |Once you logged in you should be able to see similar to the following screen [125002890240] |If you want 50 more KDE 4.0 Screenshots check here [125002900010] |WiFi Radar - Simple tool to Manage Wireless Profiles [125002900020] |WiFi Radar is a Python/PyGTK2 utility for managing WiFi profiles.It enables you to scan for available networks and create profiles for your preferred networks. [125002900030] |At boot time, running WiFi Radar will automatically scan for an available preferred network and connect to it. [125002900040] |You can drag and drop your preferred networks to arrange the profile priority. [125002900050] |Install WiFi Radar in ubuntu [125002900060] |sudo aptitude install wifi-radar [125002900070] |This will complete the installation. [125002900080] |Using WiFi-Radar [125002900090] |If you want to open goto Applications--->Internet--->Wifi-radar [125002900100] |This will prompt for root password enter and click ok [125002900110] |This should detect available wireless networks check your wireless and connect [125002900120] |If you want to create new profile open the application and click on new [125002900130] |You can see similar to the following scree enter all the details and you are ready for wireless [125002910010] |Verify DNS records with Dlint [125002910020] |If you manage Domain Name System (DNS) records, you probably already know how seemingly minor errors can cause big problems. [125002910030] |Leaving a semicolon off the end of a statement, forgetting the trailing period, or failing to add that right bracket can cause a DNS server to fail to load or to respond incorrectly to requests. [125002910040] |Dlint is a utility that will check your domains for common errors, allowing you to fix them before a problem gets out of hand. [125002910050] |Dlint uses Domain Information Groper (DiG) and a combination shell/Perl script to gather and parse DNS information. [125002910060] |This script can help verify your configuration and save you some troubleshooting time in the future. [125002910070] |Install dlint in ubuntu [125002910080] |sudo aptitude install dlint [125002910090] |This will comple the installation [125002910100] |Using Dlint [125002910110] |You can run Dlint against any domain on the Internet, not just ones you administer. [125002910120] |Since it uses DiG to gather DNS information, it can work with information gathered from any DNS server. [125002910130] |Dlint Examples [125002910140] |1) dlint nau.edu. [125002910150] |The above command recursively scans the DNS records in zone nau.edu for problems. [125002910160] |2) dlint 64.114.134.in-addr.arpa. [125002910170] |The above command recursively scans the DNS records associated with IP subnet 134.114.64.0 for problems. [125002910180] |You had to already know that 134.114.0.0 was subnetted. [125002910190] |3)You can also specify a nonrecursive check with the –n command-line option. [125002910200] |Dlint will automatically find the primary and secondary name servers for the supplied domain and attempt to do a zone transfer (AXFR). [125002910210] |example [125002910220] |dlint -n google.com [125002910230] |output looks similar to the following screen [125002910240] |Administration of DNS, especially in a large-scale environment, can be difficult to keep up with. [125002910250] |Constant changes can leave holes or misconfigurations on your DNS server. [125002910260] |Dlint will check DNS records for a domain and attempt to find possible errors, offering a quick-and-easy way to keep your DNS database viable and up to date. [125002910270] |You don’t need to be a 70-536 or a 220-602 to understand the way DNS works. [125002910280] |People who have not even been near to EX0-101 and 642-845 and don’t even know about the actual test, are managing domain name system records. [125002920010] |Howto Mount NTFS VMware Virtual Disk Image (vmdk) read/write [125002920020] |If you want to Mount NTFS VMware Virtual Disk Image (vmdk) read/write follow this procedure. [125002920030] |Vmware server comes with a little utility to mount the VMware virtual file systems called vmware-mount.pl. [125002920040] |This utility works pretty well but mounts all NTFS partitions as Read Only! [125002920050] |Outlined below is a process to mount .vmdk files Read/Write. [125002920060] |Requirements [125002920070] |vmware-loop nbd module ntfs-3g [125002920080] |Vmware-loop is provided by the free vmware server. [125002920090] |Instructions for installing can be found HERE.The nbd (Network Block Device) module should be provided already by Ubuntu. [125002920100] |Install Ntfs-3g in Ubuntu [125002920110] |sudo apt-get install ntfs-config [125002920120] |This will complete the installation [125002920130] |Configure VMware Disk [125002920140] |First One is to load the nbd module [125002920150] |sudo modprobe nbd [125002920160] |Next we use vmware-loop, the “Virtual Hard Disk to Network Block Device mapper”. [125002920170] |This is done using vmware-loop /path/to/VirtualDisk Partition# Device. [125002920180] |For example [125002920190] |sudo vmware-loop /home/MrFSL/VirtualDisk.vmdk 1 /dev/nbd0 [125002920200] |Finally we open a new terminal and mount in the usual way [125002920210] |sudo mount -t ntfs-3g /dev/nbd0 /mnt/ [125002920220] |Common Problem with Solution [125002920230] |Problem [125002920240] |If you are having permission issues you might want to adjust permissions on the mount point or device [125002920250] |Solution [125002920260] |sudo chmod 777 /mnt sudo chmod 777 /dev/nbd0 [125002920270] |When you are done unmount with a simple [125002920280] |sudo umount /dev/nbd0 [125002930010] |Atheros 5007EG with madwifi on i386 platform [125002930020] |For those, who have an Atheros 5007EG chipset and can’t get it working with ndiswrapper, I have this guide from polish ubuntuforum. [125002930030] |This is the only solution that worked on my computer (Toshiba SAT-A210-128), and my brothers computer. [125002930040] |This guide only works on i386 platforms, so if you’re running an x64 linux, then you’ve to try again with ndiswrapper or wait for a new solution from atheros and madwifi. [125002930050] |1. Open you terminal [125002930060] |2. Get this version of madwifi: [125002930070] |wget -c http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz [125002930080] |3. Untar the downloaded package: [125002930090] |tar xvf madwifi-ng-r2756+ar5007.tar.gz [125002930100] |4. Get inside the unpacked directory: [125002930110] |cd madwifi-ng-r2756+ar5007 [125002930120] |5. If you haven’t compiled anything from source before on your linux then you propably need the build essential package: [125002930130] |sudo apt-get update &&sudo aptitude install build-essential [125002930140] |6. Now you can build your madwifi and install the modules: make [125002930150] |sudo make install sudo modprobe ath_pci sudo modprobe wlan_scan_sta [125002930160] |The last 2 commands can cause some complications on some systems. [125002930170] |If they do check your System >>Administration >>Restricted Drivers Manager and disable atheros here. [125002930180] |Then try again. [125002930190] |7. Now restart your computer and you should be able to see any aviable networks in your Network Manager. [125002940010] |Download Ubuntu 7.10 (Gutsy Gibbon) Desktop Training Guides For Students and Instructors [125002940020] |In the latest Ubuntu weekly newsletter the Ubuntu folks announced the release of the Ubuntu 7.10 Desktop Course. [125002940030] |The modular course should take two days to complete all 10 of the lessons offered, but it is possible to cover topics and lessons independently of each other, learning whatever is of interest. [125002940040] |The ten sections of the course include: introducing Ubuntu; exploring the Ubuntu desktop; using the Internet; using OpenOffice applications; Ubuntu and games; customising the desktop and applications; making the most of images and photos; playing music and videos; ubuntu help and support; and partitioning and booting. [125002940050] |Download Desktop Student Training Guide from here [125002940060] |Download Desktop instructor Training Guide from here [125002940070] |The course falls under a Creative Commons licence and people are welcome to modify and create additional content. [125002950010] |Howto Setup Osmo personal organizer in Ubuntu [125002950020] |Osmo is a handy personal organizer which includes calendar, tasks manager and address book modules. [125002950030] |It was designed to be a small, easy to use and good looking PIM tool to help to manage personal information. [125002950040] |In current state the organizer is quite convenient in use - for example, user can perform nearly all operations using keyboard. [125002950050] |Also, a lot of parameters are configurable to meet user preferences. [125002950060] |On the technical side, Osmo is GTK+ based tool which use plain XML database to store all personal data. [125002950070] |Osmo Features [125002950080] |Currently, Osmo has the following features: [125002950090] |Calendar: [125002950100] |note per day arbitrary coloring of the days with notes date calculator built-in full year calendar ‘jump to date’ function compact mode (run as ‘osmo -cal’) handy popup menu for month change integration with Tasks and Contacts modules [125002950110] |Tasks: [125002950120] |category filter priority per task date dependent task color hide/unhide complete tasks [125002950130] |Contacts: [125002950140] |‘find as you type’ support robust search functionality photo support import/export support for CSV files optional export to XHTML format [125002950150] |Preparing Your System [125002950160] |Osmo depends on libxml2 and libgtk2.0 (version >= 2.. [125002950170] |Ubuntu’s Gutsy repos satisfy those dependencies, but chances are you won’t have the -dev packages installed for compiling. [125002950180] |Just to make sure we use the terminal to [125002950190] |sudo aptitude install build-essential libxml2 libxml2-dev libgtk2.0-dev gettext [125002950200] |download osmo using the following command [125002950210] |wget http://surfnet.dl.sourceforge.net/sourceforge/osmo-pim/osmo-0.1.2.tar.gz [125002950220] |Now you need to extract the osmo-0.1.2.tar.gz file using the following command [125002950230] |tar xvf osmo-0.1.2.tar.gz [125002950240] |cd osmo-0.1.2 [125002950250] |./configure [125002950260] |it shouldn’t throw around any errors, if all went well until now. [125002950270] |And then run the following commands [125002950280] |make [125002950290] |sudo make install [125002950300] |This will complete the installation. [125002950310] |If you want to open the osmo you need to enter the following command in your terminal [125002950320] |osmo [125002950330] |Once it opens you should see similar to the following screen this is calender option [125002950340] |Tasks screenshot [125002950350] |Contacts screenshot [125002950360] |Options Screenshot [125002950370] |About Screenshot [125002960010] |Atheros 5007EG with madwifi on i386 platform [125002960020] |For those, who have an Atheros 5007EG chipset and can’t get it working with ndiswrapper, I have this guide from polish ubuntuforum. [125002960030] |This is the only solution that worked on my computer (Toshiba SAT-A210-128), and my brothers computer. [125002960040] |This guide only works on i386 platforms, so if you’re running an x64 linux, then you’ve to try again with ndiswrapper or wait for a new solution from atheros and madwifi. [125002960050] |1. Open you terminal [125002960060] |2. Get this version of madwifi: [125002960070] |wget -c http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz [125002960080] |3. Untar the downloaded package: [125002960090] |tar xvf madwifi-ng-r2756+ar5007.tar.gz [125002960100] |4. Get inside the unpacked directory: [125002960110] |cd madwifi-ng-r2756+ar5007 [125002960120] |5. If you haven’t compiled anything from source before on your linux then you propably need the build essential package: [125002960130] |sudo apt-get update sudo aptitude install build-essential [125002960140] |6. Now you can build your madwifi and install the modules: make [125002960150] |sudo make install sudo modprobe ath_pci sudo modprobe wlan_scan_sta [125002960160] |The last 2 commands can cause some complications on some systems. [125002960170] |If they do check your System >>Administration >>Restricted Drivers Manager and disable atheros here. [125002960180] |Then try again. [125002960190] |7. Now restart your computer and you should be able to see any aviable networks in your Network Manager. [125002970010] |AMOR - a creature for your desktop [125002970020] |AMOR stands for Automatic Machine Object Recognition. [125002970030] |It is a toolbox built upon Orange which allows end-users as well as computer vision scientist to do object recognition. [125002970040] |It features most of the standard object recognition algorithms (SIFT, SVM…).It provides several different characters who prance around your X screen doing tricks and giving you tips. [125002970050] |Note that AMOR will only work with some window managers. [125002970060] |Both KWin (the KDE window manager) and Metacity (a GTK2 window manager) are supported. [125002970070] |AMOR is a nice toy which is absolutely senseless. [125002970080] |It displays a tiny figure on your desktop, running on top of your windows or falling down to the bottom. [125002970090] |It is a KDE application, but it should be no problem to use it in Gnome [125002970100] |Install AMOR in Ubuntu [125002970110] |If you want to install use the following command [125002970120] |sudo aptitude install amor [125002970130] |This will complete the installation [125002970140] |Using AMOR [125002970150] |You need to activate AMOR for this go to Applications--->Others--->AMOR [125002970160] |Some creatures for your desktop [125002970170] |You can configure any creature right click on any creature select configure [125002970180] |Once it opens you should see similar to the following screen here you need to select a creature [125002970190] |AMOR Help Options [125002980010] |Howto Get your System information with Sysinfo [125002980020] |Sysinfo is a GTK2 based program which can display the following computer/system information: [125002980030] |- General information: Kernel version, Distribution release,Hostname/domainname, some important software versions. [125002980040] |- CPU information: Name/vendor, Frequency, L2 Cache, model/family/stepping. [125002980050] |- Memory information: Total, Free, Cached, Active/inactive, Swap. [125002980060] |- IDE information: Disks CD/DVD-roms, Model, Capacity, Cache. [125002980070] |- Filesystem information: Filesystem disk space usage(mounted partitions). [125002980080] |- Hardware information: Motherboard chipset, IDE interface, VGA contoller, Multimedia controllers(sound cards), Ethernet cards. [125002980090] |- USB information: USB controllers. [125002980100] |- NVIDIA information: Graphic card model, AGP rate, Fast writes/SBA, Driver version. (accelerated linux driver needed) [125002980110] |- Other information: Sound card details, Input devices, Screen resolution. [125002980120] |Install sysinfo in Ubuntu [125002980130] |Install sysinfo using the following command [125002980140] |sudo aptitude install sysinfo [125002980150] |This will complete the installation. [125002980160] |Using Sysinfo [125002980170] |If yo want to open go to Applications--->System Tools--->Sysinfo [125002980180] |Once it opens you should see similar to the following screen [125002980190] |You need to select on your left panel which information you want to see now we will see one by one first one is System details [125002980200] |CPU Details [125002980210] |Memory Details [125002980220] |Storage Details [125002980230] |Hardware Details you can choose different options from dropdown menu [125002980240] |Motherboard details [125002980250] |Graphic card Details [125002980260] |Network Details [125002980270] |Sysinfo version details [125002990010] |Create Disk Usage Reports with durep [125002990020] |urep is a perl script used for disk usage reports. [125002990030] |It can generate text output with bar graphs to allow easy comparisons of disk usage between directories. [125002990040] |It can also generate web pages which can be navigated through the directory structure. [125002990050] |This allows easy visual monitoring of disk usage. durep was designed for monitoring disk usage in a more visual way than du. [125002990060] |The du program works fine but doesn’t allow a lot of control over how the results are displayed. [125002990070] |This perl script is designed to produce output more useful for reports. [125002990080] |Install durep in Ubuntu [125002990090] |Use the following command to install durep [125002990100] |sudo aptitude install durep [125002990110] |Using durep [125002990120] |durep Syntax [125002990130] |durep [OPTION]… [DIRECTORY] [125002990140] |durep Examples [125002990150] |1. “durep -w ~/durepweb -td 2″ [125002990160] |This would print the directory tree starting from the current directory to depth 2 to the console and also create web pages in the directory ~/durepweb (this directory must exist). [125002990170] |2. “durep -f /var/spool/mail” [125002990180] |This might be useful for keeping a check on the mail directory. [125002990190] |The “-f” switch tells durep to just scan files and not descend into directories. [125002990200] |Since the “-w” switch is not present, no web pages are produced. [125002990210] |3. “durep -x -cp “/(etc|usr/share)” -ep “/var” /” [125002990220] |This more complicated version does the following. [125002990230] |It scans the root filesystem only, hides the contents of any paths begining /etc or /usr/share and skips the contents of the /var directory. [125002990240] |4. “durep -q -sf durep.save /home ” [125002990250] |This scans /home and saves the results to the save fail durep.save. [125002990260] |No text output is produced. [125002990270] |5. “durep -q -w ~/durepweb -lf durep.save /home ” [125002990280] |This reads the save file durep.save and produces a web report from it in the directory ~/durepweb. [125002990290] |No text output is produced. [125003000010] |Error When ugrading to Ubuntu version 7.10 [125003000020] |When ever i try to upgrade or update I get this message. [125003000030] |http://security.ubuntu.com/ubuntu/dists/feisty-security/main/binary-i386/Packages.bz2: Sub-process bzip2 returned an error code (2) [125003000040] |Can someone help. [125003010010] |fcrackzip - password cracker for zip archives [125003010020] |fcrackzip is a fast password cracker partly written in assembler. [125003010030] |It is able to crack password protected zip files with brute force or dictionary based attacks, optionally testing with unzip its results. [125003010040] |It can also crack cpmask’ed images. [125003010050] |Install fcrackzip in ubuntu [125003010060] |sudo apt-get install fcrackzip [125003010070] |This will complete the installation [125003010080] |fcrackzip Syntax [125003010090] |fcrackzip [-bDBchVvplum2] [--brute-force] [--dictionary] [--benchmark] [--charset characterset] [--help] [--validate] [--verbose] [--init-password string/path] [--length min-max] [--use-unzip] [--method name] [--modulo r/m] file… [125003010100] |fcrackzip Examples [125003010110] |fcrackzip -c a -p aaaaaa sample.zip [125003010120] |checks the encrypted files in sample.zip for all lowercase 6 character passwords (aaaaaa …abaaba …ghfgrg …zzzzzz). [125003010130] |fcrackzip --method cpmask --charset A --init AAAA test.ppm [125003010140] |checks the obscured image test.ppm for all four character passwords. -TP fcrackzip -D -p passwords.txt sample.zip check for every password listed in the file passwords.txt. [125003020010] |addrepo - Easiest way to add APT repositories [125003020020] |addrepo is a simple command line interface for easily adding APT repositories to your sources.list [125003020030] |Install addrepo in Ubuntu [125003020040] |This is very simple process just use the following two commands [125003020050] |sudo wget http://mac4deb.googlepages.com/addrepo -O /usr/bin/addrepo [125003020060] |sudo chmod +x /usr/bin/addrepo [125003020070] |Using addrepo [125003020080] |addrepo [repository] [125003020090] |Now you just replace ‘[repository]‘ with a repository name [125003020100] |addrepo example [125003020110] |addrepo deb http://dl.google.com/linux/deb/ stable non-free [125003020120] |It already includes ‘sudo,’ so adding sudo before you enter the command is not necessary. [125003020130] |Commands Recap [125003020140] |sudo wget http://mac4deb.googlepages.com/addrepo -O /usr/bin/addrepo [125003020150] |sudo chmod +x /usr/bin/addrepo [125003030010] |Fast Address book for your Desktop [125003030020] |gfa is a small and fast address book written in C and GTK+2. [125003030030] |It uses sqlite as backend for the addresses. [125003030040] |Install gfa in Ubuntu [125003030050] |sudo aptitude gfa [125003030060] |This will complete the installation [125003030070] |Using gfa [125003030080] |If you want to open go to Applications--->Accessories--->gfa [125003030090] |Once it opens you should see similar to the following screen [125003030100] |If you want to view more fields click on more fields you should see similar to the following screen [125003030110] |If you want to create a new group click on group--->New [125003030120] |Once it opens you sould see similar to the following screen here you need to enter your group name and click on create [125003030130] |gfa version details [125003040010] |Heartbeat2 Xen cluster with drbd8 and OCFS2 [125003040020] |Heartbeat2 Xen cluster with drbd8 and OCFS2 by Atul Athavale Abstract [125003040030] |This Article describes Heartbeat2 Xen cluster Using Ubuntu (7.10) OS, drbd8 and OCFS2 (Ver. 1.39) File system. [125003040040] |Although here Ubuntu is used it can be done in almost same way with Debian [125003040050] |Idea [125003040060] |The idea behind the whole set-up is to get a High availability two node Cluster with redundant data. [125003040070] |The two identical Servers are installed with Xen hypervisor and almost same configuration as Cluster nodes. [125003040080] |The configuration and image files of Xen virtual machines are stored on drbd device for redundancy. [125003040090] |Drbd8 and OCFS2 allows simultaneous mounting on both nodes, which is required for live migration of xen virtual machines. [125003040100] |Setup [125003040110] |OS Installation [125003040120] |Install two Computers with standard minimal Ubuntu Server (7.10) OS. [125003040130] |After standard installation is done, we go ahead installing required packets. [125003040140] |Disc Partition [125003040150] |On both computers we partition the disc in three partitions and use as follows /dev/sda1 as /root /dev/sda2 as swap /dev/sda3 as drbd8 ( just leave it as it is at the time of installation ) [125003040160] |Network Configuration [125003040170] |Xen system [125003040180] |http://en.wikipedia.org/wiki/Xen We start with installing Xen Hypervisor and boot with Xen-kernel. [125003040190] |Answer yes for additional software. [125003040200] |Reboot the system with Xen hypervisor [125003040210] |OCFS2 [125003040220] |http://oss.oracle.com/projects/ocfs2/ OCFS2 is a Cluster File System which allows simultaneous access from many nodes. [125003040230] |We will set this on our drbd device to access it from both nodes simultaneously. [125003040240] |While configuring OCFS2 we provide the information about nodes, which will access the file system later. [125003040250] |Every Node that has a OCFS2 file system mounted, must regularly write into a meta-data of file system, letting the other nodes know that node is still alive. [125003040260] |Installation [125003040270] |Configuration [125003040280] |Edit /etc/ocfs2/cluster.conf as follows [125003040290] |sudo vi /etc/ocfs2/cluster.conf [125003040300] |reconfigure ocfs2 with following command with their default values [125003040310] |drbd8 [125003040320] |Installation [125003040330] |http://en.wikipedia.org/wiki/Drbd [125003040340] |The advantage of drbd8 over drbd7 is: It allows the drbd resource to be “master” on both nodes and so can be mounted read-write. [125003040350] |We will build drbd8 modules and load it in kernel. [125003040360] |For that we need packages “build-essential” and “kernel-headers-xen” [125003040370] |This builds the drbd module kernel/drivers/block/drbd.ko against the current running kernel. [125003040380] |A default configuration file is installed as /etc/drbd.conf [125003040390] |Configuration [125003040400] |Edit the /etc/drbd.conf [125003040410] |sudo vi /etc/drbd.conf [125003040420] |“ allow-two-primaries” option in net section of drbd.conf allows the resource to be mounted as “master” on both nodes. [125003040430] |Copy the /etc/drbd.conf to node2 and restart drbd on both nodes with following command. [125003040440] |If you check the status it looks like this [125003040450] |change the resource to “master” with following command on both nodes [125003040460] |and check the status again [125003040470] |As you can see resource is “master” on both nodes Th drbd device is now accessible under /dev/drbd0 [125003040480] |File system [125003040490] |We can now create a file system on /der/drbd0 by following command [125003040500] |This can be mounted on both nodes simultaneously with [125003040510] |Now we have a common storage which will be synchronized with drbd on both nodes [125003040520] |Init script [125003040530] |We have to make sure that after reboot, the system will set drbd resources again to “master” and mount those on “/drbd0” before starting Heartbeat and Xen machines. [125003040540] |Edit /etc/init.d/mountdrbd.sh [125003040550] |sudo vi /etc/init.d/mountdrbd.sh [125003040560] |make it executable and add symbolic link to this under /etc/rc3.d/S99mountdrbd.sh [125003040570] |Actually this step can be integrated also in Heartbeat by adding appropriate resources to the configuration. [125003040580] |But as time being we will do this with script. [125003040590] |Heartbeat2 [125003040600] |http://www.linux-ha.org/Heartbeat [125003040610] |Installation [125003040620] |Now we can install and setup Heartbeat 2 [125003040630] |Edit /etc/ha.d/ha.cf [125003040640] |sudo vi /etc/ha.d/ha.cf [125003040650] |and restart heartbeat2 with [125003040660] |Configuration [125003040670] |In Heartbeat2 the configuration and status information of resources are stored in xml format in “/usr/lib/heartbeat/crm/cib.xml” file. [125003040680] |Thy Syntax for this is very well explained by Alan Robertson in his tutorial at the linux.conf.au 2007. [125003040690] |Which can be found at http://linux-ha.org/HeartbeatTutorials [125003040700] |This file can either edited directly as whole or manipulated in pieces using “cibadmin” tool. [125003040710] |We will use this tool as it makes it much easier to manage the cluster. [125003040720] |The required components we will save in xml files under /root/cluster [125003040730] |Initialaization [125003040740] |Edit file /root/cluster/bootstrap.xml [125003040750] |sudo vi /root/cluster/bootstrap.xml [125003040760] |#replace “( “and “)” with pointed brackets …. [125003040770] |I just couldnt get it right in editor of this site [125003040780] |Load this file with following command [125003040790] |This will initialize the Cluster with values set in xml file. (some how if it has alredy set you can use “sudo cibadmin -M crm_config -x /root/cluster/bootstrap.xml” to modify it with our new values) [125003040800] |Setting up STONITH device [125003040810] |STONITH prevents “split-brain-situation” (i.e. running Resource on both nodes unwontedly at same time) by fencing the other node. [125003040820] |Details can be found out at http://www.linux-ha.org/STONITH We will use “stonth” over ssh to reboot the faulty machine [125003040830] |Follow “http://sial.org/howto/openssh/publickey-auth/” to setup public key authentication. [125003040840] |In short just do following on both nodes [125003040850] |Now check that you can log on from node1 to node2 per ssh without password asked and vice a versa Now check that stonith is working [125003040860] |you should get a file list from node2 Now we configure “stonith” device as Cluster resource. [125003040870] |It will be a special cluster resource “Clone” which will run simultaneously on all nodes. [125003040880] |(clone id=”stonithclone” globally_unique=”false”) (instance_attributes id=”stonithclone”) (attributes) (nvpair id=”stonithclone01″ name=”clone_node_max” value=”1″/) (/attributes) (/instance_attributes) (primitive id=”stonithclone” class=”stonith” type=”external/ssh” provider=”heartbeat”) (operations) (op name=”monitor” interval=”5s” timeout=”20s” prereq=”nothing” id=”stonithclone-op01″/) (op name=”start” timeout=”20s” prereq=”nothing” id=”stonithclone-op02″/) (/operations) (instance_attributes id=”stonithclone”) (attributes) (nvpair id=”stonithclone01″ name=”hostlist” value=”node1,node2″/) (/attributes) (/instance_attributes) (/primitive) (/clone) [125003040890] |Load this file with following command [125003040900] |Xen as cluster resource [125003040910] |Now we can add a Xen virtual machine as cluster resource.Lets say we have a Xen para visualized machine called vm01. [125003040920] |The cofiguration and image files of vm01 we keep under /drbd0/xen/vm01/ as vm01.cfg and vm01-disk0.img respectively [125003040930] |Edit /root/cluster/vm01.xml [125003040940] |sudo vi /root/cluster/vm01.xml [125003040950] |#replace “( “and “)” with pointed brackets …. [125003040960] |I just couldnt get it right in editor of this site [125003040970] |(resources) (primitive id=”vm01″ class=”ocf” type=”Xen” provider=”heartbeat”) (operations) (op id=”vm01-op01″ name=”monitor” interval=”10s” timeout=”60s” prereq=”nothing”/) (op id=”vm01-op02″ name=”start” timeout=”60s” start_delay=”0″/) (op id=”vm01-op03″ name=”stop” timeout=”300s”/) (/operations) (instance_attributes id=”vm01″) (attributes) (nvpair id=”vm01-attr01″ name=”xmfile” value=”/drbd0/xen/vm01/vm01.cfg”/) (nvpair id=”vm01-attr02″ name=”target_role” value=”started”/) (/attributes) (/instance_attributes) (meta_attributes id=”vm01-meta01″) (attributes) (nvpair id=”vm01-meta-attr01″ name=”allow_migrate” value=”true”/) (/attributes) (/meta_attributes) (/primitive) (/resources) [125003040980] |Load this file with following command [125003040990] |Monitoring Tool [125003041000] |With command “crm_mon” you can monitor the cluster including its nodes and resources [125003041010] |There is also a GUI available. [125003041020] |For using it just set a password for user “hacluster” with following command and call “hb_gui” [125003041030] |Managing Tool [125003041040] |The Cluster resources can be managed either with GUI or with crm_* commands. [125003041050] |Please refer to “man” pages for details [125003041060] |list of crm_* commands: crm_attribute, crm_failcount, crm_mon, crm_sh, crm_uuid, crm_diff, crm_master, crm_resource , crm_standby, crm_verify [125003041070] |I hope you find some fun trying it out. [125003041080] |Hallo Folks, mean while there is also on site (Europe and India) commercial support for these kind of Clusters available. [125003041090] |Just drop an email for further details. [125003041100] |Gruß, atul.athavale [at] gmail [dot] com . [125003050010] |Easy way of Mount/Unmount .iso Images in Ubuntu [125003050020] |Gmount-iso is a small tool written using PyGTK and Glade. [125003050030] |It allows you to easily mount your cd images. [125003050040] |This is a frontend to the ‘mount -o loop -t iso9660 foo.iso /mountpoint’ command. [125003050050] |Install gmountiso in Ubuntu [125003050060] |sudo aptitude install gmountiso [125003050070] |This will complete the installation. [125003050080] |Using gmountiso [125003050090] |If you want to open go to Applications--->System Tools--->Gmount-iso [125003050100] |Once it opens you should see the following screen here you can specify your .iso file and mount point where you want to mount. [125003050110] |Example for gmountiso [125003050120] |I am having dsl-4.0.iso image on my desktop and i want to mount this under dsl directory so i have menctioned all the details and click on mount [125003050130] |This will prompt for root password enter your root password and click on ok [125003050140] |Once it finished mounting you can see these details under mounted images [125003050150] |You can see the files and folders inside dsl directory [125003050160] |If you want to unmount just select the your mount point and click on Unmount [125003050170] |This is very simple and easy process. [125003060010] |lanmap - Network discovery tool that produces nice 2d images [125003060020] |Lanmap Listens to all available traffic on the interface of your choice, figures out who’s talking to who, how much, using which protocols. [125003060030] |This information is then put into a nice human-readable 2d image (various formats are available) which can be used to understand a network’s topology. [125003060040] |Install lanmap in Ubuntu [125003060050] |sudo aptitude install lanmap [125003060060] |This will complete the installation [125003060070] |Using lanmap [125003060080] |lanmap syntax [125003060090] |lanmap [-o directory] [-e program] [-T {png,gif,svg}] [-f filtetr] [-D {#,all,raw}] [-r seconds] [125003060100] |[-i {?,*wildcard*,iface}] [-h] [-v] [-V] [125003060110] |lanmap example [125003060120] |lanmap -i eth0 -r 30 -T png -o /tmp/ [125003060130] |This will create a lanmap.png file under tmp folder [125003060140] |You can see the same screen here [125003060150] |lanmap available options [125003060160] |-o directory - The directory in which to save the generated images. [125003060170] |Default is the current directory. [125003060180] |-e program - The program to use to generate images. [125003060190] |Default is twopi. [125003060200] |-T {png,gif,svg} - Output image format. [125003060210] |Default is png. [125003060220] |-f filter - Traffic filter, in libpcap syntax. [125003060230] |-D {#,all,raw} - Debug mode; lots of output, use with caution. #: payload bytes to dump (default: 0) [125003060240] |-r seconds - Set the time interval between 2 consecutive graph generations. [125003060250] |Default is 60 seconds. [125003060260] |-i {?,*wildcard*,iface} - Interface to use: ?: list all devices and exit *3Com*: use the first NIC with [125003060270] |“3Com” in it [125003060280] |-V - Version info. [125003060290] |-vv - Verbose mode, up to 3 levels (-vv, -vv09:21 29/11/2007v). [125003060300] |-h - Help message. [125003070010] |eGroupware - web-based groupware suite Setup [125003070020] |eGroupWare is a Web-based groupware suite. [125003070030] |It contains many modules, including Calendar (personal calendar and group scheduling, notifications and alarms), Mail (Email (IMAP and POP3) or FeLaMiMail (IMAP only)), InfoLog (todos, notes, and phone calls linked to contacts (CRM)), Contacts (an addressbook to store and share contact information), and SiteMgr or JiNN (content management). [125003070040] |eGroupware requirements [125003070050] |
  • System software e.g. Linux, Windows or MacOSX
  • [125003070060] |
  • Downloading the eGroupWare Package
  • [125003070070] |
  • Webserver and php-Interpreter e.g. Apache, IIS recommended Apache 2, min. php 4.3, recommended php 5
  • [125003070080] |
  • Database (SQL) e.g. MySQL, Postgres, MaxDB, MSSQL min. MySQL 4.0, recommended MySQL 4.1 or 5.0
  • [125003070090] |
  • SMTP-Server e.g. Postfix
  • [125003070100] |
  • Client Browser e.g. Firefox, Internet Explorer
  • [125003070110] |
  • Client IMAP-Server e.g. Cyrus (POP3 also possible, supported only by Anglemail - not by the standard email application FelaMiMail.
  • [125003070120] |Before installing egroupware you have to install apache2 and mysql with php support [125003070130] |Web Server Setup [125003070140] |Install apache2 with php support check here Database Server Setup [125003070150] |Install mysql with php support [125003070160] |sudo apt-get install mysql-server mysql-client libmysqlclient15-dev [125003070170] |sudo apt-get install php4-mysql [125003070180] |If you want to install php5 support use the following command [125003070190] |sudo apt-get install php5-mysql [125003070200] |Install postfix in Ubuntu [125003070210] |sudo aptitude install postfix mailx php5-imap [125003070220] |choose satellite system and just press enter when asked other questions, but don’t select any relay host (remove smtp.xxx.xxxx) [125003070230] |Change /etc/mailname to say: test.com [125003070240] |Change /etc/aliases such that, [125003070250] |# Added by installer for initial user root: holst@test.com [125003070260] |Replace holst@test.com with your own e-mail address! [125003070270] |Finally, do as root [125003070280] |newalises [125003070290] |restart postfix using the following command [125003070300] |sudo /etc/init.d/postfix restart [125003070310] |and if you want to install imap or pop3 servers you can install of your choice and this is only optional. [125003070320] |Installing eGroupware in Ubuntu [125003070330] |sudo aptitude install egroupware [125003070340] |This will start the installation process and you see the following screen first [125003070350] |Now it will ask for which webserver you want to configure for egroupware i am using apache2 and select which one you are using from the list. [125003070360] |Enter the which user you want to use for header user admin and i have entered admin and click on ok [125003070370] |enter the header admin user password [125003070380] |Confirm the header admin password [125003070390] |this time you have choose the option for libc-client without maildir support and i am selecting yes and click on ok [125003070400] |That’s it this will complete the egroupware basic installation. [125003070410] |Go to http://yourserverip/egroupware/setup/ to setup egroupware [125003070420] |Select Your Language and click on “Run Installation Tests” [125003070430] |Now you should see similar to the following screen here you need to click on “Continue to the Header Admin” [125003070440] |Enter your header user admin username and password to login. [125003070450] |Once you login you should see the following screen in this you need to enter all the required fields with the exact information.Important one is enter the configuration username and password for you to login after installation .You click on Add new database instance and write config click on continue. [125003070460] |header.inc.php created click on continue [125003070470] |Now you need to enter the setup/config admin login details and click on login [125003070480] |Here you need to enter DB root username,password and click on Create database [125003070490] |you should see the following screen with red cross marks first thing is you need to click on install button to install all the required applications [125003070500] |Now you should see the following screen with two red cross marks this means you have to setup mail server settings, create the admin account. [125003070510] |Once you created everything you should see similar to the following screen [125003070520] |Now you need to login using the following URL [125003070530] |http://yourserverip/egroupware/ enter your configuration admin username and password to login [125003070540] |Once you logged in into the egroupware you should see similar to the following screen