Friday, May 28, 2010

How to submit a package to Aur Unsupported

Was asked to upload the MadPablo Openbox theme to AUR.

What you have to do.
Make the package.
What I had to do for this was to compress the usr/share/themes/maddpable/openbox-3 folder

and upload it to ompload.org; used gompload for that.
Result is a downloadlink at: http://omploader.org/vNGZoOA.bz2
Had to md5sum the madpablo.tar.bz2
or terminal in the directory of your PKGBUILD, and to generate md5sum do this:

Code: makepkg -g >> PKGBUILD

Result: f8bd9530b5ae503cb773dfa66a1d51d0

Now I can edit PKGBUILD :
# Contributor: Pablo

pkgname=openbox-madpablo-theme
pkgver=20100528
pkgrel=1
pkgdesc="MadPablo OpenBox Theme"
arch=('any')
url="http://archbang.47.forumer.com/viewtopic.php?f=28&t=278"
license=('GPL')
depends=('openbox')
source=(http://omploader.org/vNGZoOA.bz2)
md5sums=('f8bd9530b5ae503cb773dfa66a1d51d0')

build() {
install -d ${pkgdir}/usr/share/themes/
cp -r ${srcdir}/madpablo ${pkgdir}/usr/share/themes/ || return 1
}

The url is provided as link for more info about the theme:
http://archbang.47.forumer.com/viewtopic.php?f=28&t=278.
pkgver=20100528 just is the date of doing this.
Now I have to make a folder openbox-madpablo-theme
and put only the PKGBUILD in it and compress this to
openbox-madpablo-theme.tar.gz

Now I have to register at http://aur.archlinux.org/account.php
And upload the openbox-madpablo-theme.tar.gz file and give a comment if needed.



This is the result: http://aur.archlinux.org/packages.php?ID=37577


When a package is submitted by someone else and is not maintained you can submit a new
PKGBUILD in the form of a code pastebin: http://aur.pastebin.com/

How to change an existing openbox theme?

I will take it for granted that you have installed the theme you want to change.
Go to the folder where it is located for instance usr/share/themes.
Create a folder of the new theme variation and give it the name you want.
For example changing the madbox theme, I created a new folder to MadPablo and copied the content of the Madbox folder to this new folder.
Of course it is easier to work from an existing theme.
Now open in the text editor of choice (I prefer geany) the file themerc, it is located in usr/share/themes/openbox-3/.
If it is not there you can use the whereis command in the terminal: whereis themrc

Now we have to use a good colour tool; gcolor2 is perfect for the job and will appear installed as a plugin in geany. Install in Arch with sudo pacman -S gcolor2

Open the themerc file in geany and open the gcolor2 program and use the eyedropper to choose colours. Use a large resolution image of something you like colour wise (content is unimportant). If you got the colour code copy it and put it in place in the themerc file on the spot you want it to be overwriting the existing colourcode
Make some changes and try to understand the various designations of the diverse window items; for more info http://openbox.org/wiki/Help:Themes
If you have trouble identifying an element in the theme use the colour dropper to determine the existing colour of the element you want to change and use the found colour code by doing find code in geany in the themerc file

Now make some changes and save the themerc you're editing.
Open Openbox Gui Config tool, in terminal obconfig

Now select the theme that you took as starting point and make it active. Look around in your browser, open some windows and apps to get a feel how it will look, but already obconfig will give you a rather good example of how it will look.

If you're done with adaptations you can use the create a theme archive .obt option of obconfig and navigate to usr/share/theme/Newtheme folder and name and save it.
It will be saved in /home/user.


Obtheme

There is a gui app to edit a theme called obtheme; have tried it but didn't find it so nice to work with: http://xyne.archlinux.ca/projects/obtheme#screenshots
This is the Madpablo theme I created

Colours are quite different from the original Madbox theme:olive green and light blue.
The fonts used are bitstream vera sans mono for the conky
Monofur,acitve window title; Sans inactive window header and menu header
Menu item and on screen display Neutra Text Book Alt
Apperance settings: Avenir LT Std 12.

Direct link full res screenshot:http://img375.imageshack.us/img375/7655/2010051612740389671920x.png

  1. Downloadlink theme

Gomploader to upload to ompload.org

Gomploader is a very simple graphical interface to upload a file to ompload.org
Install in Arch by packer -S omploader.
The command to start is terminal gompload.
Make a keybinding in openbox!

Thursday, May 27, 2010

Dmenu with better and larger fonts

Dmenu can look much better with fonts if you use the dmenu-xft version.

See this screenshot: http://omploader.org/vMmJicg
Look here: http://aur.archlinux.org/packages.php?ID=28745

There is a problem with the packagebuild on this page though.
It should be:
pkgname=dmenu-xft
pkgver=4.0
pkgrel=1
pkgdesc="Dynamic X menu - with xft support"
arch=('i686' 'x86_64')
url="http://code.suckless.org/"
license=('MIT')
depends=('libx11' 'libxinerama' 'libxft')
conflicts=('dmenu')
provides=('dmenu')
source=(http://dl.suckless.org/tools/dmenu-4.0.tar.gz
http://z.ip.fi/~henkka/dmenu-xft/dmenu-4.0-xft.diff)

md5sums=('66e761a653930cc8a21614ba9fedf903'
'1f3ecd819a39dea88a3dde9b5271bec6')

build() {
cd $srcdir/dmenu-$pkgver
patch -p1 < ../dmenu-4.0-xft.diff || return 1 make || return 1 make DESTDIR=$startdir/pkg PREFIX=/usr install || return 1 # LICENSE mkdir -p $startdir/pkg/usr/share/licenses/$pkgname || return 1 cp LICENSE $startdir/pkg/usr/share/licenses/$pkgname/ || return 1 }


Save this as PKGBUILD textfile and run makepkg where you saved PKGBUILD.
But first uninstall the dmenu version you have with
sudo pacman -Rd dmenu



This all in Arch.
Otherwise: download the two sources at the bottom of the page. Extract the tar.gz and then place the .diff into dmenu-4.0 directory. Apply the patch with:

patch -p1 < dmenu-4.0-xft.diff

Then run make and copy dmenu into /usr/bin

source: http://crunchbanglinux.org/forums/topic/4524/dmenu-with-xft-support/

Wednesday, May 26, 2010

Installed Archbang 2010.05 from git







Full image: http://img265.imageshack.us/img265/8021/201005261225461920x1200.png

I installed Archbang 2010.05 from git.
Created the iso from git this way:
packer -S base-devel git archiso-git
git clone git://gitorious.org/archbang/archbang.git
cd archbang

sudo make all


The resulting iso is about 470 mb and 64 bits.
After a successful live session using the nvidia option I installed the system in a before hand prepared logical partition in a multiboot setup.
Install went rather well' small issues time setting did not went well in ncurse; 15:34 instead of 11:34 also the gtm-1 option did not give the correct time.
I corrected the later but it still isn't correct after install It is now 9.54 instead of the real 13.54,
=====================
Solution time issue
Time issue is indeed there. Will take a look when I can.

Usually the best way to nip that problem is to install openntpd.
Code:

pacman -S openntpd

Then add openntpd to your daemons array in your /etc/rc.conf file so it will start with your next boot up, and then
Code:

/etc/rc.d/openntpd start

and your clock should be correct. This worked for me.
Decided it not to run as daemon because of the delay in booting and adding it to obautostart with

/etc/rc.d/openntpd start
===========================


The second issue was the bootloader install; I choose a grub2 install in the same partition as the new abinstall because I edit a menu.lst legacy grub in a different partition.
I gave an error that the bootloader couldnt be installed but it was instaled all the same.

Because I use the grub legacy on another partition I can't really check if the grub 2 would have done the job if necessary.
I did not install the plymouth splash screen, which I should have done for test purposes; but just forgot that because I was following my own preferences.

Internet (wired) is very slow and the webbrowser unresponsive.

Found the solution for the slow webbrowser

In Firefox adressbar type about:config
and search network.dns.disableIPv6 and set to true:
true disables IPv6 support - may not work for all networks,
but for me considerable speed increase maybe due to older router.

Other issues and adaptations>


First
tried to rankmirror my repository list;
rankmirrors will take a list of mirrors and arrange them in order of speed.
If you want to find the 5 fastest mirrors where you are, pass it your mirrorlist with servers near you uncommented
along with the "-n 5" option and redirect the output to a file, e.g.

Code:

cd /etc/pacman.d
cp mirrorlist mirrorlist.bak
rankmirrors -n 5 mirrorlist >mirrorlist


Got error message: get error: bash: mirrorlist: Permission denied, even if I sudo

Then update package list: pacman -Syy

Then error:
error: failed to synchronize any databases,

looked at the mirrorlist file and it was empty;
so made a handmade selection of servers and copied that from mirror.bak

My mistake was: had not installed reflector yet.

Installed packer
How to install packer in Arch?
Packer is a nice tool to build packages via the aur.

You need fakeroot and base-devel and git

pacman -S base-devel fakeroot git

2) get PKGBUILD: http://aur.archlinux.org/packages.php?ID=33378
3) run makepkg where you saved PKGBUILD
4) pacman -U packer-*.pkg.tar.xz


