Monday, January 30, 2012
Friday, January 6, 2012
pianobar
Commands for pianobar
+ love current song
– ban current song
a add music to current station
c create new station
d delete current station
e explain why this song is played
g add genre station
h song history
i print information about current song/station
j add shared station
m move song to different station
n next song
p pause/continue
q quit
r rename current station
s change station
t tired (ban song for 1 month)
u upcoming songs
x select quickmix stations
b bookmark song/artist
+ love current song
– ban current song
a add music to current station
c create new station
d delete current station
e explain why this song is played
g add genre station
h song history
i print information about current song/station
j add shared station
m move song to different station
n next song
p pause/continue
q quit
r rename current station
s change station
t tired (ban song for 1 month)
u upcoming songs
x select quickmix stations
b bookmark song/artist
Labels:
cli,
music player,
pandora
Thursday, December 15, 2011
redirect all traffic to another
I used this to make sure traffic to my old blog goes to my new blog. Placed an .htaccess file in the root directory
RewriteEngine On RewriteRule (.*) http://blog.xybrcode.com/ [L]
Thursday, December 8, 2011
ubuntu pptp vpn server
Using ubuntu 10.04
edit conf file , local ip should be the ip of the server on the local network, remote ip should be a range of ips for the pptpd server to assign to users remoting in
edit pptpd-options and put hostname of the server in the file
assign users in the file /etc/ppp/chap-secrets, passwords are cleartext in the file format:
use * for any ip address, example :
setup ip masquerading , add following line to /etc/rc.local above the exit command
uncomment the following line from /etc/sysctl.conf
open port 1723 for TCP and GRE on your firewall and reboot
sudo apt-get install pptpd |
edit conf file , local ip should be the ip of the server on the local network, remote ip should be a range of ips for the pptpd server to assign to users remoting in
sudo nano /etc/pptpd.conf |
edit pptpd-options and put hostname of the server in the file
sudo nano /etc/ppp/pptpd-options |
assign users in the file /etc/ppp/chap-secrets, passwords are cleartext in the file format:
username pptp-server-hostname password ip-address |
use * for any ip address, example :
john mypptpserver mypassword * |
setup ip masquerading , add following line to /etc/rc.local above the exit command
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERAADE |
uncomment the following line from /etc/sysctl.conf
net.ipv4.ip_forward=1 |
open port 1723 for TCP and GRE on your firewall and reboot
Thursday, October 20, 2011
increase partition size
- Boot from gparted live cd
- Extend partition with gparted
- reboot
- Login
- run
resize2fs/mountpointsize
Labels:
linux
Thursday, October 13, 2011
turn off horizontal scrolling for magic mouse
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseHorizontalScroll -bool NO
Labels:
mac,
magic mouse
Tuesday, August 30, 2011
triple boot
UPDATE: If you are using a large hdd then use this method to install REFIT
1.Download the rEFIt installer and copy the efi folder and its contents into the root directory of the OSX partition.
2. Open Terminal and run the following commands:
$ sudo bless --folder /efi/refit --file /efi/refit/refit.efi --labelfile /efi/refit/refit.vollabel --setBoot
=========================================================================
WOW that was nutz! After googling and reading for days about how this process is like "banging my head against a wall" I have to say I agree completely. It finally works though. I will try to provide as much details as I can in hopes that the next poor soul that tries to accomplish this task has an easier time of it.
MacBook Pro Mid 2009 (5,1)(i think)
First off this is what did first and it did not work...
1. Installed a fresh copy of lion 200G Partition / 1TB HDD
REBOOT
2. Bootcamped Windows 7 200G partition and installed bootcamp drivers.
REBOOT
3. Installed rEFIt
REBOOT
4. Installed xubuntu 11.04 x86, during install i created a 100G partition EXT4 (no swap, i was going to create that partition afterwards or use a swap file)
REBOOT
5. used partition tool in refit to sync boot mbr and gpt
6. selected linux in rEFIt boot menu
This is where the problem started. Windows booted...argh! An interesting note here is that rEFIt was showing a label for windows as "Boot Windows from partition 4" and for linux showing "Boot linux from HD", I was assuming rEFIt was not picking up my linux partition. After several attempts at reformatting and reinstalling i finally deleted the original partition
and
deleted the LION RECOVERY HD partition(mmmmm....)
and created a new linux partition EXT3. Previously my partitions looked as follows...
/dev/sda1 - EFI
/dev/sda2 - Lion
/dev/sda3 - Lion Recovery HD
/dev/sda4 - Win 7
/dev/sda5 - Linux
It now looks like this
/dev/sda1 - EFI
/dev/sda2 - Lion
/dev/sda3 - Linux
/dev/sda4 - Win 7
and it works perfect with the new partition and filesystem and the recovery partition gone. Also rEFIt now says "Boot linux from partition 3" like I thought it should have. I have no idea which of the changes or if all of the changes made the difference. Below is the output from the Partition Inspector that comes with rEFIt. Maybe someone can make some sense of it.
*** Report for internal hard disk ***
Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 391034639 Mac OS X HFS+
3 783190016 978502516 Basic Data
4 392304640 783190015 Basic Data
Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 391034639 af Mac OS X HFS+
3 783190016 978502516 83 Linux
4 * 392304640 783190015 07 NTFS/HPFS
MBR contents:
Boot Code: Unknown, but bootable
Partition at LBA 40:
Boot Code: None (Non-system disk message)
File System: FAT32
Listed in GPT as partition 1, type EFI System (FAT)
Partition at LBA 409640:
Boot Code: None
File System: HFS Extended (HFS+)
Listed in GPT as partition 2, type Mac OS X HFS+
Listed in MBR as partition 2, type af Mac OS X HFS+
Partition at LBA 783190016:
Boot Code: GRUB
File System: ext3
Listed in GPT as partition 3, type Basic Data
Listed in MBR as partition 3, type 83 Linux
Partition at LBA 392304640:
Boot Code: Windows BOOTMGR (Vista)
File System: NTFS
Listed in GPT as partition 4, type Basic Data
Listed in MBR as partition 4, type 07 NTFS/HPFS, active
Labels:
linux,
mac,
triple boot,
windows
Subscribe to:
Posts (Atom)
