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

Saturday, 20 December 2014

Distro hunt for Dell M4800

Few weeks ago i received my Dell M4800 Mobile Workstation. It's a nice machine with good config and lot of power.
My config has

Intel Core i7-4710MQ
QHD+ Screen (3200x1800)
16GB RAM
128GB SSD
750 GB 7200 RPM HDD
SmartCard Reader
FingerPrint Reader

However, before placing order with Dell i did a lot of search on google to find reviews of existing owners of M4800.
And i found that lot of users are not happy with M4800 with Linux. Few have WiFi issues, few have screen brightness issues, few have problem with sound and etc...

Even after reading about those problems i decided to go with Linux (as left Windows 3 years ago and now live with Linux for day to day use, now i use Windows only for .Net development only). 

After receiving the machine, first i tried to get my hands dirty with preinstalled Ubuntu 12.04 LTS. It is working fine and there were no such issues as i read over internet.
But Ubuntu 12.04 is quite old and also i don't like Unity. So i decided to try other distro.

I tried with following distros
Ubuntu 14.04
Kubuntu 14.04
Kali Linux  (based on Debian) with Gnome3
Kali Linux with KDE4
Arch Linux with Gnome3
Arch Linus with KDE4

Except the Arch+KDE all distro has some problems. One thing is working in a distro but not in other and vise-versa.

Here is summery of different distro evaluation on M4800.


Ubuntu 12.04 LTS
Kernel 3.5.X
Ubuntu 14.04
Kernel 3.13.X
Kubuntu 14.04
Kernel 3.13.X
Kali Linux + Gnome
Kernel 3.14.X
Kali Linux + KDE
Kernel 3.14.X
Arch + Gnome
Kernel 3.17.X
Arch + KDE
Kernel 3.17.X
Hardware






SoundWorkingWorkingWorkingWorkingWorkingWorkingWorking
WiFiWorkingWorkingWorkingWorkingWorkingWorkingWorking
WiFi Switch on/off
WiFi should auto-connect after switch off and on
WorkingWorkingWorkingWorkingWorkingWorkingWorking
BluetoothWorkingWorkingWorkingWorkingWorking
But doesn't recognize unless once turn radio (hardware wifi switch) off then on.
WorkingWorking
WebcamWorkingWorkingWorkingWorkingWorkingWorkingWorking
Fingerprint Reader(not tested)(not tested)(not tested)(not tested)(not tested)(not tested)(not tested)
Smartcard Reader(not tested)(not tested)(not tested)(not tested)(not tested)(not tested)(not tested)
Keys






BrightnessWorkingNOT WORKINGWorking
But response was slow. After pressing keys it take 1-2 sec to change brightness.
NOT WORKINGWorkingNOT WORKINGWorking
Touchpad ToggleWorkingWorkingWorkingWorkingNOT WORKINGWorkingWorking
SleepWorkingWorkingWorkingWorkingWorkingWorkingWorking
Volume ButtonsWorkingWorkingWorkingWorkingWorkingWorkingWorking
Other






Screen Lock
Password box should appear to unlock (no blank screen)
WorkingWorkingWorkingWorkingWorkingWorkingWorking
Screen Turn Off
Screen should turn on after mouse/keyboard activity
WorkingWorkingWorkingWorkingWorkingWorkingWorking
Wakeup After Sleep
Screen should turn on and Password box should appear wakeup
WorkingWorkingWorkingWorkingWorkingWorkingWorking
Virtual Terminal
Blank Screen Problem
NOT WORKINGNOT WORKINGNOT WORKINGNOT WORKINGNOT WORKINGNOT WORKINGNOT WORKING
OS StabilityGOODUNSTABLEUNSTABLEGOODGOODGOODGOOD
Here Virtual Terminal Blank Screen Problem exist on all distros. It is actually the problem with nVidia display driver and distros has nothing to do with it (i guess).

As you can see above, only two distros are working fine. One is Ubuntu 12.04 LTS that comes preinstalled, and another is Arch Linux with KDE.

