[125006320010] |How to Install Java Runtime Environment (JRE) in Ubuntu 9.04 (Jaunty) [125006320020] |Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution. [125006320030] |The language itself derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. [125006320040] |JavaScript, a scripting language, shares a similar name and has similar syntax, but is not directly related to Java. [125006320050] |Currently Ubuntu has the following Java packages [125006320060] |sun-java6-bin - Contains the binaries [125006320070] |sun-java6-demo - Contains demos and examples [125006320080] |sun-java6-doc - Contains the documentation [125006320090] |sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE [125006320100] |sun-java6-jdk - Contains the metapackage for the JDK [125006320110] |sun-java6-jre - Contains the metapackage for the JRE [125006320120] |sun-java6-plugin - Contains the plug-in for Mozilla-based browsers [125006320130] |sun-java6-source - Contains source files for the JDK [125006320140] |Installing the Java Runtime Environment [125006320150] |First you need to check multiverse repository enabled or not after that open a terminal window. [125006320160] |Since you are going to be installing the JRE and the web browser plug-in, you’ll be using the following command from a terminal [125006320170] |sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts [125006320180] |Once it downloads the packages and begins the installation, you’ll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue. [125006320190] |You’ll see a dialog that asks you if you agree with the DLJ license terms. [125006320200] |Select Yes, and hit Enter; the JRE will finish installing. [125006320210] |Testing Java Runtime Environment [125006320220] |You’ll want to confirm that your system is configured properly for Sun’s JRE. [125006320230] |This is a two-step process. [125006320240] |First, check that the JRE is properly installed by running the following command from a terminal. [125006320250] |java -version [125006320260] |You should get similar output [125006320270] |Testing Java Plugin for Firefox [125006320280] |open Firefox and typing about:plugins in the address bar and check for java plugin [125006330010] |Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.04 (Jaunty) [125006330020] |MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. [125006330030] |It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. [125006330040] |It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. [125006330050] |For video output, nearly every existing interface is supported. [125006330060] |It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices. [125006330070] |Install Mplayer in Ubuntu 9.04 (Jaunty) [125006330080] |You need to add the following lines to /etc/apt/sources.list file or you need to make sure you have enabled Universe and multiverse repositories Using GUI. [125006330090] |sudo gedit /etc/apt/sources.list [125006330100] |Make sure you have the following two lines save and exit your file [125006330110] |deb http://archive.ubuntu.com/ubuntu jaunty universe multiverse deb-src http://archive.ubuntu.com/ubuntu jaunty universe multiverse [125006330120] |Now you need to run the following command to update the source list [125006330130] |sudo apt-get update [125006330140] |Install mplayer using the following command [125006330150] |sudo apt-get install mplayer [125006330160] |If you want to open mplayer go to Applications—>Sound&Video—> Mplayer Movie Player [125006330170] |Install Mplayer Front-end [125006330180] |1) Smplayer [125006330190] |Qt Mplayer front-end, with basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more. [125006330200] |One of the most interesting features of SMPlayer: it remembers the settings of all files you play. [125006330210] |So you start to watch a movie but you have to leave… don’t worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume… [125006330220] |sudo apt-get install smplayer [125006330230] |Install smplayer themes using the following command [125006330240] |sudo apt-get install smplayer-themes [125006330250] |2) gnome-mplayer [125006330260] |A simple GUI for MPlayerIt provides a simple and clean interface to MPlayer. [125006330270] |GNOME MPlayer has a rich API that is exposed via DBus. [125006330280] |Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command.GNOME MPlayer can be used to play media on websites when used in conjunction with Gecko Mediaplayer. [125006330290] |Install gnome mplayer using the following command [125006330300] |sudo apt-get install gnome-mplayer [125006330310] |Install libdvdcss2 and w32 video codecs in Ubuntu 9.04 (Jaunty) [125006330320] |Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. [125006330330] |This package is not available from the Ubuntu repositories due to licensing and legal restrictions.To play encrypted DVDs, the libdvdcss2 package is essential. [125006330340] |For Ubuntu 9.04 (Jaunty) Users use the following procedures [125006330350] |sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list [125006330360] |Then, add the GPG Key using the following commands sudo apt-get update sudo apt-get install medibuntu-keyring sudo apt-get update For i386 Users install Codecs using the following command [125006330370] |sudo apt-get install w32codecs libdvdcss2 [125006330380] |For amd64 Users install Codecs using the following command [125006330390] |sudo apt-get install w64codecs libdvdcss2 [125006330400] |Using above download locations you can install most of the mutimedia codecs for ubuntu. [125006330410] |Mplayer Plugin for Firefox [125006330420] |If you want to install Mplayer with plug-in for Mozilla Firefox run the following command [125006330430] |sudo apt-get install mozilla-mplayer [125006340010] |Cisco VPN tip for Ubuntu 9.0.4 (Jaunty) users [125006340020] |If you want to configure Cisco VPN on Ubuntu 9.0.4 is very easy now.You don’t need to install the Cisco VPN client - NetworkManager includes support for Cisco IPSec VPNs.NetworkManager attempts to keep an active network connection available at all times. [125006340030] |It is intended primarily for laptops where it allows easy switching betwen local wireless networks, it’s also useful on desktops with a selection of different interfaces to use. [125006340040] |It is not intended for usage on servers. [125006340050] |This package provides a VPN plugin for vpnc, providing easy access Cisco Concentrator based VPN’s. [125006340060] |You need to install network-manager-vpnc using the following command [125006340070] |sudo apt-get install network-manager-vpnc [125006340080] |Configure your VPN connection from Click on the NetworkManager icon in the system tray, VPN Connections -> Configure VPN [125006340090] |Follow onscreen instructions. [125006350010] |How to install Virtualbox 2.2.0 in Ubuntu 9.04 (Jaunty) [125006350020] |VirtualBox is a general-purpose full virtualizer for x86 hardware. [125006350030] |Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software. [125006350040] |Install irtualbox 2.2.0 in Ubuntu 9.04 [125006350050] |Preparing your system [125006350060] |First you need to install the following package.Dynamic Kernel Module Support Framework.This package contains the framework for the Dynamic Kernel Module Support (DKMS) method for installing and updating kernel modules. [125006350070] |sudo apt-get install dkms [125006350080] |First you need to download .deb package for ubuntu jaunty from here [125006350090] |Now you need to open the .deb package using GDebi click ok [125006350100] |File download in progress [125006350110] |Virtualbox .deb extract in progress [125006350120] |Now you need to click on “Install Package” [125006350130] |Enter your password click ok [125006350140] |Downloading additional package files in progress [125006350150] |Installing dependencies [125006350160] |Installing virtualbox 2.2 in progress [125006350170] |In the installation process [125006350180] |Creating vboxusers group click Forward [125006350190] |Compiling vboxdrv module be compiled now click Forward [125006350200] |Virtualbox-2.2 completed [125006350210] |Now go to Applications--->System Tools--->Sun VirtualBox [125006350220] |Now agree license by clicking on “I Agree” [125006350230] |Virtualbox main screen [125006350240] |Virtualbox version details [125006350250] |Install Virtualbox opensource edition in Ubuntu Jaunty [125006350260] |If you want to install Virtualbox opensource edition in Ubuntu Jaunty using the following command [125006350270] |sudo apt-get install virtualbox-ose virtualbox-ose-guest-source virtualbox-ose-guest-utils dkms [125006360010] |Fix for flash not working after Jaunty Upgrade (64bit) [125006360020] |After upgrading from Ubuntu 8.10 amd64 to Ubuntu 9.04 amd64 I was getting error messages from flash sites like Youtube telling me to install the latest Adobe Flash or to turn on javascript reinstalling the plugin from synaptic didn’t solve the problem [125006360030] |Here we are posting different solution for the above problem any one solution might work depends upon your sitiation. [125006360040] |Solution 1 [125006360050] |Remove your old flash plugin using the following command [125006360060] |sudo apt-get remove flashplugin-* --purge [125006360070] |Install the flash plugin using the following command [125006360080] |sudo apt-get install flashplugin-nonfree [125006360090] |and restart browser works fine. [125006360100] |Solution 2 [125006360110] |Your system may be using one of the open-source plugins (gnash or swfdec), which unfortunately don’t work very well compared to Adobe’s closed-source version. [125006360120] |sudo apt-get remove --purge swfdec-mozilla swfdec-gnome mozilla-plugin-gnash gnash [125006360130] |sudo apt-get install flashplugin-nonfree [125006360140] |Solution 3 [125006360150] |This could be an issue with compiz. [125006360160] |Can be fixed by installing compizconfig-settings-manager using the following command [125006360170] |sudo apt-get install compizconfig-settings-manager [125006360180] |Afterwards, go to System >Preferences >CompizConfig Settings Manager [125006360190] |Click on General Options. [125006360200] |Uncheck Undirect Full Screen Windows [125006360210] |Solution 4 [125006360220] |Download flash player from here [125006360230] |Extract using the following command [125006360240] |tar -xzvf libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz [125006360250] |Place it in the folder ~/.mozilla/plugins. [125006360260] |If plugins doesn’t exist create it. [125006360270] |Install Flash in ubuntu 9.04 (Jaunty) [125006360280] |If you install jaunty from start you can use the following command to install flash player [125006360290] |sudo apt-get install flashplugin-nonfree [125006370010] |Step by Step Ubuntu 9.04 (Jaunty) Desktop installation guide [125006370020] |Ubuntu 9.04 i.e Jaunty is the newest Ubuntu stable version and i am going to discuss here how to install ubuntu Jaunty desktop with step by step procedure.I hope this will help some ubuntu users to install ubuntu Jaunty in their machines,laptops, etc. [125006370030] |First thing is you need to download ubuntu jaunty .iso image from here once you have the .iso image you need to create a bootable CD from this and you need to boot your machine using this CD. [125006370040] |Once It starts booting from CD you should see similar to the following screen here select your language and press enter [125006370050] |Here you need to select “Install ubuntu” option and press enter [125006370060] |Ubuntu jaunty installation loading in progress [125006370070] |Select your language for ubuntu installation click on forward [125006370080] |Select your region and city.In this example i am using Europe region,London city and click on forward. [125006370090] |Select your keyboad layout in this example i am using united kingdom and click on forward [125006370100] |Now you can See the following screen with the disks available in your machine here you need to create partitions in this example you can see the 8GB of space for this installation here i am going create a single partition,if you want to create manually use the other option you need to click on forward. [125006370110] |Note:- this is only example partition.In your installation you have to choose specify partitions manually and swap partition should assigned [125006370120] |Next you need to create User name, password and computer name you can also choose if you want to login automatically or not [125006370130] |If you enter weak password you should see similar to the following screen [125006370140] |List of information available for installation here you need to click on install to start the installation. [125006370150] |If you want to see advanced option screen in the above step as follows [125006370160] |Partitions formatting in progress [125006370170] |Installing ubuntu jaunty system in progress [125006370180] |Installation Completed Succesfully and you need to restart the system by clicking “Restart Now” [125006370190] |Once it boots you should see similar to the following screen to login [125006370200] |Conclusion :- The ubuntu jaunty installation process was much improved compared to old versions and i hope first time users feel very easy to install. [125006380010] |Upgrade Ubuntu 8.10 (Intrepid) To Ubuntu 9.04 (Jaunty) Server [125006380020] |This Tutorial provides instructions and notes on upgrading Ubuntu 8.10 (Intrepid) server to Ubuntu 9.04 (Jaunty), released on the 23rd April 2009. [125006380030] |Before Upgrading [125006380040] |
  • Make sure you have complete backup of your server
  • [125006380050] |Procedure to follow [125006380060] |Update the server package list using the following command [125006380070] |sudo apt-get update [125006380080] |Install update-manager-core if it is not already installed using the following command [125006380090] |sudo aptitude install update-manager-core [125006380100] |Edit /etc/update-manager/release-upgrades [125006380110] |sudo vi /etc/update-manager/release-upgrades [125006380120] |and set [125006380130] |Prompt=normal [125006380140] |Launch the upgrade tool using the following command [125006380150] |sudo do-release-upgrade [125006380160] |Follow the on-screen instructions. [125006390010] |Ubuntu Tip:Linking Music Across Operating Systems [125006390020] |Symbolic links really shine when it comes to a dual boot system. [125006390030] |This is especially so in the case of linking your /home/Music folder in Ubuntu, to your Windows iTunes folder. [125006390040] |Doing this means only one folder needs to be maintained and any music program you installed on Ubuntu will load your Windows music library. [125006390050] |To do this you will need to have your Windows partition mounted. [125006390060] |Next open up terminal and do the following. [125006390070] |>cd /home [125006390080] |>rm -r Music [125006390090] |>ln -s /media/WINDOWSDRIVENAME/Users/USERNAME/Music/iTunes/iTunes\ Music/ Music [125006390100] |Now when you install Songbird or open Rhythmbox, you will have instant access to your main music library. [125006400010] |Workaround to get sound on HP mini 1000 (or 1120 NR) with Jaunty [125006400020] |After a clean install of Jaunty on my HP mini 1120 NR, there was no sound from the speaker. [125006400030] |Sound from the headphone jack did work, however.This is a known bug (#318942) and is identified in the release notes as a known issue for the HP mini. [125006400040] |Workaround [125006400050] |You need to edit the /etc/apt/sources.list file from your terminal using the following commnad [125006400060] |sudo gedit /etc/apt/sources.list [125006400070] |add the following lines save and exit [125006400080] |deb http://ppa.launchpad.net/minichoco-team/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/minichoco-team/ppa/ubuntu jaunty main [125006400090] |sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 9220067F [125006400100] |Update the source list using the following command [125006400110] |sudo apt-get update [125006400120] |Install the following packages [125006400130] |sudo apt-get install alsa-source module-assistant [125006400140] |Now edit /etc/alsa/alsa-source.conf file [125006400150] |sudo gedit /etc/alsa/alsa-source.conf [125006400160] |On line 11 you should have [125006400170] |ALSA_CARDS=”hda-intel” [125006400180] |Save and exit the file [125006400190] |Now enter the following command in terminal [125006400200] |sudo m-a a-i alsa-source [125006400210] |Reboot and then un-mute headphone &speaker in volume control.You should now have sound from both the speaker and headphone jack. [125006400220] |Notes:- [125006400230] |- You may need to un-mute the headphone and speaker to hear sounds after each reboot. [125006400240] |Click the volume control and un-mute. [125006400250] |- You may want to mute the PC beep. [125006400260] |Click the volume control, click “Preferences” and select the checkbox for PC Beep to make that track visible. [125006400270] |Then mute the PC Beep. [125006400280] |Source from here [125006410010] |Open Movie Editor - a simple non-linear video editor [125006410020] |Open Movie Editor is a free and open source video editing program, designed for basic movie making capabilities. [125006410030] |It aims do be powerful enough for the amateur movie artist, yet easy to use. [125006410040] |Install Open Movie Editor in Ubuntu [125006410050] |sudo apt-get install openmovieeditor [125006410060] |Using Open Movie Editor [125006410070] |If you want to open go to Applications--->Sound &Video--->Open Movie Editor [125006410080] |Once it opens you should see similar to the following screen [125006410090] |If you want some more screen shots howto use Open Movie Editor from here [125006410100] |Copy Video Tapes from the Camcorder [125006410110] |If you own a DV Camcorder, and you want to transfer your recorded tapes to the computer, the recommended tool to use is dvgrab.This is command line tool. [125006410120] |Install dvgrab in ubuntu [125006410130] |sudo apt-get install dvgrab [125006410140] |Using dvgrab [125006410150] |This is simple example how to use dvgrab from command line [125006410160] |dvgrab --autosplit --format dv2 --size 0 --opendml my_videofile- [125006410170] |The autosplit option splits your video into a new file whenever a scene change happens. [125006410180] |This is, whenever you paused or switched off your camera when recording your tape. [125006410190] |This is convenient, because it organizes your file such that each file represents one continuous recording. [125006410200] |The format dv2 option selects the avi dv2 file format for your recordings, which is not only compatible with the Open Movie Editor, but also with a number of other Video Editing Applications that run on Windows. [125006410210] |The opendml option is necessary for video files to have sizes larger than 1 GigaByte. [125006410220] |A word of warning though, while files larger than 2 GigaBytes work well under normal Linux Installations, it can be impossible to copy such large files to harddisks that were formatted for compatibility with older Windows Versions (FAT Filesystems). [125006410230] |Unfortunately external USB Harddisks are often formatted like this, so be aware. [125006410240] |The option size is set to zero, which makes the dvgrab software disable the default file size limit of 1 GigaByte. [125006410250] |This is necessary, because DV Video Files may become rather large, and having them split into plenty of small files is not very convenient. [125006410260] |Read the previous Paragraph to understand why the Splitting is enabled by default, it is for compatibility with certain Harddisks. [125006420010] |Step By Step Ubuntu 9.04 (Jaunty) LAMP Server Setup [125006420020] |In around 15 minutes, the time it takes to install Ubuntu Server Edition, you can have a LAMP (Linux, Apache, MySQL and PHP) server up and ready to go. [125006420030] |This feature, exclusive to Ubuntu Server Edition, is available at the time of installation.The LAMP option means you don’t have to install and integrate each of the four separate LAMP components, a process which can take hours and requires someone who is skilled in the installation and configuration of the individual applications. [125006420040] |Instead, you get increased security, reduced time-to-install, and reduced risk of misconfiguration, all of which results in a lower cost of ownership.New pre-configured installation options have been added to the Ubuntu Server. [125006420050] |Mail Server, Open SSH Server,Samba File Server, Print Server, Tomcat Java Server,Virtual Machine Host and Database Server options join existing LAMP and DNS options for pre-configured installations, easing the deployment of common server configurations. [125006420060] |Ubuntu LAMP server Install the following Versions [125006420070] |Ubuntu 9.04 (Jaunty Jackalope) Apache 2.2.11 Mysql 5.1.30 PHP 5.2.6-3 [125006420080] |First you need to download server version of Ubuntu version from here after that create a CD and start booting with the CD Once it starts booting you should see the following screen in this you need to select your language and press enter [125006420090] |Now you need to select “Install Ubuntu Server” and press enter [125006420100] |Select your language and press enter [125006420110] |Select your location and press enter [125006420120] |If you want to try to have your keyboard layout detected by pressing a series of keys you need to select yes option.If you want to choose from a list click no [125006420130] |Select Origin of keyboard and press enter [125006420140] |Select keyboard layout and press enter [125006420150] |Detecting hardware to find CD-ROM Drivers in progress [125006420160] |Loading additional components in progress [125006420170] |Detecting Network hardware in progress [125006420180] |Configures the network with DHCP if there is a DHCP server in your network [125006420190] |Enter your server Hostname [125006420200] |Clock setup is in progress [125006420210] |Starting up the partitioner in progress [125006420220] |You have to partition your hard disk in this example i have selected use entire disk option.If you want to do manually you can choose manual option and press enter.Make sure you have swap partition in place [125006420230] |Warning message about data lost on your hard disk [125006420240] |Write the changes to disk here you need to select yes and press enter [125006420250] |Creating ext3 file system in progress [125006420260] |Installing base system in progress [125006420270] |You need enter the Full name of the user you want to create for your server in this example i have created ruchi user select continue and press enter [125006420280] |Enter your user account name here [125006420290] |Entered the password for ruchi user select continue and press enter [125006420300] |Confirm password for ruchi user [125006420310] |If you choose weak password this will prompt similar to the following screen [125006420320] |If you want to configure encrypted private directory select yes and press enter [125006420330] |Configuring the package manager select continue and press enter [125006420340] |Configuring package mirror this will be related to your country option [125006420350] |Select how do you want to configure automatic update press enter [125006420360] |Now it will start Installing software and here you need to select the server options here i have selected as LAMP for our LAMP server installation.If you want to select each package separately select “Manual package selection” option (This is new in jaunty server) [125006420370] |At the time of software installation it will prompt for mysql server root password enter root password of your choice and select continue [125006420380] |Confirm mysql server root password and select continue [125006420390] |Software installation is in progress [125006420400] |Installing GRUB Boot loader in progress [125006420410] |Finishing installation in Progress [125006420420] |Installation complete message here you need to remove your CD select continue and press enter it will reboot your server [125006420430] |After rebooting you can see the following screen prompt for username [125006420440] |This will complete the Ubuntu Jaunty LAMP Server Installation and your server is ready for installing applications which supports apache,mysql and php. [125006420450] |One more new feature i really like was after logging in it shows you system stats like CPU,Memory,Disk,Swap,No.of processes,No.of users logged in and no.of security updates available [125006420460] |Configuring Static ip address in Ubuntu server [125006420470] |If you want to install vim editor use the following command [125006420480] |sudo apt-get install vim-full [125006420490] |Ubuntu installer has configured our system to get its network settings via DHCP, Now we will change that to a static IP address for this you need to edit [125006420500] |Edit /etc/network/interfaces and enter your ip address details (in this example setup I will use the IP address 172.19.0.10): [125006420510] |sudo vi /etc/network/interfaces [125006420520] |and enter the following save the file and exit (In vi, ESC, then ZZ to save and exit) [125006420530] |# The primary network interface [125006420540] |auto eth0 iface eth0 inet static address 172.19.0.10 netmask 255.255.255.0 network 172.19.0.0 broadcast 172.19.0.255 gateway 172.19.0.1 [125006420550] |Now you need to restart your network services using the following command [125006420560] |sudo /etc/init.d/networking restart [125006420570] |You need to setup manually DNS servers in resolv.conf file when you are not using DHCP. [125006420580] |sudo vi /etc/resolv.conf [125006420590] |You need to add look something like this [125006420600] |search domain.com nameserver xxx.xxx.xxx.xxx [125006430010] |Ubuntu Tip: How to Erase CD-RW/DVD-RW [125006430020] |If you want to Erase CD-RW/DVD-RW in Ubuntu use the one of the following options [125006430030] |Option 1 [125006430040] |Open your terminal and run the following commands [125006430050] |umount /dev/cdrom [125006430060] |cdrecord dev=/dev/cdrom blank=fast [125006430070] |Option 2 [125006430080] |Install brasero using the following command [125006430090] |sudo apt-get install brasero [125006430100] |After installation you need to go to Applications/Sound &Video/brasero.One of the options on the Disc menu is to erase the disk. [125006430110] |You can also use k3b. [125006440010] |Install GUI in Ubuntu Server [125006440020] |We have already discussed how to install ubuntu 9.04 LAMP server .If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server using the 2 options [125006440030] |1) Install desktop Environment [125006440040] |2) Install Webmin [125006440050] |1) Install desktop Environment [125006440060] |First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI [125006440070] |sudo apt-get update [125006440080] |sudo apt-get install ubuntu-desktop [125006440090] |The above command will install GNOME desktop [125006440100] |If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command [125006440110] |sudo aptitude install --no-install-recommends ubuntu-desktop [125006440120] |If you want to install light weight desktop install xfce using the following command [125006440130] |sudo apt-get install xubuntu-desktop [125006440140] |If you want to install KDE desktop use the following command [125006440150] |sudo apt-get install kubuntu-desktop [125006440160] |2) Install Webmin in Ubuntu [125006440170] |Webmin is a web-based interface for system administration for Unix. [125006440180] |Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. [125006440190] |Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.Currently There is no Webmin package in the Ubuntu repositories.This tutorial will explain how to Install Webmin in Ubuntu Jaunty [125006440200] |You can install webmin for your server web interface to configure apache2,mysql,FTp servers and many more.Now we will see how to install webmin in Ubuntu 9.04 [125006440210] |Preparing your system [125006440220] |First you need to install the following packages [125006440230] |sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl [125006440240] |Now download the latest webmin using the following command or from here [125006440250] |wget http://prdownloads.sourceforge.net/webadmin/webmin_1.470_all.deb [125006440260] |Now we have webmin_1.470_all.deb package install this package using the following command [125006440270] |sudo dpkg -i webmin_1.470_all.deb [125006440280] |This will complete the installation. [125006440290] |Using the Webmin APT repository [125006440300] |If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system [125006440310] |sudo vi /etc/apt/sources.list [125006440320] |add the line [125006440330] |deb http://download.webmin.com/download/repository sarge contrib [125006440340] |Save and exit the file [125006440350] |You should also fetch and install my GPG key with which the repository is signed, with the commands : cd /root [125006440360] |wget http://www.webmin.com/jcameron-key.asc [125006440370] |sudo apt-key add jcameron-key.asc [125006440380] |You will now be able to install with the commands [125006440390] |sudo apt-get update [125006440400] |sudo apt-get install webmin [125006440410] |All dependencies should be resolved automatically. [125006440420] |Ubuntu in particular don’t allow logins by the root user by default. [125006440430] |However, the user created at system installation time can use sudo to switch to root. [125006440440] |Webmin will allow any user who has this sudo capability to login with full root privileges. [125006440450] |Now you need to open your web browser and enter the following [125006440460] |https://your-server-ip:10000/ [125006440470] |Now you should see similar to the following Screen [125006440480] |After login if you want to configure Apache,Mysql server you need to click on Servers on your lefthand side you should many servers are ready to configure [125006440490] |This is very Easy to configure most of the servers and Enjoy your new Ubuntu Jaunty LAMP Server. [125006450010] |Ubuntu Tip:How to Add Date And Time To Your Bash History [125006450020] |This is very useful tip if there are multiple people maintaining or using ubuntu desktop,server or even if you are the maintainer, but can’t remember exactly when you did or changed something. [125006450030] |If you want to add this settings to globally use /etc/bash.bashrc [125006450040] |First you need to Edit your $HOME/.bashrc file [125006450050] |gedit $HOME/.bashrc [125006450060] |Add the following line [125006450070] |export HISTTIMEFORMAT="%h/%d - %H:%M:%S " [125006450080] |Save and exit the file. [125006450090] |From next login instead of: [125006450100] |574 tail -f /var/log/maillog 575 mailq | tail -15 576 tail -f /var/log/maillog 577 less /var/log/maillog [125006450110] |you get: [125006450120] |1002 May/09 - 11:46:16 grep log /var/log/maillog 1003 Apr/09 - 14:17:40 passwd test 1004 Apr/09 - 14:50:28 history 15 [125006450130] |Some more bash history tips [125006450140] |
  • The most efficent way to search your history is to hit Ctrl R and type the start of the command. [125006450150] |It will autocomplete as soon as there’s a match to a history entry, then you just hit enter
  • [125006450160] |
  • If you don’t want to save duplicate commands use the following option in your bashrc file ($HOME/.bashrc)
  • [125006450170] |export HISTCONTROL=ignoreboth [125006450180] |
  • If you want to set the size of the history file use the following option in your bashrc file ($HOME/.bashrc)
  • [125006450190] |export HISTSIZE=500 [125006460010] |How to install google gadgets in Ubuntu 9.04(Jaunty) [125006460020] |Google Gadgets for Linux provides a platform for running desktop gadgets under Linux, catering to the unique needs of Linux users. [125006460030] |We are compatible with the gadgets written for Google Desktop for Windows as well as the Universal Gadgets on iGoogle. [125006460040] |Following Linux norms, this project will be open-sourced, under the Apache License. [125006460050] |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. [125006460060] |By enabling cross-platform gadgets, a large library of existing gadgets are immediately available to Linux users. [125006460070] |In addition, gadget developers will benefit from a much larger potential user base without having to learn a new API. [125006460080] |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. [125006460090] |Currently we have hosts written for GTK+ and QT, with the GTK+ host offering a sidebar similiar to that of Google Desktop for Windows. [125006460100] |Install Google Gadgets in ubuntu 9.04 [125006460110] |If you want to install google gadgets use the following command [125006460120] |sudo apt-get install google-gadgets-gtk [125006460130] |This will install the following packages [125006460140] |google-gadgets-common google-gadgets-gst google-gadgets-gtk google-gadgets-xul libggadget-1.0-0 libggadget-gtk-1.0-0 [125006460150] |Using Google Gadgets [125006460160] |You can open Google gadgets go to Applications--->Internet--->Google Gadgets (GTK) [125006460170] |Once it opens you should see similar to the following screen [125006460180] |Now you need to right click on google gadgets icon in notification area click on “Add Gadgets…” [125006460190] |Once it opens you should see similar to the following screen here you need to select your gadget and click on add [125006460200] |You might see similar to the following screen for some gadgets click on Yes [125006460210] |After adding some gadgets here is sample screenshot [125006470010] |Minicom - HyperTerminal replacement in Ubuntu [125006470020] |Minicom is a clone of the MS-DOS “Telix” communication program. [125006470030] |It emulates ANSI and VT102 terminals, has a dialing directory and auto zmodem download. [125006470040] |Install minicom using the following command [125006470050] |sudo apt-get install minicom [125006470060] |Now you need to check your serial ports using the following command from your terminal [125006470070] |dmesg|grep ttyS [125006470080] |You should see similar to the following output [125006470090] |[ 1.430818] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.431528] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [125006470100] |This means the device correspond to my serial port is ttyS0. [125006470110] |Configure minicom using the following command [125006470120] |sudo minicom -s [125006470130] |Use the keyboard keys to select the menu item Serial port setup. [125006470140] |Enter A to change the Serial Device to /dev/ttyS0, and then enter E to change the line speed to 9600 8N1 [125006470150] |Using arrow keys, select Save setup as dfl [125006470160] |Select Exit from Minicom. [125006470170] |Next time, from the terminal you only need to run sudo minicom in order to access your Cisco box or you make the user a member of the ‘dialout’ group. [125006470180] |Then you don’t have to run minicom with sudo after the initial default configuration. [125006470190] |The Dialout group owns all of the serial ports in Ubuntu. [125006480010] |How to setup Cricket Wireless A600 Broadband Modem in Ubuntu [125006480020] |This tutorial will explain how to setup latest Cricket Wireless 3g Modem working under Ubuntu [125006480030] |Credit for this article goes here [125006480040] |Download the .tar.gz file from here and extract the contents to your preferred directory using the following command [125006480050] |Open up terminal and enter the following command [125006480060] |tar xzvf Cricket_Mode_Switch.tar.gz [125006480070] |and use cd to change into the directory of the extracted files. [125006480080] |32 bit Users - Install usb_modeswitch with the following command: [125006480090] |sudo make install [125006480100] |64 bit Users - We need to recompile modeswitch to work on the 64bit platform. [125006480110] |Run the following commands in terminal to do so [125006480120] |sudo apt-get install build-essential [125006480130] |sudo apt-get install libusb-dev [125006480140] |rm usb_modeswitch [125006480150] |make [125006480160] |sudo make install [125006480170] |Plug in your Cricket A600 to an open USB port, wait a moment for it to be detected as a CD drive/the auto play menu to pop up. [125006480180] |Now we just need to execute the flipflop.sh, it is in the directory of files you extracted, by running the following command [125006480190] |sudo ./flipflop.sh [125006480200] |Please note you need to first make this file executable by running the following command [125006480210] |chmod +x flipflop.sh [125006480220] |After running the flipflop.sh you need to wait about 12 seconds and then poof! [125006480230] |Your Cricket device should now appear in your network manager as a connection option. [125006480240] |Useful Notes [125006480250] |You will need to [125006480260] |sudo flipflop.sh [125006480270] |each time you attach the device for it to work. [125006480280] |Before this guide will work for you, you do need to load the device on a Windows/Mac system and install the software for the device and activate it. [125006490010] |Howto Enable Ctrl + Alt + BackSpace in Ubuntu Jaunty [125006490020] |By default Ctrl + Alt + BackSpace key combination in Ubuntu Jaunty was disabled.This shortcut key is used to restart X.This tutorial will explain how to enable this key combunation. [125006490030] |Install the “dontzap” package using the following command [125006490040] |sudo apt-get install dontzap [125006490050] |Open Terminal and type [125006490060] |sudo dontzap --enable [125006490070] |or [125006490080] |sudo dontzap --disable [125006490090] |Where “disable” means that Ctrl+Alt+Backspace restarts the xserver while “enable” means that it won’t. [125006490100] |Update :- Some more solutions from our readers [125006490110] |1)You don’t need to install software to enable it. [125006490120] |Simply add the following lines to your xorg.conf file, making sure that when you paste it, it is NOT using smart quotes. [125006490130] |sudo gksudo gedit /etc/X11/xorg.conf [125006490140] |Section “ServerFlags” Option “DontZap” “false” EndSection [125006490150] |2) you can use right alt + printscreen +k to do the same effect [125006500010] |Ubuntu One: Free Online Storage [125006500020] |Canonical has just released a new “cloud” service for all users: Ubuntu One starts today as an invitation-based Beta. [125006500030] |There are two storage options momentarily: a free 2GB account and a $10/month 10 GB one. [125006500040] |If you are familiar with services like Dropbox, Ubuntu One apparently does the same job. [125006500050] |Ubuntu one features [125006500060] |
  • Seamless integration with your Ubuntu based computer
  • [125006500070] |
  • Sync files between multiple machines
  • [125006500080] |
  • Access to your files away from your computers via our web interface
  • [125006500090] |
  • Free 2GB Storage Plan
  • [125006500100] |
  • 10GB Monthly Storage Plan ($10.00 (USD) per month)
  • [125006500110] |System Requirements [125006500120] |To use Ubuntu One services, we require Ubuntu 9.04 or greater, a internet connection (broadband or faster is recommended) and Firefox or a similar standards-compliant web browser. [125006500130] |Access Ubuntu one from the following URL [125006500140] |https://ubuntuone.com [125006500150] |If you want to subscribe for an Ubuntu One Beta invitation, you simply have to go to the Ubuntu One website, sign in with your Launchpad account, and wait for the confirmation email. [125006510010] |How to get ath5k working on Jaunty with Compat-wireless and a self-compiled kernel [125006510020] |How to get ath5k working on Jaunty with Compat-wireless and a self-compiled kernel [125006510030] |I used to have some trouble while setting up my Atheros PCI card on Ubuntu Linux 9.04. [125006510040] |It worked natively on Ubuntu 8.04, where it was detected as ath0. I upgraded from 8.04 to 8.10 whereby I noticed my wireless PCI card didn’t work natively anymore. [125006510050] |Someone suggested me to upgrade from 8.10 to 9.04 Jaunty, and I did that immediately. [125006510060] |After the system upgrade I noticed again that my wireless device was gone in Ubuntu 9.04. [125006510070] |When I ran iwconfig I didn’t see wlan0 or ath0 anymore. [125006510080] |Here you can see some details of my PCI card: [125006510090] |7 root@linux $ lspci | grep Atheros 04:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) [125006510100] |Now I’ll confirm that I’m running Ubuntu 9.04 Jaunty: [125006510110] |8 root@linux $ lsb_release -a No LSB modules are available. [125006510120] |Distributor ID: Ubuntu Description: Ubuntu 9.04 Release: 9.04 Codename: jaunty [125006510130] |In the beginning I only saw the following on Jaunty. [125006510140] |Here you can see that a wireless device doesn’t show up. [125006510150] |24 root@linux $ iwconfig lo no wireless extensions eth0 no wireless extensions pan0 no wireless extensions wmaster0 no wireless extensions. [125006510160] |I’ve tried stuff like madwifi, ndiswrapper and previous modules like ath_pci . [125006510170] |None of them was able to fix my problem, the wireless device was still missing. [125006510180] |Then I’ve heard that I need the ath5k FOSS Linux Wireless driver, something that is provided by the compat-wireless package. [125006510190] |I downloaded a compat-wireless tarball from orbit-lab.org but I was unable to get it working. [125006510200] |While compiling I received several errors, one of these errors reported something like “You need to have mac 08211 enabled in your kernel …”. [125006510210] |After trying different versions of the compat-wireless tarball on the Ubuntu Generic kernel I realized that it was impossible to compile this on a default Ubuntu generic kernel. [125006510220] |So you have to compile your own kernel. [125006510230] |While I’m writing this tutorial I see that 2.6.29.3 is the latest version of the Linux kernel. [125006510240] |Keep in mind that this version might be old now, so is the wget link. [125006510250] |Start a konsole/terminal and enter this as root: [125006510260] |cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.3.tar.bz2 tar xjf linux-2.6.29.3.tar.bz ln -s linux-2.6.21.3 linux cd linux make clean &&make mrproper cp /boot/config-`uname -r` ./.config [125006510270] |You must first enable mac80211 in order to enable ath5k! [125006510280] |Now as root, run: (You still have to be in /usr/src/linux) [125006510290] |make menuconfig [125006510300] |You can eventually load your alternate configuration file, but this isn’t compulsory. [125006510310] |Now you have to commit some very important changes. [125006510320] |Use your arrow keys to navigate: [125006510330] |Networking ---> Wireless ---> Improved wireless configuration API M Generic IEEE 802.11 Networking Stack (mac80211) Make sure that you see the “M” like above. [125006510340] |Now you’ve enabled mac80211. [125006510350] |Now you can enable ath5k in the kernel configuration. [125006510360] |Device Drivers ---> [*] Network device support ---> Wireless LAN ---> M Atheros 5xxx wireless cards support Make sure it looks like this. [125006510370] |Now you’re finished and you simply have to select Exit. [125006510380] |You say YES when you the following question appears. [125006510390] |(Do you wish to save your new kernel configuration?) [125006510400] |Ok, now you can start with compiling your kernel. make-kpkg clean fakeroot make-kpkg --initrd --append-to-version=-mykernel kernel_image kernel_header [125006510410] |Depending on your CPU speed, this will take a certain time. [125006510420] |When it’s all finished you have to install your new kernel. [125006510430] |cd /usr/src dpkg -i linux-image*.deb dpkg -i linux-headers*.deb [125006510440] |Your GRUB bootloader configuration file should be modified automatically. [125006510450] |Make sure that your now kernel entries are visible in your /boot/grub/menu.lst file. [125006510460] |If not, you have to insert the necessary lines by modifying your /boot/grub/menu.lst file. [125006510470] |Reboot now, and boot in your new self-compiled kernel. [125006510480] |Download a compat-wireless tarball from orbit-lab.org. Extract the tarball, go into the newly created map and install compat-wireless. [125006510490] |tar jxvf compat-wireless*.tar.bz2 or tar zxvf compat-wireless*.tar.gz cd compat-wireless* make &&make install depmod -a [125006510500] |Now you should be able to load the necessary module. [125006510510] |modprobe ath5k [125006510520] |And wow, a wireless device appears while you run iwconfig [125006510530] |Check your /etc/network/interfaces file and restart the service with /etc/init.d/networking restart and it should be working. [125006520010] |How to Install GDM (GNOME Display Manager) theme in Ubuntu [125006520020] |Linux GDM is a GDM login screen theme.Gdm (the GNOME Display Manager) is a highly configurable reimplementation of xdm, the X Display Manager. [125006520030] |Gdm allows you to log into your system with the X Window System running and supports running several different X sessions on your local machine at the same time. [125006520040] |This tutorial will explain how to install GDM theme in Ubuntu. [125006520050] |First you need to download your favourite GDM theme from here in .tar.gz format. [125006520060] |To install GDM themes, goto System>Administration>Login Window [125006520070] |When it prompted enter your password, once login window opens you should see similar to the following screen here click on local tab .Now you can add your .tar.gz files for this click on Add [125006520080] |Once it opens file selection window select your GDM file click install (In this example i am installing Spring time GDM theme) or you just drag and drop your .tar.gz file into themes [125006520090] |Now you can see your newly installed theme under themes list select your new theme click close [125006520100] |You need to logout from your system to see your new GDM login theme [125006530010] |Ubuntu Tip : gecko-mediaplayer - Media plug-in for Gecko browsers [125006530020] |Gecko Media Player is a browser plug-in that uses GNOME MPlayer and Mplayer to play media in a browser. [125006530030] |It uses the NS4 API and is therefore compatible with all NS4 derived browsers: Iceweasel, Firefox, Iceape, Epiphany, Galeon, Midbrowser, etc. [125006530040] |Install gecko-mediaplayer in Ubuntu Jaunty [125006530050] |sudo apt-get install gecko-mediaplayer [125006530060] |If you want to install mplayer in jaunty check this tutorial [125006540010] |Some of Known ubuntu 9.04(Jaunty Jackalope) bugs with workarounds [125006540020] |This tutorial will explain some of Known ubuntu 9.04(Jaunty Jackalope) bugs with workarounds [125006540030] |1) Work around for Nvidia non-root permissions bug in Ubuntu 9.04(Jaunty) [125006540040] |Bug Details [125006540050] |The permissions of the /dev/nvidia files cause errors when processes are launched with non-root privileges on my 64-bit 9.04 desktop system. [125006540060] |Workaround [125006540070] |Edit /etc/rc.local file from your terminal [125006540080] |gksudo gedit /etc/rc.local [125006540090] |Add the following before “exit 0″: [125006540100] |chmod 666 /dev/nvidia* & [125006540110] |Save and exit the file [125006540120] |2) Camera doesn’t mount when connected and switched on in Ubuntu 9.04(Jaunty) [125006540130] |Bug Details [125006540140] |Camera doesn’t mount when connected and switched on in Ubuntu 9.04(Jaunty) [125006540150] |Workaround [125006540160] |Quick fix: [125006540170] |Run the command from your terminal [125006540180] |sudo killall gvfs-gphoto2-volume-monitor [125006540190] |then connect the camera. [125006540200] |Long-term fix: [125006540210] |Prevent the process from starting Using the following command [125006540220] |sudo chmod -x /usr/lib/gvfs/gvfs-gphoto2-volume-monitor [125006540230] |3) Remote Desktop (vnc) screen freezes when remote host is 9.04 [125006540240] |Bug Details [125006540250] |When using the nvidia-restricted driver and compiz desktop effects the vnc server will not refresh the screen. [125006540260] |This is being caused by the xserver not getting “damaged” by the nvidia-restricted drivers. [125006540270] |Workaround [125006540280] |1) Disable Compiz on the remote machine System -> Preferences -> Appearance -> Visual Effects = None [125006540290] |2) Install x11vnc using the following command [125006540300] |sudo apt-get install x11vnc [125006540310] |use this command in the terminal [125006540320] |x11vnc --noxdamage --passwd XXX -forever [125006540330] |4) Ubuntu 9.04 Blind to XP’s Shared Network Printer [125006540340] |Bug Details [125006540350] |When adding a printer attached to and shared on my Windows XP box with System->Administration->Printing, New->Network Printer->Windows Printer via SAMBA, Browse - you get right up to where clicking the little gray diamonds should reveal a networked printer and Poof the dialog crashes and is gone. [125006540360] |Workaround [125006540370] |Used the Windows box IP address instead of Browsing for the printer. [125006540380] |This permits you to go to the next steps and create a printer, although it won’t work yet, i.e. test page won’t print. Next click the change URI button for the printer path name and it will present another opportunity to Browse. [125006540390] |This time it will find the Windows printer, correctly changing the path and then the test page will print and the printer is setup. [125006540400] |5) wubi installer’s pyrun.exe says “no disk” [125006540410] |Bug Details [125006540420] |Wubi repeatedly complains “no disk” with “Cancel, Try again, Continue” on some systems with card readers [125006540430] |Workaround [125006540440] |One work-around: Use Windows’ “Safely remove hardware” to disconnect card reader and try again [125006540450] |Another work-around: Bypass Wubi and install Ubuntu into its own partition [125006540460] |6) mdadm software raid breaks on intrepid-jaunty upgrade [125006540470] |Bug Details [125006540480] |Upon upgrading from Intrepid to Jaunty, my software RAID5 array did not mount.It appears the problem may have been caused by /etc/mdadm/mdadm.conf being silently overwritten by a default config file. [125006540490] |Workaround [125006540500] |After executing the following in a recovery shell, the array mounts just fine. [125006540510] |mdadm --examine --scan --config=mdadm.conf >>/etc/mdadm/mdadm.conf [125006540520] |Or you can auto create a new mdadm.conf file by uninstalling mdadm, re-naming or deleting mdadm.conf, then re-booting, re-installing mdadm, and run this [125006540530] |sudo mdadm --assemble --scan [125006540540] |This credit collection goes here [125006540550] |I hope this will be useful for some users. [125006550010] |Using Nginx as a Reverse Proxy to Get the Most Out of Your VPS. [125006550020] |Unravel The Music is a small startup; by that I mean we have no money, no financing, and we are owned and operated by two people. [125006550030] |Therefore it is important that we get the most out of our server in terms of performance and cost and we have to do this without having to spend hours worrying about the server when we could be improving our design or code. [125006550040] |First off, without good hardware it’s not going to matter how well your server is setup because you will be constantly worrying about whether your server is even up or if the datacenter is having another monthly outage. [125006550050] |For this problem we recommend Linode. [125006550060] |I’m sure there are plenty of other great VPS hosts out there but we have had a lot of luck with Linode and highly recommend them. [125006550070] |This how-to is going to assume that you already have a standard LAMP stack running, if not, there are plenty of tutorials and examples on how to get a LAMP stack running. [125006550080] |We have chosen to go with a standard Apache 2 installation using libapache2_mod_php5 over using Nginx (pronounced ‘Engine X’) with fastCGI. [125006550090] |You may be thinking “that is preposterous, why not just use Nginx as your webserver and ditch Apache?” [125006550100] |I hate fastCGI, I’ve never had very good luck with it and most importantly I know Apache. [125006550110] |Also, when all Apache has to worry about is the dynamic content, in this case PHP, it is quite fast, and has a smaller memory footprint then normal Apache usage. [125006550120] |Using Nginx as a reverse proxy is great for a few reasons. [125006550130] |Firstly it handles static content very well. [125006550140] |It is able to handle the requests and serve static content much faster in our tests and this has cut our page load time in about half (using YSlow with a clear cache). [125006550150] |The memory footprint of Nginx is very small so this extra speed increase is worth every megabyte, in this case .6 megabytes of our total ram on a 540 megabyte server. [125006550160] |Secondly, it allows for quick and easy migration of your Apache services to another server. [125006550170] |Through the config files you are able to specify an IP of your server and a port. [125006550180] |If your apache server is taking a pounding it wouldn’t be difficult to move it to another server and just change the proxy IP to your now remote server. [125006550190] |Setting up Nginx is fairly straight forward. [125006550200] |I will be showing the commands for an Ubuntu 8.04 installation but they should work for previous versions and other distributions (with a little tweaking). [125006550210] |Install Nginx [125006550220] |the following is essentially the config file we use for /etc/nginx/nginx.conf and is pretty similar to the default config for the installation. [125006550230] |The only major thing I changed was adding gzip compression. [125006550240] |I have personally set the level to 5 although it is adjustable. [125006550250] |The higher you set this value the more CPU intensive it becomes. [125006550260] |You are going to want to make sure that the line “include /etc/nginx/conf.d/*.conf;” is included in this config. [125006550270] |This is where you will store the default proxy information. [125006550280] |We will now configure the default proxy. [125006550290] |Create the file proxy.conf in the /etc/nginx/conf.d/ folder with the following contents. [125006550300] |The only thing you may want to change is the buffer sizes. [125006550310] |We had to increase our proxy_buffer_size and a few others, from the default, to allow for larger cookies that were choking Nginx. [125006550320] |With that being said you may want to decrease the buffers a bit, just do some testing. [125006550330] |If the buffers are not working for your content Nginx will throw a 50x error. [125006550340] |Finally, we will configure the various hosts. [125006550350] |To save yourself some time, and possible a headache you should always keep your static assets in one folder, while subdividing them by type in containing folders. [125006550360] |For example static->images, static->js, static->css. [125006550370] |This will greatly simplify your Nginx installation and I’ve found your code. [125006550380] |Now we will edit (with your favorite CLI editor) /etc/nginx/sites-available/default. [125006550390] |Finally we need to make some quick changes to Apache and we’ll finally have everything running. [125006550400] |Edit the file /etc/apache2/ports.conf. [125006550410] |You’ll want to change the listen line to 127.0.0.1:8080. [125006550420] |This will prevent apache from receiving requests from outside, but you should be blocking port 8080 anyways! [125006550430] |The port we’ve set is 8080 but whatever you set in the Nginx configs is what you should use. [125006550440] |Lastly, if you don’t want all your apache logs to show 127.0.0.1 for who is accessing your files or your application uses IP’s to track sessions you need to install libapache2-mod-rpaf. [125006550450] |It is painless just issue the command below. [125006550460] |reload or restart both Apache2 and Nginx. [125006550470] |To see if it is working open a page on your website, if you don’t see any errors that is a good start. [125006550480] |You can then check the logs of Apache and Nginx. [125006550490] |Your Apache logs should only contain the php requests and your Nginx logs should contain all of your assets. [125006550500] |Your Apache logs should also have HTTP 1.0 request when they go through the reverse proxy. [125006550510] |If you need any support just leave a comment and we’ll try and help you. [125006550520] |Source [125006560010] |Ubuntu Howto: Install projectM Audio Visualizer [125006560020] |projectM is an audio visualizer that is pretty spiffy. [125006560030] |Just have it running while playing audio on your system and you will get some pretty cool effects to go with your music’s beats and rhythms. [125006560040] |It’s by far my favorite addition to my Ubuntu 9.04 64bit HTPC. [125006560050] |These instructions cover how to build this from source using Subversion. [125006560060] |All italicized instuctions are commands that you can copy and paste (one line at a time), otherwise they are just that - only instructions. [125006560070] |1. First, lets get a few packages: [125006560080] |2. Next, add the trunk (the files you will need) to a directory in our home folder: [125006560090] |3. Now we can start the steps to configure before we install: [125006560100] |4. Now we are ready to compile and install: [125006560110] |5. You should now see ProjectM-pulseaudio in your Sound menu under the Applications menu. [125006560120] |Just start this up before or after launching your music player (I prefer Songbird). [125006560130] |You can also start it from the CLI (command line) by typing: [125006560140] |6. You can enter/exit fullscreen mode by pressing “f” when the projectM window is selected. [125006560150] |Pressing “m” will bring up projectM’s menus where you can select different presets and play with settings. [125006560160] |Pressing “l” will stop the cycling of presets, and only display the one currently being used. [125006560170] |Have fun! [125006560180] |projectM Homepage: [125006560190] |http://projectm.sourceforge.net/ [125006560200] |Articles that helped me with my first projectM install: [125006560210] |http://ubuntuforums.org/showthread.php?t=749793 [125006560220] |http://projectm.wiki.sourceforge.net/Installation+Instructions [125006570010] |Screen - Manages multiple sessions on one terminal [125006570020] |This tutorial explain how to use screen and screen profiles in your ubuntu server. [125006570030] |Screen is a program that allows you to have multiple logins on one terminal. [125006570040] |It is useful in situations where you are telnetted into a machine or connected via a dumb terminal and want more than just one login. screen-profiles includes a set of profiles for the GNU screen window manager. [125006570050] |These profiles are quite useful on server machines which are not running a graphical desktop. [125006570060] |The ‘screen’ command provides a number of advanced features are not necessarily exposed in the default profile. [125006570070] |These profiles provide features such as status bars, clocks, notifiers (reboot-required, updates-available), etc. [125006570080] |The profile-switcher allows users to quickly switch their .screenrc to any of the available profiles. [125006570090] |update-notifier-common provides a more efficient and standard mechanism for calculating the number of updates available in the status panel. [125006570100] |Install screen on Ubuntu server [125006570110] |sudo apt-get install screen screen-profiles screen-profiles-extras [125006570120] |This will complete the installation. [125006570130] |Note:- If you are using Jaunty all the above packages already installed in your server [125006570140] |Using Screen [125006570150] |From your ssh login prompt enter the following command [125006570160] |screen [125006570170] |or [125006570180] |screen -S 1 [125006570190] |and select your profile option. [125006570200] |-S sessionname - When creating a new session, this option can be used to specify a meaningful name for the session. [125006570210] |This name identifies the session for “screen -list” and “screen -r” actions. [125006570220] |Once it opens you should see similar to the following screen [125006570230] |Now in this screen we are using top command [125006570240] |If you want to open another session Ctrl a c - Creates a new screen session so that you can use more than one screen session at once. [125006570250] |Once it opens you should see similar to the following screen [125006570260] |If you want to move between windows press CTRL+a followed by n key (first hit CTRL+a, releases both keys and press n). [125006570270] |To list all windows use the command CTRL+a followed by ”key (first hit CTRL+a, releases both keys and press ”). [125006570280] |To switch to window by number use the command CTRL+a followed by ‘(first hit CTRL+a, releases both keys and press ‘it will prompt for window number). [125006570290] |Ctrl a p - Switches to the previous screen session (if you use more than one). [125006570300] |Ctrl a d - Detaches a screen session (without killing the processes in it - they continue). [125006570310] |To close a screen session where all tasks are finished you can type [125006570320] |exit [125006570330] |If you want to know more available options check screen manpage using [125006570340] |the following command [125006570350] |man screen [125006570360] |Customise Screen-profiles [125006570370] |If you look in the bottom right corner you’ll see there’s an “F9 Menu” you can press F9 to reconfigure your screen profiles.Once it opens you should see similar to the following screen here you can see list of changes you can do [125006570380] |Sample screenshots for screen-profile options [125006580010] |Nagios configuration Tools (Web frontends or GUI) [125006580020] |Nagios is the industry standard in enterprise-class monitoring for good reason. [125006580030] |It allows you to gain insight into your network and fix problems before customers know they even exist. [125006580040] |It’s stable, scalable, supported, and extensible. [125006580050] |Here is a list of nagios 3.x web frontends or GUI tools that you might find useful if you are looking for a web interface to administer your nagios configuration. [125006580060] |Nconf [125006580070] |NConf is a PHP based web-tool for configuring the Nagios monitoring software. [125006580080] |It differs from similar tools by offering enterprise-class features like service templates, dependencies and to configure a large-scale, distributed Nagios server topology. [125006580090] |Current Version :- 1.2.4-0 [125006580100] |Project Home page :- http://sourceforge.net/projects/nconf/ [125006580110] |Centreon [125006580120] |Centreon is a network, system, applicative supervision and monitoring tool, it is based upon the most effective Open Source monitoring engine : Nagios. [125006580130] |Current Version :- 2.0.1 [125006580140] |Project Home page :- http://www.centreon.com/ [125006580150] |Lilac [125006580160] |The Lilac Platform is a collection of tools to enhance existing open source monitoring applications. [125006580170] |Currently the focus is on the Lilac Configurator, a configuration tool written to configure Nagios, a popular Network monitoring application. [125006580180] |Current Version :- 1.0rc2 [125006580190] |Project Home page :- http://www.lilacplatform.com/ [125006580200] |NagiosQL [125006580210] |NagiosQL is a web based administration tool for Nagios 2 and Nagios 3. [125006580220] |It helps you to easily build a complex configuration with all options, manage and use them. [125006580230] |NagiosQL is based on a webserver with PHP, MySQL and local file or remote access to the Nagios configuration files. [125006580240] |Current Version :- 3.0.2 [125006580250] |Project Home page :- http://www.nagiosql.org [125006580260] |IGNORAMUS [125006580270] |This is the Ignoramus- A Nagios Config Generator project (“ignoramus-anagi”).IGNORAMUS is a Config Generator / Editor for Nagios 3.0. [125006580280] |Current Version :- 0.2.3 [125006580290] |Project Home page :- http://ignoramus-anagi.sourceforge.net/ [125006580300] |Monarch [125006580310] |Monarch is a web-based engine for the configuration and management of the Nagios network monitoring system. [125006580320] |It is included as a component of GroundWork Monitor Open Source, a full featured and highly integrated IT monitoring solution. [125006580330] |Current Version :- 2.5 [125006580340] |Project Home page :- http://sourceforge.net/projects/monarch [125006580350] |Nagios Control PaneL (NCPL) [125006580360] |NCPL is a webbased solution written in PERL for configuring Nagios. [125006580370] |NCPL gives you centralized control over remote Nagios systems from a central server and permits to edit and install new config files. [125006580380] |It uses MySQL to store configuration data. [125006580390] |Current Version :- 1.000.051 [125006580400] |Project Home page :- http://sourceforge.net/projects/ncpl/ [125006580410] |Nag2web [125006580420] |A PHP/MySQL web front-end for Nagios setup. [125006580430] |With the ability to add/remove/edit the config items. [125006580440] |The web front-end for NAGIOS has the ability to test the config. [125006580450] |We want to build a simple possibility to find and show all the features in NAGIOS. [125006580460] |Current Version :- 1.6.4 [125006580470] |Project Home page :- http://nag2web.de/ [125006580480] |Opsview [125006580490] |Opsview is a fully integrated monitoring tool that incorporates popular Open Source software including Nagios, Net-SNMP and RRDtool. [125006580500] |The Catalyst web framework provides an extensible monitoring and configuration user interface. [125006580510] |Opsview server software runs on Linux and Solaris 10. [125006580520] |It will monitor all common operating systems including Linux, AIX, Solaris and Windows. [125006580530] |Current Version :- 3.0.3 [125006580540] |Project Home page :- http://opsview.org [125006580550] |OSSIM [125006580560] |Ossim stands for Open Source Security Information Management. [125006580570] |Its goal is to provide a comprehensive compilation of tools which, when working together, grant a network/security administrator with detailed view over each and every aspect of his networks/hosts/physical access devices/server/etc… Besides getting the best out of well known open source tools, some of which are quickly described below these lines, ossim provides a strong correlation engine, detailed low, mid and high level visualization interfaces as well as reporting and incident managing tools, working on a set of defined assets such as hosts, networks, groups and services. [125006580580] |Integrating Snort, Acid/Base, MRTG, NTOP, Nagios, NMAP, Nessus and RRDTool we want the user to have full control over every network or security aspect. [125006580590] |Current Version :- 1.0.0rc1 [125006580600] |Project Home page :- http://www.ossim.net/ [125006580610] |NagiosAdmin (German) [125006580620] |NagiosAdmin is a web-based management tool for Nagios written in PHP. [125006580630] |You can easily add new servers to the running Nagios-installation. [125006580640] |Current Version :- 0.9.2 [125006580650] |Project Home page :- http://www.nagiosadmin.de [125006580660] |Nagios Configurator [125006580670] |Nagios Configurator is PHP based webinterface, import/export nagios configuration files, graphical representation of services, dependencies etc. for confirmation and documentation of Nagios implementation. [125006580680] |Works independently with all versions of Nagios [125006580690] |Current Version :- 0.1 [125006580700] |Project Home page :- http://sourceforge.net/projects/nagiosconfig/ [125006590010] |Install Chromium (Google chrome) web browser in Ubuntu [125006590020] |Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. [125006590030] |The Chromium codebase is the basis for Google’s Chrome browser. [125006590040] |First you need to edit the /etc/apt/sources.list file [125006590050] |sudo gedit /etc/apt/sources.list [125006590060] |Add one of the following [125006590070] |For ubuntu 9.10 (armic) Users add the following two lines [125006590080] |deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main [125006590090] |For ubuntu 9.04 (Jaunty) Users add the following two lines [125006590100] |deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main [125006590110] |For ubuntu 8.10 (Intrepid) Users add the following two lines [125006590120] |deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main [125006590130] |Save and exit the file [125006590140] |Now add the GPG key using the following command [125006590150] |sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5 [125006590160] |Update the source list using the following command [125006590170] |sudo apt-get update [125006590180] |Install chromium using the following command [125006590190] |sudo apt-get install chromium-browser [125006590200] |Using Chromium [125006590210] |You can open chromium from Applications--->Internet--->Chromium Web Browser [125006590220] |Once it opens you should see similar to the following screen [125006590230] |Chromium in action [125006590240] |Chromium version details [125006600010] |GRUB 2 now default for Ubuntu 9.10 (Karmic Koala) [125006600020] |UDS (Ubuntu Developer Summit) for Karmic Koala took place this year, between the 25th and 29th of May, in Barcelona, Spain. [125006600030] |There were 270 blueprints that needed to be discussed during the summit, like the new professional look of Plymouth (an application that takes care of the graphical boot animation) for Karmic Koala, which will not become reality very soon. [125006600040] |However, some of the ideas discussed at UDS will be implemented in the next version of the Ubuntu operating system, due for release in late October 2009. [125006600050] |One of these was the “grub2-as-default” discussion, and Colin Watson had the pleasure to announce last night that GRUB 2 would definitely be the default boot loader in Ubuntu 9.10. [125006600060] |Check official announcement from here [125006610010] |Setting up a Proftp server [125006610020] |Proftp is an opensource ftp server that is used to download files remotely using a ftp client such as filezilla or ftp from command line either with windows or linux. [125006610030] |Proftp can be used from the command line or GUI. [125006610040] |This tutorial will cover some of both but mainly using the GUI front-end. [125006610050] |So lets get started with the installation and set-up of Proftp! [125006610060] |Installation [125006610070] |1. sudo apt-get install proftpd gproftpd. [125006610080] |This will install all the necessary config files for proftp along with the GUI (gui being gproftpd) [125006610090] |2. Once install check to see if the server is running by using pgrep proftpd. [125006610100] |If you do not see a PID than start it by typing /etc/init.d/proftpd start or status to see if again, the process is running. [125006610110] |Configuring Server [125006610120] |1. Once installed proftp will be under a new category of programs called system tools. [125006610130] |Go to system tool -> GA-ADMIN PROFTP [125006610140] |2. There are several tabs that gui provides in editing your FTP settings: they are server, users, transfers, discs, files, secuirty, and configuration [125006610150] |Server- name your server to your liking. [125006610160] |Use your private IP address in the address field. [125006610170] |Issuing an ifconfig at the cmd line will bring you your private IP.By default the server is set to an idle time of 120 seconds so adjust time if you wish to. [125006610180] |Users- this is where you will create all users that are allowed to your ftp site. [125006610190] |You can create user accounts with annoymous access by unchecking the required password box. [125006610200] |The users section is where you will disignate directories/drives for remote users to access as well. [125006610210] |Transfers- Will show you files that where transfered between remote pc and server [125006610220] |Discs- Displays directories that are avaliable to share along with how much space is currently avaliable in those directories [125006610230] |Files- shows stastics about what was download by the user [125006610240] |Security- Gives a log file view of who was last logged on the ftp server [125006610250] |Configuration- If for whatever reason that your settings that you edited do not adjust you can change them here. [125006610260] |Its easier to read by editing it here than terminal its a little cleaner and easier to see where and what you are editing [125006610270] |Home Router settings [125006610280] |Next, we are going to have to open up some ports on your router. [125006610290] |Most newer routers they use port forwarding and with the older ones like my d-link router we create a new virtual server [125006610300] |1. In your web browser go to the you gateway address which would be somthing like 192.168.0.1 or verify it by using ifconfig [125006610310] |2. The port that you want to open is port 21 or if you feel you will be vulnerable to attacks use 2121 or something along those lines [125006610320] |3. For the IP address of your sever it will be your private IP address [125006610330] |4. Save settings [125006610340] |Connecting to ftp server [125006610350] |1. Using a client such as filezilla which is free of charge or if you are an intermediate-advance user use the command line. [125006610360] |This is how we are going to connect to the ftp server [125006610370] |2. Find out Your public IP address using IPchicken.com. [125006610380] |Once there it will display your public IP [125006610390] |3. You will use the public IP address to access you site along with a username, password, and port number. [125006610400] |If everything is setup correctly you will be able to upload and download files. [125006610410] |If you cannot go back and check that your settings are correct along with you private and public ip adresses [125006620010] |New Intel Graphics Drivers for Ubuntu 9.04 (Jaunty) [125006620020] |There is hope for Ubuntu users with Intel graphics. [125006620030] |As it appears, the current 2D drivers solve most of the recent graphics problems with Intel chips, according to Ubuntu developer Bryce Harrington in a developer mailing list. [125006620040] |Jaunty users should profit it from them as well. [125006620050] |A nuisance to owners of Ubuntu 9.04 and Intel graphics chips has been the problems with the graphics drivers. [125006620060] |Even though Intel manages its drivers in an exemplary open source way, 2D and 3D acceleration has fairly much dragged so far. [125006620070] |The reason is an unhappy pairing of the current Kernel 2.6.28′s Kernel Mode Setting (KMS) with Intel’s new UXA acceleration architecture that replaces EXA and the newly added Graphics Execution Manager (GEM) in the Kernel. [125006620080] |The solution should come in the form of the Intel 2.7.99.1 driver, as Canonical’s Bryce Harrington describes on the Ubuntu developer mailing list. [125006620090] |The still somewhat unstable 2D driver should fix most of the Intel chip problems, with the stable version to appear later in Ubuntu 9.10. [125006620100] |Harrington mentions that Jaunty users have the advantage of the Kernel 2.6.30 installation to resolve the issue. [125006620110] |Ubuntu source packets are on the kernel.ubuntu.com webpage. [125006620120] |Harrington suggests activating the UXA module in the xorg.conf file, but not KMS, which is deactivated by default. [125006620130] |To activate UXA, use Option AccelMethod “UXA” in the Section “Device” in /etc/x11/xorg.conf. [125006620140] |Installing the actualized 2D driver should, however, be accompanied by the stable Intel 2.7.1 driver that you can get from an external Personal Package Archive (PPA). [125006620150] |The source package is xserver-xorg-video-intel. [125006620160] |Careful, though: playing with Xorg can have adverse side effects, so backing up the original files might be a good idea. [125006620170] |Source from here [125006630010] |Ubuntu 9.10 (Karmic Koala) Alpha 2 Released [125006630020] |Ubuntu 9.10 (Karmic Koala), due for release in late October this year,The Karmic Koala Alpha 2 is the second alpha release of Ubuntu 9.10, bringing with it the earliest new features for the next version of Ubuntu. [125006630030] |This is an alpha release. [125006630040] |Do not install it on production machines. [125006630050] |The final stable version will be released on October 29th, 2009. [125006630060] |New features in Karmic [125006630070] |Development for Karmic just recently opened and many of the new features have not yet started to appear. [125006630080] |Currently the changes include the sync of packages from Debian Unstable or Sid has begun, a new kernel based on 2.6.30 and the latest development release of GNOME, 2.27.1. [125006630090] |Please test and report any bugs you find: [125006630100] |http://help.ubuntu.com/community/ReportingBugs [125006630110] |Updated Packages [125006630120] |As with every new release, packages--applications and software of all kinds--are being updated at a rapid pace. [125006630130] |Many of these packages come from an automatic sync from Debian’s Unstable branch. [125006630140] |For a list of all packages being accepted for 9.10 Karmic Koala, please subscribe to karmic-changes: [125006630150] |https://lists.ubuntu.com/mailman/listinfo/karmic-changes [125006630160] |GNOME 2.27.1 [125006630170] |Ubuntu Karmic Alpha 2 includes the latest GNOME 2.27.1 development release. [125006630180] |Linux kernel 2.6.30 [125006630190] |Alpha 2 includes the 2.6.30-5.6 kernel based on 2.6.30-rc5. [125006630200] |The kernel will ship with Kernel Mode Setting enabled for Intel graphics (see below). [125006630210] |LRM is deprecated in favour of DKMS packages. [125006630220] |hal deprecation started [125006630230] |Karmic Alpha 2′s underlying technology for power management and laptop Fn key maps was moved from “hal” (which is going to be deprecated soon) to “DeviceKit-power” and “udev-extras”. [125006630240] |When testing Alpha 2, please pay particular attention to regressions in those two areas and report bugs. [125006630250] |New Intel video driver architecture available for testing [125006630260] |In later Karmic milestones the Intel video driver will most probably switch from the current “EXA” acceleration method to the new “UXA”. [125006630270] |This will solve major performance problems of Ubuntu 9.04, but is still not as stable as EXA, which is why it is not yet enabled by default. [125006630280] |We invite you to help testing UXA, please see the instructions and feedback page. [125006630290] |Feedback about the new “kernel mode setting” feature is also heavily appreciated. [125006630300] |This will reduce video mode switching flicker at booting, and dramatically speed up suspend/resume. [125006630310] |Please see the instructions and feedback page for details. [125006630320] |New default compiler [125006630330] |Karmic uses GCC-4.4 as the default compiler, which in some parts is more strict than GCC-4.3, see list of changes. [125006630340] |Please make sure to test packages on karmic or in a karmic chroot before upload. [125006630350] |ext4 by default [125006630360] |The new “ext4″ filesystem is used by default for new installations of Karmic; of course, other filesystems are still available via the manual partitioner. [125006630370] |Existing filesystems will not be upgraded. [125006630380] |If you have full backups and are confident, you can upgrade an existing ext3 filesystem to ext4 by following directions in the Ext4 Howto (note that the comments on that page at the time of writing about Ubuntu’s use of vol_id vs. blkid are out of date and are not applicable to Karmic). [125006630390] |Maximum performance will typically only be achieved on new filesystems, not on filesystems that have been upgraded from ext3. [125006630400] |GRUB 2 by default [125006630410] |GRUB 2 is the default boot loader for new installations of Karmic, replacing the previous GRUB “Legacy” boot loader. [125006630420] |Existing systems will not be upgraded to GRUB 2 at this time, as automatically reinstalling the boot loader is an inherently risky operation. [125006630430] |If you wish to upgrade your system to GRUB 2, then see the GRUB 2 testing page for instructions. [125006630440] |See also the upstream draft manual. [125006630450] |Some features are still missing relative to GRUB Legacy. [125006630460] |Notable among these are lock/password support, an equivalent of grub-reboot, and Xen handling. [125006630470] |Download Ubuntu 9.10 Alpha 2 from here [125006640010] |How to Install Tuxonice in Ubuntu [125006640020] |“TuxOnIce is most easily described as the Linux equivalent of Windows’ hibernate functionality, but better. [125006640030] |It saves the contents of memory to disk and powers down. [125006640040] |When the computer is started up again, it reloads the contents and the user can continue from where they left off. [125006640050] |No documents need to be reloaded or applications reopened and the process is much faster than a normal shutdown and start up.” - tuxonice.net [125006640060] |Tuxonice is an alternative way to hibernate your machine than the standard ubuntu power manager way. [125006640070] |It generally claims to be more configurable and flexible than the standard method, with faster hibernate and resume times. [125006640080] |Original article:http://lists.tuxonice.net/lurker/message/20090409.181125.d20e0bbe.en.html [125006640090] |Add the following PPA to your sources list [125006640100] |deb http://ppa.launchpad.net/tuxonice/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/tuxonice/ppa/ubuntu jaunty main [125006640110] |This repository is signed with 1024R/DEC8FAAC OpenPGP key [125006640120] |Open a terminal and enter the following: [125006640130] |gpg --keyserver keyserver.ubuntu.com –recv DEC8FAAC [125006640140] |gpg --export --armor DEC8FAAC | sudo apt-key add - &&sudo apt-get update [125006640150] |—————————————————————————————————- Relevant files for Ubuntu Jaunty [125006640160] |https://launchpad.net/~tuxonice/+archive/ppa/+files/linux-headers-2.6.28-13-generic_2.6.28-13.43+tuxonice2_amd64.deb [125006640170] |https://launchpad.net/~tuxonice/+archive/ppa/+files/linux-headers-2.6.28-13- [125006640180] |generic_2.6.28-13.43+tuxonice2_i386.deb [125006640190] |https://launchpad.net/~tuxonice/+archive/ppa/+files/linux-image-2.6.28-13-generic_2.6.28- [125006640200] |13.43+tuxonice2_amd64.deb [125006640210] |https://launchpad.net/~tuxonice/+archive/ppa/+files/linux-image-2.6.28-13-generic_2.6.28- [125006640220] |13.43+tuxonice2_i386.deb [125006640230] |https://launchpad.net/~tuxonice/+archive/ppa/+files/tuxonice-userui_1.0- [125006640240] |1~ppa2~jaunty1_amd64.deb [125006640250] |https://launchpad.net/~tuxonice/+archive/ppa/+files/tuxonice-userui_1.0- [125006640260] |1~ppa2~jaunty1_i386.deb [125006640270] |http://www.tuxonice.net/downloads/all/hibernate-script-2.0.tar.gz [125006640280] |files for intrepid can be found here: https://launchpad.net/~tuxonice/+archive/ppa [125006640290] |—————————————————————————————————- [125006640300] |Install the relevant files for your architecture (choose either the i386 or amd64 files only). [125006640310] |Reboot once the new kernel has been installed. [125006640320] |Extract hibernate-script-2.0.tar.gz somewhere [125006640330] |open a terminal in the directory created and run ./install.sh [125006640340] |sudo -i to switch to root. [125006640350] |apt-get install sysfsutils [125006640360] |gedit /etc/sysfs.conf [125006640370] |Copy and past the text below into the file, then save and close. —————————————————————————————————- # /etc/sysfs.conf - Configuration file for setting sysfs attributes. # # The sysfs mount directory is automatically prepended to the attribute paths. # # Syntax: # attribute = value # mode attribute = 0600 # (any valid argument for chmod) # owner attribute = root:wheel # (any valid argument for chown) # # Examples: # # Always use the powersave CPU frequency governor # devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave # # Use userspace CPU frequency governor and set initial speed # devices/system/cpu/cpu0/cpufreq/scaling_governor = userspace # devices/system/cpu/cpu0/cpufreq/scaling_setspeed = 600000 # # Set permissions of suspend control file # mode power/state = 0660 # owner power/state = root:power power/tuxonice/user_interface/program = /usr/lib/tuxoniceuserui/tuxoniceui_usplash —————————————————————————————————- gedit /usr/share/initramfs-tools/hooks/tuxonice_userui Copy and past the text below into the file, then save and close. —————————————————————————————————- #!/bin/sh # -*- shell-script -*- PREREQ=”" prereqs() { echo “$PREREQ” } case $1 in prereqs) prereqs exit 0 ;; esac [125006640380] |. /usr/share/initramfs-tools/hook-functions [125006640390] |TUXONICE_ENABLED=/sys/power/tuxonice/user_interface/enabled [125006640400] |# Don’t do anything if the kernel does not support tuxonice_userui, # nor the module is there if [ -f ${TUXONICE_ENABLED} ]; then if [ `cat ${TUXONICE_ENABLED}` = 0 ]; then echo “TuxOnIce user interface is disabled, skipping…” exit 0 fi elif [ ! -f ${MODULESDIR}/kernel/power/tuxonice_userui.ko ]; then echo “This kernel does not seem to support TuxOnIce user interface, skipping…” exit 0 fi # Add the module and its dependencies and load it automatically if it # exists [125006640410] |force_load tuxonice_userui [125006640420] |TUXONICEDIR=/usr/lib/tuxonice-userui [125006640430] |mkdir -p ${DESTDIR}${TUXONICEDIR} [125006640440] |copy_exec ${TUXONICEDIR}/tuxoniceui_text ${TUXONICEDIR} copy_exec ${TUXONICEDIR}/tuxoniceui_fbsplash ${TUXONICEDIR} [125006640450] |# The following file does not exist on ia64 as usplash is not # available on this architecture if [ -x ${TUXONICEDIR}/tuxoniceui_usplash ]; then copy_exec ${TUXONICEDIR}/tuxoniceui_usplash ${TUXONICEDIR} fi —————————————————————————————————- gedit /usr/share/initramfs-tools/modules.d/lzo Copy and past the text below into the file, then save and close. —————————————————————————————————- [125006640460] |lzo [125006640470] |—————————————————————————————————- gedit /usr/share/initramfs-tools/scripts/local-premount/tuxonice_do_resume Copy and past the text below into the file, then save and close. —————————————————————————————————- [125006640480] |#!/bin/sh PREREQ=”" prereqs() { echo “$PREREQ” } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; [125006640490] |esac [125006640500] |if [ -d /sys/power/tuxonice ]; then echo >/sys/power/tuxonice/do_resume fi —————————————————————————————————- chmod 644 /etc/sysfs.conf [125006640510] |chmod 755 /usr/share/initramfs-tools/hooks/tuxonice_userui [125006640520] |chmod 644 /usr/share/initramfs-tools/modules.d/lzo [125006640530] |chmod 755 /usr/share/initramfs-tools/scripts/local-premount/tuxonice_do_resume [125006640540] |update-initramfs -c -k 2.6.28-13-generic [125006640550] |gedit /etc/hibernate/tuxonice.conf [125006640560] |find the line that says “Compressor lzf” and change to “Compressor lzo” [125006640570] |if there is no SuspendDevice option, create one as below, changing the device to your own swap drive location (on mine it is sda7). [125006640580] |## useful for initrd usage: SuspendDevice swap:/dev/sda7 [125006640590] |You can also use the filewriter option described below, however I have not been able to get this working on my system yet so can’t provide more detailed instructions. [125006640600] |“For the file allocator, you should first prepare your hibernation file – this can be done by configuring your hibernate.conf file with the “FilewriterLocation” option, and running hibernate --no-suspend. [125006640610] |Then take a look in /sys/power/tuxonice/resume for what to pass to your kernel. [125006640620] |You should see something like file:/dev/hda7:0x10011f, in which case you should append “resume=file:/dev/hda7:0x10011f” as a kernel parameterin your lilo.conf file or GRUB’s menu.lst.” – http://www.tuxonice.net/HOWTO-2.html” [125006640630] |If the line below is not there put it in. [125006640640] |ProcSetting userui_program /usr/lib/tuxonice-userui/tuxoniceui_usplash [125006640650] |gedit /boot/grub/menu.lst [125006640660] |add resume=swap:/dev/sda7 to the end of the new kernel line. (changing the device to your swap drive, or hibernation file) [125006640670] |add resume=swap:/dev/sda7 noresume to the recovery option below the above entry.This is useful in case something goes wrong, you can use the recovery option to bypass resuming. [125006640680] |reboot. hibernate. resume. [125006640690] |If all went well your system should resume to the same state you were in before hibernation.