<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.bretts.org/index.php?action=history&amp;feed=atom&amp;title=Miscellaneous_Archive</id>
		<title>Miscellaneous Archive - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.bretts.org/index.php?action=history&amp;feed=atom&amp;title=Miscellaneous_Archive"/>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Miscellaneous_Archive&amp;action=history"/>
		<updated>2026-05-08T13:47:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Miscellaneous_Archive&amp;diff=8477&amp;oldid=prev</id>
		<title>Andrew: Created page with &quot;== Ubuntu Starter Guide == http://ubuntuguide.org  == Adding startup service == To ensure a service which exists in /etc/init.d is run on startup, simply run: &lt;pre&gt; sudo updat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Miscellaneous_Archive&amp;diff=8477&amp;oldid=prev"/>
				<updated>2021-11-03T07:47:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Ubuntu Starter Guide == http://ubuntuguide.org  == Adding startup service == To ensure a service which exists in /etc/init.d is run on startup, simply run: &amp;lt;pre&amp;gt; sudo updat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Ubuntu Starter Guide ==&lt;br /&gt;
http://ubuntuguide.org&lt;br /&gt;
&lt;br /&gt;
== Adding startup service ==&lt;br /&gt;
To ensure a service which exists in /etc/init.d is run on startup, simply run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo update-rc.d &amp;lt;service&amp;gt; defaults&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enabling Printing ==&lt;br /&gt;
# /bin/chmod 06555 /usr/bin/lpr /usr/bin/lprm&lt;br /&gt;
# /sbin/chkconfig lpd on  &lt;br /&gt;
&lt;br /&gt;
== Find open files on mount ==&lt;br /&gt;
  sudo lsof +f -- /var/media&lt;br /&gt;
Also useful in case you're trying to work out why an unmounted partition is still showing as 'in use' in tools like e2fsck:&lt;br /&gt;
  sudo fuser -v -m /dev/sdX1&lt;br /&gt;
&lt;br /&gt;
== Hardware ==&lt;br /&gt;
=== ATI Radeon on a custom kernel ===&lt;br /&gt;
Stock ubuntu kernels include the ATI kernel source, but if you've built the kernel yourself and you're getting '''atiddxDriScreenInit failed''' errors in Xorg.0.log, you'll need to install this manually with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install fglrx-kernel-source &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot once the install completes, and fglrx should be good to go.&lt;br /&gt;
&lt;br /&gt;
=== Logitech MX-1000 ===&lt;br /&gt;
&lt;br /&gt;
==== Feisty ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Logitech MX-1000&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Protocol        &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;            &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;          &amp;quot;/dev/input/event4&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Buttons&amp;quot;         &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;ZAxisMapping&amp;quot;    &amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; and &amp;quot;Device&amp;quot; are read from the relevant &amp;quot;Name&amp;quot; and &amp;quot;Handler&amp;quot; for your device in /proc/bus/input/devices. Then follow the remaining instructions in http://www.ubuntuforums.org/showthread.php?t=65471&lt;br /&gt;
&lt;br /&gt;
Although this document describes the steps for a USB mouse, this also works when connected to the PS2 port. Note, however, that a Logitech MX-1000 forward and back keys are 8 and 9, and '''xvkbd''' is located in /usr/bin rather than /usr/X11R6/bin. In addition, as stated in the text, part 1.4 is unnecessary.&lt;br /&gt;
&lt;br /&gt;
==== Gutsy ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Logitech MX-1000&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;            &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;          &amp;quot;/dev/input/event4&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Buttons&amp;quot;         &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;ZAxisMapping&amp;quot;    &amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; and &amp;quot;Device&amp;quot; are read from the relevant &amp;quot;Name&amp;quot; and &amp;quot;Handler&amp;quot; for your device in /proc/bus/input/devices&lt;br /&gt;
&lt;br /&gt;
Also, I needed to append &amp;quot;SendCoreEvents&amp;quot; to the Logitech line in the layout section&lt;br /&gt;
&lt;br /&gt;
==== Hardy ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
    Identifier &amp;quot;Logitech MX1000&amp;quot;&lt;br /&gt;
    Driver  &amp;quot;evdev&amp;quot;&lt;br /&gt;
    Option  &amp;quot;Name&amp;quot;  &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
    Option  &amp;quot;HWHEELRelativeAxisButtons&amp;quot; &amp;quot;7 6&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; is read from the &amp;quot;Name&amp;quot; for your device in /proc/bus/input/devices&lt;br /&gt;
