使用Bashsource /some/script和. /some/script在 Bash 中执行脚本(例如 /some/script)有什么区别?
我知道 Grub 是安装 Ubuntu 时默认安装的那个,但我面对的是运行 9.10 桌面版的嵌入式系统。以下是 lsb-release 文件的内容
ubuntu@ubuntu-desktop:/boot$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
Run Code Online (Sandbox Code Playgroud)
但是这个系统没有 Grub 引导加载程序,我想找出它使用的是哪一个。那么有什么想法吗?
我不使用 Ubuntu One,但是当我打开一些文件夹时,Ubuntu One 功能区不断出现。由于我不使用 Ubuntu One 并且不打算在不久的将来使用它,有没有办法让 Ubuntu One 支持完全脱离我的笔记本电脑?像apt-get remove u1-support这样我不再看到那个功能区和首选项菜单条目?
我喜欢 Ubuntu,除了在办公室,我不使用 Windows,但我一直觉得 Ubuntu/Gnome 中的每件事都比它应该的要大一点,即字体、桌面图标、窗口边框和其他所有东西。当我在 Eclipse 中工作时,这件事真的让我很恼火。作为开发人员,桌面空间对我来说真的很重要,我不能浪费它。
所以问题是我怎样才能让东西看起来更像 Windows,即更脆、更小?
我附上了在 Windows 和 Ubuntu 上以相同分辨率 (1400*900) 运行的相同版本 Eclipse 的屏幕截图


更新: 我实际上使用的是 Ubuntu 10.10,但在我写这个问题的时候,我只有 9.10 机器可用,所以我用它来获取屏幕截图。
我希望事情紧凑,而不是完全像窗户一样。我说窗户是因为它看起来更节省空间,而且我不喜欢浪费的空间。我也知道我可以单独调整 GNOME 的几乎每个方面,但我想要一些可以为我做的东西,比如某些主题或其他一些以后可以轻松撤消的东西(如果我不喜欢它)
我想从我的系统中完全删除开放式办公室。我需要卸载哪些软件包才能完全删除它?
我正在使用 Ubuntu 10.10。
我的硬盘被分成两个大小相等的分区。第一个用于 Windows,第二个用于 Ubuntu。一切正常。但是现在我想删除 Windows 并将磁盘完全用于 Ubuntu。我可以轻松地从 live cd 启动并使用 GParted 删除 Windows 分区,然后扩展 Ubuntu 分区以使用整个硬盘。
如果有人已经这样做了,可以在这里提出他们的建议,那就太好了。
是否可以撤消“aptitude build-dep xxxxxx”所做的所有更改,即卸载此命令安装的所有依赖项?
在最近的更新之后,我在启动菜单中获得了多个相同 linux 内核版本的条目。我试过运行,update-grub2但它也列出了两次相同的 linux-image 版本,即
adnan@adnan-laptop:/boot$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Run Code Online (Sandbox Code Playgroud)
如您所见,多次找到 vmlinuz 和 initrd。但是 /boot 中只有一个 vmlinuz 和 initrd 文件
adnan@adnan-laptop:/boot$ ls -l
total 15120
-rw-r--r-- 1 root root 646144 2010-11-24 15:58 abi-2.6.32-26-generic
-rw-r--r-- 1 root root 110601 2010-11-24 15:58 config-2.6.32-26-generic
drwxr-xr-x 3 root root 4096 2011-01-01 18:59 grub
-rw-r--r-- …Run Code Online (Sandbox Code Playgroud) 我使用 GNOME,它首先/etc/profile从~/.profile. 这是我通过将语句放入echo 'something' > test我能想到的所有文件中发现的,例如 .bashrc、.bash_profile、.profile、/etc/profile 和其他文件。
我很好奇的是,是否有任何标准文件要求所有桌面管理器执行命令?桌面管理人员之间在这方面是否有任何协议,或者他们是否使用他们想要的任何文件。
当我使用 apt-get 安装软件时,它会安装到默认位置,即 /usr/bin、/usr/lib、/usr/share 等。例如,当我安装“Meld Diff Viewer”时使用
sudo apt-get install meld
Run Code Online (Sandbox Code Playgroud)
并使用 whereis 命令找到它的位置,我得到以下输出
adnan@adnan-laptop:~$ whereis meld
meld: /usr/bin/meld /usr/lib/meld /usr/share/meld /usr/share/man/man1/meld.1.gz
Run Code Online (Sandbox Code Playgroud)
有什么办法可以更改安装位置。假设我想将它安装在/usr/local/中,我可以使用 apt-get 或 aptitude 吗?我知道我可以从源代码编译它并指定前缀选项来配置脚本或进行安装,但如果我可以使用apt-get来完成它会更好(而且真的更容易),因为我可以使用卸载、升级和其他东西apt-get 提供的
aptitude ×2
gnome ×2
grub2 ×2
.profile ×1
10.10 ×1
apt ×1
bash ×1
bootloader ×1
gparted ×1
gui ×1
installation ×1
kde ×1
partitioning ×1
resize ×1
root ×1
scripts ×1
ubuntu-one ×1
uninstall ×1
windows ×1