Linux Notes

1.

tar jcvf linux.2.6.25.8.tar.bz2 linux.2.6.25.8/

2.

mount -t nfs -o tcp,nolock 10.13.1.26:/xxx/nfs_root /mnt.
 
3.
root@zangchao:/work/system/linux-2.6.22.6# grep -l 'HAS_IOMEM' *
s3c2410_defconfig
root@zangchao:/work/system/linux-2.6.22.6# grep -n 'HAS_IOMEM' *
s3c2410_defconfig:1421:CONFIG_HAS_IOMEM=y
 

 grep  "smdk2410"  *  -nR
 
 4.
just check:
light32@zangchao:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games :/opt/arm-linux-gcc/gcc-3.4.5-glibc-2.3.6/bin

for tmp:
light32@zangchao:~$ export  $PATH=usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games :/opt/arm-linux-gcc/4.3.2/bin

for longterm:
light32@zangchao:sudo vim /etc/environment
light32@zangchao:~$ source /etc/environment 

5.
make distclean
make smdk2410_config
make

6.
light32@zangchao:/opt/bootloader/zangchao/u-boot-2012.04.01/u-boot-2012.04.01/board/samsung$ cp smdk2410/ smdk2440
cp: omitting directory `smdk2410/'

ard/samsung/smdk2440$ ls
libsmdk2410.o    lowlevel_init.S  smdk2410.c
lowlevel_init.o  Makefile         smdk2410.o

light32@zangchao:/opt/bootloader/zangchao/u-boot-2012.04.01/u-boot-2012.04.01/board/samsung/smdk2440$ cd -
/opt/bootloader/zangchao/u-boot-2012.04.01/u-boot-2012.04.01/board/samsung
------------------------
or:
cp smdk2410 smdk2440 -rf

7.

How do I use software from a PPA?

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA.

Important: The contents of Personal Package Archives are not checked or monitored. You install software from them at your own risk.

If you're using the most recent version of Ubuntu (or any version from Ubuntu 9.10 onwards), you can add a PPA to your system with a single line in your terminal.

Step 1: On the PPA's overview page, look for the heading that reads Adding this PPA to your system. Make a note of the PPA's location, which looks like:

ppa:gwibber-daily/ppa

Step 2: Open a terminal and enter:

sudo add-apt-repository ppa:user/ppa-name

Replace ppa:user/ppa-name with the PPA's location that you noted above.

Screen shot of a terminal with the sudo add-apt-repoistory line

Your system will now fetch the PPA's key. This enables your Ubuntu system to verify that the packages in the PPA have not been interfered with since they were built.

Screen shot of a system retrieving the PPA details

Step 3: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update

Now you're ready to start installing software from the PPA!

8. ln -s /opt/
light32@zangchao:~/Desktop$ ln -s /opt/
light32@zangchao:~/Desktop$ ls
audacious.desktop     flashget.desktop       indicator-multiload.desktop  smplayer.desktop                zlnk-eztv.desktop
audacity.desktop      gcalctool.desktop      jedit.desktop                synaptic.desktop                zlnk-facebook.desktop
avidemux-gtk.desktop  geany.desktop          meld.desktop                 system-config-samba.desktop     zlnk-ttmeiju.desktop
cairo-dock.desktop    gnome-mplayer.desktop  openshot.desktop             ubuntu-software-center.desktop  zlnk-twitter.desktop
Chromium.desktop      google-chrome.desktop  opt                          uget-gtk.desktop                zlnk-youtube.desktop
diffuse.desktop       guake.desktop          psensor.desktop              virtualbox.desktop
eclipse.desktop       guayadeque.desktop     qq2012-test.desktop          vlc.desktop
emacs23.desktop       gvim.desktop           radiotray.desktop            wireshark.desktop
filezilla.desktop     htop.desktop           skype.desktop                xchat.desktop
light32@zangchao:~/Desktop$ 

9.
light32@zangchao:/opt/ubuntu12.04lts-x86$ dpkg -l | grep "virtual"
ii  gvfs                                      1.12.1-0ubuntu1.1                       userspace virtual filesystem - GIO module
ii  gvfs-backends                             1.12.1-0ubuntu1.1                       userspace virtual filesystem - backends
ii  gvfs-bin                                  1.12.1-0ubuntu1.1                       userspace virtual filesystem - binaries
ii  gvfs-common                               1.12.1-0ubuntu1.1                       userspace virtual filesystem - common data files
ii  gvfs-daemons                              1.12.1-0ubuntu1.1                       userspace virtual filesystem - servers
ii  gvfs-fuse                                 1.12.1-0ubuntu1.1                       userspace virtual filesystem - fuse server
ii  gvfs-libs                                 1.12.1-0ubuntu1.1                       userspace virtual filesystem - private libraries
ri  virtualbox-4.2                            4.2.12-84980~Ubuntu~precise             Oracle VM VirtualBox
light32@zangchao:/opt/ubuntu12.04lts-x86$ 


light32@zangchao:/opt/ubuntu12.04lts-x86$ sudo apt-get remove virtualbox-4.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  kde-l10n-de language-pack-kde-de language-pack-kde-en language-pack-de-base
  language-pack-kde-zh-hans language-pack-kde-en-base kde-l10n-engb
  language-pack-kde-de-base kde-l10n-zhcn firefox-locale-de language-pack-de
  language-pack-kde-zh-hans-base amarok-help-de amarok-help-en
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  virtualbox-4.2
0 upgraded, 0 newly installed, 1 to remove and 140 not upgraded.
After this operation, 140 MB disk space will be freed.
Do you want to continue [Y/n]? 

light32@zangchao:~$ ps -aux | grep virtualbox
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      6483  0.0  0.0  20772  4904 ?        S    13:31   0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
root      6489 99.8  0.1  36088  8668 ?        Sl   13:31 170:02 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
root     14466  0.0  0.0   7436  1840 pts/2    S+   16:19   0:00 sudo apt-get remove virtualbox-4.2
root     14467  0.7  0.3  35972 25984 pts/2    S+   16:19   0:00 apt-get remove virtualbox-4.2
root     14483  0.4  0.5  46528 41392 pts/3    Ss+  16:20   0:00 /usr/bin/dpkg --status-fd 48 --force-depends --force-remove-essential --remove virtualbox-4.2:i386
root     14484  0.2  0.1  15092  9248 pts/3    S+   16:20   0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/virtualbox-4.2.prerm remove
root     14494  0.0  0.0   2236   600 pts/3    S+   16:20   0:00 /bin/sh /var/lib/dpkg/info/virtualbox-4.2.prerm remove
root     14538  0.0  0.0   7396  1512 pts/3    S+   16:20   0:00 whiptail --backtitle Package configuration --title Configuring virtualbox-4.2 --output-fd 11 --msgbox Running VMs found??VirtualBox is currently running. Please close it and try again. Please ?note that it can take up to ten seconds for VirtualBox (in particular ?the VBoxSVC daemon) to finish running. 11 76
light32  14637  0.0  0.0   5820   864 pts/4    S+   16:21   0:00 grep --color=auto virtualbox
light32@zangchao:~$ 


sudo dpkg -i virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_i386.deb*




 
 
-------------------------------------------------------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值