&lt;br /&gt;
=== Gigabyte P55 ===&lt;br /&gt;
To add temperature/fan sensor support, add '''it87''' to ''/etc/modules'' and reboot. Then make the following changes to /etc/sensors3.conf:&lt;br /&gt;
* Add a new section for chip '''it8720-*''' with the contents:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chip &amp;quot;it8720-*&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    label in0 &amp;quot;VCore CPU&amp;quot;&lt;br /&gt;
    label in1 &amp;quot;VCore RAM&amp;quot;&lt;br /&gt;
    label in2 &amp;quot;+3.3V&amp;quot;&lt;br /&gt;
    label in3 &amp;quot;+5V&amp;quot;&lt;br /&gt;
    label in4 &amp;quot;???&amp;quot;&lt;br /&gt;
    label in5 &amp;quot;+12V&amp;quot;&lt;br /&gt;
    label in6 &amp;quot;Null&amp;quot;&lt;br /&gt;
    label in7 &amp;quot;Standby&amp;quot;&lt;br /&gt;
    label in8 &amp;quot;Battery&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    ignore in4&lt;br /&gt;
    ignore in6&lt;br /&gt;
&lt;br /&gt;
    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)&lt;br /&gt;
    compute in5 ((30/10) +1)*@  , @/((30/10) +1)&lt;br /&gt;
    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)&lt;br /&gt;
&lt;br /&gt;
    set in0_min 0.5&lt;br /&gt;
    set in0_max 1.9&lt;br /&gt;
    set in1_min 1.3&lt;br /&gt;
    set in1_max 2.6&lt;br /&gt;
    set in2_min 3.3 * 0.95&lt;br /&gt;
    set in2_max 3.3 * 1.1&lt;br /&gt;
    set in3_min 5.0 * 0.95&lt;br /&gt;
    set in3_max 5.0 * 1.1&lt;br /&gt;
    set in5_min 12 * 0.95&lt;br /&gt;
    set in5_max 12 * 1.1&lt;br /&gt;
    set in7_min 3.6 * 0.95&lt;br /&gt;
    set in7_max 3.6 * 1.1&lt;br /&gt;
   #the chip does not support in8 min/max&lt;br /&gt;
&lt;br /&gt;
# Temperature&lt;br /&gt;
&lt;br /&gt;
    label temp1       &amp;quot;Motherboard Temp&amp;quot;&lt;br /&gt;
    set   temp1_max   60&lt;br /&gt;
    set   temp1_min   10&lt;br /&gt;
    label temp2       &amp;quot;Case Temp&amp;quot;&lt;br /&gt;
    set   temp2_max   40&lt;br /&gt;
    set   temp2_min   10&lt;br /&gt;
    label temp3       &amp;quot;CPU Temp&amp;quot;&lt;br /&gt;
    #set   temp3_type  2    # thermal diode&lt;br /&gt;
    set   temp3_max   60&lt;br /&gt;
    set   temp3_min   10&lt;br /&gt;
&lt;br /&gt;
# Fans&lt;br /&gt;
&lt;br /&gt;
    label fan1  &amp;quot;CPU Fan&amp;quot;&lt;br /&gt;
    ignore fan2&lt;br /&gt;
    label fan3 &amp;quot;Case Fan (Top Front)&amp;quot;&lt;br /&gt;
    label fan4 &amp;quot;Case Fan (Top Rear)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Convert m4a to mp3 ==&lt;br /&gt;
