SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-05-20 05:22:21

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Howto: Create #!12.04 from a minimal install

This howto describes the installation and configuration of #! based on the latest Ubuntu LTS. It should not be a place for bashing the big brown/purple brothers, just a proof-of-concept that it is indeed possible to create a #! flavour on something as "heavy and bloated" as Ubuntu, very similar to Madbox. Many thanks especially to VastOne for testing on real hardware and troubleshooting! *applauds*

Difficulty level: wimp
Duration: 30-60 minutes (depending on network speed)

We base our installation on Ubuntu's minimal ISO, which we get like this:

for 32-bit

wget -c http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/mini.iso

for 64-bit

wget -c http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/mini.iso

The size of the ISO is not more than 30MB. Transfer the downloaded file using the dd command, or as you wish on an ext2-formatted USB stick:

sudo dd if=mini.iso of=/dev/your/stick/sdx

or burn a CD, though this doesn't save our planet.

Reboot the PC and choose to boot from USB. The world-famous Ubuntu GRUB screen shows up, choose any of the "Install" entries.

Not much to say here, just be careful not to wipe your whole drive. I always recommend Manual partitioning.

You will be asked questions about the keyboard, timezone, the mirror you like to use etc. Usually hitting <Enter> will do.

After around 20 minutes your base installation is finished, and you are asked to reboot. This time, boot into the Ubuntu partition.

You'll be greeted in a sad tty1. Now comes the fun part - make sure your internet connection is working (I warmly recommend using dhcp) and let's start grabbing the base for X:

sudo apt-get install xorg slim alsa-base  volumeicon-alsa openbox openbox-themes openbox-xdgmenu obmenu gmrun suckless-tools tint2 conky-all terminator hal

You'll notice a comparably small download size. Think twice if you want to add stuff like evince (can take up to 60MB incl. all dependencies), or vlc (~120MB)

So, let's just get the basic apps:

sudo apt-get install geany nitrogen lxappearance gtk2-engines-murrine thunar firefox gksu
# optional:
#sudo apt-get install vlc evince gpicview abiword gnumeric gigolo gftp xchat synaptic gparted gimp catfish file-roller scrot gcalctool xscreensaver

By the way, Gpicview replaces viewnior.

Now we steal the Statler related configurations from papanominal's server (sorry Philip!)

wget -c http://packages.crunchbang.org/statler/pool/main/crunchbang-configs_0.1.1_all.deb
wget -c http://packages.crunchbang.org/statler/pool/main/crunchbang-bin-scripts_0.25_all.deb
sudo dpkg -i crunchbang-*
wget -c http://packages.crunchbang.org/statler/pool/main/statler-icon-theme_0.0.1_all.deb
wget -c http://packages.crunchbang.org/statler/pool/main/statler-slim-theme_0.03_all.deb
wget -c http://packages.crunchbang.org/statler/pool/main/statler-ui-theme_0.02_all.deb
sudo dpkg -i statler*

Whenever you get interrupted, perform a

sudo apt-get install -f

After this we copy the #! configs to your user:

cp -R /etc/skel/.[a-zA-Z0-9]* /home/YOUR-USERNAME/
# or
cp -R /etc/skel/.config /home/YOUR-USERNAME/.config

Now let's copy the menu.xml - I have stripped off the pipe-menus because they won't work here.

Clicky here: ~/.config/openbox/menu.xml

Add the user for reboot and shutdown in sudoers:

sudo visudo

at the bottom of the page, add

ALL   ALL=NOPASSWD:/sbin/shutdown

Ctrl-o - Enter - Ctrl-x - Enter

Start X:

sudo /etc/init.d/slim start

Enter your username and password, and voila. All other things you need you can get with apt-get install.

Screenshot or it didn't happen?

screenshot-05202012-011420pm.php

As you see, things like the volume icon and the clipboard are not installed (yet). This is absolutely your own problem big_smile Remember that this is just a base that looks like Statler and uses the configs from there, it doesn't cover details like the cb-welcome script, networking, Flash/Java, or any extras like tint2conf or compositing. The packages on the crunchbang server don't play well with the LTS versions, so you should get them from PPAs.

Edit:

Q: I want cb-welcome. Now!
A: Not really, or? All scripts are in /usr/bin/, but for your own sake - don't run cb-welcome. Or run it, and fix the mess you made yourself.

