Showing posts with label How To Config. Show all posts
Showing posts with label How To Config. Show all posts

Sunday, October 10, 2010

Ubuntu 10.10 Path To Address Bar In Text Mode.

Maybe I'm old school but I prefer the location bar to display the path in text rather than in buttons. If your like me than just throw the following code into Terminal.

gconftool-2 --type=Boolean --set /apps/nautilus/preferences/always_use_location_entry true

The revert back to Display location in button format do.

gconftool-2 --type=Boolean --set /apps/nautilus/preferences/always_use_location_entry false

And if you hadn't already done so: Right click add open Terminal in current Directory option.

sudo apt-get install nautilus-open-terminal

Saturday, October 9, 2010

Ubuntu 10.10 Launcher and Bash Insert How2's

Basically this area is a how to accomplish certain tasks dealing with the Launcher and within Scripts it's self. This area will be the main source area in which such items will appear. This area will be updated periodically.



Launcher:
 
gnome-terminal --geometry  90x24+180+120 -e "/Directory/Script.sh"
file:/// = open root directory
sh -c 'smplayer /tmp/Fl*' = play 1st flash in smplayer
gnome-terminal --execute bash -c "/Path/Script.sh ; bash"

Script:

setterm -cursor off (on)
echo -en '\E[34;01m'"\033[1mPRESS\E[32;01m ENTER\E[34;01m TO QUIT\033[0m" 
echo -en "\033[s\e[1;34m Rem. Location and Blue "
echo -en "\033[u\033[0m" = Return to Location

Saturday, October 2, 2010

Ubuntu 10.10 Customizing The Terminal

I Don't know about you, but when I open Terminal and see User@User:~/$ I wondered if I could change this, you can. Located in the Home directory there is a file named .bashrc when the show all options is checked.

Just copy and paste the following into Terminal to give you a good idea of how you can alter the Code to your own liking.

PS1='${U}\[\033[01;34m\]Anything-You-Want\[\033[01;32m\]: \[\033[01;32m\]\w\[\033[01;35m\] $\[\033[00m\] '

Don't worry this command is only temporary, you need to edit the .bashrc file in order for it to be permanent. 

Note: Be sure to backup the old file and check that a long paste command stays within it's bounds and works properly If your planning to edit .bashrc 

You can copy and paste this one if you like:

./rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "LNX 10,0,42,34" -W "http://media.mtvnservices.com/player/release/?v=4.2.2-8" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.colbertnation.com/full-episodes/thu-january-14-2010-kathleen-sebelius" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/colbert/season_06/episode_008/cr_06008_act1_768x432_1720.mp4" -o output.flv

Saturday, September 25, 2010

Ubuntu 10.10 Stop Wireless AutoConnect@Startup.

I don't know about you but I hate when I boot into Ubuntu 10.10 and it wants to connect to everyone. I'm hard wired and currently working on getting injection to work properly on the Ubuntu side for my wireless, any way this little bash script is useful.

sudo chmod 755 /path/to/sh.script 

throw it into startup applications.

#!/bin/bash

dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set string:org.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:false

Note: This only applies to having your wireless card attached during startup.