User Tools

Site Tools


public:compute:opensuse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

public:compute:opensuse [2015/03/05 22:11]
jon [Network scanner]
public:compute:opensuse [2015/03/05 22:11] (current)
jon [OpenSUSE] 13.2
Line 1: Line 1:
 +====== OpenSUSE ======
 +  * Have used this distro for many years because
 +    - YAST works well as an admin tool
 +    - It has (usually) all the packages I need
 +    - It is very reliable, and installation is very easy
 +  * We're currently using 13.2 on all computers
 +
 +===== Favourite Applications =====
 +  * Gnucash (for personal and club finances)
 +  * [[.photography#​digikam|Digikam]] (for managing photographs)
 +  * [[.photography#​gimp|GIMP]] (for improving photos)
 +  * [[.photography#​hugin|Hugin]] (for panorama stitching)
 +  * Amarok (for playing music)
 +  * And the usual favourite workhorses //​thunderbird,​ firefox, xemacs, libreoffice//​
 +
 +===== Kernel upgrade failure =====
 +  * Did an upgrade which included a new kernel (3.4.28-2.20) and the nas box didn't boot!
 +  * Luckily, having a [[public:​compute:​microserver#​remote_access_card|remote access card]] made it easier debug and solve this.
 +  * Turned out it was due to grub2 not being correctly configured:
 +    * the boot screen showed it failing to find the //old// kernel
 +  * So booting from an installation DVD, and then choosing "​rescue system"​ allowed me to mount the /boot partition
 +    * then cd to grub2/ and edit the grub.cfg, replacing all kernel revision strings with the correct ones
 +    * but beware! opensuse 12.3 disks do not work in the microserver
 +      * maybe a video issue - not sure, but neither my 32bit nor 64bit dvd worked, either via the kvm iLo connection or direct with a monitor.
 +      * after starting udev, screen goes a nice blank grey and stays that way. With kvm and iLo we get a lost network connection, so it seems to be really screwed!
 +    * use either the opensuse 12.2 disk, or a [[http://​www.sysresccd.org/​SystemRescueCd_Homepage|system rescue cd]]
 +
 +Even better, do this...
 +  - cd /boot/grub2
 +  - cp grub.cfg grub.cfg.bak
 +  - run yast2 -> bootloader and then simply hit ok. This rebuilds the grub.cfg
 +  - Check the changes to grub.cfg - should show the new kernel being used.
 +And beware if the boot partition is raided (mine is 4 raid 1 disk partitions). RAIDed /boot can get screwed and will result in bizarre errors, perhaps indicating kernel cannot be found. But I've also other wierd ones that stop networking. After the above config do this:
 +  - mdadm --detail /dev/md1\\ Then for each missing disk...
 +  - mdadm /dev/md1 --ad /dev/sda1
 +  - mdadm --detail /dev/md1 //(until it as been rebuilt)//
 +  - //repeat for each disk//
 +
 +===== SSH-Agent, Keychain =====
 +After a lot of mucking about, have decided keychain is not much for desktop environment ​
 +  * I want kwallet to manage my passphrase at log in. 
 +  * This process also enables a good random passphrase for ssh-keygen since kwallet does the remembering
 +  - Get environment variables from the word go in all shells at desktop login time as per [[http://​wiki.gentoo.org/​wiki/​Keychain#​Using_keychain_with_KDE|this gentoo page]]
 +    *  create /​etc/​kde/​startup/​agent-startup.sh<​code>​
 +if [ -x /​usr/​bin/​ssh-agent ]; then
 +  eval "​$(/​usr/​bin/​ssh-agent -s)"
 +fi
 +</​code>​
 +    * create /​etc/​kde/​shutdown/​agent-shutdown.sh<​code>​
 +if [ -n "​${SSH_AGENT_PID}"​ ]; then
 +  eval "​$(ssh-agent -k)"
 +fi
 +</​code>​
 +  - Add key(s) to ssh-agent at desktop log in time as per [[http://​en.opensuse.org/​SDB:​Ssh-agent_KDE_Wallet|this opensuse top tip]]
 +    *  Add ~/​.kde4/​Autostart/​ssh-add.sh (or similar)<​code>​
 +#​!/​usr/​bin/​env bash
 +
 +thepath=`rpm -q -l ksshaskpass | perl -ne '​m/​ksshaskpass$/​ && print'​`
 +export SSH_ASKPASS=$thepath
 +/​usr/​bin/​ssh-add
 +</​code>​
 +
 +===== Firefox Crashes =====
 +  * Just crashed at start up (v 29 ish)
 +  * only on 64bit 13.1 opensuse
 +  * Eventually just started again (i.e. moved .mozilla away and started afresh). This solved it :-(
 +
 +===== Install from ISO on local disk =====
 +Doesn'​t yet work.
 +  * See [[https://​forums.opensuse.org/​showthread.php/​504195-How-to-get-grub2-to-boot-from-an-iso-in-an-lvm-volume|forum question here]]
 +
 +
 +Here's an example that has the ISO stored in an LVM volume...
 +  * http://​www.howtogeek.com/​196933/​how-to-boot-linux-iso-images-directly-from-your-hard-drive/?​PageSpeed=noscript
 +  * From /​nas/​software/​openSUSE-13.2-DVD-x86_64.iso
 +    * /​boot/​x86_64/​loader/​initrd,​ linux
 +  * Add new grub entry in /​etc/​grub.d/​40_custom <​code>​
 +menuentry "​openSUSE 13.2 DVD" {
 +  set isofile=/​software/​openSUSE-13.2-DVD-x86_64.iso
 +  set root=/​dev/​mapper/​LV_ALL-nas
 +  loopback loop $isofile
 +  linux (loop)/​boot/​x86_64/​loader/​linux install=hd:​$isofile
 +  initrd (loop)/​boot/​x86_64/​loader/​initrd
 +}
 +</​code>​
 +  * Then run grub2-mkconfig -o /​boot/​grub2/​grub.cfg
 +  * See https://​en.opensuse.org/​Linuxrc#​p_install for kernel parameters such as install=
 +
 +
 +===== Network scanner =====
 +  * How to scan from our nice new shiny HP envy 5640?
 +  * We're now on opensuse 13.2, and yast scan setup, including using the hp setup menu, doesn'​t work :-( - nothing is found
 +  * So after some googling, found [[http://​ubuntuforums.org/​showthread.php?​t=1313978|this]],​ and got it to work!
 +  * Here's what to do...
 +    - Get hplip v 3.14.10 or more as per [[http://​hplipopensource.com/​hplip-web/​models/​other/​envy_5640_series.html|hplip page]]
 +      * this requires getting the hplip packages from the opensuse Printing repo (do it via one-click from [[http://​software.opensuse.org/​package/​hplip-sane|opensuse download page]])
 +      * the stock distro ones are 3.14.6
 +    - in a shell run ''​hp-makeuri <​IP>'',​ and copy the sane URI
 +    - then simply run ''​xsane hpaio:/​net/​ENVY_5640_series?​ip=192.168.199''​ or whatever
 +    - make this simpler by editing your kde start menu for the xsane application and modify the xsane run line to the above.
 +  * The web server to the scanner does work very well but...
 +    * it requires admin password
 +    * doesn'​t seem to allow more than one login
 +    * seems to get "​locked"​ by the first machine/​user
 +    * is basically not designed for multi user environments which is a bit naff considering it's a network printer/​scanner!! ​
 +    * this is all shame since the fundamental network interface is great, and I much prefer the idea of scanning through my browser - xsane is a bit of a clunky experience.
 +
  
public/compute/opensuse.txt ยท Last modified: 2015/03/05 22:11 by jon