Tuesday, August 3, 2010
wget stuff
with tsocks
Add this to /etc/tsocks.conf:
server = 127.0.0.1
server_type = 5
server_port = 9999
in a separate terminal run:
ssh -f -N -L local_dynamic_port:localhost:source_port username@ip_remote_host
remove any proxy cmds from ~/.wgetrc
run 'tsocks wget REMOTEURL'
Thursday, July 29, 2010
translate stuff
use it with your cell.phone... it works with gprs enabled
no need dictionary on the hand
/etc/fstab
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=0f7470af-a199-47b1-a3d8-4f93f1e56933 / ext4 errors=remount-ro 0 1
LABEL=storage /var ext4 defaults 0 2
/var/tmp /tmp none bind 0 0
/var/private /home none bind 0 0
/var/local/usr /usr none bind 0 0
# /windows was on /dev/sda5 during installation
UUID=570D2BBC07FEB79C /windows ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# swap was on /dev/sda6 during installation
UUID=16a56377-7bfe-4d7f-a64f-3e203dba3538 none swap sw 0 0
/dev/sdc3 /media/doc fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
Tuesday, July 27, 2010
virtualbox stuff
ifconfig eth0 0.0.0.0 up && brctl addbr br0 && brctl addif br0 eth0 && ifconfig br0 10.151.35.203 netmask 255.255.255.0 up && tunctl -t tap0 -u python && brctl addif br0 tap0
Eg: (works)
sudo ifconfig eth0 0.0.0.0 up && sudo brctl addbr br0 && sudo brctl addif br0 eth0 && sudo ifconfig br0 10.151.35.203 netmask 255.255.255.0 up && sudo tunctl -t tap0 -u python && sudo brctl addif br0 tap0 && route add default gw 10.151.35.1
wget stuff
#ftp_proxy = http://10.126.12.37:9999/
#http_proxy = http://10.126.12.27:9999/
#ftp_proxy = http://10.126.12.27:9999/
proxy-password=topsecret
proxy-user=princeofun@chem.its.ac.id
http_proxy = http://202.46.129.10:8080/
ftp_proxy = http://202.46.129.10:8080/
audio stuff
ubuntu@ubuntu:~$ wget -O alsa-info.sh http://
--2009-11-25 14:15:37-- http://
Connecting to 212.20.107.51:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://
--2009-11-25 14:15:38-- http://
Resolving git.alsa-
Reusing existing connection to 212.20.107.51:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `alsa-info.sh'
[ <=> ] 26,584 69.6K/s in 0.4s
2009-11-25 14:15:38 (69.6 KB/s) - `alsa-info.sh' saved [26584]
ubuntu@ubuntu:~$ bash alsa-info.sh --pastebin
ALSA Information Script v 0.4.58
-------
This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.
then
vi /etc/modprobe.d/alsa-base.conf
add this line to the file above
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=hp-dv5
options snd-hda-intel enable_msi=1
source:
http://ubuntuforums.org/showthread.php?t=1341751&highlight=HP+G71+Sound+Problem
it works guyzgtkhtml2_2.25.3-3ubuntu1_i386.deb (thank you Savvas radevick for download link)
1. sudo apt-get install dctrl-tools
2. sudo grep-aptavail -F"Depends" -F"Recommends" -F"Suggests" -sPackage python-gtkhtml2
3. sudo dpkg -i python-
4. sudo apt-get install -f
5. sudo apt-get install gnochm
then gnochm works
archmage convert from chm to html
chmsee as alternative to gnochm