Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

2009/11/06

Switch between laptop LCD and external monitor in Ubuntu 9.10 (Karmic)

It is easy to switch display modes through system/preferences/display, but I wanted to make it even faster with keyboard shortcuts. It also gives you ability to force resolutions and relative display positions when using both displays at the same time.

Use XRANDR in the command prompt to find out names of connected displays.  In my case VGA1 = external monitor and LVDS1 = laptop LCD.

$ xrandr

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192

VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm

   1280x1024      60.0*+   75.0 

   1152x864       75.0 

   1024x768       75.1     70.1     60.0 

   832x624        74.6 

   800x600        72.2     75.0     60.3     56.2 

   640x480        72.8     75.0     66.7     60.0 

   720x400        70.1 

LVDS1 connected (normal left inverted right x axis y axis)

   1280x800       60.0 +

   1024x768       85.0     75.0     70.1     60.0 

   832x624        74.6 

   800x600        85.1     72.2     75.0     60.3     56.2 

   640x480        85.0     72.8     75.0     59.9 

   720x400        85.0 

   640x400        85.1 

   640x350        85.1 

HDMI1 disconnected (normal left inverted right x axis y axis)

DP1 disconnected (normal left inverted right x axis y axis)

DP2 disconnected (normal left inverted right x axis y axis)

go to System/Preferences/Keyboard shortcuts and add

WIN+F5 use only laptop LCD

xrandr --output VGA1 --off --output LVDS1 --auto

WIN+F6 use only external monitor

xrandr --output LVDS1 --off --output VGA1 --auto

WIN+F7 use both (laptop on the left)

xrandr --output LVDS1 --auto --left-of VGA1 --auto

WIN+F8 use both (laptop above)

xrandr --output LVDS1 --auto --above VGA1 --auto

2009/11/02

(Virus-) Free gaming under Wine in Linux

image

In Windows world, you can play any game for free, but it usually comes with some payload from virus writers. Having realized that, I made it a rule to only play games that I purchased legally. Then, yesterday, I found some of those old Windows games archives. Don’t know why I have not deleted those virus-ridden wares long time ago.

I have already seen that many games work in Linux under Wine, and then I thought, why not try these ones, because they can not infect my Ubuntu anyway. And, voila! Both franchises of Bejeweled (2 and Twist) work in HD/3D accelerated, and they are “free”. True, they try to propagate on the game exit, and (moment of glory) simply error out in wine. Seems, that I will never ever have to pay for Windows games that do not use intensive 3D graphics or online authorization.

In search of the holy grail of home servers

image

ATM my home server runs Windows 7 Ultimate (trial mode till end of December) and I am researching free alternatives like freenas, openfiler, ubuntuserver, freebsd. Need this machine to support administration via web gui and provide following services for me

  1. file sharing via SMB/Samba
  2. torrenting with webgui
  3. http web server
  4. webdav
  5. vpn
  6. upnp/dlna media serving to multiple upnp/dlna players simultaneously
  7. continuous data backup (windows live sync style, propagating changes between machines immediately, rather than overnight)
  8. advanced disk/RAID management, described below.
  9. seems that vitrtualisation is high on my list too.

Found this thread discussing freenas and drobo functionality, and thought that this post decsribes my needs too.

I'm also looking for the holy grail of RAID solutions and really hope someone can come up with or find something. I want the following features:

REQUIRED:
- Redundancy, allowing for at least 1 drive failure
- Mix and match drive sizes WITHOUT being limited by the smallest drive (and thus wasting space)
- Ability to add drives to increase capacity
- Ability to replace drives and increase capacity
- NAS functionality, accessible via a Windows share
- Ability to create multiple partitions, with respective shares (or one large partition with multiple shares mapped to folders on the NAS? Who really cares about the "internal" file structure..)

