Tuesday, January 3, 2012

Howto make an Arch(bang) USB installation on USB

Note: this is something different from using an usb stick as an installation medium:
This is well covered here: https://wiki.archlinux.org/index.php/USB_Installation_Media

To install Arch on an usb medium is explained here but just for Arch: https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_a_USB_key
A short summary:
1. It is best to manually partition the drive.
2. Fstab:
Make sure that /etc/fstab includes the correct partition information for /, and for any other partitions on the USB key. If the usb key is to be booted on several machines, it is quite likely that devices and number of available hard disks vary. So it is advised to use UUID or label:

To get the proper UUIDs for your partitions issue terminal command: blkid

When it comes time to edit /etc/fstab, you should use the following. Add one line to move /tmp into ram, use UUID to use persistent naming and change your primary mountpoint to "noatime,nodiratime" to reduce wear:

tmpfs /tmp tmpfs nosuid,nodev 0 0
UUID=... / ext4 defaults,noatime,nodiratime 0 1


3. Mkinitcpio.conf

You may also need to add usb to /etc/mkinitcpio.conf in order to boot correctly from a card on an usb card reader. If you need input from usb devices (i.E. password for dm-crypt) you need usbinput as well:

HOOKS="base udev autodetect pata scsi sata usb filesystems usbinput"

And rebuild the image:

# mkinitcpio -p linux

see: https://wiki.archlinux.org/index.php/CF_and_SD_card_install

4. Grub configuration:
menu.lst, the Grub configuration file, should be edited to (loosely) match the following:

root (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/disk/by-uuid/3a9f8929-627b-4667-9db4-388c4eaaf9fa ro
initrd /boot/initramfs-linux.img

Note: When grub is installed on the USB key, the key will always be hd0,0
Change the device uuid of course!

+++++++++++++++++++++++++++++++++

Installing on a netbook:
If you don't have have a CD-ROM (on a netbook), you could still do it with 2 flash drives:
-When you load the system from USB, that flash drive will probably be /dev/sdb and you'd then choose /dev/sdc (your 2nd flash drive) as your destination when you're doing the installation {from a post by Will}

The installation will be [b]permanent[/b] (as if you would have installed it on a hard drive)

///////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

The alternative is a persistent installation on an usb stick with Lili in Windows: http://www.linuxliveusb.com/en/features
Some Archbang versions are supported: http://www.linuxliveusb.com/en/supported-linuxes.
The last one is AB 2011.09.
In the new release version 2011.11 will be supported.




Limitations of a persistent installation

In the header of this post I first wrote about a persistent installation. But persistent installation have their limitations while this method equals a full installation.
What can I do and not do on a persistent system?

You have to keep in mind that a persistent system is a Live system on which there is an overlay that is writeable.

This means that core files are in read-only mode while other files are in read/write mode.

What you cannot do on a persistent system:

updates core files (kernel, etc...) = no full system updates
install drivers

What you can do on this kind of system :

install some software
do some software updates
create some files/folders
install Linux (from you USB key) on your PC's hard drive


source: http://www.linuxliveusb.com/en/help/faq/persistence/68-persistent-do-not-do

Monday, January 2, 2012

Adding silences in mp3 file without converting

do it lossy with Audacity or Traverso-Daw:
http://traverso-daw.org

So you could use directmp3cut that works under wine:
http://mpesch3.de1.cc/mp3dc.html#dwn
Split lossless,
Create a silence mp3 with command line : http://stackoverflow.com/questions/5276253/create-a-silent-mp3-from-the-command-line

After that you can merge the mp3's lossless: http://lyncd.com/2011/03/lossless-combine-mp3s/

Wednesday, December 28, 2011

always keep tint 2 visible

when maximizing applications.
# AUTOHIDE OPTIONS #
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size

Also interesting and related:
How to set windows up in OB:
https://urukrama.wordpress.com/2011/10/30/manual-tiling-in-openbox/

Wednesday, December 14, 2011

Putting your monitor in portrait mode

I have a wonderful HP LP2475W monitor with a pivoting standard:
http://ii.alatest.com/product/full/5/8/HP-LP2275-LP2475-0.jpg

I wondered if it was easy to use the portrait mode under Linux.

When using proprietary nvidia drivers it is no problem at all:
1. Add the following line to the Device-section for the graphics-card (in /etc/X11/xorg.conf):

Option "RandRRotation" "on"


2. Use these two commands:
xrandr -o 1 Rotate to portrait
xrandr -o 0 Rotate to landscape


3. Add this to rc.xml keybindings to use Openbox keybindings Super + Left (W+ Left) for Portrait and Super + Right back to Landscape Mode

xterm -e "xrandr -o 0"   Screen in Portait Mode
xterm -e "xrandr -o 1" Screen in Landscape Mode

Thanks to this article: http://symlink.dk/linux/config/pivot/

Sunday, December 11, 2011

Getting gtk 3.0 themes to work in Openbox

One small glitch I discovered was the lack of GTK3 themes with a corresponding GTK2 alternative and a gtk-engine needed to coherently display the UI for several GNOME applications from the default install such GNOME Character Map, Disk Utility, Transmission. So the latter appear un-themed and rather ugly in comparison to the other GTK applications in the default selection.

I have fixed this cosmetic deficiency by installing gtk-engine-unico (that is needed by most of the GTK3 themes anyway) and a theme that has both a GTK2 and 3 variant. The GTK2 variant can be selected through lxappearance, but in order to make use of the corresponding GTK3 theme, its gtk-3.0 folder should be copied into ~/.config. Please note that lxappearance creates a ~/gtk-3.0 folder that might be a bug in lxappearance 0.5.1 dealing with GTK3 and needs further investigation. I have found that this directory is not utilized in any way and may be safely deleted to keep ~/ clean

source: http://bbs.archbang.org/viewtopic.php?pid=6895#p6895

see also: https://bbs.archlinux.org/viewtopic.php?id=119251

Friday, December 9, 2011

set keyboard to us in openbox

$sudo setxkbmap -layout "us"

setting it alternately from us to british with alt+shift:

setxkbmap -layout "us,gb" -option "grp:alt_shift_toggle"

Thursday, December 1, 2011

FocusWriter


When I read in oms blog on FocusWriter I was immediately interested in having a nice quiet workspace for typing. It is in AUR.

When spellchecking it uses the hunspell spell checker. You will have to install the dictionaries you need to be sure, it is active.

So # pacman -S hunspell-eng hunspell-nl

in my case.

Blog Archive