由买买提看人间百态

topics

全部话题 - 话题: sudo
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
d***a
发帖数: 13752
1
你的USB flash用的应该是微软的NTFS文件系统
默认配置的Mac OS X能读NTFS,但不能写
一个简单的解决办法,是把USB flash重新格式化成FAT文件系统
FAT在Windows和OS X下都是可读写的
另一个办法是装ntfs-3g软件
这个软件可以让OS X写NTFS文件系统
安装的方法,先装macport,进入管理员帐号
打入命令sudo port install ntfs-3g

the
d***a
发帖数: 13752
2
来自主题: Apple版 - macbook安装latex求教
你用Macports吗?sudo port install texlive-latex
Texlive-latex还有一些扩展包可以装, 和Linux下的Latex基本一样
gcc也是从Macports里装
命令行工具,Mac和Linux很象
Linux上常用的工具软件,Mac上基本能用port抓到
port命令相当于Redhat Linux的yum,或Ubuntu的apt-get
w********1
发帖数: 3492
3
来自主题: Apple版 - 中文新闻转贴专贴(2012-07-24)
2012-07-24 17:30:48[北京时间]
阻止Mac Pro 1,1安装Mountain Lion有两个原因:一是硬件原因,Mac Pro 1,1不
具备EFI64,而Mountain Lion不再支持32位内核和扩展。因此许多早期的Intel Mac无
法运行Mountain Lion;第二是Mountain Lion安装程序的阻拦,在安装前会一一对照过
支持名单,而不在名单内的机子一律不给安装。
这是否意味着古董机子就只能用旧版本系统呢?当然不是,大胆的用户早已突破苹
果的限制,在不支持的设备安装最新的操作系统。在这里我们要介绍Mac Pro 1,1何安
装Mountain Lion系统。
需要说明的是,在安装前我们有必要给Mac Pro升级显卡。原装的GeForce 7300 GT
显卡不支持Mountain Lion,如果强行安装,会引起内核错误。理想地,我建议用
Radeon HD 5770或其他更新的显卡。有人用PC显卡,就我个人而言,我用的是苹果官方
支持的HD 5770。下面我们看一个视频,学习怎么更换显卡。
Loading the WePlayer ... ... 阅读全帖
l***x
发帖数: 393
4
来自主题: Apple版 - Mac OS X上运行java applet
最近Apple的安全补丁2012-006删除了在浏览器中运行java applet的插件,造成有些网
页,例如一些股票走势图,无法显示。解决办法一种是去Oracle下载安装Java 7,但是
造成系统中有两个版本JRE。还有一个解决方案是运行如下命令:
sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/
JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
为了保险起见,运行前可以备份一下 /Library/Internet\ Plug-Ins/
JavaAppletPlugin.plugin
这个方法同时解决了Safari, Firefox, Chrome的问题
a***y
发帖数: 19743
5
来自主题: Apple版 - 我Fusion Drive了。
在后面加backup
然后再执行一次,选apply
要sudo
不过没有搞过命令行还是小心点吧
l******t
发帖数: 12659
6
执行 sudo kextcache -system-prelinked-kernel 的时候,出现信息:
Kernel file /mach_kernel does not contain requested arch: i386
请问是否有关系?是啥原因?
mbp mid-09, os 10.8.2
p*********e
发帖数: 32207
7
在terminal下,用sudo du --max-depth=1逐次查看各目录大小,
找到没用的东西然后直接rm -rf删
我这边是发现ipad/iphone的备份占了很大地方,删完之后就清净了
k******g
发帖数: 1540
8
there is a trick you can set orientation automatically.
type in terminal
sudo defaults write com.apple.MultitouchSupport ForceAutoOrientation YES
Turn the trackpad the way you want it then place 5 fingertips on it all at
once, with them fairly spread out like somebody's taking your fingerprints.
You DON'T have to remove the preference to switch back to normal orientation
. Just turn trackpad back around and touch 5 fingers again.
k******g
发帖数: 1540
9
there is a trick you can set orientation automatically.
type in terminal
sudo defaults write com.apple.MultitouchSupport ForceAutoOrientation YES
Turn the trackpad the way you want it then place 5 fingertips on it all at
once, with them fairly spread out like somebody's taking your fingerprints.
You DON'T have to remove the preference to switch back to normal orientation
. Just turn trackpad back around and touch 5 fingers again.
n****1
发帖数: 1136
10
来自主题: Apple版 - 苹果iphone后门被NSA广泛使用
连猪都会吃东西, 莫非会吃东西的都是猪?
我感觉原因是这样的, 公司和政府采购, 除了控制安全, 还希望最大程度控制员工
。他们会在员工手机上做各种限制,甚至加装隐藏的私有证书来截取ssl内容。
Iphone手机上用户没啥发言权, 任人宰割
Android手机root后用户权利太大, 公司和政府害怕失去控制。
至于号称root等同于被黑的, 都是没用过的外行。 root相当与linux里面的sudo, 而
不是windows的admin.
d***a
发帖数: 13752
11
来自主题: Apple版 - 苹果iphone后门被NSA广泛使用
root相当于linux里的su。su比sudo危险得多。
一知半解的普通用户,不应该让他们做这事。
n****1
发帖数: 1136
12
来自主题: Apple版 - 苹果iphone后门被NSA广泛使用
su不需要confirmation, 所有程序默认uid=0. sudo则是每次运行都需要confirm, 临时
通过setuid来改权限。
你确定你真懂android root原理?随便找个root过后的手机运行下"ps aux",把结果发上
来,看看是否所有程序都是root身份运行?
觉得你才是那个对root一知半解的人。
p***c
发帖数: 5202
13
来自主题: Apple版 - Macbook disk full??
楼上说的是个办法,可以用
cd /
sudo du -h -d 1
这样一层层来看,看哪个目录异常大,进去再执行上面那一行
ooops,没看到你没有权限,公司机器?让管理员看?
B*Z
发帖数: 7062
14
都用了 sudo rm -rf ~/.Trash
我看要去天才bar了。
S**I
发帖数: 15689
15
再试试
cd /.Trashes
sudo rm -rf *
b*****c
发帖数: 54
16
来自主题: Apple版 - yosemite的wifi问题很严重!
Try this
sudo ifconfig awdl0 down
https://medium.com/@mariociabarra/wifried-ios-8-wifi-performance-issues-
3029a164ce94

