Lubuntu – making xrandr changes permanent

FROM:http://askubuntu.com/questions/63681/how-can-i-make-xrandr-customization-permanent

I got this to WORK

Modify
/etc/lightdm/lightdm.conf
to add the following options:

display-setup-script > calls your mycustomloginvideo.sh before the login screen appears

session-setup-script > calls your mycustomdesktopvideo.sh before the user desktop session starts

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
# for your login screen, e.g. LightDM (Ubuntu 11.10) or GDM (11.04 or earlier)
display-setup-script=/usr/share/mycustomloginvideo.sh
# for your desktop session
session-setup-script=/usr/share/mycustomdesktopvideo.sh

You may have “arandr” gui tool generate the above sh script, picking parameters from your current session’s X configuration.

Make sure that your shell script is executable:

chmod a+x /usr/share/mycustom*video.sh

and you can test that it works (i.e. that you don’t have any typos or configuration errors in your xrandr command) just by running it in a terminal:

/usr/share/mycustomdesktopvideo.sh

If the login script doesn’t work for any reason, your machine might not complete the boot process to the login screen. If the desktop script fails, you might not get a desktop after logging in. If you are setting an external monitor, these scripts will fail when you disconnect it, and X session will not start.

Cheers!

Installing bitmessage on linux for bootup start

http://tedjonesweb.blogspot.co.uk/2013/06/crypto-messaging-peer-to-peer-protocol.html

cd $HOME/PyBitmessage/src/ && nohup python ./bitmessagemain.py

If you want to start Bitmessage automatically when you login, make a new file into your ~/.config/autostart/ directory:
$ gedit $HOME/.config/autostart/bitmessage.desktop

[Desktop Entry]
Type=Application
Exec=nohup python /home/youruserfoler/PyBitmessage/src/bitmessagemain.py
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Bitmessage

gedit $HOME/Desktop/bitmessage.desktop

Then you should click on the new icon with the right mouse button, select "Properties", click on "Permissions" and mark "[x] Allow executing file as program".

creating rooms on bitmessage

BM-2D8LmGZGGpdzUinNV31jwDKCcLqcnKiZRF

I have discovered by adding the Bitchirp Bitmessage address to the subcriptions I can read the Chirps sent to Bitchirp.org without actually visiting the site. As such it occurs to me that it’s very easy to create new “rooms” for topics we like by chirping an address and “subscribing” via bitmessage. Thanks Bitchirp for being a great place to start. I’m going to suggest a topic that makes the world go round –#Porn s…

https://bitchirp.org/user/?u=BM-2D8LmGZGGpdzUinNV31jwDKCcLqcnKiZRF

Bitcoin HRMC, Fidor Bank AG & bitcoin.de, RIPPLE next then FOREX

There was this posting on coindesk.com the other day:

Bitcoin exchanges operating in the UK do not have to register with HM Revenue & Customs (HMRC) under money laundering regulations, the government department has revealed. 8th July 2013.

http://www.coindesk.com/hmrc-uk-bitcoin-exchanges-dont-have-to-register-under-money-laundering-regulations/

Then this posting yesterday 11th July announcing the Bitcoin.de exchange being able to work with a German Clearing Bank (Fidor Bank AG), which will then be able to fully comply with any KYC/AML requirements . This looks like it near enough caused Bitcoin to jump 10% overnight.

However it should be bourne in-mind that I believe the most single important investment money or otherwise in the Bitcoin arena is Google’s recent investment in Ripple.com or OpenCoin (the company), this is an allied trading platform with a Bitcoin API – those network if secure enough could be a competitor to all merchant services clearing, like VISA and Mastercard – hence Google’s investment.

Note that Google have invested – small change, but it’s still VERY telling.

Ripple, billed as “the world’s first open payment network”, may lack the rebel allure of Bitcoin itself, but its distributed model could patch one of Bitcoin’s chief weaknesses, namely its reliance on a few sometimes less-than-transparent exchanges. Of course, Ripple will be usable for the exchange of other currencies, too, and it arguably sits alongside other new financial technology startups such as Transferwise.