Q: Why the heck should I format that bloody USB stick?
A: You usually don't need to if you are creating the LiveUSB stick in Linux with dd. Some users like to use Lili USB Creator, unetbootin or _______ - they will have to format the USB stick before.

Q: I want to add the statler/waldorf sources so much!
A: Leave the sources.list as it is - many of the statler packages depend on different file versions than those in Masturbuntu's repos. If the repos don't have your application in stock, hunt for a PPA.

Q: I hate Statler, gimme Waldorf!
A: Of course you can get the waldorf files, they are on the same server, in another directory with slightly different file names. As waldorf is not yet an official release, I don't post instructions (yes, that's an excuse for my laziness) but waldorfying the Ubuntu base is as easy as statlerifying it.

Q: I want to be notified with Statler's beautiful face.
A: Install libnotify-bin, I think it is.

Have fun breaking it! smile

Last edited by machinebacon (2012-05-21 03:36:13)

Offline

Be excellent to each other!

#2 2012-05-20 05:59:07

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

Mega cool machine fu...  cool

Well done!

Will start breaking it tomorrow...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#3 2012-05-20 06:02:12

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

Added to Quick References... smile


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#4 2012-05-20 06:07:30

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

Thanks  maestro

Offline

#5 2012-05-20 06:15:59

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

What does the sources.list look like?


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#6 2012-05-20 06:18:30

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 378

Re: Howto: Create #!12.04 from a minimal install

VastOne wrote:

Mega cool machine fu...  cool

+1 mb


all your Base are belong to us

Offline

#7 2012-05-20 06:28:47

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Howto: Create #!12.04 from a minimal install

Why do you want us to dd on an ext formatted stick, if you dd'ing it to the device itself, instead of a partition?


I'm so meta, even this acronym

Offline

#8 2012-05-20 06:35:20

nore
>2^9
From: Lakeland
Registered: 2009-11-28
Posts: 546

Re: Howto: Create #!12.04 from a minimal install

machinebacon wrote:

This howto describes the installation and configuration of #! based on the latest Ubuntu LTS.

I had to check twice, that your post date really was today, not 2009. wink
Will you post this to Ubuntu forums as well?

Offline

#9 2012-05-20 06:51:21

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

Awebb wrote:

Why do you want us to dd on an ext formatted stick, if you dd'ing it to the device itself, instead of a partition?

Justified question. Because an unformatted stick with a dd'ed iso sometimes doesn't boot or has a faulty boot sector. Some users reported this just recently with Waldorf too.  This also happen with U 3 sticks.

Offline

#10 2012-05-20 06:52:41

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

nore wrote:
machinebacon wrote:

This howto describes the installation and configuration of #! based on the latest Ubuntu LTS.

I had to check twice, that your post date really was today, not 2009. wink
Will you post this to Ubuntu forums as well?

Probably not . It's not that revolutionary anyway smile

Offline

#11 2012-05-20 06:53:43

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

VastOne wrote:

What does the sources.list look like?

By all means keep it pointing at precise only smile

Offline

#12 2012-05-20 12:20:50

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,505

Re: Howto: Create #!12.04 from a minimal install

DIE bastardized debian from heeeeelllll ... die ! Messing round ( sighs) tongue Kickbutt how to machine, chock full of useful and neat stuff, whatever distro someone prefers. Will have to bkmark and reread when brain isn't so fuzzy.

or burn a CD, though this doesn't save our planet.

An enlightened outlook, we have come to expect nothing less from the beast from da east. Am a fan of RW's disc's here. Save the planet, your wallet and space in your desk drawers. wink


Vll ! Grudgingly even buntu ( I guess) ... lol


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#13 2012-05-20 12:50:04

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

^ viva la cbiz, I have been 'xpecting you big_smile You know that this howto is actually written with love from me to you? Even used the dirt-tinted Masturbuntu to scrot the vbox big_smile

Ha! Didn't know you like Robbie Williams tongue

Have a good weekend, Libero!

Offline

#14 2012-05-20 13:03:26

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,505

Re: Howto: Create #!12.04 from a minimal install

LMAO ... ya sneaky, ya devious ... ya crafty machine ! ( I approve.) lol


Ya had to know this was a darn near irresistable bash opportunity, HOW COULD I REFUSE !?!?!? Got played like a fiddle dang it ! But sheesh ... end of the dy, highly informative, kewl how to... thanks. smile


(CB)

Last edited by CBizgreat! (2012-05-20 13:03:48)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#15 2012-05-20 14:16:20

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,116