★ 发自iPhone App: ChineseWeb 7.8
z****s
发帖数: 192
17
你这个看上去像有的分区没有成功mount,而后来又mount成功了。
你如果安装了xterm的话,可以在terminal里试一试如下命令:
sudo diskutil list
它会给你硬盘的分区列表。然后再键入如下命令看看你可以看到的分区
df -h
如果你的一个分区没有被mount,可以自己把它mount出来。
s****s
发帖数: 40
18
手动释放
sudo purge
r*****8
发帖数: 2697
19
Try this in terminal:
sudo update_dyld_shared_cache -force
then reboot
d******8
发帖数: 2191
20
来自主题: BuildingWeb版 - google app engine和amazon aws做网站
最近hostgator半夜2点老抽风,mysql服务老是连接不上,登陆都登陆不了,在寻找新
的web host。所以考虑了google app engine 和 amazon ec2。
但是目前考察到的问题也很大:
google app engine的网址没法用自己的网址,域名必须是xxxx.appspot.com的,这个
有解决办法吗?我们网站有用户CMS。从传统的web host转到google app engine感觉完
全不一样,很难把网站转过来吧?
而amazon ec2做cms网站是不是有点杀鸡用牛刀?还有,我现在在ssh控制台下启动sudo
python -m SimpleHTTPService 才能访问到网站,logout ssh后就访问不到了。求解。
都不好的话,求推荐可靠稳定的host服务器。
b***i
发帖数: 3043
21
来自主题: BuildingWeb版 - google app engine和amazon aws做网站
gae可以使用自己的域名
ec2要求更高,要Linux
你网站干啥的?