http://gigaom.com/2013/05/14/google-ventures-invests-in-opencoin-the-firm-behind-bitcoin-exchange-ripple/

RIPPLE now allows you to pay anybody in Bitcoin as of 2nd July 2013 in a way that might promote Bitcoin to be used for FOREX. Note that the first bitcoin exchange – bitstamp.net is a British company, yet unable to find a British bank to sort out payments yet… Although bitstamp.net do require all the KYC documents to open an account with them, so the exchange is already in a prime position to completely challenge mt.gox – Americans, you’ve just got to love’em.

http://www.marketwire.com/press-release/opencoin-extends-ripple-network-to-include-all-bitcoin-merchants-and-users-1807681.htm

Disclosure: The author has accounts with most of the bitcoin exchanges with KYC requirements or otherwise.

UK Police Launch Campaign To Shut Down Torrent Sites

Slashdot.org reported today on UK Police Launch Campaign To Shut Down Torrent Sites

What does this mean to me?  The politicians are yet again being lobbied about a subject they nothing about and it will actual make the prospect of investigating organised crime actually more difficult in future if FACT and the BPI continue to gain sway.

OK – so here are the FACTS according to Mark

If you are forty something, you were at school of the time of “ghetto blasters”, which commonly had a tape to tape facility were owned by half the classroom. In fact Amstrad was taken to court, and neither the shops nor Amstrad were held responsible for the crime that MIGHT be committed by that device. In exactly the same way that a torrent index site might be used to access copyrighted materials.

The fact of the matter was the tape to tape devices at the time were actually aimed, marketed and priced at people to perform illegal acts. What has changed? NOTHING.

Now going back a paragraph do you remember having a whole load of pirated albums from you mates on tape? Remember the Sony C90 cassettes? (Blue and Green) Still got them – doubt it. Why – because this generation I am describing went out and bought them all on CD? Remember Love over Gold being one of the first AAD issued CD’s?

Back to today, the generation that is torrenting movies now will have purchased their favourite DVDs or a real digital download license by the time they are forty. Why – even if they know how to obtain a copy of a compression quality ratio that is stunning, they’ll just opt to pay the £9.99 out of shear convenience, just like my peers bought CDs. Remember the tape example. Where are the tapes? Video killed the radio star but did home taping really kill music? RUBBISH.

Now lets turn our attention to the organised crime debate, if people are downloading movies and turning them back into DVDs to be sold on street markets in third world countries or Western High Streets. FACT and the BPI will never stop either. If they somehow managed to kill torrent indexes, it just means that people will obtain one legal copy and copy it – just like tape to tape recorders. However that will never happen, the current public torrent indexes will just move over to TOR or Freenet.

OK I’ll be honest here I’ve been keeping you hoodwinked all along.

This torrent malarkey has little to do with piracy as I have narrated above, it’s more about freedom of speech / free will. As Internet bandwidth flourishes from 7 mbps in the UK to say 10 -14 mbps then distributed TV using torrent starts to become a very interesting prospect. Brands will start to finance independent sitcoms/soaps/CSI/BGT/BigBrother and news exaggeration will change from the established media to independents.

Agencies don’t care about Murdock, in fact they are sick of being dictated prices to, hence the extended payment terms negotiated last week across the world. Agencies only care about their clients (brands), and wake up people, it’s all about the brand. Nothing else matters in a consumer society where a 3D printer will make anything you want. Or certainly change product manufacture dramatically over the next 10 years.

What do 3D printers need? Data files anonymously sourced? Hold on, you can make a gun with a 3D printer.

So you really want to drive this torrent “thing” underground and really make it untraceable? Yer right. 48 carat stupidity.

Now if I was cynical I’d say that this move to drive the torrent index engines underground to darknets would be an excellent way for QCHQ and the NSA to obtain more budget…

 

How to Get the Free Edition of Google Apps (One Mailbox)

