Showing posts with label Apt. Show all posts
Showing posts with label Apt. Show all posts

Saturday, February 4, 2012

Debian - Netinstall + Window Manager

v 0.4.7

Subsequent to my last post about the Netinstall as a console system, I experimented with installing Xorg and a Window Manger.

" aptitude install xserver-xorg wdm wmaker xterm "

as I found when I did the initial install, xterm was not installed and this made it all very difficult.

18 meg unpacked ... reboot and works like a charm.  Now, having given the example, you could insert gdm3 or slim instead of wdm and fluxbox or whatever instead of wmaker.  I simply did this as an experiment.

Since we are talking about Window Maker as a manager, here is a description as to how to configure it ...

http://maketecheasier.com/create-a-great-window-maker-desktop/2009/02/14


Later .....

Update Monday 6 Feb (just after shaking my head in wonder at how you get to the Superbowl, then get caught out putting 12 men on the field .....)

I also installed Fluxbox and Fvwm.  Both seems to have improved default values these days - but I also installed Conky from the repositories.

Netinstall + X + Window manager (Fvwm) + conky .... under 35 meg memory useage!  And this from a standard Debian install - just choosing what you run.

Others (approx):
  • Fvwm   34 meg
  • Fluxbox  32 meg
  • Window Maker  28 meg
  • Openbox-Session 24 meg
  • Add 5 meg for each terminal
