problem:
when try to execute a binary
it shows error No such file or directory
reason:
your platform is 64 bit, and try to execute a 32 bit binary
confirm:
uname -m
file [your binary path]
solution:
apt-get install ia32-libs ia32-libs-gtk
Saturday, March 23, 2013
Friday, March 22, 2013
How to Install Remote Desktop on Debian Server
su
apt-get update
apt-get upgrade
apt-get install gnome-desktop-environment
apt-get install tightvncserver
tightvncserver :1
tightvncserver -kill :1
vim ~/.vnc/xstartup
save the following to ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &
gnome-session &
restart vncserver
tightvncserver -geometry 1280x960 :1
Tuesday, January 8, 2013
debian screen command
You start screen as "screen -r"
^A ? show a help screen (display key bindings)
^A c create a new window and switch to it
^A n go to next window
^A p go to previous window
^A 0 go to window number 0
^A 1 go to window number 1
^A w show a list of windows
^A a send a Ctrl-A to current window as keyboard input
^A h write a hardcopy of current window to file
^A H begin/end logging current window to file
^A ^X lock the terminal (password protected)
^A d detach screen session from the terminal
^A DD detach screen session and log out
Monday, January 7, 2013
ImportError: No module named MySQLdb
apt-get install python-mysqldb (Linux Ubuntu, Debian)
yum install MySQL-python (Linux Fedora, CentOS)
Tuesday, January 1, 2013
jQuery comma in selector?
The second argument in the selector is a context for search. $(a,b) is the same as $(b).find(a)
Saturday, December 29, 2012
debian no sound
turns out there are a few processes locked up the sound device
lsof /dev/snd/*
to find out what those processes are, and kill -9 those processes, then the sound works again for me
Subscribe to:
Posts (Atom)