http://tech.slashdot.org/story/12/12/07/1432213/google-axes-free-google-apps-for-businesses

You can use a workaround (for now) (Score:5, Informative)
by Morris Thorpe (762715) Alter Relationship on Friday December 07, @03:13PM (#42215075)

I was able to register for a single-user free account this morning by doing this.

http://www.labnol.org/internet/google-apps-free/26926/ [labnol.org]

How to Get the Free Edition of Google Apps (One Mailbox)

Alternatively, here’s a quick and simple workaround that will still let you sign-up for the free edition of Google Apps even though Google has officially retired the free edition – all you need is a free Gmail or Google account.

Go to appengine.google.com, sign-in with your Google Account, a standard account johndoe@gmail.com NOT a domain GMail account and create a new Application. You may fill in any dummy date and click the “Create Application” button.
Open the “Dashboard” and on the next screen, click the link that says “Application Settings.”
Scroll down a little (refer to the video tutorial) and choose “Add Domain” to associate a domain with your App Engine application.
That’s it. Now you should see a special link* to sign-up for the free edition of Google Apps. You may either use your existing domain or buy one through Google Apps.

[*] You have to access this link through App Engine as Google Apps checks the HTTP Referrer information before serving up the sign-up page for the free edition of Google Apps.

Bitcoin to drop at the end of 2012

It’s ineviatble that the conversion value of the Bitcoin currency will drop towards the end of 2012 with Fiat currencies.

Why, BTCFGPA and Butterfly Labs are bringing to market specialised ASIC computers just to mine Bitcoins. You connect the boxes to your standard PC, they mine quicker and consume less electricity. My “guess” is at least a quarter on Butterly’s 832MH unit – 80W. (Compared to a standard PC rig and high end video card).

Lower power consumption to mine bitcoins = lower fiat money conversion value.

Bitcoin backed by
People including so called “Bitcoin experts” write that Bitcoin is not backed by anything. This is absolute tosh. Gold and silver are backed by oil in today’s world, and Bitcoin is backed by electricity. Gold and silver has to be mined, and miners and the processes involved are paid in Fiat money which is underwritten by oil in some way. But the beauty of Bitcoin is that it is directly backed by the market price of electricity – until the 21 million coins have been produced…

Bathtub
I propose by my bi-polar nerve endings that the price curve for Bitcoin will be a bathtub curve over time.

Bitcoin v Fiat
The value of Bitcoin isn’t in a day to day spot price v a Fiat currency. The value of Bitcoin lies with what it will do to society, because of what you can do with it.

Anonymous BitTorrent Using ItsHidden VPN [Windows & Linux]

1. Run the following command in a terminal:

sudo apt-get install network-manager-pptp

2. Click on the network manager icon in the task bar and select VPN Connections and then Configure VPN. In the VPN configuration window, click Add then click Next and the second page, under Connect To, select PPTP Tunnel and then click Next.
In the Connection Tab:

a. Under Connection Name enter ItsHidden
b. Under Gateway enter vpn.itshidden.com
c. Under username and password, enter the username and pass you enter when creating a ItsHidden account
3. On the Advanced options, check the option “Use Point-to-Point Encryption (MPPE)” and select 128 bit type encryption.
4. Apply the changes and go to the network manager in the notification area and right click it, click on “VPN Connections” and choose the newly created “ItsHidden” connection -> you should now be connected to the VPN. If you have successfully connected, a small ‘lock’ icon will be displayed next to the connection icon in your notification area like in the image below:

telehash

http://www.telehash.org/

JSON+UDP+DHT=Freedom

A new wire protocol enabling applications to connect directly in a real-time and fully distributed manner, freeing them from relying on centralized datacenters

telehash == probably the most important internet protocol yet to be created

Mark Cross

Huawei E173 on Ubuntu 12.04 by Jakub Fedyczak

Huawei E173 on Ubuntu
added by Jakub Fedyczak on Monday, May 21st 2012, 21:15

I’ve been trying to get my Huawei E173 modem working on Ubuntu. I’m no Ubuntu expert and it took me half a day to get it working, so here’s what I eventually did:

Use HyperTerminal on Windows to switch device into modem mode (factory default is to make it a CD-ROM and a microSD card reader). Install all the drivers and connect to correct COM port. In my case it was COM3, but it was just my case. I’ve been trying to issued AT on all COM ports and finally I saw OK. Then I issued AT^U2DIAG=0 which also resulted in OK. If you don’t want to do this, you can try using usb_modeswitch.

On Ubuntu I’ve inserted the device, and issued lsusb:

Bus 001 Device 003: ID 12d1:1c05 Huawei Technologies Co., Ltd.

I’ve edited /etc/modules and added a line:

usbserial vendor=0x12d1 product=0x1c05

Reboot.

Configure your mobile broadband connection using gnome network manager.

Use at your own risk (especially the Windows part).

Sorting out X in “Charlie”

charlie@charliesays:~$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-0 connected 1920×1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024×768 60.0
800×600 60.3 56.2
848×480 60.0
640×480 59.9
1920x1080_60.00 60.0*
DIN disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)

