Saturday, 30 October 2010

Ubuntu 10.10

http://www.howtogeek.com/howto/13535/move-window-buttons-back-to-the-right-in-ubuntu-10.04/

How to move the window buttons

The window button locations are dictated by a configuration file. We’ll use the graphical program gconf-editor to change this configuration file.

Press Alt+F2 to bring up the Run Application dialog box, enter “gconf-editor” in the text field, and click on Run.

sshot-2

The Configuration Editor should pop up.

sshot-3

The key that we want to edit is in apps/metacity/general.

Click on the + button next to the “apps” folder, then beside “metacity” in the list of folders expanded for apps, and then click on the “general” folder.

sshot-4

The button layout can be changed by changing the “button_layout” key. Double-click button_layout to edit it.

Change the text in the Value text field to:

menu:maximize,minimize,close

sshot-5

Click OK and the change will occur immediately, changing the location of the window buttons in the Configuration Editor.

http://www.ehow.com/list_7301570_ubuntu-compatible-asus-motherboards.html


Removed the slave CD rom ribbon cable for Mint and Ubuntu to boot up!

Errors at startup
http://ubuntuforums.org/showthread.php?t=1592311&page=2 (post 12)
sudo gedit /etc/initramfs-tools/initramfs.conf
changed MODULES=most to MODULES=dep
sudo apt-get install --reinstall initramfs-tools

No boot up logo
http://ubuntuforums.org/showthread.php?t=1607030
sudo -i
echo FRAMEBUFFER=y > /etc/initramfs-tools/conf.d/splash
update-initramfs -u
ctrl-d

HL-1440: hpijs-pcl5e