Re: Howto: Create #!12.04 from a minimal install

....or burn a CD, though this doesn't save our planet

Cow fart pollutes our planet just as much, but people continue buying dairy and ordering steak. I say we keep the optical media, synthetic composites and aromatic two-stroke blue smoke and burn the cattle instead!!

Nice guide, btw.
Does the Ubuntu base install still bring in stuff like Upstart and all those sketchy readahead daemons?
Also, is it possible to install only the xorg packages you need, or does Ubuntu's implementation of apt-get still insist on the "all" metapackage, making you install everything from Matrox to 3dfx Voodoo drivers from last century?


Point & Squirt

Offline

#16 2012-05-20 14:48:21

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

^ Slobby, I haven't checked the packages which got downloaded during the base install, I might look into the logs later.
About xserver-* packages, I have installed the system in Virtualbox, so I guess the guest-packages take care of the xserver-stuff. I just remember that installing xorg with all its dependencies was surprisingly lean and quick. Maybe I'll do a base install on real hardware and then I can tell you definitely. But really: doesn't Debian do the same with the xserver files? IIRC I always had to clean up the useless packages manually or with smxi (remove cruft). Or this is automatically done if sgfxi installs a prop driver?

Actually I have a partition free and could install something Debian-based (for a change, lol).

Offline

#17 2012-05-20 15:16:56

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,924

Re: Howto: Create #!12.04 from a minimal install

Very nice work! I'll give this a try if I ever go back to 'buntu! wink


/hugged

Offline

#18 2012-05-20 16:57:38

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

Breaking now commencing... will report back in 30-40 minutes


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#19 2012-05-20 17:20:38

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Howto: Create #!12.04 from a minimal install

machinebacon wrote:

But really: doesn't Debian do the same with the xserver files?

It does if you install xorg (that's a metapackage). You can cherry pick:

apt-get install xserver-xorg-core xserver-xorg-video-fbdev xserver-xorg-video-vesa xserver-xorg-video-intel/radeon/nouevau xserver-xorg-input-synaptics xserver-xorg-input-evdev xinit x11-utils

fbdev (the framebuffer driver) and vesa (for rescue) are needed, X won't start without them.

Last edited by el_koraco (2012-05-20 17:21:13)

Offline

#20 2012-05-20 17:38:25

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Howto: Create #!12.04 from a minimal install

Nice howto machinebacon.  Got something with a bit more challenge up my alley?

Offline

#21 2012-05-20 17:56:00

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,116

Re: Howto: Create #!12.04 from a minimal install

^cocky bugger, aren't ya? tongue

Here ya go: http://sorcerer.silverice.org/


Point & Squirt

Offline

#22 2012-05-20 18:35:09

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

^ big_smile

I agree...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#23 2012-05-20 18:40:32

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

Trouble with this Baconator...

It appears as if the crunchbang scripts or bin functions are not correctly setting up /etc/skel

I have a login and everything works but I have nothing I would expect from the copy of /etc/skel and no config files at all

I have a blank gray desktop that a right click gives me limited options

Also, this

Now let's copy the menu.xml - I have stripped off the pipe-menus because they won't work here.

~/.config/openbox/menu.xml

Is a blank file at the pastebin


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#24 2012-05-21 02:22:26

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Howto: Create #!12.04 from a minimal install

^ Stoney, something was wrong with pastebin before, the link definitely works: http://crunchbanglinux.org/pastebin/1656

Can you check /etc/skel/.config for the content? There must be all the stuff. If not, I pack it for you and put it in minus.

Very strange, I wrote the instructions the same time as I did the install, and the things worked.

Edit: Gnah! How comes that crunchbanglinux.org and www.crunchbanglinux.org are not the same? roll

Edit2: Open the terminal in the desktop and try to dpkg -i the packages again. The openbox -> reconfigure

Last edited by machinebacon (2012-05-21 02:25:54)

Offline

Be excellent to each other!

#25 2012-05-21 02:28:50

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Howto: Create #!12.04 from a minimal install

I did check /etc/skel and it is there... it is the hidden files that failed...

This does not work

cp -R /etc/skel/* /home/YOUR-USERNAME/

this does...

cp -R /etc/skel/.[a-zA-Z0-9]* /home/YOUR-USERNAME/

Remember this discussion with dubois?

It is all resolved now, I have it all loaded except the pastebin file which I will reboot and take care of.


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo