Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: eSATA PCIe Linux compartible card

It was not easy to find a eSATA PCIe card that is reported as compartible with Ubuntu Intrepid LInux. DeLock Nr 89143 with the chipset JMB363 JMicron 20360/20363 AHCI Controller (rev 03) works just fine out of the box. Just do not forget to configure the jumpers on the card to be able to use external eSATA ports. Also make sure you unmount the discs before disconnecting them. Otherwise you will have to run fsck in the best case.

User Journal

Journal Journal: Lock screen on KDE4

Starting from KDE4.3
DISPLAY=:0 /usr/lib/kde4/libexec/kscreenlocker --forcelock >/dev/null 2>&1 &
To map that to a shortcut go to System Settings, Input Actions, add a shortcut and put into the Comand/URL:/usr/lib/kde4/libexec/krunner_lock --forcelock >/dev/null 2>&1 &
 

Ubuntu

Journal Journal: RAID Array in Intrepid

If the RAID you have created does not start after the reboot, you might wish to add a line in the initramfs-tools/init file:

/usr/share/initramfs-tools/init

# to stop a race condition with md

157 maybe_break mount
158 sleep 5
159 log_begin_msg "Mounting root file system..."

sudo /usr/sbin/update-initramfs -uk all

# run to rebuild the image
Make sure if you add it it is to the "mount" line. The line numbers are likely different with your system. You might start with 10 instead of 5, seconds delay. Ubuntu Forum Discussion
known bug in Intrepid has no influence on the creation of the array.

to check the SMART status of the drives do this

for letter in a b c d e f; do echo "############## Below the information for the drive /dev/sd$letter ##########" && sudo smartctl -H -l error /dev/sd$letter ; done

add internal bitmap to reduce rebuild time

sudo mdadm --grow --bitmap=internal /dev/md0

better still add external bitmap to speed up the write speed to compared to internal bitmap

sudo mdadm --grow --bitmap=none /dev/md0 #remove bitmap sudo mdadm -G /dev/md0 -b /media/persistent_temp/md0_intent_var # my /var is mounted into ramdisk

add to /etc/rc.local to further optimize write speed further.

echo 8192 > /sys/block/md0/md/stripe_cache_size

check drive features

for letter in a b c d e ; do echo "Drive /dev/sd$letter" && sudo hdparm -i /dev/sd$letter ; done

Turn of APM and spin down. Set sound management to "fast". APM is not supported on my WD drives.

for letter in a b c d e ; do echo "Drive /dev/sd$letter" && sudo hdparm -B255 -S0 -M254 /dev/sd$letter ; done

Recover sequence

sudo mdadm --assemble --force /dev/md0 --uuid=YOUR_UUID /dev/sd{a,b,c,d,e}1
sudo mdadm --query --detail /dev/md0
sudo fsck.jfs -v /dev/md0
sudo mount /dev/md0
sudo watch cat /proc/mdstat
sudo mdadm /dev/md0 --add /dev/DEVICE_TO_ADD

User Journal

Journal Journal: Linux diNovo Edge Kubuntu 8.10 Intrepid

I had to tweak the ~/.Xmodemap again. (is accessed by script in ~/.kde/Autorun)

Use this command to get the keycodes from the multimedia keys.

xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

my Xmodmap
keycode 121 = XF86AudioMute
keycode 122 = XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume
keycode 142 = XF86Away
keycode 163 = XF86Mail
keycode 165 = XF86AudioPrev
keycode 166 = XF86AudioStop
keycode 171 = XF86AudioNext
keycode 172 = XF86AudioPlay
keycode 217 = XF86Search

Generally to map shortcuts one can use the KDE Settings "Input Actions" and just add new Hotkeys. I have used it for all keys except for Amarok.

Also Qt has explicitly refused to accept
keycode 150 = XF86Sleep
keycode 179 = XF86Tools
that have worked before in 8.04

"Hotkey" Action command
"Decrease Volume" qdbus org.kde.kmix /kmix/KMixWindow/actions/decrease_volume com.trolltech.Qt.QAction.trigger
"Increase Volume" qdbus org.kde.kmix /kmix/KMixWindow/actions/increase_volume com.trolltech.Qt.QAction.trigger
"Start Dolphin" /usr/bin/dolphin

