Repository management with zypper in Opensuse 11.1
A quick how to for using zypper to manage repositories in Opensuse.
You can specify existing repositories by their number in the list produced by zypper lr, alias, or URI. When using the numbers, make sure you always check zypper lr first, as the numbers may change after you made some changes to the repositories. Continue reading ‘Repository management with zypper in Opensuse 11.1’ »
Mutt fix for when composing a message skips aliases
On 2 previous mutt setups (ubuntu and arch), mutt behaved pretty much like I told it to . I carry my *rc files with me from install to install, so nothing changed. But in Opensuse 11.1, on mutt, when you compose a message, it skips the “To:” inquiry that allows you to select from your aliases and goes straight into vim or whatever you have set as your editor.
This is a simple fix. Simply add the following in your ~/.muttrc file:
set autoedit=no
Remove unused dependencies in Arch Linux
This will list all orphans. I find it best to review what packages it lists here first and foremost.
pacman -Qdt
This will remove them all.
pacman -Rsn $(pacman -Qdtq)
Disable the “clear” issued when you exit vim
When I am in vim (on Linux), and I :wq (or anything that will exit me from the vi session) it does a “clear screen”.
If you want this to stop, place the following in your ~/.vimrc
set t_ti= t_te=
Fix Openbox login from GDM in OpenSuse
Do you use GDM to log into Openbox on your OpenSuse box? In 11.1 I noticed a little hiccup.
In /usr/share/xsessions the openbox.desktop file resides and the option is there in GDM, and when you login, openbox comes right up. But nothing in your ~/.config/openbox/autostart.sh file gets kicked off.
the application ‘openbox’ does not run autostart.sh, only ‘openbox-session’ does. So as root vim /usr/share/xsessions/openbox.desktop
and changes these lines:
Exec=openbox
TryExec=openbox
to
Exec=openbox-session
TryExec=openbox-session
Write-quit the file, log out and back in. Openbox should kickoff autostart.sh now.
Ubuntu tip: Switch between KDM, GDM or other display managers
If you have installed the KDE desktop on top of Ubuntu or the other way around, you may want to switch from gdm to kdm, or from kdm to gdm. This is an easy thing to do.
Open a terminal window and type in the following command:
sudo dpkg-reconfigure gdm
Hit enter at the OK prompt, and then you can switch between the two easily.
OpenSuse tip: Switch between KDM and GDM
- vim /etc/sysconfig/displaymanager
- edit the DISPLAYMANAGER=”xxx” , xxx will be what’s alread set as your display manager, either KDM or GDM. Change it to whatever you would like.
Fix Bash Keybindings for Home, End and other keys
Log into a linux box often and find that Home, End, Delete or Ctrl+Arrow keys don’t work? Well here’s the fix. Place the following in your ~/.inputrc file
“\e[7~”: beginning-of-line #home
“\e[8~”: end-of-line #end
“\e[3~”: delete-char #delete
“\eOd”: backward-word #ctl-leftarrow
“\eOc”: forward-word #ctl-rightarrow
And then exit bash and reopen a new bash session.
Secondly, if you’re on a machine with multiple (command-line) users, then it makes little sense for everyone to have to create the same “~/.inputrc” file. You need only create one file with those readline settings in it, I suggest “/usr/local/etc/inputrc“, and then point everyone to it by putting this line into “/etc/profile“:
export INPUTRC=’/usr/local/etc/inputrc’
Firefox tip: Keybindings in text fields
Want to speed up your text editting in web forms? Here’s a few quick keybindings:
- Shift + Left/Right – Select text one character at a time to the L/R of the cursor
- Shift + Home/End = Selects all text from the cursor to Home/End
- Ctrl + Shift + Home/End = Selects all text from the cursor to the beginning/end of document
- Ctrl-Left/Right – moves the cursor one word at a time
- Ctrl-Shift-L/R – selects one word at a time
- Ctrl-Shift-Backspace – deletes the line
- Ctrl+Backspace – Delete One Word Backward