Had to manually define 1920 x 1080 @ 60 Hz

cvt 1920 1020 60
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA-0 "1920x1080_60.00"
xrandr --output VGA-0 --mode "1920x1080_60.00"

Creating your own asdf+jkl@gmail.com without the “+”

Re:The answer is still keepass (Score:4, Interesting)
by omglolbah (731566) Alter Relationship on Saturday December 31, @01:56AM (#38544890)

1. Buy domain.
2. Set up *@domain to forward to your real email account, optionally apply a label (I do this with gmail labels)
3. Register with sitename@domain as email address.
4. Check real email and verify account.

Unique email for each site. No need to guess.

A bonus is that if you start getting spam you can see where it originated by what email it starts coming in on.

I noticed a year or so ago that curse got hacked as I started getting wow phising emails to the email I registered for curse with 😉
Just redirect to /dev/nul when it happens :p

Microsoft you provide me work – thank you

Set Google as default search

IE v9 shit

http://www.google.com/insidesearch/instant-about.html
http://www.google.com/insidesearch/features.html

http://www.googleguide.com/advanced_operators.html

Updates in XP – just plain FUCK OFF in XP Pro. If you run Microsoft Windows, your machine has high degree of being hit by a Zero Day Exploit, so why loose 15% of your boot up time to all the patches, that alledgely make it more secure? TLD4 – BBC Newest Adobe zero-day PDF exploit ‘scary,’ says researcher

Fuck off updates in XP Home

How to burn HP Recovery Disc without using Recovery Manager?

http://forum.notebookreview.com/hp-compaq/132849-how-burn-hp-recovery-disc-without-using-recovery-manager.html

Re: How to burn HP Recovery Disc without using Recovery Manager?
you can restore the MBR, the procedure is given below and then use the

Quote:
F11 key to restore your system completely. After that you can burn your recovery discs.

This procedure will perform a destructive restore ( delete all data on the hard drive). So make sure you backup your data before starting out.

The recovery partition is visible as

Quote:
D:
after a clean install. It may be another drive letter on your system so make sure you change it to D: . Explore this recovery partition, the files may be hidden so you may need to go to

Quote:
Tools > Folder Options > View >
, select

Quote:
show hidden files and folders
, and uncheck

Quote:
Hide Extensions for known File types
and uncheck

Quote:
Hide protected operating system files ( Recommended )
. Then you must be able to view a folder named

Quote:
miniNT
and inside this folder
Quote:
System32
.

Make sure you have two files inside the D:\miniNT\System32 folder, the first one

Quote:
MBRInst.exe
and the second one

Quote:
MBR.ini
now go to
Quote:
Start > RUN >
type
Quote:
D:\miniNT\System32\MBRInst.exe /ini D:\miniNT\System32\MBR.ini /r /q
and hit enter.

restart your system, your system will boot into recovery mode & resotre your system completely, after which you can create your recovery disks.

hope this helps

regards

Last edited by cluelessME : 08-29-2007 at 04:16 AM.

This jem is copied in case the original site goes tits up.

Leeenux v4 install issues on eee 4G surf (aka 701)

When booting off yoru USB stick it will hang at:
boot:
press the TAB key and type “live”
wait a long time
User = “eee” password is blank

hit the “install v4” icon when you see it 🙂

When Leeenux starts, it may ask you for keyring password. Enter "2", and then do the following:
1. Open up your Home Folder
2. Press CTRL-H (or click View>Show Hidden Files)
3. Find a folder called .gnome2 (it has a period at the beginning of the name) and open it by double clicking on it
4. In side of the .gnome2 folder, there is another folder called keyrings. Open it up.
5. Delete any files you find within the keyrings folder
6. Restart the computer

Do above or you will have to keep entering your keyring to get remembered WiFi to work

alt-col2 GA-8SIMLNF Packard Bell Missing Multimedia Audio Controller SOLVED

There’s been a lot of talk about this renogade OEM Gigabyte mobo – maybe too much talk.
mobo GA-8SIMLNF R2

Ordinarily the Audio_Realtek_5.10.0.5628_XPx86_A.zip driver crashes out with this dialogue box:

updatedriverforplugandplaydevices failed
-536870397

Solution.
Get hold of the R111.zip from I cannot remember through the madness of it all!
Which essentially the same stuff

Google “sis drivers windows xp 7012”

Go to the XP directory
And edit the SIS7012.inf file

At the end of the [SIS] section
add to end:
%SiS7012.DeviceDesc%=SiS7012, PCI\VEN_1039&DEV_7012&SUBSYS_200B1631

The Hardware ID key was missing so the mobo motherboard sound chip is screwy.

Job sussed – DONe

email PDF->gmail address->QUE->”label” to “Print”


Gmail Attachment Downloader Script

sudo apt-get install git
git clone http://github.com/thekindofme/gmail_attachment_downloader
cd gmail_attachment_downloader/
sudo apt-get install ruby
sudo apt-get install rubygems1.8
sudo gem install tmail
sudo apt-get install vim
vi gmail_attachment_downloader.rb

And below based on hacks.
here and here


#!/bin/bash
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
FILES=/home/wizard/printque/*.pdf

# Don’t path the rename directly – as the path may contain uppercase letters!
cd /home/wizard/printque
rename ‘y/A-Z/a-z/’ *

# shopt -s nullglob
# Took the above out on my Ubuntu – I got an error saying it was missing YMMV

for f in $FILES
do
echo “Processing $f file…”
lpr “$f”
rm “$f”
done

# Delete stray attachments which weren’t PDF files, but got downloaded anyway
rm /home/wizard/printque/*

#Make shutdown executable by any user for cron to be able to handle
sudo chmod u+s /sbin/shutdown

wizard@printer:~/gmail_attachment_downloader$ crontab -e

*/3 * * * * ruby ./gmail_attachment_downloader/gmail_attachment_downloader.rb 2>&1 > /dev/null # JOB_ID_1
01 19 * * * /sbin/shutdown -h now 2&1 > /dev/null # JOB_ID_2

What can Google do for you tommorrow?

Speculating About Gmail

Posted by michael on Monday April 05, @04:05AM
from the talk-is-cheap dept.

http://slashdot.org/articles/04/04/05/006205.shtml?tid=126&tid=95

rjelks writes “The Register is running an article about Google’s new email service that was mentioned earlier, here. The story details the new privacy concerns about Gmail’s privacy policy and Google’s tracking habits. The policy states that Google will not guarantee the deletion of emails that are archived even if you cancel your account. ‘The contents of your Gmail account also are stored and maintained on Google servers in order to provide the service. Indeed, residual copies of email may remain on our systems, even after you have deleted them from your mailbox or after the termination of your account.'” Reader cpfeifer writes “Rich Skrenta (founder of ODP, and Topix) speculates in his blog that the real product Google is creating isn’t web search or email, but a massively scalable, distributed computing platform. ‘It’s a distributed computing platform that can manage web-scale datasets on 100,000 node server clusters. It includes a petabyte, distributed, fault tolerant filesystem, distributed RPC code, probably network shared memory and process migration. And a datacenter management system which lets a handful of ops engineers effectively run 100,000 servers.’ If he’s right, the question isn’t what product will Google announce next, but what product will they not be able to announce?”

http://blog.topix.net/archives/000016.html

using unix screen examples by Steven G. Isaacson

Operation

To start the program, type screen. Screen then creates a single window with a shell in it. You now have the ability to detach and reattach, turn output logging on, etc. But mostly screen stays out of your way. You work as you normally would.

-a is the default key used to send a command to the screen window manager. To create a new window, type -a, and then c. Now you have two windows.

To switch from window to window you can type -a n, to go to the next window, -a p, to go to the previous window, or -a and the window number. For example, -a 7 would switch you to screen number 7. How do you detach? -a d, to detach. If you’re viewing screen number 7 when you detach, screen number 7 will reappear when you reattach. To reattach the next time you log in, start screen with the -r flag

Create new screen:
screen -d -R -S test

Detach:
CRTL-A d

List:
screen -ls

Kill the current window:
CRTL-A k

 

Also see

http://www.freebsddiary.org/screen.php

 

http://stackoverflow.com/questions/11092616/gnu-screen-how-can-i-create-a-screen-in-the-background-if-it-doesnt-exist

http://kb.iu.edu/data/acuy.html

screen -d -R -S test

 -d -R   Reattach a session and if necessary detach or even create it first

Options:
-4 Resolve hostnames only to IPv4 addresses.
-6 Resolve hostnames only to IPv6 addresses.
-a Force all capabilities into each window’s termcap.
-A -[r|R] Adapt all windows to the new display width & height.
-c file Read configuration file instead of ‘.screenrc’.
-d (-r) Detach the elsewhere running screen (and reattach here).
-dmS name Start as daemon: Screen session in detached mode.
-D (-r) Detach and logout remote (and reattach here).
-D -RR Do whatever is needed to get a screen session.
-e xy Change command characters.
-f Flow control on, -fn = off, -fa = auto.
-h lines Set the size of the scrollback history buffer.
-i Interrupt output sooner when flow control is on.
-l Login mode on (update /var/run/utmp), -ln = off.
-ls [match] or -list. Do nothing, just list our SockDir [on possible matches].
-L Turn on output logging.
-m ignore $STY variable, do create a new screen session.
-O Choose optimal output rather than exact vt100 emulation.
-p window Preselect the named window if it exists.
-q Quiet startup. Exits with non-zero return code if unsuccessful.
-r [session] Reattach to a detached screen process.
-R Reattach if possible, otherwise start a new session.
-s shell Shell to execute rather than $SHELL.
-S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
-t title Set title. (window’s name).
-T term Use term as $TERM for windows, rather than “screen”.
-U Tell screen to use UTF-8 encoding.
-v Print “Screen version 4.01.00devel (GNU) 2-May-06”.
-wipe [match] Do nothing, just clean up SockDir [on possible matches].
-x Attach to a not detached screen. (Multi display mode).
-X Execute <cmd> as a screen command in the specified session.

 

General commands

Note: Every screen command begins with Ctrl-a .

Ctrl-a c Create new window (shell)
Ctrl-a k Kill the current window
Ctrl-a w List all windows (the current window is marked with “*”)
Ctrl-a 0-9 Go to a window numbered 0-9
Ctrl-a n Go to the next window
Ctrl-a Ctrl-a Toggle between the current and previous window
Ctrl-a [ Start copy mode
Ctrl-a ] Paste copied text
Ctrl-a ? Help (display a list of commands)
Ctrl-a Ctrl-\ Quit screen
Ctrl-a D (Shift-d) Power detach and logout
Ctrl-a d Detach but keep shell window open

http://kb.iu.edu/data/acuy.html