By way of comparison, the Wheezy Xfce install I did previously uses just on 92mb.

    Later....

    Debian - What is Netinstall Made Of?

    v 0.2

    Let us say that you are a curious person and you decided to do a Debian Netinstall (Squeeze or Wheezy, it matters not), but when you reached the "tasksel" screen you unchecked everything, so that nothing further would be installed.  What sort of system would you end up with?

    Well, it's actually not a bad console system.  Obviously there is no X, however you can start it up, and log in to a console.  Apt is set up with appropriate sources.list and you have Internet capability.

    If you want to list the packages, then:
          " dpkg --get-selections > selections.txt "

    as root will place a list of installed packages into the file " selections.txt " in the root account.

    Of course, if you want use this principle to duplicate what you have on one Debian install onto another, then you update the package database of installed packages with:
            " dpkg --set-selections < selections.txt "
    Once again as root, before doing an Aptitude update and upgrade.

    Now, looking through the packages in  " selections.txt " the included ones that caught my eye were:
    • The complete Dpkg / Apt / Aptitude toolset
    • bash
    • gcc
    • gnupg
    • groff
    • gzip
    • mawk
    • nano
    • perl
    • sed
    • tar
    • vim
    • wget
    In its own right, this represents quite a capable system, three programming languages, a typesetting system, excellent text editor, encryption, backup and an awk text reporting language.  Not bad and certainly fun.


    Expanding the System

    As part of the netinstall setup, the apt sources.list was configured for your preferred country, and even though this is only for the "main" sections, that is perfectly adequate if we wish to build our own custom Linux system.  We don't have a graphical client like synaptic, but we have the Debian tools we can use.  Aptitude provides a consistent front end to the Apt and Dpkg tools.

    "  aptitude search xorg | more "

    will return a list of those packages that are to do with xorg.  You can repeat the process with any search criteria you like to have a look at available packages you might like to install.

    To show details of a particular package you are interested in:

    " aptitude show xserver-xorg "

    You are now well on your way to installing Xorg to your machine.  To find a graphical login manager, try:

    "  aptitude search x-display-manager "

    and you'll be shown a number of packages on the last line that you might like to look at.  Likewise, you can look at window managers, desktops or whatever you like.


    Conclusion

    I haven't set out to provide a definitive set of instructions here, but to show what you can do when given a minimal system and the sorts of things you might like to poke around with.  With some care you can have just the packages you want, and a slim, fast setup.


    Later ............

    CrunchBang

    v 0.2.7

    A couple of nights ago, I was sitting in the bar at my hotel in Melbourne whilst consuming my accumulated drink vouchers, when an elderly lady who had clearly been enjoying the hospitality of the establishment started randomly haranguing groups of patrons as to the greatness of John Oppenheimer.  This enjoyable "impromptu theatre" was terminated when she was quietly led away.

    What has this to do with the subject?  Everything.  Mr Oppenheimer was one of the major contributors to the ultimate "CrunchBang" at the aptly named "Trinity Site".  So CrunchBang stuck in my mind and the more I read about it, the more I liked it (the Linux Distro that is).

    This minimalist distro is built directly upon a Debian Squeeze Netinstall and uses the Openbox window manager.  The Debian Backports and a Crunchbang repository are also used.  It is installed using a modified Debian Installer script, and like Ubuntu and a few other distros, the sudo command is used for administrator privileges.  A "cb-welcome" bash script enables additional functionality to be installed, however I found it failed when the technique to detect an internet connection simply wouldn't work.  Iceweasel release (the latest) is included along with Flash.

    I installed it in Virtualbox just as described in a previous post, though with a smaller "disk" and less memory.

    This is definitely not a beginner-friendly distro.  Straight up, editing of the sources.list is needed to tailor it for closer Debian repositories, and commenting out the "check-internet-connection" line in the "/usr/bin/cb-welcome" script is needed.  Simple, but a show-stopper for many.

    HOWEVER

    I REALLY like Crunchbang.  Why?  Crunchbang is built the way I think many more distros should be built that expand or modify a parent distro (in this case Debian Stable).  It uses the parent distro as a base and modifies it with additional repositories and scripts.  At all times you can go back and use the documentation of the parent distro.  This is truly using the "standing on the shoulders of giants" technique and benefits both the user and the Distro maintainer by (in this case) using what Debian has provided and improving just what needs to be tidied up for what that person wants.  No re-invented wheels needed.



    Later .....

    Update:
    The initial install uses 70 meg memory at idle and just under 1.9 gig disk space.

    Update 11 Feb.
    I encourage you to visit the Crunchbang support forums.  There are some really good posts with some great advice for modifying systems (how to for Xfce for example) or setup Conky (which I've become somewhat enamoured with).
    In addition, Openbox has started to grow on me.  Combined with the Debian Menu system it is really quite slick.

    Thursday, January 26, 2012

    Debian Wheezy in VirtualBox - Part 5

    v 0.2

    This time I'd thought I'd talk about packages I've installed / uninstalled. 

    • First up is the Flash plugin.  Wheezy comes with the latest IceWeasel browser (Firefox) however uses the Gnash plugin.  Whilst this is improving steadily, for what I want to do especially in Youtube, the Adobe Flash is much better.  Ensure you have  "main contrib non-free" activated for your repositories in "/etc/apt/sources.list" and after updating the repositories, fire up Synaptic and search for "Flash".  You will find the "Browser plugin for Gnash" is installed - mark it for removal, and at the same time, mark the Adobe Flash non-free for installation.  Apply, and now you have the Adobe Flash plugin installed.
    • Some fonts.  Search for " ttf-mscorefonts-installer " and mark that for installation.
    • Gdebi.  When you wish to install a " deb " package to your system that you have manually downloaded, if you use Gdebi to install, then all the dependencies will be checked and if available, downloaded from the Debian repository.  Once installed, it appears in the "System" section.
    • Boot-Up Manager.  Look for " bum " .  What it does is to allow you to control which services run on startup.
    • Debian-reference-en  .. an excellent book all about Debian.  This also installs the  debian-reference-common package.  If you are not careful and don't just choose your preferred language, you'll end up installing the lot.  You might also consider the debian refcard, and the installation guide as well.  Now, because of the wonders of the Debian menu system (worth finding out about), the Debian reference is now in the  "accessories" section.
    • xchm - to view Microsoft compiled help files.  Once installed, it appears in the "Office" menu.  There is also kchmviewer, however though that is a little more capable, it is also somewhat larger.  If you are going to have a number of KDE applications though, it might not be so bad.
    • xcal - an old and basic calendar / memo / alarm program - but interesting.  AND it brings up another question - that of modifying the Xfce menu, since xcal does not appear and can only be launched via the terminal (unless you create a launcher).
     Of course, the "application finder" spyglass on the dock could be used to do some modifying of the menu, however I've not chased it up yet.

    Menus in Debian

    Menus in Debian are interesting - there is an automated system to add and delete items that enables the menu of any desktop / window manager to be automatically updated as packages are moved in and out.  You can start reading about the Debian Menu System, and then,of course, Google is your friend.

    Alacarte Menu Editor

    The Gnome menu editor was the first to cross my mind .. " Alacarte" however when I went to install it, many of the Gnome packages were listed for installation as well, which was not what I was after.

    The Debian Menu

    One menu selection that is missing is the "Debian" menu, which DOES include all the installed applications.




    Enough for the moment.



    More later .......

    Tuesday, January 24, 2012

    Debian Wheezy in VirtualBox - Part 3

    v0.2

    I finished the previous part having just booted into a nice shiny Gnome 3 desktop in Virtualbox.  It certainly was a change to what I was used to.

    Before I get started though, what the Guest Additions do for you are that they allow seamless mouse movement between Guest and Host, and the ability to re-size the Guest desktop.  Just drag and it all works.  Three other features I'll mention in passing here are the ability to mount a DVD drive or ISO image, the ability to use a USB memory stick (after you have introduced it to Virtualbox in the USB section) and the ability to set up a shared folder between the two operating systems.

    Gnome 3

    I have to say that my initial experience was somewhat jarring.  I sort-of worked out some of the functionality, however it still largely felt like a bad visit to cartoonland.  I think I shall have to let it sit for a while, see if I can find a straightforward set of documentation and then re-visit.

    Despite my reservations, I can perhaps see the point of the developers in that new users MAY find it a good experience, though I still wonder.

    Xfce

    Whilst I had used Xfce a little in the past, I was keen to see how it had developed in the latest incarnation. Those who are used to Debian being associated with "old" software have obviously never visited the "Testing" branch.

    I re-did the Netinstall and put Xfce as the desktop of choice so as to see what came with it.  I found the log-in screen a little different to what I was used to (I use gdm and I assume this was different) however it went fine.  I don't care for the Debian starry wallpaper and need to do some reading to see how to replace it for the bootup and login.  The Xfce desktop came up very nicely and I had a great feeling about it right away - I can understand Linus's comments now about abandoning Gnome for Xfce.  I checked the "About" menu option and found it was Xfce 4.8, the latest version.

    About now would be a good time for a screenshot, but I won't.  Instead I shall use the wonder of text to describe it (you'll thank me for not exposing you to the starry paper background).

    Debian has Xfce set up with three bands by default.
    • Of course there is the desktop in the centre which has three icons at the top left for "Home", "Filesystem" and "Trash".  Right click the mouse and a menu allowing you to create desktop icons or select properties or applications, appears.  
    • Along the top is a panel reminiscent of the Gnome 2 setup.  On the left is a main dropdown menu of applications, then a shutdown button next to it.  On the right at the top are the icons for the default 4 workspaces, the time and the network status.
    • At the bottom is a panel in the centre that works a little like the OSX "Dock".  There are six icons by default.  Minimise Windows, Terminal, File Manager, Web Browser, Find Applications, and an icon that allows you to open any folder in your home folder in either the file manager or terminal.
    It is rather pointless talking about standard applications that come with Debian because it is easy to simply use the package manager and install those you like and eliminate those you don't.  I will say though that those that stood out to me were Iceweasel v9.0 (ie the running latest release of firefox) and LibreOffice.  I also like the lack of some of the major applications that come with Gnome by default that I just don't use.

    So in contrast with my initial impression of the latest Gnome, I rather like Xfce.  I'll leave this post here (and get back to what I should be doing) and next time I'll talk about some initial customisations I have done to make things just that bit better.


    Later ..............

    Monday, January 23, 2012

    Debian Wheezy in VirtualBox - Part 2

    v 0.2

    In Part 1 of this post, I talked generally about the requirements for setting up a Wheezy Gnome VM in Virtualbox.  I shall assume that you have the Machine specified, but not installed yet.  I shall also be rash and write these notes from memory.

    Installation
    • Start the VM.  If you are using a Windows host, it will politely ask you to tell it where the installation iso is, otherwise, you will need to let it fail, then use the "Device" menu at the top to select the CD netinstall iso image and restart.
    • The standard Debian installer screen is your first port of call.  If you want a Gnome desktop, just continue.  I never bother with the graphical install since it is just a more complex version of the standard text interface.  But then, I like the Slackware installer as well ......
    • To install a desktop OTHER than Gnome, go to "Advanced" and you will find links to a number of alternatives including KDE, Xfce and Lxde.
    • Now you need to simply proceed through the standard Debian installation routine for what you want.  There is an EXCELLENT Debian installation guide at "Howtoforge" entitled "The Perfect Desktop Debian Squeeze" which I strongly recommend.
    Installing Guest Additions

    If you are using the Gnome 3 desktop,  the initial log-in will be slow while it works out that it cannot use the standard Gnome and will fall back to the "classic" look (which you could also select on log-in the first time).  The steps I followed to get the guest additions installed and Gnome 3 running (I also described the guest additions with Debian in another post - read it and you can tell me where I differ to it):
    • Open a "root" terminal.  I'll describe the commands to type in between the "  " ....
    • "  aptitude install synaptic "   Synaptic is a nice graphical package manager that has its uses.
    • "  aptitude install module-assistant  "   Module assistant is the key to installing guest additions
    • "  m-a prepare "     This gets module assistant to load the dependencies for the guest additions
    • Start Synaptic, search (there is a magnifying glass button for search) for " virtualbox " and mark any installed virtualbox package for removal (they will be marked as guest additions), then " Apply "
    • The tricky bit is coming up
    • You need to mount the "guest additions iso" which is located in the installation directory for virtualbox.  You can either select "install guest additions" from the "device" menu on the VM or you can use the " device " menu and CD/DVD selection to search for the guest additions iso.  In either case, you should make sure it is mounted.  It will appear mounted under " /media/cdrom0 "
    • Once you have it mounted, use the root terminal to "  cd /media/cdrom0 " and to execute the "VBoxLinuxAdditions.run"  as shown in the next part
    • "  bash ./VBoxLinuxAdditions.run "   using the root terminal after changing to the iso.   You need to have the "  ./  " in front of the Vbox..etc because it explicitly tells Linux where the file is.  (ie a period and forward slash).
    • At some stage, it will complain that there are already Guest Additions installed - ignore it because you just deleted them and it has detected the remnants.
    • Once this is completed, reboot the VM and you will now have an accelerated Gnome 3 desktop.
    That's it for the moment.

    As always, corrections or additions welcome.


    Later ................

    Thursday, October 27, 2011

    Debian Squeeze - X31 and Ati Radeon

    v 0.2
    27 Oct 11

    I was curious how to get the Radeon video card in my IBM X31 laptop working in other than generic mode.  I read the Debian Wiki page on it .. http://wiki.debian.org/AtiHowTo and found it quite interesting.  It seems that in many cases, there is no longer an xorg.conf file but the system probes the hardware on each startup.  I found that the open-source radeon server was already installed and the only thing I needed to do to make the best of it (without using module assistant to install a further module) was to install the non-free firmware.

    aptitude install firmware-linux-nonfree

    I rebooted and a big improvement ...


    Later ....


    Debian Squeeze - Webcam

    v 0.3
    13 Mar 12

    Webcam support is built into the Debian kernel.  If your webcam is part of your machine, then very likely it will work out of the box, as in the eeepc.  If however you connect the webcam via USB, then you will have to use module assistant to install the Quickcam-usb module.

    Using module assistant is all very straight forward as I've previously written, however you will first need to install the " module-assistant " package.  I found it easiest to simply use it in interactive mode to go through the various steps of preparing, getting the source, compiling and then installing it.

    Once that was done - it worked .... except (for the moment) skype.  That I'm still working on.


    Later ..


    Update 13 Mar:

    On revisiting the post, I got Skype sound to work on my Parent's machine by installing the " alsa-oss " package.

    I recently installed a Logitech webcam to another machine by installing the Quickcam-usb module as described above, with the sound working in Alsa.

    Debian Squeeze - Backports

    v 0.2
    27 Oct 11

    I've known about the "backports" for Debian Stable for some time, but never quite got into using them.  It always seemed too hard to implement and the instructions were just that little too vague.  When the backports were incoropated into a Debian service, a package search engine was implemented, which I found irritating because I couldn't browse the available packages, and the search engine didn't work in any case.

    All this has changed for me - I've finally worked out a system that works for me.  The technique needed for Squeeze to incorporate backports is now simpler than Lenny - and it just works.

    My first use of backports was when I started to incorporate the current Iceweasel release in my Debian installs.  If you look at the instructions contained in the http://mozilla.debian.net web-page, you will see that there are two repositories that are activated - backports to provide the XULrunner package and the Debian Mozilla repository.  In that installation, only the "main" section is activated, however you can also activate "contrib" and "non-free".

    Debian Backports:   http://backports-master.debian.org/

    To include all the backports for Squeeze, add this line to your sources.list file:

    deb http://backports.debian.org/debian-backports squeeze-backports main 

    (add  
    contrib non-free
    as well if you like ) 

    If you want to browse the available packages, then here they are - have a look through and see what takes your fancy:

    http://backports.debian.org/debian-backports/pool/

    Once you have decided what you want, then go to the search engine and enter the base part of the package name to verify what package you should include in the update .. for example if you search on "linux-image" you will get several kernel packages that may suit you - choose the appropriate one (in this case I chose  " linux-image-2.6-686 "  which is a generic package that at the moment uses the 2.6.39 kernel.  Apt-get (as below) from a root terminal and ....


    apt-get -t squeeze-backports install linux-image-2.6-686
     
     
     
    Done ..
     
     
    Far simpler than I'd thought.
     
     
     
    Later. 

    Wednesday, October 19, 2011

    Debian Squeeze - Wine Binaries

    v 0.2
    18 Oct 11

    For some time, I've been trying to find an easy way to load an up-to-date version of Wine onto my Debian Squeeze installation.  The Wine project has only outdated binaries, and there is no explicit binary for Squeeze available.  I've done some reading on compiling the appropriate debs and whilst I agree this is the ideal solution, there remains debate on the best technique - or at least as far as I can see.  I'll get there with the compiling way, however I want to do it properly the Debian way - there is no point doing otherwise.  I need to do some more reading to understand exactly what I am doing.

    In the meantime during my searching, I came upon what seems to be a simple solution that .. just .. works.

    Mepis is a Debian-derived distribution that is close to pure Debian.  Whilst v8.5 is based on Lenny with extras, v11 uses Squeeze with additional libraries.  I wasn't keen on upgrading libraries just for this.  Now v 8.5 has the same kernel as Squeeze, and based on the report of a satisfied user, I gave it a go.

    I downloaded the "mcr85" versions of Wine-Gecko and Wine from:
    http://main.mepis-deb.org/mepiscr/testrepo/pool/test/w/wine-gecko/
    and
    http://main.mepis-deb.org/mepiscr/testrepo/pool/test/w/wine/

    Wine-Gecko needs to be installed first, and that went without a hitch using "GDebi".  Before installing Wine, the " libmpg123-0 " package needs to be installed to satisfy the Wine dependencies.  Then install Wine, again with GDebi.

    " winecfg " and you are good to go.

    So far, all is well and the packages show up nicely in the package database, so they will be straightforward to remove and upgrade.



    Later ......

    Sunday, June 26, 2011

    Debain Squeeze - Iceweasel Release - Firefox Deb packages

    v 0.3
    Sep 2011

    Whilst I love the Debian Stable concept, it does become limiting when you wish to use rapidly evolving software.  Certainly this is where the Debian Backports service came about, though I seriously need to get into it and see how I can use it for useful updates.

    I the meantime, over the last few days I have stumbled on two up-to-date incarnations of Firefox that are packaged as debs for, or compatible with Squeeze.
    Of course, as I have written about earlier, you can always download the Linux binary from the Firefox download yourself and simply install it manually.  I have come to regard "Opt" as the most convenient place to put it, as several other packages do also.


    Later ...........

    Update 9 Aug 11

    I was disappointed to see the Debian access to the latest iceweasel is far less than before.  Tried installing the latest release and it failed due to library problems.  (see below ... my mistake )

    On the positive side, I
    1. downloaded the Firefox tarball from the Firefox site, and as root unpacked it in "/opt" .  
    2. added firefox to the menu system with "alacarte" from a root terminal.
    When I executed firefox, it worked fine - no other action needed, so I un-installed iceweasel using synaptic.  Very pleased with the result.

    Also .... NOTE the version of Iceweasel that is included with Debian Squeeze is no longer supported by Google in their products.


    Update 16 Sep 11

    Had my faith in the Debian Mozilla team enlightened.

    http://mozilla.debian.net/

    Follow the directions.

    If you use the command line like they say, it will work .. when I followed the directions rather than using synaptic it worked fine.  The trick is  the " -t" option in the command line.  Once you use it, updates will work fine.  You just have to get it working in the terminal.


    Later ....

    Saturday, January 15, 2011

    Debian - Bad Module, Apt, Rescue Mode

    v0.2
    I spent a rather frustrating hour today fixing a self-inflicted non-X-booting Debian system.  On the good side, I learnt some more and gained an appreciation for being able to use the command line.

    In a flash of irresponsibility, I thought I'd install the nvidia 3d module the Debian Way - without doing the research but just using a "she'll be right" approach.  The module compiled and installed.  I rebooted.  When X started, all I got was a blank screen with a flashing underline cursor at the top left.

    Bother!

    Ctl-Alt-Backspace would not kill X
    Ctl-Alt-Del gave me a reboot.


    Rescue Mode

    When you boot a Debian system, at the Grub screen, each Kernel choice has two entries - the normal boot entry, and under that a "Rescue Mode" kernel choice which allows you to boot (eventually) to a root prompt.  The boot process finishes with an invitation for you to enter the root password, or to press Ctl-D.  Entering the root password drops you to a root prompt # .


    Modules

    Drivers are called "modules" in Linux and are loaded for the Kernel to get access to them.  Once I was in the root prompt above, I checked to see if the nvidia module was indeed causing the trouble.

    # lsmod

    The list streamed up above the page, so pipe the output of lsmod to a pager, like "more"

    # lsmod | more

    Better - and there was the nvidia driver in the list.  now to remove the module

    # rmmod nvidia

    Check the module list, and it is not there.  So reboot.  The system was as before, so the module commands only do a temporary job.

    To cut a long story short, I did the brute force approach.  I found the module in
    " /lib/modules/ (kernel-name) /nvidia/nvidia.ko"
    and renamed it to nvidia.ko.bak.  When I rebooted, the system worked as before.


    Xorg

    In the past, when I've been confronted with something like this, I've simply edited the xorg.conf file to change the video driver back to the default "vesa" or "nv".  When I looked at doing this, there WAS no xorg.conf any more.  I'd heard a little about this, but not paid too much attention.  Another project - update my knowledge of Xorg.


    Apt / Aptitude

    Now the bit that would have saved me a lot of trouble.  Debian has a wonderful package management system.  I have only been really worried about using the graphical tool "synaptic", because it is easy to pick up the basics with.

    However in the case I was faced with, there was no graphical interface and I hadn't learnt very much of Aptitude either.  It would have been easy to just search for the nvidia packages and then remove them.  Two minutes work.

    So the lesson is - learn the command line and learn the command line Apt tools.  They will save you an awful lot of frustration and time.


    Later .....