星期日, 1月 06, 2013

Disable the lock screen and screen blank on Ubuntu


To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When Terminal opens, run the commands below to disable screensaver lock.
gsettings set org.gnome.desktop.screensaver lock-enabled false

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, copy and paste the commands below, then press Enter to disable screensaver.
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

UPDATE
If the above didn’t work for you, try this:
Remove the acpi and acpi-support packages
dpkg –get-selections | grep acpi
acpi-support install
acpid install
sudo apt-get remove acpi-support acpid


OR

 “Turn screen off when inactive for:” option in the system settings >> Brightness and Lock. This is where you set the idleness delay. To disable this I think you have to set it to “Never” or through gsettings, I think this should do the trick:

gsettings set org.gnome.desktop.session idle-delay 0

Source

星期六, 1月 05, 2013

ubuntu 12.10 AMD Graphics step by step

ubuntu gnome remix 12.10 + AMD HD 7770

source: askubuntu , upubuntu

Result : fail

星期一, 11月 05, 2012

How do I get the status icon back in Ubuntu 12.10? (on panel/tray)

WORK IN UBUNTU 12.10 (unity)

Steps:
  1. Install the package dconf-tools (click on the link), or from the terminal with sudo apt-get install dconf-tools
  2. Open dconf editor from the Dash (or dconf-editor from terminal
  3.  I found it at a different path within dconf-editor: com > canonical > unity > panel

  4.  
     
     
     
    SOURCE

星期二, 10月 23, 2012

ubuntu 12.10 and xubuntu 12.10

Why do they update so slow??? 


After you install ubuntu 12.10 or xubuntu 12.10, you will open terminal and press "sudo apt-get update" in time. You find why update so long. I have tried to update wasting 30mins. So what can i do??

The answer is here!

P.S xubuntugeek


星期日, 10月 07, 2012

在ubuntu 11.10 / 12.04 的螢幕 光陰 問題

首先 牽涉 到 兩種問題

  Desktop doesn't remember brightness settings after a reboot

 Decrease Backlight Below Minimum

根據 我的電腦 的 顯示器驅動是 INTEL HD 3000 圖形顯示卡

可參巧以下 的其中回覆


This function, the backlight control, is dependent on your bios and kernel version.
Try these four things.

Kernel (boot) options


If that works, edit /etc/default/grub and add those options to the default options.
# command line
sudo -e /etc/default/grub

# graphical
gksu gedit /etc/default/grub
Edit the "GRUB_CMDLINE_LINUX_DEFAULT" line so it looks like this
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"
Save your edit, update grub
sudo update-grub
sudo update-initramfs -u -k all
sudo reboot

Command line

If that does not work, you can try to manually set the brightness.
Note: Path may vary with hardware / kernel version, you may need to browse the /proc/acpi directory to find the brightness setting and adjust the following commands accordingly.
IN MY CASE:
sudo nano /sys/class/backlight/ (acpi_video0 / intel_backlight ) /brightness
  1. Change the value in this file to 500.
  2. Press Ctrl + X to exit.
  3. Press Y and Enter to save the file.
This works for me. You can also try echo value > /sys/.../brightness but I get a permission denied message even with sudo.

If that works, add it to /etc/rc.local
# command line
sudo -e /etc/rc.local

# graphical
gksu gedit /etc/rc.local
Add in your setting above "exit 0"
echo VALUE >/sys/class/backlight/(acpi_video0 / intel_backlight )/brightness

xbacklight

You can also try xbacklight
sudo apt-get install xbacklight
You then adjust with the command line
# For 80 % brightness
xbacklight -set 80
Again, add that to /etc/rc.local
# command line
sudo -e /etc/rc.local

# graphical
gksu gedit /etc/rc.local
Add in, above "exit 0"
xbacklight -set 80

setpci

You can try to set your brightness with setpci
You identify your pci bus address with
sudo lspci | grep VGA
Example
00:02.0 VGA compatible controller: Cirrus Logic GD 5446

setpci -s 00:02.0 F4.B=80
If you get your setting wrong, most likely you will just loose your display, and have to reboot. As this is a hardware setting, you really need to identify your hardware and research the settings first.
Other resources

星期三, 9月 12, 2012

PinguyOS is a good thing! 

If you thing ubuntu 12.04 that is not suitable for you, Linux Mint make you feel disappointed.
PinguyOS is your choice.

Pinguy OS 12.04 LTS (based on Ubuntu 12.04) has been released today and it uses GNOME Shell by default, customized with quite a few extensions that give the latest Pinguy OS the same feel as the previous releases.

I am using it happily.

Enjoy it!


星期五, 4月 27, 2012

[GNOME3] Notification Status Icon

CASE 1.

ibus extensions
StatusIconDispatcher = imports.ui.statusIconDispatcher;
function main() {
    StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['main.py'] ='ibus';
}
================
將ibus圖標移回狀態欄(右上角)
代碼:

sudo gedit /usr/share/gnome-shell/js/ui/statusIconDispatcher.js
將裡面的
'ibus-ui-gtk': 'input-method'
改為
'main.py': 'input-method'
PS:如果是gcin或hime,請改成 'gcin': 'input-method' 或  'hime': 'input-method' 

CASE 2.

 如果您不習慣只有一個關閉按鈕在WINDOWS 右上角
$ gconftool-2 -s /desktop/gnome/shell/windows/button_layout -t String :minimize,maximize,close

重新登入後即可生效

若想要在上端的工具列顯示輸入法狀態

UBUNTU 11.10 再奮戰

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-shell-extensions-alternate-tab
sudo apt-get install gnome-shell-extensions-alternative-status-menu
sudo apt-get install gnome-shell-extensions-user-theme gnome-tweak-tool
sudo apt-get install gnome-shell-extensions-apps-menu

如果希望自动登录,这时候可以做的是:
自动登入GNOME SHELL CLASSIC:
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-classic

如果喜欢GNOME3,就
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell


2、删除UNITY:
sudo apt-get -y --auto-remove purge unity
sudo apt-get -y --auto-remove purge unity-common
sudo apt-get -y --auto-remove purge unity-lens*
sudo apt-get -y --auto-remove purge unity-services
sudo apt-get -y --auto-remove purge unity-asset-pool


### 注意:不能用 sudo apt-get --auto-remove purge unity*,看软件包列表里,有不少跟UNITY无关的也列出了。
而且 unity-greeter 必须保留。如果删了,自己蹲墙边哭一会儿再想办法。###
移除萬惡UNITY , 重灌強大GNOME3
SOURCE

Fuck YOU Ubuntu 12.04

I have reinstall it in 3 times!
I felt depressed and frustrated on it!

FUCK YOU

Help editing GRUB on Ubuntu 12.04


I have just upgraded my installation of Ubuntu 12.04 beta, and now I won't start the GUI. If I go into "Previous versions of Linux" from the boot-menu I can start the old upgrade without problems. The one that doesn't works runs kernel 3.2.0-23-generic. The one that works is running 3.2.0-22-generic.

ans:

If you want to remove an entry from boot menu you just need to edit /boot/grub/grub.cfg remove the appropriate entry

CASE2

You do not use the start-up manager to edit the GRUB file. The startup manager is used to select configurations of the GRUB.
If you are installing or loading OS-X you will want it to use the bootloader currently on your Ubuntu system. Direct it to use the GRUB file to boot. Once installed, reboot into Ubuntu and update the GRUB file by sudo update-grub.
IF when done with OS-X and want to remove it, reformat the OS-X partition and run sudo update-grub
now if all else fails boot Ubuntu using a Live CD and install boot-repair
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair 
 
SOURCE 

Intel integrated graphics in UBUNTU 12.04



System info says
Graphics: unknown.  
Driver: unknown,  
Experience: Standard.

Solution :

it means that it cannot acquire the information because glxinfo is not installed on the system.
You can install it by typing:
sudo apt-get install mesa-utils 
 
sudo apt-get install ppa-purge
sudo add-apt-repository ppa:xorg-edgers/ppa 
sudo add-apt-repository ppa:sarvatt/intel-sna
sudo apt-get update && sudo apt-get dist-upgrade
 
This will bring in newer versions of X Server, Mesa, and 
ATI/nVidia/Intel drivers. These have greatly improved effects for me, 
and I've encountered no problems.

But if they don't work for you, you can easily return to your prior state: 

sudo ppa-purge ppa:sarvatt/intel-sna
sudo ppa-purge ppa:xorg-edgers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
 
SOURCE 

sparse file not allowed

ubuntu的grub2是不支持btrfs的。
要用btrfs必须单独分一个/boot分区,格式化为ext系列。


或 

參考以下的方法解決, 但是我不成功
http://mirkolofio.wordpress.com/2011/05/20/error-sparse-file-not-allowed/

星期六, 12月 10, 2011

How to Create Custom Wallpaper Slideshow in Ubuntu 11.10

Can't install crebs on Ubuntu 11.10. It's only available on a PPA, but it seems like it's dead. :(

What can i do ??

Solve:

ans

星期六, 4月 30, 2011

Ubuntu 11.04 ---> Xubuntu 11.04


Xubuntu 11.04 有 32 BIT , 64 BIT
第一步:
Ubuntu 11.04 medibuntu
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

sudo apt-get install libdvdcss2 non-free-codecs

32bit --> sudo apt-get install w32codecs
64bit --> sudo apt-get install w64codecs

第二步

sudo apt-get install gcin

ENJOY!

星期一, 3月 21, 2011

Autologin for Mint 10 LXDE

This threw me for a loop also but I spent a while on it last night and finally figured it out. I've been using Peppermint, Kendall's other distro, since September, so I knew what to look for, I just wasn't expecting to have to fix 3 files to get auto-login working.

/etc/xdg/lxdm/lxdm.conf
/etc/lxdm/lxdm.conf
/etc/lxdm/default.conf

Do what you did for Mint 9, change autologin=____ to autologin=your login name and get rid of the pound (#) signs in front of the first two lines in all 3 files. Then auto-login will work. I found that if you only change 1 or 2 of the files it doesn't work.

星期日, 11月 14, 2010

Mute at startup (Linux Mint 10)

So here goes.
Open synaptic and search for pulseaudio. Mark pulseaudio for complete removal.
However this does not remove everything. Mark everything that is installed having to do with pulse,
EXCEPT: libpuls0 and libpuls-mainloop-glib0

Then search for Alsa and install (if not installed),
alsa-utils
alsa-base
libasound2
libasound2-plugins
linux-sound-base
libsdl1.2debian-alsa
gstreamer0.10-alsa
liblash2
libesd-alsa0
alsamixergui
python-alsaaudio
libflk1.1
xmms2-plugin-alsa

then un-mute the volume control on the panel.

I restarted my machine at this point.

After a restart open Alsamixer.
PCM will be set at 0. Raise the bars up, and click on the speakers above
to turn then on. That should do it.

Hopefully I got all the file names right. (sometimes I can't read my own scribble).

I don't know if this will works for Gnome, but works here with LXDE.
I hope it works for you.

出處

VMware player update error with kernel 2.6.35

$ cd /tmp
$ wget http://www.sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash
# chmod +x vmware7.1.1-patch-kernel-2.6.35.bash
# ./vmware7.1.1-patch-kernel-2.6.35.bash

# vmware-modconfig --console --install-all

出處

星期四, 7月 08, 2010

Python 溫習! 工具ALICE!

教學文本有點舊!

http://www.dickbaldwin.com/toc.htm

感謝!

嘩.....新了不少!

http://code.google.com/edu/languages/google-python-class/

星期六, 7月 03, 2010

Python 与 Ubuntu 10.04

http://wiki.wxpython.org/InstallingOnUbuntuOrDebian



有什么遗留吗? 等一等下载完再来

SPE IDE - Stani's Python Editor
听说这个是目前最好的
http://pythonide.blogspot.com/

直接sudo apt-get install spe就可以了。