Notes by voodoo
Displaying keyword search results 1 - 8
Created by voodoo on June 14, 2011 08:15:57
Last update: June 14, 2011 08:17:25
In below examples, the default gateway is 105.52.84.1 .
Use " netstat -rn ":
$ netstat -rn
Kernel IP routing table
Destin...
Use " route -n ":
$ route -n
Kernel IP routing table
Destinati...
Use " ip route show ":
$ ip route show
105.52.84.0/24 dev eth0 proto ...
Created by voodoo on September 18, 2010 20:56:22
Last update: September 18, 2010 20:57:25
The screen resolution of my laptop is less than that of the remote computer I'm accessing with vnc viewer. I'm not able to see the whole screen and I have to scroll a lot. TightVNC viewer offers the ability to scale the remote desktop size to fit my local screen.
RealVNC viewer (free edition) doesn't seem to have this feature.
Created by voodoo on July 15, 2010 22:57:48
Last update: July 15, 2010 22:58:37
Use -xl switch when connecting thru LAN:
rdesktop -f -xl remote_host_name
One effect of specifying LAN speed being Windows contents are displayed when they are dragged.
Full documentation:
-x <experience>
Changes default bandwidth performance behaviour for RDP5. By
default only theming is enabled, and all other options are dis-
abled (corresponding to modem (56 Kbps)). Setting experience to
b [roadband] enables menu animations and full window dragging.
Setting experience to l [an] will also enable the desktop wallpa-
per. Setting experience to m [odem] disables all (including
themes). Experience can also be a hexidecimal number containing
the flags.
Created by voodoo on February 08, 2010 04:57:49
Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh .
Open a command window, and enter (using Putty as example):
C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r...
When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 .
If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like:
Windows Registry Editor Version 5.00
[HKEY_...
Created by voodoo on December 20, 2009 04:46:36
Last update: February 08, 2010 03:49:21
Cygwin comes with openssh and X Windows. You need to select these packages from the cygwin installation screen:
openssh (Net)
X-start-menu-icons (X11, optional)
xinit (X11)
xorg-server (X11 server)
To start an X-enabled remote SSH session, you need to start the X server on the cygwin side first:
startxwin
then enter:
ssh -Y user@network-address
This allows you run X apps on cygwin, but you won't see your normal Linux desktop (gnome, KDE etc.). In order to see remote desktop, you need to run XDMCP (Display Manager Control Protocol, which isn't secure). It's a bit tricky to set up XDMCP over ssh.
Created by voodoo on February 07, 2010 04:59:36
Last update: February 07, 2010 05:01:41
From X(7) manual page : Although the layout of windows on a display is controlled by the window manager that the user is running (described below), most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window. The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters , depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively. Both types of offsets are measured from the indicated edge of...
Created by voodoo on January 26, 2010 04:41:31
Last update: January 26, 2010 04:41:31
If no packets are dropped, TCP throughput can be calculated from the TCP window size and network latency:
throughput = TCP window size / RTT (roud trip time... Assume that the TCP window size is 64KB and the RTT is 40ms, the throughput is: 65936 Bytes / 40 ms = 1.6 MBytes/s = 13 Mbits/s Note that the throughput has nothing to do with the bandwidth, which is the result of assuming that no packets are dropped, basically assuming that the bandwidth is infinite. Therefore, the bandwidth shown above is the maximum possible bandwidth given TCP window size and latency. But in reality the bandwidth is limited and throughput won't grow infinitely with the TCP window size - it can only grow to as big...
Created by voodoo on January 17, 2010 00:15:47
Last update: January 17, 2010 00:15:47
A runlevel is used to group the daemons (services) to start. For the Fedora/Redhat based Linux systems, the primary runlevels are:
runlevel 1: Single-User Mode
runlevel 2: Multi-User Mode
runlevel 3: Multi-User Mode with Networking
runlevel 5: X11 (runlevel 3 + X Window System)
The typical workstation runs in runlevel 5. Servers without X-server runs in runlevel 3.
To determine what runlevel you are using:
# /sbin/runlevel
To determine what runlevel your system will boot with:
# cat /etc/inittab | grep :initdefault:
id:5:in...
To switch runlevels (replace RUNLEVEL with appropriate number):
# /sbin/init RUNLEVEL
When you switch runlevel, be sure that you are at a text console so that you don't accidentally kill your session when X-server is killed.