PREFERRED:
- Performance that isn't terrible - In my case, fast enough to steam 1080P over ethernet
- Minimal data capacity loss due to parity (< 50% - Else I'd just mirror.)
- "NTFS" Volumes larger than 2TB (Not sure if this is possible via a share.. perhaps "Emulate" NTFS and actually store on a file system with larger volume capacities to achieve this? I could care less if Windows reports my remaining space correctly, as long as the NAS would.)
- Software-based, so I can also use the box for other purposes.

I already run freenas in virtualbox on my server with bridged network interface on my server, and it appears as separate machine with web gui on my network. I already see some of the drawbacks of freenas, like no webdav, vpn, virtualisation (the kind that allows me to test freenas in VM like I do it now).

Downloading freebsd, openfiler and ubuntu server to install as VMs too and give ‘em a try this month.

2009/10/27

Wake Ubuntu with USB keyboard/mouse

I have Logitech DiNovo USB Bluetooth Keyboard. To make it wake your computer please follow this thread . Worked for me.

Unfortunately, it doesn't work through hub. In that case, the whole hub is either in sleep mode, or it awake all time and prevents my PC from going into sleep. Had to connect this keyboard directly to PC then. Strangely, the same keyboard woke Windows 7 even via hub.
Reblog this post [with Zemanta]

2009/10/26

Windows 7 Home Premium upgrade in Latvia

So, Windows 7 is here. Since trying W7 beta in the beginning of 2009, I knew that this was the first OS that I’ll upgrade my home computers to and will be willing to pay for it. I will need several copies for my home:

1. gaming/multimedia PC – currently runs W7 RC. It absolutely needs a Windows license, because I use it to for playing games, and Linux just can’t compete here. Will update it to Windows 7 Home Premium (which has all I need, including Windows Media Center).

2. home server- has Ubuntu and W7 trials at the moment. I can use it in this mode for another 100 days. It is now fully configured to provide the functionality I need – filesharing, utorrent, orb, wuala, https web server, webdav and vpn. In the upcoming 3 months I will try get same functionality (except orb) under Ubuntu. If that works, fine. Otherwise, will upgrade to W7 too. Home Premium does not support Remote Desktop server, but I can manage with VNC I think.

3. 2 laptops – running W7 trials atm, need to upgrade.

image

So, I am going to buy 3-4 upgrade licenses. Today, I checked pricing and availability of Windows 7 here in Riga, Latvia. Unfortunately, there is no Family Pack available (some people say it might appear after Oct, 31st, when Latvian language Windows is promised). But, price for Home Premium OEM upgrade is quite good ($70 or 50 EUR). Buying Family pack of 3 licenses at amazon UK, would cost the same after shipment. I think I will rather buy HP OEM upgrades here.

I do not have that many Vista or XP licenses (basically all my PC were self made, and laptops came with Linux), but will try to find some old/written-off licenses from sysadmin friends. I know that OEM will work only with one machine, but Retail copy is almost 4 times more expensive (180 EUR) and for that money, I can buy new OEM upgrades later if needed.

I checked to computer shops today and in both, was asked to prove that I have a copy of Windows to upgrade from. Windows label on the bottom of laptop is enough of the proof they said. Interesting, can I show the same laptop in various shops to buy 3-4 upgrade licenses? I think I can.

SSL, certificates, VPN and WebDAV under Windows 7

Under Windows 7 (and Vista too, I think) WebDAV and VPN fail if you use a self-signed (and therefore, untrusted) server certificate. Too bad that error messages are cryptic, and talk about failure to establish connection, or something like it, but never complains about SSL cert. Hmm. If you try to access such server with IE then (unlike Firefox) there is no way to turn off warnings. Also, if you try to play media from such website, IE and Firefox  will launch associated media player (WMP in my case), which will also fail to connect to net resource to play it. Long story, short, kids – use trusted certificate if you need to use SSL in Windows.

And the good news is that now there is a provider of free SSL certificates (really free, not a 30-day trial as some advertise), who is also included into default Windows Certificate storage as a Certified Root Authority. This is Free SSL service from Startcom. With their cert for my server, WebDAV and VPN began to work.

 image

The only fly in the ointment – Windows 7 implementation of WebDAV is buggy and slow and compared to Ubuntu.

2009/05/05

Dual core Atom based home server

20090501074

Here we go, the small box based on Dual Core Atom 330 with total consumption around 50W replacing a 150W old Pentium 4 tower. It used to be around 35C in my wardrobe, now we are back to silent operation and normal room temperature. As I mentioned before, I have there 1TB 3.5” drive mostly idle 95% of the time and 500GB 2.5” laptop hard drive for 24*7 torrents.

And I am using W7 x64 build 7100 (RC) with it. I tried Home Server 2008 R2, Ubuntu 904, FreeNAS. I believe that W7 beta is so far the best value proposition, as it is very stable, versatile and free till the June, 2010.

2009/04/25

What’s best for your netbook – Ubuntu, Moblin, Solaris or Windows?

During last week, expecting new Ubuntu 904 to appear shortly, I cleared the partition where my Ubuntu 810 used to reside, and played a bit with various alternatives. I installed and tried in quick succession OpenSolaris 906, Ubuntu low power MID edition, Ubuntu netbook edition, Moblin Alpha 2.

image

Disclaimer! This is a rant that do not in any way intend to claim to be the ultimate truth. I am only using Linux for half a year. While I feel comfortable digging through forums to enable support for various network and graphics hardware when I have free time to do this, I feel that at the moments it is not worth it. E.g. spending couple of nights to get Linux drivers working, costs me more than buying a Windows license. Having said that, I still enjoy Linux in a freaky kind of the way, treating it as a brain muscle stretching Lego for adults, and enjoying the process whenever time allows it.

OpenSolaris is interesting alternative to other Linux distributions, but not for a netbook. While I spent couple of days last year customizing Ubuntu 810 to work with all my hardware in eeepc 1000h. I do not feel like I want to spend such time again, since Ubuntu 904 supports all of it out-of-the-box. And I do not feel like I need ZFS on netbook. Its benefits are in ease of use of multi-disk storage, and all netbooks have only one disk.

Various Ubuntu derivatives – Netbook edition and lowpower MID edition. Netbook edition could be useful for touch enabled netbooks. Larger icons that make it easier to navigate with big fat fingertips. You do not need it on non-touch device. As to the the low-power MID edition - I had problems using it. It has increased fonts and icons, and after that, does not fit 1024x600. I wonder what kind of display they had in mind developing it.

Ubuntu 904. Loads quite fast (I use new ext4 file system) and supports all hardware features of eeepc 1000h. Compiz is still the best eyecandy you can get. Recommended.

Moblin – still in a hardcore alpha stage. Promising. Not recommended.

Windows 7 – RC (builds 7077 and 7100) are very stable. If you want to do any light gaming, or connect with Microsoft exchange or some other MS only corporate services,  or comfortably play 720p videos (1080p still out of question) then you have to get Windows 7.

Conclusion – for web browsing and document editing, watching movies and taking notes, ease of setup and use – Ubuntu 904 finally matches Windows. I like eye candy of Ubuntu more, but Windows still feels speedier to use. I am going to multiboot Ubuntu 904, Windows 7, and OSX on my laptop.

2008/12/08

Adding torrents to utorrent WebUI via bookmarklet

Background
I have utorrent running on my home server (Vista Ultimate) 24hrs*7day a week and have a variety of methods for connecting to it.

1) Remote Desktop Connection - this microsoft client is available for Linux (Ubuntu 8.10 in my case), OS X (Leopard) and all sorts of Windows.
2) WebUI works from firefox (and I think IE7/8 too) on any platform
3) I also use utorrent mobile java program on my Nokia N82 to connect from anywhere via GPRS to manage bandwidth consumption (pause all, resume all) and specific torrents (pause, stop, resume, remove torrent (and data)).

Until now, I mostly used firefox to find a needed .torrent, download it to my desktop, go into my webui page in firefox and upload .torrent file manually. Now I found a new and a very comfortable bookmarklet, that uses javascript to inject webui command into all .torrent links on a webpage. 

To use it, create a bookmark with any name and fill its URL with the code from utorrent forums
You'll need to edit the code by changing to your host and port (e.g. "mydomain.dyndns.org:8080"). If you don't want to login each time, you can even add your login information (e.g. "username:password@mydomain.dyndns.org:8080").

Now, whenever you are on a webpage containing some .torrent links, click your bookmark, then click the .torrent link that you want. It will automatically (in 4 seconds) direct you to your webui where you will see new .torrent added to your list.