sudo add-apt-repository ppa:vincent-c/nevernote
sudo apt-get update
sudo apt-get install nevernote
Linux Tips
Thursday, March 15, 2012
Install Nevernote
Wednesday, January 4, 2012
Create a New Terminal with a Title from Shell
gnome-terminal --working-direcotry=(mydirectory) - t "MyTitle"
to make sure the title works, edit /root/.bashrc to comment out the line that sets title of a terminal
to make sure the title works, edit /root/.bashrc to comment out the line that sets title of a terminal
case "$TERM" in
xterm*|rxvt*)
#REMOVED because it makes commands to title() not work
#PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" <-- remove
;;
*)
;;
esac
Wednesday, October 19, 2011
Tuesday, October 18, 2011
Thursday, October 13, 2011
Dual Monitor Settings
Set external monitor as the primary monitor
xrandr --output VGA1 --primary
xrandr --output VGA1 --auto --pos 0x0 --output LVDS1 --auto --below VGA1
after that use the monitor settings to adjust position
going back to laptop screen only
xrandr --output VGA1 --off --output LVDS1 --auto
Given that I'm using a laptop and my laptop screen identified as LVDS1 and the external monitor as VGA1, I set up three icons that run a script, to switch between clone, dual with LVDS1 as primary, and dual with VGA1 as primary.
Using the text editor Kate I created three files with the names:
VGA1-Primary.sh
LVDS1-Primary.sh
Clone-Monitors.sh
The text contents of VGA1-Primary.sh are:
xrandr --output VGA1 --right-of LVDS1
xrandr --output VGA1 --primary
The text contents of LVDS1-Primary.sh are:
xrandr --output LVDS1 --left-of VGA1
xrandr --output LVDS1 --primary
The text contents of Clone-Monitors.sh are:
xrandr --output LVDS1 --auto --output VGA1 --auto --same-as LVDS1
xrandr --output VGA1 --primary
xrandr --output VGA1 --auto --pos 0x0 --output LVDS1 --auto --below VGA1
after that use the monitor settings to adjust position
going back to laptop screen only
xrandr --output VGA1 --off --output LVDS1 --auto
Given that I'm using a laptop and my laptop screen identified as LVDS1 and the external monitor as VGA1, I set up three icons that run a script, to switch between clone, dual with LVDS1 as primary, and dual with VGA1 as primary.
Using the text editor Kate I created three files with the names:
VGA1-Primary.sh
LVDS1-Primary.sh
Clone-Monitors.sh
The text contents of VGA1-Primary.sh are:
xrandr --output VGA1 --right-of LVDS1
xrandr --output VGA1 --primary
The text contents of LVDS1-Primary.sh are:
xrandr --output LVDS1 --left-of VGA1
xrandr --output LVDS1 --primary
The text contents of Clone-Monitors.sh are:
xrandr --output LVDS1 --auto --output VGA1 --auto --same-as LVDS1
Tuesday, October 4, 2011
enable disable touchpad
Method #1
xinput list gets the name of the touchpad... for me it's "PS/2 Generic Mouse"
then white this shell script on desktop
#!/bin/sh
DEVICE="PS/2 Generic Mouse"
if [ `xinput list-props "$DEVICE" |awk '/Device Enabled/ { print $4}'` -eq 0 ]; then
xinput --set-prop "$DEVICE" "Device Enabled" 1
else
xinput --set-prop "$DEVICE" "Device Enabled" 0
fi
Method #2
disable: modprobe -r psmouse
enable: modprobe psmouse
xinput list gets the name of the touchpad... for me it's "PS/2 Generic Mouse"
then white this shell script on desktop
#!/bin/sh
DEVICE="PS/2 Generic Mouse"
if [ `xinput list-props "$DEVICE" |awk '/Device Enabled/ { print $4}'` -eq 0 ]; then
xinput --set-prop "$DEVICE" "Device Enabled" 1
else
xinput --set-prop "$DEVICE" "Device Enabled" 0
fi
Method #2
disable: modprobe -r psmouse
enable: modprobe psmouse
Wednesday, April 6, 2011
Subscribe to:
Posts (Atom)