Refers to:
http://man.chinaunix.net/newsoft/vi/doc/map.html
Adding your wanna mapping key into /etc/vim/vimrc to enable map function in vim.
Refers to:
http://man.chinaunix.net/newsoft/vi/doc/map.html
Adding your wanna mapping key into /etc/vim/vimrc to enable map function in vim.
Linux下也有类似PQ Magic一样的图形化分区管理工具,他的名字叫gparted:
[bash]
sudo apt-get install gparted
[/bash]
1、使用root权限运行以下命令:
[bash]
visudo
[/bash]
2、把/etc/sudoers(自动打开)裡面最後一行:
[bash]
%admin ALL=(ALL)ALL
[/bash]
改為:
[bash]
%admin ALL=(ALL) NOPASSWD: NOPASSWD: ALL
[/bash]
1. kwriteconfig – Write KConfig entries (for use in shell scripts):
http://manpages.ubuntu.com/manpages/gutsy/man1/kwriteconfig.1.html
2. kreadconfig – Read KConfig entries (for use in shell scripts)
http://manpages.ubuntu.com/manpages/gutsy/man1/kreadconfig.1.html
3. kde desktop applet src file locaiton:
This file recorder .desktop file location, groups info, etc…
We can change desktop files position by mouse on KDE Desktop, below file will record it…
the program kdeinit4: plasma-desktop [kdeinit] recorde the poistion to file below.
/home/<userName>/.kde/share/config/plasma-desktop-appletsrc: ( below is a entry of firefox.desktop in this file)
[Containments][14][Applets][33]
geometry=46,391.745912850909,78.7183612323325,87.2540871490914 (x,y)=46,391.745912850909, icon size=(78.7183612323325, 87.2540871490914)-(x,y)
immutability=1
plugin=icon
zvalue=116
[Containments][14][Applets][33][Configuration]
Url=file:///usr/share/cocreate-default-settings/firefox.desktop
4. /usr/bin/startkde auto start when new user login Kde X window.
5. plasma-desktop
To install Ubuntu on hard disk using iso file:
1. Download ubuntu iso file to a disk partition(e.g.: /dev/sda3) root(/) dir which NOT the partition will install Ubuntu.
[bash]
cd /
wget -c http://cdimage.ubuntu.com/daily-live/current/maverick-desktop-i386.iso
[/bash]
2. Only extract vmlinuz and initrd.lz from iso file the casper dir to the root(/) dir the iso file downloaded.
3. Reboot the box and enter into grub:
[bash]
reboot
[/bash]
Once rebooted, when see the grub list, enter ‘c’ to enter into grub.
4. Type below grub commands to install Ubuntu from hard disk:
[bash]
root (hd0,3)
kernel /vmlinuz boot=casper iso-scan/filename=/maverick-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initd /initrd.lz
boot
[/bash]
4. Once enter into the new system, installing ubuntu by clicking the icon on your desktop, and follow the tips to finish installation.
Note:
1. You can renmae iso file for short.
2. You can remove the locale parameter from the kernel( if not work, use ‘linux‘ instead) command.
Enjoy!
Ubuntu mount permanently: ( if not root, use sudo before each command below)
1. mkfs.ext3 or mkfs.ext4 your device like below:
[code lang=”bash”]mkfs.ext3 /dev/sda4
[/code]
2. Modify /etc/fstab, and append below line to the file:
[bash]/dev/sda4 /home/freespace ext3 default,noatime 0 0
[/bash]
3. reboot your box:
[bash]reboot[/bash]
Tip:
Using more /etc/fstab to see more info about how to add entry to fstab file see below:
[bash]
root@JinLab:~/sda4# more /etc/fstab
[/bash]
# /etc/fstab: static file system information.
#
# Use ‘blkid -o value -s UUID’ to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda2 during installation
UUID=c1bc5ff4-157b-4e33-a30f-12e5691d77d0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda1 during installation
UUID=69230e89-79fa-4bca-a37f-ce9461c31129 none swap sw 0 0
# /root/sda4 on /dev/sda4
UUID=2dbba927-0fb3-4ad0-97f0-9887364e5edc /root/sda4 ext3 defaults,noatime 0 0
xchm: Compiled HTML Help (CHM) file viewer for X
To get it:
sudo apt-get install xchm
To search chm relates info:
sudo aptitude search chm
This patch adds a runtime dependency on “dbus-1-utils” to the original source deb.
Refers to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/31458/comments/1
http://launchpadlibrarian.net/1571338/avahi-daemon.debdiff
diff -u avahi-0.5.2/debian/control avahi-0.5.2/debian/control
— avahi-0.5.2/debian/control
+++ avahi-0.5.2/debian/control
@@ -7,7 +7,7 @@
Package: avahi-daemon
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, dbus-1-utils
Recommends: dbus, libnss-mdns
Suggests: avahi-dnsconfd
Conflicts: mdnsresponder
diff -u avahi-0.5.2/debian/changelog avahi-0.5.2/debian/changelog
— avahi-0.5.2/debian/changelog
+++ avahi-0.5.2/debian/changelog
@@ -1,3 +1,9 @@
+avahi (0.5.2-2) experimental; urgency=low
+
+ * Added dependency on dbus-1-utils, required by postinst
+
+ — Lorenzo J. Lucchini <ljlbox@tiscali.it> Wed, 15 Feb 2006 02:39:05 +0100
+
avahi (0.5.2-1) experimental; urgency=low
* New upstream release.
On Ubuntu there are at least two methods to sign a debian changes & dsc file pair using PGP:
Enter into source codes dir, and type below each one commands:
1.sudo dpkg-buildpackage -sa -k$GPG_KEY
note: sign the pair during building package.
2. Two steps below:
1). sudo dpkg-buildpackage -sa
2). sudo debsign -k$GPG_KEY *.changes
note: sign the pair AFTER build package.
I am not in favour of monitored or filtered Internet at all. I love Internet the way it is and I hate if someone tries to censor it. But we have to admit that there is a lot of bad stuff on the Internet that you definitely don’t want little kids to come across. Gnome Nanny is a parental control system build for this purpose. Not just the websites, it can also be used to monitor and control the time spent on web or chatting.
The most recent version of Nanny available is 2.29.2. No stable version has been released yet.
In order to install the latest development release in Ubuntu, you will have to install it using the ppa. You can find the PPA archive of Nanny here. Follow the instruction in this howto to install nanny in Ubuntu from the PPA. In case of any trouble, leave a comment.
Other distro users may install the source packages from their download page and give it a try.
After installation you can find it at System -> Administration -> Parental Control.
Understanding the working of Nanny is really easy. Its developers have worked pretty well to improve its usability. In the first glance, you will easily understand how to use it. You can find it in System -> Administration -> Parental control.
With these bars(click them), you can select which part of the day you want a particular service to be active. Different services are mentioned in separate tabs. Just check the option above to activate any option.
If you want to control the websites that can be accessed you can easily do that by maintaining lists of allowed and blocked sites. Check the enable web filtering box in the web browser tab and click configure.
You can even download the list of blacklisted websites from internet and ofcouse manual addition is available.
Nanny is a pretty good software and probably the only Parental control system for Linux I know. But it connects the tasks with the respective applicaitons e.g. pidgin with chatting, thunderbird with emails and browser with web surfing. This seems logical but now a days each of these activities are possible on the browser. You can’t expect a 10-12 year old kid to use a mail client . There are tons of social networking sites out there that can keep him “busy”. Although my point seems a little vague here because you can manage and control websites the user can access using Nanny’s web content filtering system.
Another thing I noticed was the applists mentioned in /etc/nanny/applists. It is probably the list of applicaitons supported by Nanny. As of now, or as mentioned in my list, it supports only 3 browsers epiphany, firefox and konqueror. Since, browsing is the most important thing to be censored and monitored here, Nanny should add support for more browsers.