Flashing BIOS (Acer Aspire 2920z)

A few weeks ago my precious Acer Aspire 2920z started misbehaving. The symptoms: Power and battery leds flashing as soon as I plug it in. Automatic power on as soon as I plug it in. Screen backlight doesn't go on and i can see it gets through the BIOS splash screen and then nothing. On battery exactly the same results, except that this time it waits for you to push the power button to start.

Changing the default browser in Thunderbird

If you are unable to launch Firefox from URL links in a Thunderbird mail message, or if you want to change the browser that is launched, add the following lines to the user.js file, located in your Thunderbird profile folder (you may need to create the user.js file). Change the path of the Firefox executable, if yours is not /usr/bin/firefox. user_pref("network.protocol-handler.app.http", "/usr/bin/firefox"); user_pref("network.protocol-handler.app.https", "/usr/bin/firefox"); user_pref("network.protocol-handler.app.ftp", "/usr/bin/firefox"); Note: You can also use about:config to set these preferences.

How to create local git repositories

Create the repo directory (the ‘.’ prefix is to make it hidden) mkdir .myrepo.git Go inside the directory cd .myrepo.git Initialize the git repo git init --bare Our repo is now ready to clone: git clone /path/to/.myrepo.git where_to_clone NOTE: the first push must be git push origin master And now you can work from that directory as usual ;)  

Changing user id in linux

As a different user execute usermod -u username find / -user ; -exec chown -h ; {} \; example: usermod -u 2179 user1 find / -user 1000 -exec chown -h 2179 {} \;

Mounting remote folders with sshfs

This tutorial will show you how to mount a remote folder, that you can access through sftp, on your local filesystem. First you will need to set up your ssh connection to work passwordless. Read this if you don’t know how. Install sshfs to your system and add your user to the fuse group. sudo apt-get install sshfs sudo adduser $USER fuse Open /etc/fstab and append the following line (yes it is oneline)

How to use your Google OpenID on sites supporting OpenID

Simply typehttps://www.google.com/accounts/o8/id as your OpenID and it will do the trick ;)

SSH login without password

Open your favorite terminal emulator and type ssh-keygen -t dsa (simply enter on whatever it asks you) try ssh-copy-id -i ~/.ssh/id_dsa.pub [email protected] if it fails (you don’t have ssh-copy-id) do cat ~/.ssh/id_dsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' give your password and you are ready to go try: ssh [email protected] it should log you in without asking for a password

Synchronizing iphone on linux

Required packages: libgpod4, gtkpod, ifuse, usbmuxd Steps: After having installed the above packages sudo mkdir /media/iPhone (you can choose whatever location you desire) sudo chown `whoami` /media/iPhone ifuse /media/iPhone (this will mount your iphone on /media/iPhone) mkdir -p /media/iPhone/iTunes_Control/Device sudo lsusb -v | grep iSerial this will output like something this: iSerial 1 0000:00:12.2 iSerial 1 0000:00:13.2 iSerial 3 8372189bcafb324324eafbs8432b4235b32130537 iSerial 1 0000:00:12.0 iSerial 0 iSerial 1 0000:00:12.

Connect to UCNET over vpn on ubuntu

Go to System->Administration->Synaptic Package Manager Search for pptp and install pptp-linux and network-manager-pptp click the network manager and go to VPN Connections->Configure VPN… Connection name: whatever you like Gateway: User name: [email protected] Password: yourPass now click advanced… and check Use point-to-point encryption (MPPE) ok->ok->close you should now be able to connect using the ucnet network and then clicking network manager’s icon and go to VPN Connections->the name you chose

Connecting through gate1.csd.uoc.gr and gate2.csd.uoc.gr

Απλό SSH: ssh gate1.csd.uoc.g​r Αφού εισάγετε των κωδικό σας και εμφανιστεί το % ssh milo θα σας τυπώσει το παρακάτω μήνυμα The authe​nticity of host ‘milo.csd.uoc.gr (’ can’t be established. RSA key fingerprint is 5a:37:48:87:3a:d3:37:4e:34:15:4b:d2:3f:07:bc:aa. Are you sure you want to continue connecting (yes/no)? Γράφεται yes Εισάγεται τον κωδικό σας και είστε έτοιμοι Απλό SSH με χρήση enable: ssh gate1.csd.uoc.gr