sudo
解。
d******8
发帖数: 2191
22
来自主题: BuildingWeb版 - 有用过MEAN.io的吗?
居然需要装那么多文件,用gtmetrix测试下首页加载的速度,居然要0.92s,直接F等级。
用了这些命令:
mean init myApp
cd myApp
sudo npm install
bower install bootstrap
每一条命令都装了N多文件,tree|wc -l 一下居然有20969行。
顿时感觉好没有潜力的一个系统。。。。
c********1
发帖数: 421
23
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' ;
FLUSH PRIVILEGES;
exit
sudo vi /etc/mysql/my.cnf
comment out the line: bind-address = 127.0.0.1
:wq
service mysql restart
t******r
发帖数: 88
z**k
发帖数: 378
25
我用Ubuntu 10.04,因为要配置cuda,需要先退出X server。
但是我试了很多方法,都没办法exit X server。
1. 我先试了ctrl+alt+F1 ~ F7,什么反应都没有
2. ctrl+alt+backspace,倒是退出了X server,但是紧接着X server又打开了,直接
进入GUI
Login window
3. sudo /etc/init.d/gdm stop,这个倒是有反应了,结果就是黑屏,只有屏幕左上角
有个光标
在闪,什么操作都做不了,只好重启
不知道这究竟是怎么回事呢?
a*****1
发帖数: 11
26
来自主题: Database版 - MySQL起不来了。
sudo ....
a*****p
发帖数: 1285
27
来自主题: Database版 - 一个schema求教
改了,这个图如何?把时间都放到movies里面了。
projections就是感觉一个sudo entity,把movies和放映得rooms联系起来了。
c*****t
发帖数: 1879
28
来自主题: Database版 - MySQL Remote Access问题求助
# Let MySQL to listen connections from all ips (not just local host)
sudo sed -i 's/bind-address.*=.*/bind-address=0.0.0.0/' /etc/mysql/my.cnf
A******y
发帖数: 14
29
重装了系统(Ubuntu),检查了IP information和cable connection, 但是网络还是连不
上,
sudo /etc/init.d/networking restart 出现下列信息:
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth1.
现在怀疑是ethernet interface坏了,请问应该怎么检查确认?
J*******i
发帖数: 2162
30
来自主题: Hardware版 - firefox 3.5太烂了
我ubuntu ff 3.5就用的好好的,逛买买提啥问题都没有
估计是你自己的问题
安装也很容易,直接sudo apt-get install firefox-3.5就搞定
r*****d
发帖数: 922
31
来自主题: Hardware版 - 关于openwrt的一个问题
哪里能弄到openwrt上的sudo package?
谢谢
f*****Q
发帖数: 1912
32
来自主题: Hardware版 - 微软将Linux指令Sudo注册为专利
这种专利肯定是无效专利。
T*****E
发帖数: 1432
33
来自主题: Hardware版 - 微软将Linux指令Sudo注册为专利
FT,是我们所做的
要申请无效,可以找USPTO做ex parte re-examination
f*****Q
发帖数: 1912
34
来自主题: Hardware版 - 微软将Linux指令Sudo注册为专利
放心,会有这么一天的。
W*****k
发帖数: 158
35
来自主题: Hardware版 - x61的无线网卡问题
【 以下文字转载自 Linux 讨论区 】
发信人: Warrick (采蘑菇的大白兔), 信区: Linux
标 题: x61的无线网卡问题
发信站: BBS 未名空间站 (Mon Nov 16 13:45:22 2009, 美东)
装的ubuntu 9.10
结果无线网卡过热,风扇一直在转,右手掌托的部位比较烫
网上搜了一天 很多人说用命令
sudo iwconfig wlan0 power on可以稍微解决下问题
结果执行这个命令却显示
Error for wireless request "Set Power Management" (8B2C):
SET failed on device wlan0; Operation not supported
请问如何解决这个问题? 谢谢
r****e
发帖数: 804
36
来自主题: Hardware版 - x61s 安装雪豹全攻略 - 4
第四集,驱动 - part 1
这一集和下面一集是我装驱动所有经验的浓缩。看上去简单,实际上是大量耗时费力
web investig
ation, testing, re-installation的结果.
我浪费的时间就造福大家了。不要忘了发包子!
首先我们搞定wireless.
我suppose 你是atheros的wireless card, 或者你已经换上了一个。
换卡需要拆机,也不怎么复杂,为方便大家我会发一个service manual 在gmail里
你还需要一个结实的小号梅花螺丝刀。
从任务栏点applications(上面有A的蓝folder)->utilities->terminal
type:
cd /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAth
eros21.kext/Contents
sudo pico Info.plist (当然你也可以用vi了)
输入你的密码 (你在第三集里设置的)
ctrl-w 寻找IONameMatch
下面的里面应该已经
t****p
发帖数: 1703
37
来自主题: Hardware版 - new to ubuntu and help
sudo dhclient
如果wifi已经被detect了

I
wireless/
k******g
发帖数: 1540
38
请教如何拷贝remote key 到 usr/local/bin
我升级了PBO 到 Giec 最新版本,PBO 能够启动,能够Telnet ,但是遥控器不能用。
我用了很多时间都不能修复。包括尝试使用telnet 控制光标。ftp 不能用。
现在主要问题是在usr/local/bin 下面没有remote key 这个文件。我尝试拷贝一个过
去,但是不是can't open 就是 permission denied。我也尝试了mount 命令。sudo 也
不能用。
请大家帮帮忙。
w***w
发帖数: 1552
39
u-nas iv黑色版本,装个usb的wireless adapter杯具了。
新买了一个usb的无线网络适配器, 是realtek的,我按照debian上的步骤转了驱动,h
ttp://wiki.debian.org/rtl819x
中间有一步是
aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,
,') firmware-realtek wireless-tools
当时也没多想,执行完了才发现杯具了。 执行uname -r,系统从2.6.26-686变成了2.6
.32-bpo.5-686,现在系统还是可以ssh上去,路径和权限是一团混乱啊。/sbin下面的命
令都必须指定路径到/sbin/xx才会执行。ssh登陆后,用sudo 执行# aptitude update
就产生一堆错误。
E: /root/.aptitude 可读但不可写;无法写入配置文件。
W: 由于文件系统为只读,因而无法使用文件锁/var/lib/dpkg/lock
E: 无法写入 /var/cache/ap
t****p
发帖数: 1703
40
sudo su切到root下面也不行的么?