for instance: packer -S pcmanfm-mod

This is a stable version of pacmanfm

With pcmanfm I can easily access my other partitions.

Now I changed some looks:
The theme Madpablo and Madbox theme is copied as root from usr/share/themes and the icons Simple theme from usr/share/icons on another partition using pcmanfm as root. Copy fonts from other partition from usr/share/fonts/ttf to usr/share/fonts/ttf.

Installed geany as a nice test file editor: sudo pacman -S geany


Created Autologin:

/etc/inittab

Another way of circumventing display managers and booting straight into a preferred window manager or desktop environment involves editing /etc/inittab, changing:

id:3:initdefault:

[...]

x:5:respawn:/usr/bin/xdm -nodaemon

to:

id:5:initdefault:

[...]

x:5:once:/bin/su PREFERED_USER -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"

changing PREFERED_USER as necessary.





Tuesday, May 25, 2010

How to build an iso from git

Building from git now should only need the following as of April 2010


Code
packer -S base-devel git archiso-git
git clone git://gitorious.org/archbang/archbang.git
cd archbang

sudo make all


Instead of using the aurscript you can now add the ArchBang repo so that you don't need to waste your precious time compiling manually!

Archbang Repo:
! You can now add it to your pacman.conf as:


Code
[archbang]
Server = http://www.archbang.org/repo/


This means you don't have to manually build packages.list.aur from AUR. You can just get it using pacman -Syyu
This will also help us push dist-upgrades in future.

Thursday, May 20, 2010

Burning with Arch

Sometimes it may be necessary to graant you the necessary permissions:

Setting permissions

Users that should be able to use CD/DVD burning devices must have permissions to access the devices. If you are using udev (which is default in Arch Linux kernels), you only need to add the user(s) to the optical group:

# gpasswd -a  optical

Log out and back in for the changes to take effect.


source: http://wiki.archlinux.org/index.php/CD_Burning


Blog Archive