After playing with both the distro i prefer Arch. I found Arch very light weight, much responsive than Ubuntu and without bloatware (that Ubuntu has like Unity).

So it is all about the distro hunt for Dell M4800. I spend many days to find a working and stable distro so i thought i should share it, it may help another M4800 owner ;)

Saturday, 8 June 2013

Listing network connections along with associated application name in conky

Conky's TCP port monitor (tcp_portmon) is quite useful to list inbound/outbound connections. You can find many examples of tcp_portmon by googling concy inbound outbound connections.

Only the problem i see with tcp_portmon is that it doesn't provide name of associated application/process using that connection.

To list application name along with connection details we can make use of netstat command with conky's texeci.

After applying it in conky, it will look similar to this

Here is how to do it
Open your .conkyrc file in text editor

gedit ~/.conkyrc

Paste following at the end of TEXT section

${color Tan2}ESTABLISHED Connections${color DarkSlateGray}${hr 2}

${offset 10}${color lightgrey}Inbound: ${color white}${tcp_portmon 1 32767 count}    ${color lightgrey}Outbound: ${color white}${tcp_portmon 32768 61000 count}${alignr}${color lightgrey}Total: ${color white}${tcp_portmon 1 65535 count}

${color slate grey}Process                 ${color slate grey}Remote Host                     ${color slate grey}L-Port ${alignr}${color slate grey}R-Port${color lightgrey}

${font Ubuntu Mono:size=8}${texeci 30 netstat -ap | grep 'ESTABLISHED' | sed -r 's|.*[0-9.]+:([0-9]*)\s*([^:]+):([a-zA-Z]+)[^/]+/([a-zA-Z0-9]*)|\4 \2 \1 \3|' | awk '{printf("%-14s %-20s %5s %7s\n",$1,$2,$3,$4)}'}

Save and close file.

Now conky will display established connections along with associated process name and refresh it every 30 seconds.

Instead of remote host and port name you can display remote IP and port number like below

Conky displaying connection list with remote IP and port

For this layout paste following in your .conkyrc files instead of above.

${color Tan2}ESTABLISHED Connections${color DarkSlateGray}${hr 2}

${offset 10}${color lightgrey}Inbound: ${color white}${tcp_portmon 1 32767 count}    ${color lightgrey}Outbound: ${color white}${tcp_portmon 32768 61000 count}${alignr}${color lightgrey}Total: ${color white}${tcp_portmon 1 65535 count}

${color slate grey}Process                 ${color slate grey}Remote IP              ${color slate grey}L-Port ${alignr}${color slate grey}R-Port${color lightgrey}

${font Ubuntu Mono:size=8}${texeci 30 netstat -anp | grep 'ESTABLISHED' | sed -r 's|.*192.[0-9.]+:([0-9]*)\s*([0-9.]+):([0-9]+)[^/]+/([a-zA-Z0-9]*)|\4 \2 \1 \3|' | awk '{printf("%-14s %-15s %5s %5s\n",$1,$2,$3,$4)}'}

Friday, 21 September 2012

Print and save PDF files in Linux

Creating PDF in Linux is quite easy. Here i am illustrating it for Ubuntu 10.04

First we need to install cups-pdf package using agt-get

sudo apt-get install cups-pdf

It will be downloaded and installed at path /usr/lib/cups/backend/cups-pdf.
A new entry 'PDF' will also be added to printers list.

Now add current user on Execution

sudo chmod +s /usr/lib/cups/backend/cups-pdf

Now we need to create a new folder 'PDF' inside home folder

sudo mkdir ~/PDF/

Reason behind this is, when you print using this PDF printer, by default the files will be saved to PDF folder under your home folder. That's why we created above. However you can change it (see below)

If you want to change that default save folder then you can do this by editing the config file :

sudo nano /etc/cups/cups-pdf.conf

Find there line with text 'Out ${HOME}/PDF' (do not include quotes)

Replace it with your desired path, like

Out ${HOME}/Documents

Now all done. Enjoy print to PDF in Linux!