-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisc.viki
More file actions
68 lines (53 loc) · 2.55 KB
/
Copy pathmisc.viki
File metadata and controls
68 lines (53 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
* DBus and konsole
From KDE 4.0, konsole using DBus in place of dcop for scripting.
open a new session(tab):
$ qdbus org.kde.konsole /Konsole org.kde.konsole.Konsole.newSession # will return the session number
send some texts to the session(tab):
$ qdbus org.kde.konsole /Sessions/${session_id} org.kde.konsole.Session.sendText "some text"
rename the session(tab):
$ qdbus org.kde.konsole /Sessions/${session_id} org.kde.konsole.Session.setTitle 0 "some text" # why there is must be a '0'??
* find out IP address from the MAC address in local net
** using 'arp-scan'
#Quote <<----
[hpt@localhost ~]$ sudo arp-scan --localnet|grep 00:1d:45:20:d5:ff
10.66.65.254 00:1d:45:20:d5:ff Cisco Systems
[hpt@localhost ~]$
----
** a specil version arping
http://freshmeat.net/projects/arping
But I failed to run it on my f11 machine after installing libnet and libpcap. It always 'Segmentation fault'
* using G3 wireless with company wired net together
Plug in wired network, and dialup, then get this route table:
#Quote <<---
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.200.1.21 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.66.64.0 0.0.0.0 255.255.254.0 U 1 0 0 eth0
0.0.0.0 10.66.65.254 0.0.0.0 UG 0 0 0 eth0
---
sudo route del default gw 10.66.65.254 # delete the default gw
sudo route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.66.65.254 # using company default gw for company network
sudo route add -net 0.0.0.0 netmask 0.0.0.0 dev ppp0 # others go through my G3 wireless
#Quote <<---
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.200.1.21 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.66.64.0 0.0.0.0 255.255.254.0 U 1 0 0 eth0
10.0.0.0 10.66.65.254 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
---
* 让应用程序不再改变系声音大小(sound volume)
现在有一个"flat volumes"功能,可以让每个应用程序改变系统的声音大小。为禁掉这一功能,可
生成一个用户配制文件:
#Quote <<---
[hpt@localhost ~]$ cat /home/hpt/.pulse/daemon.conf
flat-volumes = no
[hpt@localhost ~]$
---
相应的系统配制文件是: /etc/pulse/daemon.conf
来源:https://www.redhat.com/archives/fedora-list/2009-September/msg00540.html
* mtr - my traceroute
very cool traceroute application.