Debian/Ubuntu 使用摘记

[问题]

[解答]


[问题] ubuntu 14.04 install libflashplayer.so for firefox

[解答] download flash_player_npapi_linux.x86_64.tar.gz from adobe's website

           unpack it

           copy libflashplayer.so to /usr/lib/mozilla/plugins/

          restart firefox, it will works

[问题]as: unrecognized option '-G'

[解答]chmod +x prebuilts/toolchains/mips-gcc472-glibc216/mips-linux-gnu/bin/as


[问题] mips-linux-gnu-gcc: error trying to exec 'cc1': execvp: No such file or directory

[解答] chmod +x prebuilts/toolchains/mips-gcc472-glibc216/libexec/gcc/mips-linux-gnu/4.7.2/cc1

            权限问题


[问题] ubuntu 14.04 install mkfs.ubifs

[解答] sudo apt-get install mtd-utils


[问题] 在移动硬盘第一个分区(用的是NTFS格式的分区),制作ubuntu 14.04的启动盘

[解答] 假设移动硬盘第一个分区对应的盘符是G:/

G:/的文件目录结构如下


说明:*.iso文件只用了ubuntu-14.04.5-desktop-amd64.iso, 另外一个是测试用的

所有这些文件来自两个地方,一个就是ubuntu-14.04.5-desktop-amd64.iso,另一个是grub4dos-0.4.6a-2017-06-10.7z,

网上都能下载到,下载不到的可以留言。

除了文件grldr和menu.lst来自grub4dos-0.4.6a-2017-06-10.7z,其它的文件来自ubuntu-14.04.5-desktop-amd64.iso(直接解压缩获得)

需要更改一下menu.lst文件,添加如下内容

title Ubunt 14.04.5
find --set-root /ubuntu-14.04.5-desktop-amd64.iso
map /ubuntu-14.04.5-desktop-amd64.iso (0xff) || map --mem /ubuntu-14.04.5-desktop-amd64.iso (0xff)
map --hook
chainloader (0xff)
kernel /casper/vmlinuz.efi  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/ubuntu-14.04.5-desktop-amd64.iso quiet splash --
initrd /casper/initrd.lz

然后就是bios设置usb优先启动。


[问题] ubuntu 文件系统设备节点 uuid

[解答] ls -l /dev/disk/by-uuid


[问题] passwordless sudo

[解答]

ceph-admin-node@ceph-admin-node:~/my-cluster$ ssh ceph-node3

$ username=ceph-node3

echo "${username} ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/${username}

sudo chmod 0440 /etc/sudoers.d/${username}


[问题] bhyve ubuntu 14.04 eth0 lost

 * Starting configure virtual network devices                            [ OK ]
Waiting for network configuration...
Waiting up to 60 more seconds for network configuration...
Booting system without full network configuration...
 * Stopping Failsafe Boot Delay                                          [ OK ]

[解答] 由于拷贝虚拟机导致MAC地址冲突, 需要更改文件/etc/udev/rules.d/70-persistent-net.rules, 或者可以试试eth1/eth2等名字

          参考: http://www.linuxdiyf.com/linux/19898.html

[问题] Debian 6.0.2在VirtualBox中安装

[解答] 默认安装,语言用的英文,没有GUI,时区是中国,硬盘分区整盘自动分区,


[问题] Debian 6.0.2配置apt源

[解答]

http://mirrors.163.com/.help/debian.html

最好的方法是直接下载squeeze对应的apt源设置文件

http://mirrors.163.com/.help/sources.list.squeeze

参照这个链接里的内容做,弄好了,执行一个命令完成apt源的更新

apt-get update

aptitude update

[问题] Debian 6.0.2 安装gcc工具链(编译程序用)

[解答]

apt-get install gcc

apt-get install make

apt-get install libc

apt-get install gdb

可以用一个命令安装所有的工具链

apt-get install build-essential


[问题] Debian 6.0.2 安装OpenSSH(Debian是没有UI界面的,我用多个ssh登陆,实现多窗口,把Debian当做服务器用了)

[解答] ssh客户端Debian自带了, 安装server

        sudo apt-get install openssh-sever

[问题] Debian 6.0.2 安装samba(用它和windows xp共享文件,有时候尝试配合ssh进行远程编译和调试,把Debian和Gcc工具链当服务器服务使用)

[解答] sudoapt-get install samba


[问题] Debian 6.0.2 装编译内核模块所需要的头文件

[解答] sudo apt-get install linux-headers-`uname -r`

          注意这个命令里使用的不是单引号,而是反单引号,位于键盘的左上角, 一般和数字1是邻居。


[问题] VirtualBox中Debian虚拟机增强功能安装失败的解决方法

[解答]


[问题] ubuntu 14.04 static ip

[解答] cat /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.253
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 114.114.114.114

sudo reboot


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值