-
2008-07-03
解决Xubuntu下锁屏问题 - [软件]
装好Xubuntu后,一直存在着这个不能锁屏的问题,但是自己一直在忙,也懒的去弄这个事情。刚刚今天下班比较早,就来处理了一下。Google了一下,发现这是一个已经报告的bug,已经有了解决方案。
https://bugs.launchpad.net/ubuntu/+source/xfce4-utils/+bug/200665
Binary package hint: xfce4-utils
1) Ubuntu version: Xubuntu 8.04
2) Source package: xfce4-utils and xfce4-panel
3) Package version: 4.4.2-3ubuntu2
4) What you expected to happen:
The "Lock screen" button should lock the screen.
5) What happened instead:
It doesn't lock the screen.
6) Steps to reproduce:
1. Right click on the Panel -> Add New Item -> Action Buttons -> Add
2. Select action type: Lock screen
3. Click on the "Lock screen" button in the Panel.
4. Nothing happening.
7) Possible reason:
The "Action Buttons" panel plugin uses the /usr/bin/xflock4 script (provided by the package xfce4-utils).
This script try to use xscreensaver to lock the screen ("xscreensaver-command -lock"), but if xscreensaver isn't running, try to use gnome-screensaver ("gnome-screensaver-command --lock"), but if gnome-screensaver isn't running, try to use the "xlock" command to lock the screen.
But, by default, neither xscreensaver, nor gnome-screensaver is running, and none of the packages providing "xlock" are installed (xlockmore and xlockmore-gl).
8) Possible solutions:
- Modify the xflock4 script, to show a warning, if xscreensaver or gnome-screensaver isn't running.
OR
- Make xfce4-panel depend on xlockmore or xlockmore-gl, so it will be able to lock the screen, even if xscreensaver or gnome-screensaver isn't running.
[9) Another suggestion: May be good, to use the keyboard shortcut Ctrl+Alt+L to lock the screen. Currently Ctrl+Alt+Del is used, but it could be useful, to let lock the screen also with Ctrl+Alt+L as in GNOME and KDE.]查了一下我的Xubuntu,发现没有安装xlock,下载xlockmore安装后,问题解决。xlockmore可以在这里下载:http://ftp.debian.org/debian/pool/main/x/xlockmore/xlockmore-gl_5.22-1.4_i386.deb
-
2008-06-29
USB Xubuntu 8.04 Persistent install from Linux - [软件]
出差背两个电脑是比较辛苦的事,但是公私需要分开,使用工作的电脑处理一些私人的事情,是比较麻烦的。这种安装在USB上的live Linux可以方便的处理。
PS:还没有试验过,试过之后再写个report.This tutorial covers the process of installing Xubuntu 8.04 to a USB flash drive from within a running (Ubuntu) Linux environment. Xubuntu uses the xfce desktop environment as opposed to Gnome or KDE. Xfce helps Xubuntu run smoother and quicker on older and slower PC's. In addition, this installation tutorial utilizes the casper persistence feature to enable changes to be saved and restored on subsequent boots. If you have access to a working Ubuntu Linux installation and your system does not have a CD drive, this tutorial is for you.
Basic essentials for Xubuntu 8.04 USB installation:
- Working Linux environment (we used a local Ubuntu installation)
- Established internet connection
- 1GB or larger USB flash drive
How to install Xubuntu 8.04 to a flash drive from Linux:
- Insert a 1GB or larger USB flash drive (2GB+ recommended)
- Open a terminal and type sudo su
- As one line, type wget cdimage.ubuntu.com/xubuntu/releases/hardy/release/xubuntu-8.04-desktop-i386.iso
- Type mount -o loop -tiso9660 xubuntu*.iso /cdrom
- Type fdisk -l to list available drives/partitions (note which device is your flash drive I.E. /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
- Type umount /dev/sdx1
- Type fdisk /dev/sdx
- type p to show the existing partition and d to delete it
- type p again to show any remaining partitions (if partitions exist, repeat the previous step)
- type n to make a new partition
- type p for primary partition
- type 1 to make this the first partition
- hit enter to use the default 1st cylinder
- type +750M to set the partition size
- type a to make this partition active
- type 1 to select partition 1
- type t to change the partition filesystem
- type 6 to select the fat16 file system
- type n to make another new partition
- type p for primary partition
- type 2 to make this the second partition
- hit enter to use the default cylinder
- hit enter again to use the default last cylinder
- type w to write the new partition table
- Type umount /dev/sdx1 to unmount the partition
- Type mkfs.vfat -F 16 -n xubuntu8 /dev/sdx1 to format the first partition
- Type umount /dev/sdx2 to ensure the partition is unmounted
- Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
- Remove and re-insert your flash drive (if prompted that a new medium has been detected, select to open in a new window and click ok)
- Back at the terminal, type sudo apt-get install syslinux mtools
- Type syslinux -sf /dev/sdx1
- Type cd /cdrom
- Type cp -rfv casper dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines install/mt86plus /media/xubuntu8
- Type cd /media/xubuntu8
- Type wget pendrivelinux.com/downloads/xu8/syslinux.cfg
- Type cd casper
- Type rm initrd.gz
- Type wget pendrivelinux.com/downloads/xu8/initrd.gz
- Reboot your computer and set your system BIOS or Boot Menu to boot from the USB stick. Save your changes and proceed to boot from the USB device
You should now be booting Xubuntu 8.04 from the memory stick and by default it should save your changes, restoring them on subsequent boots.
Notes: If your having trouble getting Ubuntu to boot, your memory stick may have a corrupted MBR. To repair the MBR of your USB device, at the terminal type sudo apt-get install lilo then type lilo -M /dev/sdx (replacing x with the letter of your flash device)
- Working Linux environment (we used a local Ubuntu installation)