,h
-,
.6
的命
update
w***w
发帖数: 1552
41
来自主题: Hardware版 - 有家里有NAS给说说
sudo aptitude install linux-headers-2.6.26-2-686
**You should be able to use any of the listed mirrors by adding a line to yo
ur /etc/apt/sources.list like this:
deb http://security.debian.org/debian-security lenny/updates main ,
不过我的不是龙芯,是atom的
A*****s
发帖数: 13748
42
来自主题: Hardware版 - ThinkPad上怎么跑hdderase?
用linux来erase也有同样问题吧。。。
=========================================================================
http://bbs.pceva.com.cn/thread-7242-1-1.html
说明你的BIOS把你的SSD锁住了,估计是防止恶意软件擦除数据。
输入sudo hdparm -I /dev/sdx
你可以看你的security里面应该是frozen状态 。
碰到这种状况,拔下硬盘5秒再插上,重新输入命令。(热插拔,不要重启)
=========================================================================
这招在thinkpad上估计也不行,热插拔一样会导致机器重启的吧
l*********o
发帖数: 3091
43
【 以下文字转载自 Linux 讨论区 】
发信人: liangmaomao (Amy Bishop 拿不到tenure就杀人的生物AP), 信区: Linux
标 题: Ubuntu /etc/resolve.conf 总是被从写
发信站: BBS 未名空间站 (Thu Mar 15 14:14:57 2012, 美东)
自家的RT-N16 tomato openvpn设置了DNS push to client
Windows下openvpn client毫无问题。
Ubuntu10.4下 sudo openvpn -- config /etc/openvpn/client.conf
/etc/resolve.conf总是被从写,从写也就罢了,vpn能上网;
问题是摘了vpn后,也不给我自动改回来。非要手动改,否则无法解释域名。
大家linux下openvpn都用什么client程序, DNS(包括server DNS push)怎样设?
n******l
发帖数: 3427
44
来自主题: Hardware版 - pogoplug PRO 求助
按照这个link的介绍安装的
http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
执行到14步骤的时候reboot,然后就出现如下的描述
If your Pogoplug boots and the front LED blinks wildly for about 15-20
seconds and then TURNS OFF, you're in business when it comes to booting, but
there is likely something that has stopped the network. It's not a brick,
but be ready to troubleshoot.
拔下USB也不能启动了,SSH也连不上。
请教如何制作介绍上所说的,手上没有其他linux的设备了,window下需要如何操作?
Place your boot drive in another Linux computer/device and check the file
system... 阅读全帖
i**h
发帖数: 424
45
来自主题: Hardware版 - how to shutdown/restart Ubuntu?
sudo init 0
A**u
发帖数: 2458
46
来自主题: Hardware版 - how to shutdown/restart Ubuntu?
sudo reboot
l****g
发帖数: 249
47
来自主题: Hardware版 - pogoplug+linux+motion=DIY surveillance
sudo apt-get install motion
m*****k
发帖数: 58
48
来自主题: Hardware版 - Pogoplug E02: arch or debian?
管理员权限? sudo
f*****g
发帖数: 3086
49
来自主题: Hardware版 - 给玩pogo的同仁提个醒
http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
下载archlinux的tar包,
http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz
在另一个linux上执行789步,然后:
Download and extract the root filesystem tarball onto the new ext3 partition
as the root user, not just sudo. Create a file at /usr/local/mac_addr and
place in it your Pro's MAC address (its on the bottom of the unit) in the
format XX:XX:XX:XX:XX:XX. Safely umount the drive from the computer, plug it
back in to the powered-off Pogoplug, an... 阅读全帖
f*****g
发帖数: 3086
50
来自主题: Hardware版 - 给玩pogo的同仁提个醒
0. 假设你已经能在pogo上正常运行archlinux以及相关服务了,此时假设你装载
archlinux的usb为usb-1
1. 插入另一个usb储存设备,假设usb-2。对usb-2执行这里的789步,把usb-2正确格式
化(http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3
2. 下载archlinux的标准tar包,
http://archlinuxarm.org/os/ArchLinuxARM-oxnas-latest.tar.gz
然后:
extract the root filesystem tarball onto the new ext3 partition (即上面的
usb-2)as the root user, not just sudo. Create a file at /usr/local/mac_addr
and place in it your Pro's MAC address (its on the bottom of the unit) in
the format XX:X... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)