VMWare player compiling kernel annoyance
sudo gedit /etc/vmware/config
Set VSOCK_CONFED = “no”
src: http://resalxh.wordpress.com/2010/09/09/vmware-player-3-1-1-on-ubuntu-10-10-maverick-meerkat/
others... (don't work)
http://ubuntu-ky.ubuntuforums.org/showthread.php?p=9957825
http://blog.mattrudge.net/2010/10/11/vmware-player-on-ubuntu-10-10-maverick-meerkat/


HL-1440 printer (toner override):
http://www.fixyourownprinter.com/forums/laser/39806

GNU Paint

dual screen flash issue:
http://ubuntuforums.org/showthread.php?p=10103104#post10103104


Java:
sudo update-alternatives --config java
dpkg --get-selections | grep jdk
sudo apt-get remove [all the openjdk stuff listed above]

http://stackoverflow.com/questions/3747789/how-to-install-sun-jdk-on-ubuntu-10-10-maverick-meerkat

Mounting in Terminal
sudo apt-get install smbfs
sudo mount -t smbfs //192.168.1.1/logs /mnt/logs

Batch photo resizer
sudo apt-get install phatch
http://linuxhub.net/2011/02/phatch-simple-batch-image-processing-tool-for-ubuntu/

mp4 to flv:
ffmpeg -i MOV00420.MP4 -ar 44100 -s qvga MOV00420.flv
ffmpeg -y -i MOV00420.MP4 -ss 10 -vframes 1 -s 150x113 -an MOV00420.jpg

#!/bin/bash
for f in *.MP4; do
echo "**************** Working on $f ****************"
ffmpeg -i "$f" -ar 44100 -s qvga "${f%.MP4}.flv";
ffmpeg -y -i "$f" -ss 10 -vframes 1 -s 150x113 -an "${f%.MP4}.jpg";
done

svn wants default keyring password
Edit ~/.subversion/config
add: password-stores =
http://ubuntuforums.org/showthread.php?p=8275152

http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/
sudo nano /etc/nsswitch.conf
hosts: files wins dns
finally, you need to install winbind
sudo apt-get install winbind
To enable windows to ping ubuntu you then need to install samba:
sudo apt-get install samba

http://wiki.linuxquestions.org/wiki/Linux_software_equivalent_to_Windows_software

Linux Mint 10

Move over Mandy, here comes Minty!

Here to use proper Google search on Firefox
http://mycroft.mozdev.org/search-engines.html?name=google

Installed Chrome
Can't get flash full screen on one page
Added new panel on second screen
Printer seems to work fine
Added gpaint (seems to work)
Can't yet get compiz to work
Login screen weird

Dodgy way of resizing the mint menu
http://forums.linuxmint.com/viewtopic.php?f=90&t=58533

Sunday, 27 June 2010

Mandriva Flash Problem

As it is written in Errata:
In Firefox flash content doesn't play smoothly or doesn't work at all

1. Check which plugins you have installed:
Code:
ll /usr/lib/mozilla/plugins

- If you see:
libswfdecmozilla.so
npwrapper.so

Uninstall it:
Code:
urpme swfdec-mozilla
urpme nspluginwrapper

- Uninstall the flash-plugin from the official media:
Code:
urpme -a flash

2. Add PLF media (if you don't have):
Check it:
Code:
urpmq --list-url

For a 32 bit add PLF media:
Code:
urpmi.addmedia --distrib ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/cfg/2010.0/i586

For a 64 bit add PLF media:
Code:
urpmi.addmedia --distrib ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/cfg/2010.0/x86_64

3. Install Flash from PLF media:
Code:
urpmi flash-player-plugin

After that Flash will work even with FireFox 3.6.3

Source: http://forum.mandriva.com/viewtopic.php?t=127246

Saturday, 3 April 2010

Mandriva Free on Encryted Drive

Boot up Mandriva One
MCC - Disk partioning
Create small partition for boot
Create large partition for root
su -
cryptsetup luksFormat /dev/sda6
[password]
cryptsetup luksOpen /dev/sda6 crytedroot
[password]
mkfs.ext4 /dev/mapper/crytedroot
cryptsetup luksClose /dev/mapper/crytedroot

Boot up Mandriva Free
Custom Disk partitioning
Click use /dev/sda6
[password]
Next, Back
Use existing partions
set / for large partition
set /boot for boot partition

Mirrors
MCC, setup sources, add, yes to install mirror list

ATI drivers
Go to MCC, Hardware, X graphics
Find the same driver
OK
Yes to install proprietary drivers
re-login
rm /etc/X11/xorg.conf
aticonfig --initial=dual-head
re-login
ATI CCC
Set multi-display
re-login

Wireless
removed networkmanager - mv /usr/share/autostart/net_applet.desktop /home/
installed wcid
vim /etc/dbus-1/system.d/wicd.conf - group users at the end
created wicd template (scan_ssid=1 was the key)

name = WPA 1 (TKIP)
author = CN
version = 1
require apsk *Preshared_Key myssid *My_SSID
-----
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="$_MYSSID"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="$_APSK"
}


wicd links:
http://wicd.net/punbb/viewtopic.php?id=296
http://wicd.sourceforge.net/templates.php
http://fr2.rpmfind.net/linux/RPM/mandriva/2009.1/x86_64/media/main/release/wpa_supplicant-0.6.8-1mdv2009.1.x86_64.html
http://bbs.archlinux.org/viewtopic.php?id=63841

Sunday, 7 February 2010

How to boot camp on Mac - installing XP

http://www.askdavetaylor.com/how_do_i_install_windows_xp_on_my_mac_using_boot_camp_1.html

Boot camp drivers
http://www.apple.com/downloads/macosx/apple/application_updates/bootcampsoftwareupdate31forwindows32bit.html

Friday, 15 January 2010

Mandriva 2010

Reviews
http://www.itnewstoday.com/?p=1233
http://www.dedoimedo.com/computers/mandriva-2010.html

Has nvidia drivers built in

Install updates through Control Panel
http://wiki.mandriva.com/en/Docs/Basic_tasks/Installing_and_removing_software#Installing_updates:_MandrivaUpdate

Nvidia slow - enable direct rendering
http://forum.mandriva.com/viewtopic.php?t=123515

Youtube full screen problem:
http://ubuntuforums.org/showthread.php?p=8678672#post8678672

Install sudo
http://linux4us.org/sudo.php

Installing Java
http://forum.mandriva.com/viewtopic.php?t=121622
urpmi java-1.6.0-sun
urpmi java-1.6.0-sun-devel

http://www.jdownloader.org (needs java above - doesn't need sudo)

Samba
Setup in Control Panel
Add new folder
Setup NetBIOS, WORKGROUP, allow hosts 0/24 and 127.0.0.1/32
chmod 777 the folder
add ping and samba on to personal firewall

PRINTER: Samsung SCX-4200 not available by default - http://openprinting.org/show_printer.cgi?recnum=Samsung-SCX-4200 - x86 32 bit (RPM for LSB 3.2) driver package

VMWARE: If it doesn't start: sudo /etc/init.d/vmware start
http://forums.opensuse.org/applications/426138-vmware-player-wont-start-vm-after-reboot.html

Firefox and Thunderbird theme
http://www.silvermel.net/theme.php?theme=silvermel

Changed any font that is 10 to 9

To view info smbclient -L 127.0.0.1
To lookup an IP nmblookup hostname

My own ping script
#!/bin/bash
ping `sudo nmblookup $1 | tac | grep -v querying | awk '{print $1}'`

AWK Cheatsheet:
www.catonmat.net/download/awk.cheat.sheet.pdf

KONSOLE: http://ubuntuforums.org/showthread.php?t=602596 in ~/.inputrc
DOWNLOAD MANAGER: http://jdownloader.org/

Some very useful security logs written here:
less /var/log/security.log

Install htop - urpmi htop
Install k3b - urpmi k3b
Install sudo - urpmi sudo

IntelliJ IDEA, icons in icons.jar
JDK_HOME=/usr/lib/jvm/java

fsck - to run filesystem check after crash when suspending to HDD

passwd root - to change root password

Text completion, partial match sound - settings > notifications > applications tab > event source: kde system notifications

Conky inspiration..
http://forum.mandriva.com/viewtopic.php?t=67796&postdays=0&postorder=asc&highlight=samba&start=1825
Straight from add/remove software

PostgreSQL:
http://wiki.postgresql.org/wiki/Adventures_in_PostgreSQL%2C_Episode_1

The lovely ll command:
http://luqmanux.blogspot.com/2008/06/ls-or-ll-command.html