* Ensure libfaad2-0 and ffmpeg (from medibuntu) are installed, and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -ab &amp;lt;bitrate in kb/s&amp;gt; -i &amp;lt;inputfile&amp;gt; &amp;lt;outputfile&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: the error '''output buffer too small''' can be ignored.&lt;br /&gt;
&lt;br /&gt;
== Changing default ALSA soundcard ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
asoundconf list&lt;br /&gt;
asoundconf set-default-card &amp;lt;cardname&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List hardware details ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lshw -businfo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Add swap space ==&lt;br /&gt;
* Create swap partition using ''fdisk''&lt;br /&gt;
&lt;br /&gt;
* Create swap filesystem&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mkswap &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Activate swap&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo swapon &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Modify /etc/fstab to allow swap to be activated at boot time&lt;br /&gt;
&lt;br /&gt;
== Change userid/groupid for an existing user/group ==&lt;br /&gt;
* Change groupid in /etc/group&lt;br /&gt;
* Run '''sudo grpconv''' to update /etc/gshadow&lt;br /&gt;
* Change userid in /etc/passwd (and also the primary groupid for any changed groupids)&lt;br /&gt;
* Run '''sudo pwconv''' to update /etc/shadow&lt;br /&gt;
&lt;br /&gt;
== Music Naming Strategy ==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Type!!Title!!TrackNum!!Artist!!Sort Artist!!Album Artist!!Sort Album Artist!!Album!!Sort Album!!Disc!!Genre!!Compilation&lt;br /&gt;
|-&lt;br /&gt;
!!!TIT2!!TRCK!!TPE1!!TSOP!!TPE2!!TSO2!!TALB!!TSOA!!TPOS!!TCON!!TCMP&lt;br /&gt;
|-&lt;br /&gt;
|Albums||Title||TrackNum||Artist||'''BLANK'''||''Directory1''||'''BLANK''' / ''Number word''||Album||''Directory2 [Disc n]''||Disc||Genre||'''BLANK'''&lt;br /&gt;
|-&lt;br /&gt;
|Compilations||Title||TrackNum||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZD'''||Album||''Directory2 [Disc n]''||Disc||Genre||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Singles||Title||'''BLANK'''||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZH'''||'''Singles'''||'''BLANK'''||'''BLANK'''||Genre||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Soundtracks||Title||TrackNum||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZL'''||Album||''Directory2 [Disc n]''||Disc||'''Soundtrack (24)'''||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Spoken||Title||TrackNum||Artist||'''BLANK'''||''Directory1''||'''ZZZP'''||Album||''Directory2 [Disc n]''||Disc||Genre||'''BLANK'''&lt;br /&gt;
|-&lt;br /&gt;
|Fun||Title||'''BLANK'''||Artist||'''BLANK'''||'''BLANK'''||'''ZZZT'''||'''Fun'''||'''BLANK'''||'''BLANK'''||'''Comedy (57)'''||'''1'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* '''Albums''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:$artist&amp;quot; --set-text-frame=&amp;quot;TSO2:&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:&amp;quot; $file&lt;br /&gt;
* '''Compilations''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZD&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
* '''Singles''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TRCK:&amp;quot; --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZH&amp;quot; --set-text-frame=&amp;quot;TALB:Singles&amp;quot; --set-text-frame=&amp;quot;TSOA:&amp;quot; --set-text-frame=&amp;quot;TPOS:&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
* '''Soundtracks''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZL&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
&lt;br /&gt;
=== File Ownership ===&lt;br /&gt;
* chown root:admin $file&lt;br /&gt;
* chmod 664 $file&lt;br /&gt;
* chown root:admin $dir&lt;br /&gt;
* chmod 775 $dir&lt;br /&gt;
&lt;br /&gt;
== Power management on VGA / DVI monitors ==&lt;br /&gt;
&lt;br /&gt;
There is a standard called DPMS where a couple of pins are used for the computer to signal the monitor to go into a low-power mode.  This is separate from any power management settings on the computer itself, and from the kde/gnome screensaver.&lt;br /&gt;
&lt;br /&gt;
The nVidia driver fully supports DPMS, and the nvidia configuration tool typically sets it up for you.  If you want to turn it off, comment out the line in the monitor section of xorg.conf.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Option &amp;quot;DPMS&amp;quot; &amp;quot;true&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== awstats: Can't locate object method &amp;quot;isp_by_name&amp;quot; ==&lt;br /&gt;
(Sometimes '''Can't locate auto/Geo/IP/isp_by_addr.al'''). This often manifests as a partially loaded awstats webpage, ending shortly after beginning of the &amp;quot;Hosts&amp;quot; table&lt;br /&gt;
* Change ''/usr/share/awstats/plugins/geoip_isp_maxmind.pm'' from '''isp_by_xxx''' to '''org_by_xxx'''&lt;br /&gt;
&lt;br /&gt;
== awstats: Hostname not resolved ==&lt;br /&gt;
To ensure that unresolved hosts (eg. intranet or corporate proxy hosts) are represented properly in awstats, add them to /var/lib/awstats/dnscache.txt&lt;br /&gt;
&lt;br /&gt;
== awstats: Couldn't open server log file &amp;quot;/var/log/apache2/access.log&amp;quot; : Permission denied ==&lt;br /&gt;
Change /etc/cron.d/awstats to run command as root, rather than www-data&lt;br /&gt;
&lt;br /&gt;
== ssh: Slow login ==&lt;br /&gt;
This may be due to the MOTD (Message Of The Day) scripts trying to get volume information for filesystem mounts that are no longer available (eg. Samba mounts). To fix this, update the MOTD scripts to make them ignore remote filesystems by editing ''/usr/share/pyshared/landscape/lib/disk.py'' and adding these lines after '''except ValueError: continue''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        # prevent slow reading of unavailable remote filesystems&lt;br /&gt;
        if filesystem == &amp;quot;cifs&amp;quot;:&lt;br /&gt;
            continue&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== GRUB 2: error: no such disk ==&lt;br /&gt;
This may be caused by the line &amp;quot;insmod lvm&amp;quot;, if you don't have the floppy drive disabled in the BIOS, but no floppy drive is present.&lt;br /&gt;
&lt;br /&gt;
== Disable user list at login ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fixing plymouth (pretty boot screen) with nvidia proprietary drivers ==&lt;br /&gt;
See http://www.sucka.net/2010/03/nvidia-drivers-ubuntu-10-04-lucid-lynx/&lt;br /&gt;
&lt;br /&gt;
== Measuring LAN performance ==&lt;br /&gt;
Host 1 (linux):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iperf -s -p 8123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Host 2 (mac):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
~/bin/iperf -c host1 -p 8123&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrew</name></author>	</entry>

	</feed>