Amarok has its own Settings->Configure Global Shortcuts menu.
Just drop all XF86... Shortcuts from "Configure Shortcuts" and put them into "Configure Global Shortcuts"

I have also deinstalled keytouch, keytouch-editor and lineakd, klineakconfig. They basically are responsible for the same thing and may have interferred with the settings, but I am not sure.

User Journal

Journal Journal: prevent deactivation of diNovo Edge dongle in Intrepid

change here /etc/default/bluetooth
HID2HCI_ENABLED=1
to
HID2HCI_ENABLED=0

It prevents resetting the dongle in to bluetooth mode, which does not work for this dongle anyways. This is this reset that disconnects the keyboard.

User Journal

Journal Journal: make the electric sheep the default screensaver in kde4

Re: ElectricSheep, can't find xv, another process running, terminated
Hi. The best solution is to remove your current version of electricsheep:
Code:

sudo apt-get remove electricsheep

And then you can use this script and run
Code:

sudo sh install-electricsheep-package.sh

This will install a new version of electric sheep from a PPA on lauchpad.

Credits to spotspot:
http://ubuntuforums.org/showthread.php?t=826554
http://community.electricsheep.org/node/271

http://ubuntuforums.org/showthread.php?t=950771&highlight=electricsheep/

http://www.jwz.org/xscreensaver/man1.html

USING KDE
        KDE also has invented their own screen saver framework instead of simply using xscreensaver. To replace the KDE screen saver with xscreensaver, do the following:

                1: Turn off KDE's screen saver.
                          Open the ``Control Center'' and select the ``Appearance & Themes / Screensaver'' page. Un-check ``Start Automatically''.

                2: Find your Autostart directory.
                          Open the ``System Administration -> Paths'' page, and see what your ``Autostart path'' is set to: it will probably be ~/.kde/Autostart/ or something similar.

                3: Make xscreensaver be an Autostart program.
                          Create a .desktop file in your autostart directory called xscreensaver.desktop that contains the following five lines:

                            [Desktop Entry]
                            Exec=xscreensaver
                            Name=XScreenSaver
                            Type=Application
                            X-KDE-StartupNotify=false

                4: Make the various "lock session" buttons call xscreensaver.
                          Replace the file kdesktop_lock or krunner_lock in /usr/bin/ (or possibly /usr/kde/3.5/bin/ or /usr/lib/kde4/libexec/) with these two lines:

                            #!/bin/sh
                            xscreensaver-command -lock

                Make sure the file is executable (chmod a+x).

        Now use xscreensaver normally, controlling it via the usual xscreensaver-demo (1) and xscreensaver-command (1) mechanisms.

User Journal

Journal Journal: Use Logitech DiNovo Edge dongle as a generic Bluetooth

link

Thanks to others who have posted all over the web, including this forum and others, I found out how to fix this, at least on my system.

  I did it with Setpoint already installed, but I don't know if this makes a difference.

Disconnect the usb dongle.

Push and hold down the connect button. Put the dongle back in the USB slot while still holding the button for at least 5 sec or so. It will now be recognized as a bluetooth device. I don't know if it's Windows or Setpoint, but new drivers will automatically be installed. The bluetooth icon shows up on the bottom right of the screen, and it's now an option in control panel. I still don't see a bluetooth option within the Setpoint software, though, but Windows can do the rest.

The keyboard now needs to be reconnected to the bluetooth hub. Go to the bluetooth setup screen. Enable discovery in the option tab, and click "add" in the device tab, then follow the wizard. I didn't use a passkey. When connecting, there's a tiny button on the back of the keyboard to press; a green bluetooth logo will flash on the front. It took maybe less than a minute for it to be recognized.

Adding additional bluetooth devices should follow the same steps I think. I'm getting a bluetooth headset to try out. Good luck to us both!

User Journal

Journal Journal: show ssl in the address bar

Dazu muss man die Pseudo-URL about:config aufrufen, wovor Firefox allerdings mit einem "Hier endet möglicherweise die Gewährleistung!" warnt. Nach dem eingeforderten Versprechen, vorsichtig zu sein, führt die Eingabe von identity im Suchfeld zur Einstellung browser.identity.ssl_domain_display deren Wert man von 0 auf 1 setzt.

http://www.heise.de/security/Richtig-verschluesseln-mit-Firefox-3--/artikel/132527/

Slashdot Top Deals

I've noticed several design suggestions in your code.

Working...