Re: About to format the whole laptop, need some partitioning advice.

2014-02-08 Thread Anubhav Yadav
 What happens if you post the laptop, then engage the hard drive after you
 boot into a Linux live usb?

You mean to say, I should remove my hdd, boot my laptop using a usb,
and then connect the hdd live into the laptop?

Can it further damage the hdd? I should give this a try!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AHiwSNCYBRz9ogiTpW4GJ_oaC45QM2545O=pdofams...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-08 Thread Anubhav Yadav
 YES!

 And, damage the motherboard.

 NO!

I was waiting for someone to reply. Thanks!
Now, If I remove my hdd and plug it in the dell
laptop and then boot the laptop? Can I try that?
And then maybe connect a live usb to that?
Will it work?

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9aecxhwvpm+s9yec65qgrgjnuyvyy7m4u2vogkiu88h...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-09 Thread Anubhav Yadav
 Understand that if the HDD has bad electronics, anything you plug it into
 could be damaged.

 Do you have an anti-static wrist strap and spare anti-static bags?

No, But I got myself a meeting with my friend who runs a laptop repairing shop,
who is willing to give me access to his hdd casing.
I will take my girlfriend's dell laptop, I have already installed debian in it.

Hopefully I manage to get the hdd repartitioned. Will keep everyone posted.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9agy6f3kp9uyy8wtsrwxdmdt2kfatkzm1q6pe4peyis...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-09 Thread Anubhav Yadav
 Have you checked the OP's hard drive and friend's laptop for SATA hot-plug
 interoperability specification compliance?

Although I am a CS student, I should better wait, and not put my friend's hdd
in jeopardy. I will report what happens when I get my hands on the
casing and connect
the broken hdd to a debian box.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AH-d2WMh9Yc=-6suYSsprm-=yzwocgdy8ttycpcx_9...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-10 Thread Anubhav Yadav
Hello everyone, I have got some good news.
The hdd is now back from the dead,alive and working well.

I went to my friend who had that casing. He attached my hdd to
his windows 7 machine and as usual, it didn't show up.

So I had a debian laptop with me , and I connected the hdd to that
laptop and viola, dmseg showed this

 [  101.317618] Initializing USB Mass Storage driver...
 [  101.317784] scsi6 : usb-storage 2-1.2:1.0
 [  101.317865] usbcore: registered new interface driver usb-storage
 [  101.317867] USB Mass Storage support registered.
 [  102.316522] scsi 6:0:0:0: Direct-AccessMass  Storage Device
 PQ: 0 ANSI: 0
 [  102.318131] sd 6:0:0:0: Attached scsi generic sg2 type 0
 [  102.318814] sd 6:0:0:0: [sdb] 1465149166 512-byte logical blocks: (750 
 GB/698 GiB)
 [  102.319444] sd 6:0:0:0: [sdb] Write Protect is off
 [  102.319459] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
 [  102.320084] sd 6:0:0:0: [sdb] No Caching mode page present
 [  102.320091] sd 6:0:0:0: [sdb] Assuming drive cache: write through
 [  102.322308] sd 6:0:0:0: [sdb] No Caching mode page present
 [  102.322316] sd 6:0:0:0: [sdb] Assuming drive cache: write through
 [  102.404425]  sdb: sdb1 sdb2 sdb3  sdb5 sdb6 sdb7 sdb8 sdb9 sdb10 sdb11 
 sdb12 sdb13 sdb14 sdb15 sdb16 sdb17 sdb18 sdb19 sdb20 sdb21 sdb22 sdb23 sdb24 
 sdb25 sdb26 sdb27 sdb28 sdb29 sdb30 sdb31 sdb32 sdb33 sdb34 sdb35 sdb36 sdb37 
 sdb38 sdb39 sdb40 sdb41 sdb42 sdb43 sdb44 sdb45 sdb46 sdb47 sdb48 sdb49 sdb50 
 sdb51 sdb52 sdb53 sdb54 sdb55 sdb56 sdb57 sdb58 sdb59 sdb60 sdb61 sdb62 sdb63 
 sdb64 sdb65 sdb66 sdb67 sdb68 sdb69 sdb70 sdb71 sdb72 sdb73 sdb74 sdb75 sdb76 
 sdb77 sdb78 sdb79 sdb80 sdb81 sdb82 sdb83 sdb84 sdb85 sdb86 sdb87 sdb88 sdb89 
 sdb90 sdb91 sdb92 sdb93 sdb94 sdb95 sdb96 sdb97 sdb98 sdb99 sdb100 sdb101 
 sdb102 sdb103 sdb104 sdb105 sdb106 sdb107 sdb108 sdb109 sdb110 sdb111 sdb112 
 sdb113 sdb114 sdb115 sdb116 sdb117 sdb118 sdb119 sdb120 sdb121 sdb122 sdb123 
 sdb124 sdb125 sdb126 sdb127 sdb128 sdb129 sdb130 sdb131 sdb132 sdb133 sdb134 
 sdb135 sdb136 sdb137 sdb138 sdb139 sdb140 sdb141 sdb142 sdb143 sdb144 sdb145 
 sdb146 sdb147 sdb148 sdb149 sdb150 sdb151 sdb152 sdb153 sdb154 sdb155 sdb156 
 sdb157 sdb158 sdb159 sdb160 sdb16

So I fired up gparted, and it showed my 698 GB hdd, without a GPT.
So I created a GPT,and have now installed Windows 7, on a 80 GB partition.

I haven't run any tests on the hdd as such, it seem to work nice.
Please suggests some tests I could do using standard linux tools, if possible
It will help us benchmark the hdd!

Windows was very bad again and it created two primary partitions,one 79 GB
for the windows, and the other 86 mb for bootloader.

So tomorrow, I will be installing debian on the remaining space.

Now my question is, What should I choose? Logical volume? or Primary Volume?
I think I cannot create more than 4 primary volumes on a hdd, and
since two are already
occupied, I should create
/home, /, /usr and /var all logical volumes. (Choice of partitions on
the basis of discussions above)

Will choosing logical volumes harm any performance on the hdd?

I have also decided to choose xfce as my primary desktop,
unless I get more knowledgeable in using tiling window managers.

Apart from all that I would like to sincerely thank each and everyone of
you, I never felt that I was alone, always cheered up by you guys.
No wonder hdd are cheap in some countries say 100-150 $, but here
in this country, I just could not have afforded an hdd without getting
some credit from others.

So you guys do not know how much happy I am right now, and how much
relieved I am feeling now! Thanks a ton for my support. I can setup my debian
box now and prepare for gsoc! :)


 Do you have a live CD/DVD/USB/SD? You might ask your friend to let you
 download Knoppix, for instance, and burn it to a CD.


 If it boots the live/install image, power back down the proper way and
 attach the hard disk that is being recalcitrant. Then watch it like a
 hawk while it boots, to be sure you got the boot priorities in the
 BIOS right.

 BIOSses can be recalcitrant, too. It might take several tries to get
 the priorities right.

Thanks Joel, I had never heard of this tool, but luckily for me, the situation
of my hardisk was not so bad,

But I really appreciate the time and effort you guys take to reply to me.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9agytds97um9joe6achrccnm13curf_ezzhpparxkaa...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-10 Thread Anubhav Yadav
From the three possible choice you have enlisted me, I think lvm seems
to be the best option for me, '
so that I can give very little allocation to /var or /temp, and I can
later expand these logical volumes whenever
required?

A couple of questions:

1) Suppose I give more allocation to /var and later find out that I
require more space for /home partition,
can I shrink my /temp partition and increase my /home partition?

2) I need to find how to increase the partitions in LVM, can they be
easily done using gparted?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9ahq1punggamhj2gnndwm3e3xqf5mpmok1oxigr6f4a...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-10 Thread Anubhav Yadav
I am reading a lot on LVM, and it seems that I have a small doubt. I
found this on tldp HOWTO on LVM:

 root on LVM requires an initrd image that activates the root LV. If a kernel 
 is upgraded without building the necessary initrd image, that kernel will be 
 unbootable. Newer distributions support lvm in their mkinitrd scripts as well 
 as their packaged initrd images, so this becomes less of an issue over time.

I am not able to understand this but will it affect me on debian?

Also while I am on the partitioner page on the debian-installer, there
is one choice like:
Guided: Use entire disc and setup as LVM

Now since I am doing a dual boot and windows is already installed, I
feel I cannot use this option
as it will wipe the partition used by windows.

Can I set LVM using some other method?


 ravenclaw# lvextend --size +1G --resizefs /dev/ravenclaw/chroots
   Extending logical volume chroots to 13.00 GiB
   Logical volume chroots successfully resized
 resize2fs 1.42.9 (4-Feb-2014)
 Filesystem at /dev/mapper/ravenclaw-chroots is mounted on /srv/chroots; 
 on-line resizing required
 old_desc_blocks = 1, new_desc_blocks = 1
 The filesystem on /dev/mapper/ravenclaw-chroots is now 3407872 blocks long.

 ravenclaw# df /srv/chroots
 Filesystem1K-blocksUsed Available Use% Mounted on
 /dev/mapper/ravenclaw-chroots  13286512 4632220   7966824  37% /srv/chroots

 So you can see the size increased by 1GiB and we didn't even have
 to unmount the filesystem--it all happened online with no
 interruption in service.

Is there a simple gui tool available for the same?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AGx587c_YNB0KpQvrQPg-KV1=pn8ffg9-id9dqdkxc...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-10 Thread Anubhav Yadav
 Yes.  Partition manually, and create a partition to hold *all* your
 Linux data.  However, rather than selecting a filesystem type, you
 choose Physical volume for LVM, and then configure LVM.  It will
 then let you use this partition for a new LVM volume group.  Once
 that's done you can add as many logical volumes as you like, and
 assign mountpoints to them, make swapspace etc, and then continue
 with the install as usual.

I have 685 GB free space. I choose 585 GB as my primary partition and
set it as LVM.
Should I keep the bootable flag ON or OFF for this partition.

Also After that how can I create sub-volume? Can't find a way to do
that in the installer!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AGrz=mu1waykafikxsbc59kmaoqaxf41lqwj2qvvwe...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-10 Thread Anubhav Yadav
Okay I figured out how to make more partitions on LVM, just want to
make sure if the bootable flag on the LVM should be ON or OFF


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9afzhhd5dt30ny8cqgbpvuqyhd1lzk000+qqhrmavp8...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice.

2014-02-11 Thread Anubhav Yadav
Okay, I installed debian now, a perfect install with LVM.
Here is the output of df -H

Filesystem   Size  Used Avail Use% Mounted on
rootfs   8.7G  330M  7.9G   5% /
udev  11M 0   11M   0% /dev
tmpfs830M  754k  830M   1% /run
/dev/mapper/Debian-Root  8.7G  330M  7.9G   5% /
tmpfs5.3M 0  5.3M   0% /run/lock
tmpfs1.7G 0  1.7G   0% /run/shm
/dev/mapper/Debian-Home  466G  427M  442G   1% /home
/dev/mapper/Debian-tmp16G  174M   15G   2% /tmp
/dev/mapper/Debian-Usr32G  2.8G   28G  10% /usr
/dev/mapper/Debian-Var32G  461M   30G   2% /var

And this is what lvsan says
  ACTIVE'/dev/Debian/Root' [8.19 GiB] inherit
  ACTIVE'/dev/Debian/Usr' [29.80 GiB] inherit
  ACTIVE'/dev/Debian/Var' [29.80 GiB] inherit
  ACTIVE'/dev/Debian/tmp' [14.90 GiB] inherit
  ACTIVE'/dev/Debian/Swap' [3.72 GiB] inherit
  ACTIVE'/dev/Debian/Home' [440.52 GiB] inherit

Is there anything wrong with this partitioning scheme.

As Joel advised (thanks) I made a big 565 GB primary LVM partition.
and then created partitions as advised by Joel again.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9aezxo6pnzgh_y_v99dcywkqw1q7zr5emvxsfvutmim...@mail.gmail.com



Re: About to format the whole laptop, need some partitioning advice. [Solved]

2014-02-11 Thread Anubhav Yadav
 You usually can get away with a much smaller root filesystem if you use
 a separate /usr. The good thing is that you won't run into trouble with
 dozens of kernels installed (they take more than 100MB in /lib/modules
 each).

I am still learning. And I am not that strict on space as I have a 750GB
hdd, but still that was a very knowledgeable fact.

 Looks generally fine. One thing I would have done (and which I cannot
 see whether you did it) is to leave some free space in the VG so you can
 extend existing filesystems or create new ones when you need to.

I have set aside 100 GB as free unallocated space.
 It helps in our understanding if you try to use the correct terminology.
 What I think you wanted to say is something like:

 I created one big primary partition and used that as Physical Volume
 for my Volume Group 'Debian'. I created all filesystems in Logical
 Volumes in that Volume Group.

 I capitalized terms specific to LVM.

As I said I am still learning. :)  thanks for the useful pointers.

So I should officially mark this thread as solved.

1)I found out what are the various folders in the linux file system are
used for, in a more practical discussion.

2)I found out some pros and cons of different Desktop Managers and Window
Managers.

3)I found out the various different partitioning schemes and also figured
out why LVM was so good for me. I also created the partitions myself after
learning about them.

4)Also I revived my almost dead hardisk after important inputs from you
guys.

Cheers,  I am here to stay for a long long time. :)


Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
Hello list,
I have a laptop with gt 630M 2GB graphics card. I installed the linux
headers and the drivers using this command:

aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
nvidia-kernel-dkms

[I referred this wiki : https://wiki.debian.org/NvidiaGraphicsDrivers ]

I also created the Xorg.conf file as mentioned in the wiki. But when I
rebooted my system Xorg failed to start. So i figured that I am having
a GPU with optimus support and I do not need the Xorg.conf file but
instead I need the bumblebee package.

So I installed the bumblebee package.

Everything seem to work now except this:

Under system-Nvidia server settings when I open It i get a message:
You do not appear to be using the NVIDIA X driver.  Please edit your X
configuration file (just run `nvidia-xconfig` as root), and restart
the X server.

But there was already a post in bumblebee wiki which said:

Warning: If you choose to install bumblebee-nvidia and the dependent
nvidia driver packages, during postinst, you will see a debconf prompt
warning you that you need to create a xorg.conf file in order to use
the proprietary nvidia driver. This prompt only applies to non-Optimus
users, i.e. single Nvidia GPU systems. Do NOT allow debconf to create
a xorg.conf file, and do NOT run nvidia-xconfig! (This prompt always
appears when you install nvidia packages through the repositories, and
it currently does not detect Optimus/bumblebee users. See 735049 for a
brief explanation.) 

So I am pretty sure that I do not need to run that nvidia-xconfig command.

But I just want to make sure that I am running the nvidia driver
successfully. How can I do that?




-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9ae998sdrb9e9nh6fbbee+cqtace9yjysd_l9_n5y06...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 Right, which one?
 root@tal:~# apt-cache search bumblebee
 bumblebee-nvidia - NVIDIA Optimus support using the proprietary NVIDIA

Yes, this one.

 root@tal:~# lsmod | grep video


Output:

uvcvideo   57744  0
videodev   70889  1 uvcvideo
v4l2_compat_ioctl3216655  1 videodev
media  18148  2 videodev,uvcvideo
i2c_core   23876  6
i2c_algo_bit,i2c_i801,videodev,drm_kms_helper,drm,i915
video  17683  1 i915
thermal_sys18040  3 thermal,processor,video
usbcore   128741  7 ehci_hcd,xhci_hcd,rts5139,uvcvideo,btusb,ath3k

 lspci -k | grep -C 3 VGA

uvcvideo   57744  0
videodev   70889  1 uvcvideo
v4l2_compat_ioctl3216655  1 videodev
media  18148  2 videodev,uvcvideo
i2c_core   23876  6
i2c_algo_bit,i2c_i801,videodev,drm_kms_helper,drm,i915
video  17683  1 i915
thermal_sys18040  3 thermal,processor,video
usbcore   128741  7 ehci_hcd,xhci_hcd,rts5139,uvcvideo,btusb,ath3k
root@Innovator:/home/neo1691# lspci -k | grep -C 3 VGA
Kernel driver in use: agpgart-intel
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core
Processor Family PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation
Core Processor Family Integrated Graphics Controller (rev 09)
Subsystem: ASUSTeK Computer Inc. Device 212e
Kernel driver in use: i915
00:16.0 Communication controller: Intel Corporation 6 Series/C200
Series Chipset Family MEI Controller #1 (rev 04)
--
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family
SMBus Controller (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 1277
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce
GT 630M] (rev ff)
03:00.0 Network controller: Atheros Communications Inc. AR9285
Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: AzureWave AW-NB037H 802.11bgn Wireless Half-size Mini
PCIe Card [AR9002WB-1NGCD]
Kernel driver in use: ath9k

This line seems interesting:

01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce
GT 630M] (rev ff)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9aebw-r3+do_3mw+vp-es4yh_iaqoaac7g1bjlcor_m...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 $ lsmod | grep nvidia
 if there's no output, you aren't using the nvidia driver.
 Run
 $ grep nvidia /var/log/dmesg

No output

 $ grep EE /var/log/Xorg.0.log
Only output here is

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[19.290] (II) Loading extension MIT-SCREEN-SAVER


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9ah-qyokt+6m_xol3kfckgjyxft3nfnjjqwdg2x8k9x...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 Perhaps also useful to check

 $ less /var/log/Xorg.0.log

 even if there are no EE (errors).

I could find anything even close to nvidia.

Here is the complete output:
http://paste.debian.net/82488/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AGWWbsv_2ZeVwm+Yrw=pYpNSiV-Q_Hr3qF9xoK=yzu...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 And if it's not listed? Then you are probably going to have to do a
 lsmod anyway to see what is listed. I think my way solves the problem in
 one hit. IOW, don't search for what you *think* should be there, but
 search for what actually *is* there.

What is the conclusion in my case? Is nvidia driver is running or not?
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AEdF1rs72cgwg9zJtuhQG7i+RTqiDM9+QCVLmp4N=e...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 OK, thats the driver for the Intel graphics chip.
 So you have an embedded Intel graphics in the motherboard *and* a
 plugged in NVIDIA Corporation GF108 card?

Yes!
But the docs wont help.
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AG3RT7bFn6bxW2=J3WBe+w4J4=bpmc7iopt+t99ugv...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 Anubhav Yadav, please reply to the list only, don't Cc.

I am using gmail and it has two options, reply and reply to all.
If I hit reply your name is there as the sender, if I hit reply to all
then debian user list is there in cc and your name in senders list.
I will now manually delete the cc column and just add debian
user list as the sender.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AHL=1vawax1lra_j3lpzuqdqtfk0v_rb5srahosua5...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 And besides the command:

 bumblebeed service restart

 Do not restart the program.

[ 4558.021580] [ERROR]Daemon already running, pid 2798
Neither it would stop.

This was my output

 If you find a solution, please share with the list.

We will find a solution.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AEUSxRcFTn9SxtJpMK=a_qdbp+ujj7fgoq9vkosm7k...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-17 Thread Anubhav Yadav
 First thing I did, when I built a new Desktop machine, and inserted my
 nVidia card in, was to disable the onboard GPU in the bios setup. That keeps
 it all nice and clean, with regards to video detection. No need to have two
 dissimilar GPU's contending for display rights. You just wind up with a mess
 you now have.

 Note: I have since installed a second identical nVidia card and now have
 four displays without a hitch. Ric

Hi,
But Asus bios doesn't seem to have a setting to disable bios.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9aeh-d7lwoynjgzkdxmvd3esxd5pnyrf_ydpioe7p12...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-19 Thread Anubhav Yadav
 What happens if you remove the module for the integrated graphics and
 load the nvidia module at startup?

Here is the output of my lsmod
Module  Size  Used by
nls_utf8   12456  1
nls_cp437  16553  1
vfat   17316  1
fat45642  1 vfat
8021q  19291  0
garp   13193  1 8021q
stp12437  1 garp
ipt_MASQUERADE 12594  1
iptable_nat12928  1
nf_nat 18242  2 iptable_nat,ipt_MASQUERADE
nf_conntrack_ipv4  14078  3 nf_nat,iptable_nat
nf_defrag_ipv4 12483  1 nf_conntrack_ipv4
nf_conntrack   52720  4
nf_conntrack_ipv4,nf_nat,iptable_nat,ipt_MASQUERADE
ip_tables  22042  1 iptable_nat
x_tables   19118  3 ip_tables,iptable_nat,ipt_MASQUERADE
rndis_wlan 31357  0
rndis_host 12691  1 rndis_wlan
cdc_ether  12598  1 rndis_host
usbnet 18027  3 cdc_ether,rndis_host,rndis_wlan
parport_pc 22364  0
ppdev  12763  0
lp 17149  0
parport31858  3 lp,ppdev,parport_pc
bnep   17567  2
rfcomm 33700  0
bbswitch   12866  0
uinput 17440  1
nfsd  216170  2
nfs   308313  0
nfs_acl12511  2 nfs,nfsd
auth_rpcgss37143  2 nfs,nfsd
fscache36739  1 nfs
lockd  67306  2 nfs,nfsd
sunrpc173730  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
loop   22641  0
snd_hda_codec_hdmi 30824  1
snd_hda_codec_realtek   188858  1
joydev 17266  0
snd_hda_intel  26259  1
snd_hda_codec  78031  3
snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep  13186  1 snd_hda_codec
uvcvideo   57744  0
snd_pcm68083  3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc 13003  2 snd_pcm,snd_hda_intel
coretemp   12898  0
snd_seq45126  0
arc4   12458  2
snd_seq_device 13176  1 snd_seq
crc32c_intel   12747  0
ghash_clmulni_intel13173  0
i915  378445  2
videodev   70889  1 uvcvideo
ath9k  64619  0
ath9k_common   12728  1 ath9k
ath9k_hw  322112  2 ath9k_common,ath9k
v4l2_compat_ioctl3216655  1 videodev
drm_kms_helper 31370  1 i915
media  18148  2 videodev,uvcvideo
ath21370  3 ath9k_hw,ath9k_common,ath9k
mac80211  192806  1 ath9k
cfg80211  137243  4 rndis_wlan,mac80211,ath,ath9k
snd_timer  22917  2 snd_seq,snd_pcm
aesni_intel50667  3
cdc_acm17900  0
drm   183952  3 drm_kms_helper,i915
asus_nb_wmi12436  0
ath3k  12671  0
btusb  17502  0
bluetooth 119455  12 btusb,ath3k,rfcomm,bnep
asus_wmi   18726  1 asus_nb_wmi
i2c_algo_bit   12841  1 i915
ac 12624  0
battery13146  0
psmouse69265  0
rts5139   199528  0
sparse_keymap  12760  1 asus_wmi
serio_raw  12931  0
acpi_cpufreq   12935  1
mperf  12453  1 acpi_cpufreq
aes_x86_64 16843  1 aesni_intel
evdev  17562  21
snd52889  11
snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
i2c_i801   16870  0
iTCO_wdt   17081  0
rfkill 19012  6 asus_wmi,bluetooth,cfg80211
pcspkr 12579  0
power_supply   13475  2 battery,ac
aes_generic33026  2 aes_x86_64,aesni_intel
video  17683  1 i915
processor  28157  1 acpi_cpufreq
button 12937  1 i915
iTCO_vendor_support12704  1 iTCO_wdt
mxm_wmi12515  0
i2c_core   23876  6
i2c_i801,i2c_algo_bit,drm,drm_kms_helper,videodev,i915
cryptd 14517  2 aesni_intel,ghash_clmulni_intel
wmi13243  2 mxm_wmi,asus_wmi
soundcore  13065  1 snd
ext4  350763  5
crc16  12343  2 ext4,bluetooth
jbd2   62115  1 ext4
mbcache13114  1 ext4
usb_storage43870  1
dm_mod 63645  18
sg 25874  0
sr_mod 21899  0
sd_mod 36136  4
cdrom  35401  1 sr_mod
crc_t10dif 12348  1 sd_mod
thermal17383  0
thermal_sys18040  3 thermal,processor,video
xhci_hcd   73434  0
ahci   24997  1
libahci22941  1 ahci
libata140630  2 libahci,ahci
ehci_hcd   40215  0
r8169  

Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-20 Thread Anubhav Yadav
 Stop X, modprobe -r the unwanted driver, modprobe nvidia, start X?

I am not able to find out which driver I need to modprobe? I posted the
output of lsmod before. If you can help me there?


Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-20 Thread Anubhav Yadav
 You should remove i915. You should have searched the Internet yourself.

 I used https://startpage.com/ with the search terms

  i915 wiki en

 and e.g. found https://wiki.debian.org/KernelModesetting


I also found this http://forums.debian.net/viewtopic.php?f=16t=110314
It means that I have got two problems.
1) The nvidia driver not working
2) The bumblebee module is not working.

Or the two are related to each other.

I feel that I should remove all the packages including the linux
headers and the nvidia driver and then
restarting the process again.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9afefmvuz5je2dcq88oprdysnn5dyoahy_x_4pzpect...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-20 Thread Anubhav Yadav
I found something interesting

grep nvidia /var/log/Xorg.8.log

[  4576.924] (++) Using config file: /etc/bumblebee/xorg.conf.nvidia
[  4576.925] (++) ModulePath set to /usr/lib/nvidia,/usr/lib/xorg/modules
[  4576.928] (II) Loading /usr/lib/nvidia/libglx.so
[  4577.050] (II) LoadModule: nvidia
[  4577.050] (II) Loading /usr/lib/nvidia/nvidia/nvidia_drv.so
[  4577.121] (II) Module nvidia: vendor=NVIDIA Corporation
[  4577.844] (II) NVIDIA(0): nvidia-auto-select
[  4577.847] (II) NVIDIA(0): Setting mode nvidia-auto-select
[  4577.881] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia

Does it means that the nvidia driver is being loaded successfully?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CA+Jf9AFC_EF7heOwkZcY-qAd4FPSYCe4U=avv-jdaimsjcs...@mail.gmail.com



Re: Need to make sure I have the nvidia proprietary driver running.

2014-02-21 Thread Anubhav Yadav
 Did you add yourself to the bumblebee group?
 quote
 adduser $USER bumblebee ...as root
 where $USER corresponds to your username. Don't forget to log out and log
 back in for this to take effect.

Yes

 https://wiki.debian.org/Bumblebee#Installation


I think I am almost there! Bumblebee service is not getting started,
its getting stopped.
Optirun is running for some apps like nvidia-settings.
But not for glxgears

Here is the output when I try to run optirun -vvv glxgears
[  376.165332] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  376.166004] [WARN]Could not open configuration file:
/etc/bumblebee/bumblebee.conf
[  376.166053] [WARN]Using default configuration
[  376.166431] [DEBUG]optirun version 3.2.1 starting...
[  376.166497] [DEBUG]Active configuration:
[  376.166550] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  376.166578] [DEBUG] X display: :8
[  376.166605] [DEBUG] LD_LIBRARY_PATH:
/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[  376.166653] [DEBUG] Socket path: /var/run/bumblebee.socket
[  376.166696] [DEBUG] Accel/display bridge: auto
[  376.166723] [DEBUG] VGL Compression: proxy
[  376.166753] [DEBUG] VGLrun extra options:
[  376.166784] [DEBUG] Primus LD Path:
/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[  376.166900] [DEBUG]Using auto-detected bridge primus
[  376.168024] [INFO]Response: Yes. X is active.

[  376.168107] [INFO]Running application using primus.
[  376.168409] [DEBUG]Process glxgears started, PID 4340.
Xlib:  extension GLX missing on display :8.
[  376.213949] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  376.214006] [DEBUG]Socket closed.
[  376.214036] [DEBUG]Killing all remaining processes.

Wonder why is this warning coming: Could not open configuration file:
/etc/bumblebee/bumblebee.conf

Also Xlib:  extension GLX missing on display :8.

But nevertheless optirun is running finally. (Pheww)

Also lsmod | grep video shows nvidia in its output. Whereas previously
it wasn't.

i2c_core   23876  7
i2c_algo_bit,i2c_i801,drm,drm_kms_helper,videodev,i915,nvidia

 There's all sorts of hints on that page. Good luck! :) Ric

Yes I started with this page itself. Thanks for your help anyways. I
just want someone to confirm that I have solved my problem!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+jf9aeufx9vsdrfbek27mnvcnht8e2fqtvrfp9a28uyed0...@mail.gmail.com



[i3]Colors and transparency problems with rxvt-unicode-color

2014-02-25 Thread Anubhav Yadav
Hi,

If I start a new urxvt terminal using the command,

 urxvt -name Terminal -fn xft:Monospace:pixelsize=11 -fade 20 +sb
-depth 32 -fg white -bg rgba:2000/2000/2000/

urxvt starts just the way I like it.
But if I put this in ~/.Xresources, it would never work:

Urxvt*background: rgba:2000/2000/2000/

Here is my full ~/.Xresources

URxvt.keysym.Shift-Control-V: perl:clipboard:paste

URxvt.iso14755: False

URxvt.perl-ext-common: default,clipboard

!##
!# Xft settings
!##

Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight

Xcursor.theme: Pulse-Glass
Compile xft: Attempt to find a visual with the given bit depth; option -depth.
URxvt*depth: 32
Urxvt*background: rgba:2000/2000/2000/
Urxvt*transparent: false
Urxvt*fading: 2%
Urxvt*shading: 75

! Compile xft: Turn on/off double-buffering for xft (default enabled).
 On some card/driver combination enabling it slightly decreases
performance, on most it greatly helps it. The slowdown is small, so it
URxvt*buffered: true

! Base16 Tomorrow
! Scheme: Chris Kempson (http://chriskempson.com)

#define base00 #1d1f21
#define base01 #282a2e
#define base02 #373b41
#define base03 #969896
#define base04 #b4b7b4
#define base05 #c5c8c6
#define base06 #e0e0e0
#define base07 #ff
#define base08 #cc
#define base09 #de935f
#define base0A #f0c674
#define base0B #b5bd68
#define base0C #8abeb7
#define base0D #81a2be
#define base0E #b294bb
#define base0F #a3685a

*.foreground: base05
!*.background: base00
*.cursorColor: base05
*.color0: base00
*.color1: base08
*.color2: base0B
*.color3: base0A
*.color4: base0D
*.color5: base0E
*.color6: base0C
*.color7: base05
*.color8: base03
*.color9: base09
*.color10: base01
*.color11: base02
*.color12: base04
*.color13: base06
*.color14: base0F
*.color15: base07

!###Font Settings

URxvt*font: xft:Inconsolata:pixelsize=15
URxvt*boldFont: xft:Inconsolata:bold:pixelsize=15
URxvt*letterSpace: -1

ALso from base16 colorscheme palate the background is given as #1d1f21
and I have commented it out to prevent clashing it with
Urxvt*background option which is given in rgba format. I would love if
someone can convert the hex value into a working rgba format as
required for this configuration file?

2) I also feel that only 2-3 colors are shown in the shell. But when I
use weechat-curses all colors are shown. But linux command like ls and
grep won't give me any colors.

'tput setaf' wont output anything.

Here is something I found in my .bashrc
# set a fancy prompt (non-color, unless we know we want color)
case $TERM in
xterm-color) color_prompt=yes;;
esac


Now I have installed both xfce terminal and xterm.

Any inputs would be greatly appreciated!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agcdmyu50735y0fmow9ik297tcb_g570t8mrvvske-...@mail.gmail.com



Re: [i3]Colors and transparency problems with rxvt-unicode-color

2014-02-25 Thread Anubhav Yadav
 I use URxvt*background: [95]#00, which applies a 95% transparency
 to black. That might be useful to you.

Yes that did it. Thanks a lot. I was also having 'r' small instead of capital.

 Note that RXVT isn't XTerm. You'll probably find that your $TERM is
 'rxvt-unicode-256color'.

Yes and I changed that in the .bashrc too. But didn't help much.

However uncommenting the line
force_color_prompt=yes

did make my prompt (user@hostname:$) coloured.

But that was the same color as my background. Made it
look even more uglier.
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahxiobuq46mms9attvof0nurpnjzr5er1tm5us7u1y...@mail.gmail.com



Not able to get mpd/ncmpcpp to work

2014-03-09 Thread Anubhav Yadav
Hello list,

I have installed mpd and ncmpcpp.

In the /etc/mpd.conf these are the changes that I have made

music_directory /home/neo1691/Music/
usermpd
#groupnogroup  (This was commented out by default)


That's it nothing else!

Whenever I start my laptop, the service mpd is already started
mpd   3304  0.0  0.0 411928   820 ?Ssl  13:04   0:00
/usr/bin/mpd /etc/mpd.conf

When I start ncmpcpp, pressing u does not update the list, and my
playlist always remains blank.

This is what I have tried so far:

1) I tried to change the permissions of one or two music files inside
/home/neo1691/Music and granted read permissions to everyone.

Result: ncmpcpp is still plain blank.

2) I also tried changing the music_directory to its default value,
ie(/var/lib/mpd/music), copied some music there and then started ncmpcpp.

Result: Nothing again.

3) I tried changing the user option in ncmpcpp to neo1691, then the
service mpd would never start.

Please help! Thanks!
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahb0gatbbv_qy7+fsm+hwzcezaxcnpfe2gwjuhrgxr...@mail.gmail.com



Re: Not able to get mpd/ncmpcpp to work

2014-03-09 Thread Anubhav Yadav
 When I press 'u' in ncmpcpp it says (at the bottom)

 Database update started!

Yes it says, Database update started and immediately afterwards it says
Database update finished.

 and at the top bottom, right below Volume % you should see a capital 'U'
 in square brackets, possibly with other letters as well (I also have 'r'
 for repeat mode).

 Does this happen for you?

Yes it has an [xU] in those brackets and the disappears immediately afterwards.

 Make sure also the directory is accessible by user 'mpd'. Also, to see
 the music you have to go to the Browse screen (F4), by defaults it
 starts in the Playlist screen (which is blank if you don't specifically
 add songs to it).

Yes when I go to browse, I do see all the folders, but no songs.
Co-incidently all the folders have read access to others and group
but the music file inside do not have read access.

For example:
ll ~/Music/

-rw--- 1 neo1691 neo1691  5683395 Nov  1 02:38 [Songs.PK] 02 -
Dhat Teri Ki.mp3
-rw--- 1 neo1691 neo1691  8809935 Oct  2 17:46 [Songs.PK] Ramleela
- 07 - Nagada Sang Dhol.mp3
-rw--- 1 neo1691 neo1691  7882890 Oct  2 17:46 [Songs.PK] Ramleela
- 09 - Ram Chahe Leela.mp3
drwxr-xr-x 2 neo1691 neo1691 4096 Feb 12 12:27 Sp
drwxr-xr-x 2 neo1691 neo1691 4096 Feb 12 12:27 Sum41
drwxr-xr-x 2 neo1691 neo1691 4096 Feb 12 12:27 System of a Down
..

So I guess the problem is related to the directory having read access to mpd.
Can you specifically tell me how to do that.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AE0XvV9QFYE80=d6_rpeyfm+fyoigqtkcs5-0cgmhn...@mail.gmail.com



[Solved]: Not able to get mpd/ncmpcpp to work

2014-03-09 Thread Anubhav Yadav
Anyways I solved the problem by following this guide.

http://crunchbang.org/forums/viewtopic.php?id=17386

I would appreciate if someone goes through the guide and see if it has
any security issues.

The guide is written for a single user, not for system wide!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AGHEV7JNNzKODkMthJAXzBbiWPKfDZk93SrgCXuFSq=g...@mail.gmail.com



Re: Not able to get mpd/ncmpcpp to work

2014-03-10 Thread Anubhav Yadav
Yes I have now configured mpd as a normal user using this guide.

http://crunchbang.org/forums/viewtopic.php?id=17386

I would appreciate if someone goes through the guide and see if it has
any security issues.

The guide is written for a single user, not for system wide!

I am now able to run ncmpcpp only thing is I am very new to it and I
need to learn it to use it efficiently!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHqEpZ2fOhTPW9U=imZ=s+Md+i2-S0aN9Z93u=ff2m...@mail.gmail.com



.Xresources not loading on start

2014-03-15 Thread Anubhav Yadav
Hello,
Suddenly my .Xresources are not working on startup. Meaning I have to
manually startup a terminal and issue xrdb .Xresources and restart
the shell to see my colors.

I am using(learning to use) i3 although I have xfce installed, and I
start i3/xfce from lightdm.

Now I remember doing two things after which this started happening:

1) I changed the colors of my .Xresources from base16-tomorrow to molokai.
Here is my .Xresources http://paste.debian.net/87922

To be a little more precise, the previous scheme had the colors
defined like this:

#define t_background #1d1f21
#define t_current_line #282a2e
#define t_selection #373b41
#define t_foreground #c5c8c6
#define t_comment #969896
#define t_red #cc
#define t_orange #de935f
#define t_yellow #f0c674
#define t_green #b5bd68
#define t_aqua #8abeb7
#define t_blue #81a2be
#define t_purple #b294bb


*.foreground: t_foreground
*.background: t_background
*.cursorColor: #aeafad

! Black / Grey
*.color0: #00
*.color8: #66

! Red / Bright Red
*.color1: t_red
*.color9: #FF3334

! Green + Bright Green
*.color2: t_green
*.color10: #9ec400
..
[snipped]

And the new colors are directly put like this

!Molokai terminal colours
*foreground:#a0a0a0
*background:#1b1d1e

!molokai inspired colors

!black
*color0:#1b1d1e
*color8:#505354
!red
*color1:#f92672
*color9:#ff5995
!green
*color2:#82b414
*color10:   #b6e354
!yellow
*color3:#fd971f
*color11:   #feed6c
!blue
*color4:#56c2d6
*color12:   #8cedff

[..snipped..]

2) I edited the file /etc/lightdm/lightdm.conf and added this line:
user-session=i3
to make i3 as default in i3.

3) I created a file ~/.xessionrc and added the line to it
export PATH=$HOME/bin:$PATH


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aefw0j-crpxyelbshnptkiy22fewndq5kgc+y2w26l...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-15 Thread Anubhav Yadav
On Sun, Mar 16, 2014 at 4:36 AM, Anubhav Yadav anubhav1...@gmail.com wrote:
 Hello,
 Suddenly my .Xresources are not working on startup. Meaning I have to
 manually startup a terminal and issue xrdb .Xresources and restart
 the shell to see my colors.

 I am using(learning to use) i3 although I have xfce installed, and I
 start i3/xfce from lightdm.

 Now I remember doing two things after which this started happening:

 1) I changed the colors of my .Xresources from base16-tomorrow to molokai.
 Here is my .Xresources http://paste.debian.net/87922

 To be a little more precise, the previous scheme had the colors
 defined like this:

 #define t_background #1d1f21
 #define t_current_line #282a2e
 #define t_selection #373b41
 #define t_foreground #c5c8c6
 #define t_comment #969896
 #define t_red #cc
 #define t_orange #de935f
 #define t_yellow #f0c674
 #define t_green #b5bd68
 #define t_aqua #8abeb7
 #define t_blue #81a2be
 #define t_purple #b294bb


 *.foreground: t_foreground
 *.background: t_background
 *.cursorColor: #aeafad

 ! Black / Grey
 *.color0: #00
 *.color8: #66

 ! Red / Bright Red
 *.color1: t_red
 *.color9: #FF3334

 ! Green + Bright Green
 *.color2: t_green
 *.color10: #9ec400
 ..
 [snipped]

 And the new colors are directly put like this

 !Molokai terminal colours
 *foreground:#a0a0a0
 *background:#1b1d1e

 !molokai inspired colors

 !black
 *color0:#1b1d1e
 *color8:#505354
 !red
 *color1:#f92672
 *color9:#ff5995
 !green
 *color2:#82b414
 *color10:   #b6e354
 !yellow
 *color3:#fd971f
 *color11:   #feed6c
 !blue
 *color4:#56c2d6
 *color12:   #8cedff

 [..snipped..]

 2) I edited the file /etc/lightdm/lightdm.conf and added this line:
 user-session=i3
 to make i3 as default in i3.

 3) I created a file ~/.xessionrc and added the line to it
 export PATH=$HOME/bin:$PATH

Sorry pressed the send button by mistake: Here is the continuation

So I created the above file so that I could run scripts from ~/bin in dmenu.

These 3 steps I remember doing after which my .Xresources failed to
load on startup.

Now I already reverted steps 2 and 3, but even now that won't help.

These are the things I tried:

1) I changed to format of the colors from
*background to xterm*background or Xterm.VT100.background but that wont help.

2) I created a symlink .Xdefaults to .Xresources but that won't work either.

3) I also created ~/.xinitrc and added the line xrdb -load
.Xresources to it, but that won't help either.

Interesting thing to note is that only xrdb .Xresources will work
after boot. Not  xrdb -merge .Xresources neither xrdb -overide
.Xresources

Any help? And sorry for the reply to my own mail to complete my question!



-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agxeykw_ooedjqnqzxb-q2qecjutdnrezun0hzinbn...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-15 Thread Anubhav Yadav
On Sun, Mar 16, 2014 at 4:51 AM, John D. Hendrickson and Sara Darnell
johnandsa...@cox.net wrote:
 i wrote this:

 http://sourceforge.net/p/xdm-options/

 it launches window manager desktop pairs.  you might see something in it
 that helps


 this seems simple.  back off your recent changes and change only one thing
 at a time.  you can then say which change caused a problem


 i would guess an exit 1 signaled by any app during the X starup might give
 you headaches.  it's better to wait until after X starts (run a script then)
 unless you got everything down or are doing something special.

Hi, Thanks for taking out time and replying. Is that a complete new
display manager. Does it have a package for debian?
Also I pressed the send button my mistake, so I completed my question
in the next mail. Its link is,
https://lists.debian.org/debian-user/2014/03/msg00888.html
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahem0fsdwaoanx0nbhx4z8doh74qylwzo3zfqjzzfo...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-15 Thread Anubhav Yadav
Solved.

I edited the file /etc/X11/Xsession.d/30x11-common_xresources and
changed the xorg -merge ... lines to xorge ... and it worked.
I don't know if it is a good solution or not!


Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ah0pe1eq+krgvgzmabfv+cy4eeguz_zsef2waymgeo...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-16 Thread Anubhav Yadav
 Weird! What did you read that advised changing xorg to xorge?

Damn I don't know what happened to me while typing. Sorry. \
This is what I actually did!
The original line was
xrdb -merge $RESOURCEFILE

and

xrdb -merge $USRRESOURCES

I just removed the -merge options.

And I made the changes in this file: /etc/X11/Xsession.d/30x11-common_xresources

I have made a backup of the above file! Just to be safe!


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agd9r+efo_m81cwf+raq8-aad73bbdzrjzrdzf5w6n...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-16 Thread Anubhav Yadav
Okay before doing what you stated, I restored the file
/etc/X11/Xsession.d/30x11-
common_xresources to original

 1. Prevent lightdm from being started:

 update-rc.d lightdm disable('enable' reverts this).

Done

 2. Delete $HOME/.Xdefaults (It's not used).

Never used it in the first place.

 3. Delete $HOME/.xinitrc   (It fouls up Debian's X).

I tried to use it never worked. So deleted it.

 4. Move $HOME/.xsession out of the way.

Its not there.

 5. Repair self-inficted damage with
apt-get --reinstall install x11-common
Ok did this too!

 6. Have 'xterm*background: red' as the only line in $HOME/.Xresources.

Ok

 7. Reboot, execute startx and bring up an xterm.

Here are my results:

Running startx logged me in to xfce, I opened up a xterm and the
background was red.

Next I enabled lightdm: #update-rc.d lightdm enable
Rebooted and from lightdm logged in to i3.
Opened up an xterm and the background was red.

Now I used my original .Xresources and reboot. Again same error!
'xrdb -merge .Xresources' and 'xrdb -overide .Xresources' will not work
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ag32igynb-g_9sjatckrjd+xe2rvfpr2oftnvmj-qy...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-16 Thread Anubhav Yadav
 Is it this bug?

 https://bugs.launchpad.net/lightdm/+bug/1084885

 And this workaround?

 https://wiki.archlinux.org/index.php/LightDM#Xresources_not_being_parsed_correctly

Yes I tried the workaround mentioned here before posting on the list.
Still thanks for talking out time and helping me out here. Much
appreciated.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ag6joykzanblywbycj3myp3i52owg3xcwe-sk+r-8b...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-17 Thread Anubhav Yadav
 The '-query' option to xrdb is useful. Interesting you used your original
 .Xresources rather than one modified in the light of your experience. :)

That;s because I want my .Xresources to work, I had made colorscheme
changes to it!
Here is the complete .Xresources that I am trying to use
http://paste.debian.net/88298/

The only thing that works for me is xrdb -load .Xresources and xrdb
.Xresources

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahgiqedvvtj10xzju4gm12mehjlbzjxvpaqicru4+k...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 This suggests that the resources that are loaded into your X server
 by default contain settings with a higher priority than your own
 .Xresources. The xrdb -merge merges your settings, but leaves the
 higher priority resources there as well, so your settings seem to have
 no effect. The xrdb -load throws away all settings including the higher
 priority ones, thus letting your settings take effect.

 Use the appres tool to find out what the actual settings are that are
 loaded in your X server. If this confirms the theory, you can start
 finding out where the higher priority settings come from.

Hi! appres tool gives me this output, and these are the same values
that are in my current .Xresources!
Any pointers?

-- *color8:#505354
*color14:   #899ca1
*color9:#ff5995
*background:#1b1d1e
*color15:   #f8f8f2
*color2:#82b414
*color0:#1b1d1e
*customization: -color
*color3:#fd971f
*color1:#f92672
*foreground:#a0a0a0
*color4:#56c2d6
*color10:   #b6e354
*color5:#8c54fe
*color11:   #feed6c
*color6:#465457
*color12:   #8cedff
*color7:#c6
*color13:   #9e6ffe

Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9af5zy7zlt3iiwr8wk9o9b9f6pgyyp_vjzwvbskzcca...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 Are those the default settings, or did you run xrdb -load already?


No I haven't run xrdb -load .Xresources yet
These are the same colors that I have used in my .Xresources.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ah6bz2q-79snhmfcwuvfhzacepk8vdid8onhrcd-h8...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 Try

 xrdb -query
Here is it output, the colors are exactly the same as in my .Xresources.

*background:#1b1d1e
*color0:#1b1d1e
*color1:#f92672
*color10:   #b6e354
*color11:   #feed6c
*color12:   #8cedff
*color13:   #9e6ffe
*color14:   #899ca1
*color15:   #f8f8f2
*color2:#82b414
*color3:#fd971f
*color4:#56c2d6
*color5:#8c54fe
*color6:#465457
*color7:#c6
*color8:#505354
*color9:#ff5995
*customization: -color
*foreground:#a0a0a0
XTerm*ScrollBar:false
XTerm*locale:   true
XTerm*metaSendsEscape:  true
XTerm*selectToClipboard:true
Xcursor.theme:  Pulse-Glass
Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:96
Xft.hinting:1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:   rgb
Xterm*saveLines:9000
xterm*VT100.geometry:   80x32
xterm*eightBitInput:false
xterm*faceName: xft:Inconsolata:size=15:antialias=true
xterm*loginShell:   true
xterm*scaleHeight:  1.01
xterm*termName: xterm-256color


One thing I will like to say that
 appres XTerm xterm

Xterm*saveLines:9000
xterm*VT100.geometry:   80x32
xterm*scaleHeight:  1.01
xterm*faceName: xft:Inconsolata:size=15:antialias=true
xterm*termName: xterm-256color
xterm*loginShell:   true
xterm*eightBitInput:false
*color7:#c6
*color13:   #9e6ffe
*color8:#505354
*color14:   #899ca1
*color9:#ff5995
*background:#1b1d1e
*color15:   #f8f8f2
*color2:#82b414
*color0:#1b1d1e
*customization: -color
*color3:#fd971f
*color1:#f92672
*foreground:#a0a0a0
*color4:#56c2d6
*color10:   #b6e354
*color5:#8c54fe
*color11:   #feed6c
*color6:#465457
*color12:   #8cedff

Again the colors are the same.

One more thing I would like to point out is that, the above outputs contains
some extra lines in the output of 'xrdb -query that are *NOT* in my
version of .Xresources. Like
*customization: -color
Xft.lcdfilter:  lcddefault
etc.

Also here is what my terminal looks like when I start my laptop and
how it should look actually:
http://imgur.com/a/C3EZi

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ag+vymmw217206j+1hje-6dbqrols4qmwszwj6hwar...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 (If it wasn't clear, I intended you to try the two lines I gave you
 earlier in your existing .Xresources, replacing the ones you have).

Sorry, I had the impression that you wanted me to stick to only that colors.
Ok I cleared my .Xresources and now it has only these to lines.

xterm*foreground:#fd971f
xterm*background:#82b414

Restarting the laptop and firing up an xterm sure changes the colors
according to .Xresources.

Here is the output for -query

neo1691@Innovator:~$ xrdb -query
*customization: -color
Xft.hinting:-1
Xft.hintstyle:  hintnone
xterm*background:   #82b414
xterm*foreground:   #fd971f
Xft.antialias:  -1
Xft.rgba:   none
Xcursor.theme:  Adwaita
Xcursor.theme_core: true
Xcursor.size:   0


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aghqvwxxxgef7dhared-+p9a1ponjw_vjxbusrbrmq...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 There - it works. Is there anything you could do to your existing
 .Xresources to make the rest work? Or does it so already?

Thanks a lot,
I solved it. Just had to change all instances of *color# to xterm*color#
As simple as that!

What I liked more was instead of giving me direct solution you
motivated me to find
the solution myself. Cheers for that.

Can I change my subject header and all [SOLVED] to it? Because last time I did
it, the mail went as a new thread on the mailing list!

Thanks again, really appreciated your time and effort!
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AEgKoXbjrjWPWGnz6qMr8aZXJ+ZazVN1HKiK1Bbnxn=8...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-18 Thread Anubhav Yadav
 Just in case: the command

xrdb -merge .Xresources

 is definitely run when X is called. The resources in .Xresources are
 merged with those in /etc/X11. If you issue the same command from a
 terminal nothing happens to alter the resources available because
 they have already been merged.

xrdb .Xresources (xrdb -load .Xresources)

 wipes out the resources loaded from /etc/X11 and gives you only what
 is in .Xresources.

 Your initial understanding of this led you away from a solution to the
 actual problem. Not to worry; everyone does it and everybody learns. :)


So you mean to say that the resources were already being merged but actually
came into effect when I increased their priority or made them more specific
by add the class xterm* before the settings!

I tried to do this before, I remember very well, but I used Xterm
instead of xterm.
It was mentioned here.
http://unix.stackexchange.com/questions/90608/xterm-not-loading-color-schemes
When that never worked I posted on the mailing list.

So my question is what do you mean by Xterm, and then how is xterm
different?
I can guess it has something to do with the class of applications/ instance of
applications!


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aen5gqhu4ysat4fg0upz01yxehgcft5y17p6kalou2...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-19 Thread Anubhav Yadav
Thanks a lot Brian
That sure cleared  lot of things!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AFyyJ02xgY+feMzTmRHsxXTQvhONuq1Qz5m2_ZJ50=v...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-21 Thread Anubhav Yadav
 Re-read what Vincent Zweije wrote, especially his first mail. Then
 re-read the answers in the stackexchange link you gave, concentrating on
 what is said about specific and priority. Now re-read what you wrote:

Yes, Vincent said that the default .Xresources contain some settings
with a higher priority. And the stackexchange comments says that if there
is an Xresource somewhere that has more specific settings like
XTerm*background
then it overides the generic settings like *background.

 *customization: -color is from /etc/X11/Xresources/x11-common. It tells
 X what application specific resource file in /etc/X11/app-defaults to use.
 Normally the resource file used corresponds to the application name; for
 example, XTerm for xterm. The customization resource adds -color to the
 normal resource file name and so XTerm-color is used.

It's very confusing to me. From what I interpret, the *customization: -color
simply selects XTerm-color resources instead of XTerm from
/etc/X11/app-defaults?

 Note that .Xresources is merged with XTerm-color but from your re-reading
 (and from your experience) you should realise it does not mean everything
 in it is applied.
 Take your *original* .Xresources and, in the light of your reading, look
 at the output (color1 etc in particular) of 'appres XTERM xterm'.

color1 is #f92672

 Now add the line
*customization:
 to the original .Xresources and run the appres command again, Can you
 predict what should happen to an xterm when you start X?

I am typing this *before* I make any changes in my .Xresources and
before xrdb .Xresources
I feel that this should overide the *customization: -color settings in
/etc/x11/Xresources and the settings in XTerm should be loaded.

Okay after adding the said line in .Xresources (*customization:) and
reloading them
(xrdb .Xresource) color1 is
xterm*color1:   #f92672

Which is the same?

Am I missing something? Sorry for a delayed response!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AFDxm-FTSXY=hHvwG+j2Ex_eqjjt=KbqRr_+6_C9=5...@mail.gmail.com



Lightdm doesn't start after using the lightdm-webkit-greeter

2014-03-21 Thread Anubhav Yadav
Hi list,
I am using lightdm. And I compiled the lightdm-webkit-greeter from source.
(http://packages.ubuntu.com/saucy/lightdm-webkit-greeter)

Here are my /etc/lightdmlightdm.conf settings:

[LightDM]
[SeatDefaults]
xserver-allow-tcp=false
greeter-session=lightdm-webkit-greeter
greeter-hide-users=true
user-session=i3
session-wrapper=/etc/X11/Xsession
[XDMCPServer]
[VNCServer]

(All the other values are commented out and I have skipped them here)

Here is my /etc/lightdm/lightdm-webkit-greeter.conf:

[greeter]
background=/home/neo1691/Pictures/debian.jpg
theme-name=Elegant_revisited
font-name=Inconsolata bold 10
webkit-theme=Bevel
xft-antialias=true
xft-dpi=96
xft-hintstyle=slight
xft-rgba=rgb

When I start my laptop, it just goes to a black screen with a small
cursor blinking
instead of starting lightdm.

Here are the log files:

/var/log/lightdm.log

[+0.04s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.04s] DEBUG: Starting Light Display Manager 1.2.2, UID=0 PID=2761
[+0.04s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.04s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.10s] DEBUG: Registered seat module xlocal
[+0.10s] DEBUG: Registered seat module xremote
[+0.10s] DEBUG: Adding default seat
[+0.10s] DEBUG: Starting seat
[+0.10s] DEBUG: Starting new display for greeter
[+0.10s] DEBUG: Starting local X display
[+0.10s] DEBUG: Using VT 7
[+0.10s] DEBUG: Activating VT 7
[+0.10s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.36s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.36s] DEBUG: Launching X Server
[+0.36s] DEBUG: Launching process 3251: /usr/bin/X :0 -auth
/var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.36s] DEBUG: Waiting for ready signal from X server :0
[+0.36s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.36s] DEBUG: Registering seat with bus path
/org/freedesktop/DisplayManager/Seat0
[+3.45s] DEBUG: Got signal 10 from process 3251
[+3.45s] DEBUG: Got signal from X server :0
[+3.45s] DEBUG: Connecting to XServer :0
[+3.45s] DEBUG: Starting greeter
[+3.45s] DEBUG: Started session 3368 with service 'lightdm', username 'lightdm'
[+3.56s] DEBUG: Session 3368 authentication complete with return value
0: Success
[+3.56s] DEBUG: Greeter authorized
[+3.56s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+3.60s] DEBUG: Session 3368 running command lightdm-webkit-greeter
[+3.60s] DEBUG: org.freedesktop.Accounts does not exist, falling back
to passwd file
[+4.14s] DEBUG: Greeter closed communication channel
[+4.14s] DEBUG: Session 3368 exited with return value 0
[+4.14s] DEBUG: Greeter quit
[+4.14s] DEBUG: Failed to start greeter
[+4.14s] DEBUG: Stopping display
[+4.14s] DEBUG: Sending signal 15 to process 3251
[+4.54s] DEBUG: Process 3251 exited with return value 0
[+4.54s] DEBUG: X server stopped
[+4.54s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+4.54s] DEBUG: Releasing VT 7
[+4.54s] DEBUG: Display server stopped
[+4.54s] DEBUG: Display stopped
[+4.54s] DEBUG: Stopping X local seat, failed to start a display
[+4.54s] DEBUG: Stopping seat
[+4.54s] DEBUG: Seat stopped
[+4.54s] DEBUG: Required seat has stopped
[+4.54s] DEBUG: Stopping display manager
[+4.54s] DEBUG: Display manager stopped
[+4.54s] DEBUG: Stopping daemon
[+4.54s] DEBUG: Exiting with return value 1

Here is the output of /var/log/lightdm/x-0-greeter.log

Failed to run command: No such file or directory

Now the output of x-0.log

X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.11-2-amd64 x86_64 Debian
Current Operating System: Linux Innovator 3.2.0-4-amd64 #1 SMP Debian
3.2.54-2 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64
root=/dev/mapper/Debian-Root ro quiet
Build Date: 17 December 2013  07:37:58PM
xorg-server 2:1.12.4-6+deb7u2 (Julien Cristau jcris...@debian.org)
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Fri Mar 21 21:46:37 2014
(==) Using system config directory /usr/share/X11/xorg.conf.d
Server terminated successfully (0). Closing log file.

If I run the lightdm-webkit-greeter command from cli, it opens up the
sweet interface in a gtk window with some warnings on the terminal.

I also installed plymouth package, just to let you all know, after finding
an error relating to this in the lightdm.log file.

If you have reached till here, I appreciate you for your time and effort
for reading such a long post! Any help would be really appreciated.

Cheers!
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

[i3]Not able to get the reboot/suspend script work.

2014-03-23 Thread Anubhav Yadav
Hi, I am using debian 64 bit. I use lightdm to start i3. I am trying
to get the reboot/suspend script work from i3 control mode as follows.
I have created a script called i3exit , and placed it in ~/bin/
directory, this directory is my PATH.

Here are the contents of the script.

#!/bin/sh
lock() {
i3lock
}

case $1 in
lock)
i3lock -d -i /home/neo1691/.i3/i3lock_screen.png -n
;;
logout)
i3-msg exit
;;
suspend)
sudo pm-suspend
;;
hibernate)
sudo pm-hibernate
;;
reboot)
sudo reboot
;;
shutdown)
sudo halt
;;
*)
echo Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}
exit 2Not able to get the reboot/suspend script work.
esac

Next in .i3/config I have added these lines,

 set $mode_system System (l) lock, (e) logout, (s) suspend, (h)
hibernate, (r) reboot, (Shift+s) shutdown
mode $mode_system {
bindsym l exec --no-startup-id i3exit lock, mode default
bindsym e exec --no-startup-id i3exit logout, mode default
bindsym s exec --no-startup-id i3exit suspend, mode default
bindsym h exec --no-startup-id i3exit hibernate, mode default
bindsym r exec --no-startup-id i3exit reboot, mode default
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode default

# back to normal: Enter or Escape
 bindsym Return mode default
 bindsym Escape mode default
 }
 bindsym $mod+Pause mode $mode_system


Now if I run i3exit suspend, then my laptop suspends properly. [After
asking the password]. If I run i3exit lock, then my laptop gets
locked, without asking for the password.

But when I press $mod+pause the control mod popups appears on the
i3statusbar and if I press l (lock) nothing happens and the dialogue
box disappears!

If I open up a terminal and `echo $PATH`, then my folder, ~/bin is seen there.
But if I run this specific command:
 `tr '\0' '\n' /proc/$(pidof i3)/environ | grep PATH` then the $PATH
doesn't have the concerned folder.

Also, will adding this line :
`neo1691 ALL=(ALL) ALL, NOPASSWD: /home/neo1691/bin/i3exit` will stop
asking passwords if I run i3exit. I just want to make sure of the
syntax!

Any ideas will be appreciated. Thanks


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agy8etijux_trqobsjp+qyuuvyzxra22k4bleparpf...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-03-23 Thread Anubhav Yadav
 I'm using i3 on debian sid i686.
 Simply I use a shortchut to show the system
 power dailog by i3-nagbar and use mouse to choose the button.
 Beacuse of systemd, when poweroff/suspend the machine, there is no need
 to enter password for a normal user.
 That works for me.

Hi thanks for replying me. But systemd is only implemented completely and not in
wheezy!
So I am not looking at systemd unless it gets merged with stable!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aez5+qrfizii8pes0eoapcu7aqk8opikojyjt7xbs+...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-03-25 Thread Anubhav Yadav
 What do you mean with systemd is only implemented completely?

 As far as I can tell, systemd is available in Debian Wheezy (stable):

 [ 0] MAEM ~$ apt-cache policy systemd
 systemd:
   Installed: (none)
   Candidate: 44-11+deb7u4
   Version table:
  44-11+deb7u4 0
 500 http://ftp.de.debian.org/debian/ wheezy/main amd64 Packages
 500 http://security.debian.org/ wheezy/updates/main amd64 Packages

 What does the command show on your system?

True the package systemd is found on wheezy, however, the point it that it is
introduced in wheezy just for introduction (From what I heard on irc).
It lacks many functionalities like hibernate! I already have given that a try!

Even If I get that to work, only the script would change, not the fact that
i3 is not able to get the script working.


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AETs5tZQen3D2LszggZbDjYMPpk1vS2rp31-04=jid...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-28 Thread Anubhav Yadav
 My fault; the command is 'appres XTerm xterm'. There should be two
 resource lines with color1 in them. One is from XTerm-color, the other
 is from the merged .Xresources. Which one is more specific?

I found this
*VT100*color1:  red3
and
xterm*color1:   #f92672

From our discussions before, I think *VT100*color1 should be more specific
  Now add the line
 *customization:
  to the original .Xresources and run the appres command again, Can you
  predict what should happen to an xterm when you start X?


 Yes - you've missed my propensity to mistype; :) correct it and you're
 there.

Sorry for the epic late response here, had a placement drive in my
college. CCing it to Brian, only because of such a late
reply to this thread .

So according to our discussion, my colors in *MY* .Xresources should
be more *specific* to the
resources used system wide.

In that case my settings for colors should be:

XTerm*VT100*color: #f92672?

Is that right?


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9afrvyynmfb94rdn1xfvb2ehjcn15yfsb90dfu0zorh...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-29 Thread Anubhav Yadav
So ultimately the conclusion is that for me to have the
most optimized settings, I should change all my colors
from xterm*color to XTerm*color

Is that right?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agfrpt_h528cpowommdro5mipnnwvtoy_ozxbqqewj...@mail.gmail.com



Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
Hi I have created a script called i3exit that allows me to suspend or
hibernate my laptop without having to exit my i3wm thus allowing me to
save my  work.

Here are the contents of my script:

#!/bin/sh
lock() {
i3lock
}

case $1 in
lock)
i3lock -d -i /home/neo1691/.i3/i3lock_screen.png -n
;;
logout)
i3-msg exit
;;
suspend)
sudo pm-suspend
;;
hibernate)
sudo pm-hibernate
;;
reboot)
sudo reboot
;;
shutdown)
sudo halt
;;
*)
echo Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}
exit 2
esac

exit 0

This script is stored in home/neo1691/bin/ directory and the directory
is added in the PATH variable by adding   'export
PATH=${PATH}:/home/neo1691/bin' in my .~/.bashrc file

I used sudo visudo to edit the /etc/sudoers file and added this line at the end:
 neo1691 ALL=(ALL) ALL, NOPASSWD: /home/neo1691/bin/i3exit

After a restart when I run 'i3exit suspend' from my terminal, I am
still asked for my password.

To sum it up here are the problems that I want to solve:
1) How can I run the script without asking for a password?
2) Is exporting the PATH variable like I had did is the correct way to
add my directory to PATH, if I want the other processes to also access
the scripts in
that folder?

Thanks!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AEHK3t-OocZbsJLvKMcE8Y8Q7xRreG98V=dtzcbmes...@mail.gmail.com



Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
 That is your problem: You have configured sudo to allow you to run
 i3exit as root.

 But you don't. You run i3exit as yourself (without sudo), and IT then
 uses sudo pm-suspend (and others).

 Two possible ways forward:

 - Call it using sudo i3exit and remove the calls to sudo from inside
   the script

 - Call it as yourself (= just i3exit) and give yourself the
   privileges to run reboot, halt and others as sudo.

 Hope this helps

Hi basically I just want i3exit to run without asking any password, as I will
be using this script to be executed by i3.

So I guess your second option will suit me. If I do something like this:

 neo1691 ALL=(ALL) ALL, NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHoeT+=wHZ=zrrupdcqgcyq2mwovq6gy+mm0tec2dy...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-03-30 Thread Anubhav Yadav
On Sun, Mar 30, 2014 at 10:34 PM, Dmitrii Kashin free...@freehck.ru wrote:

 That's my configuration. I suppose it can be useful.

  ~/.i3/config 
 # power-mode
 mode power {
 bindsym s exec sudo /usr/sbin/pm-suspend
 bindsym h exec sudo /usr/sbin/pm-hibernate

 # back to normal: Enter or Escape
 bindsym Return mode default
 bindsym Escape mode default
 }
 --

  /etc/sudoers 
 %sudo   ALL=(ALL:ALL) ALL, NOPASSWD: /usr/sbin/pm-hibernate
  /etc/sudoers 

Yes that worked. I mean I am able to open a prompt and type
i3exit suspend
and I am not asked for a password, so the /etc/sudoers thing
worked.

However I am not able to get it work from i3config.

Here is my .i3/config

set $mode_system System (l) lock, (e) logout, (s) suspend, (h)
hibernate, (r) reboot, (Shift+s) shutdown
mode $mode_system {
bindsym l exec --no-startup-id i3exit lock, mode default
bindsym e exec --no-startup-id i3exit logout, mode default
bindsym s exec --no-startup-id i3exit suspend, mode default
bindsym h exec --no-startup-id i3exit hibernate, mode default
bindsym r exec --no-startup-id i3exit reboot, mode default
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode default

# back to normal: Enter or Escape
bindsym Return mode default
bindsym Escape mode default
}
bindsym $mod+Pause mode $mode_system

If I open up a terminal and 'echo $PATH' i get the directory
/home/neo1691/bin in my path.

But if I run this particular command( I got this on the irc)
`tr '\0' '\n' /proc/$(pidof i3)/environ | grep PATH`
I get this:

XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

So I think I need to setup my PATH variable properly so that it i3
can also access it?

I have exported my PATH variable like this in my ~/.bashrc
export PATH=${PATH}:/home/neo1691/bin

However I installed rvm and maybe it installed ~/.profile
which contains this:
# set PATH so it includes user's private bin if it exists
if [ -d $HOME/bin ] ; then
PATH=$HOME/bin:$PATH
fi

And here is my actual $PATH in a terminal session:



-- 
/home/neo1691/bin:/home/neo1691/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin:/home/neo1691/.rvm/gems/ruby-2.0.0-p451@global/bin:/home/neo1691/.rvm/rubies/ruby-2.0.0-p451/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/neo1691/.rvm/bin:/home/neo1691/.rvm/bin:/home/neo1691/bin:/home/neo1691/.rvm/bin

As you can see there are almost three occurrences of
/home/neo1691/bin, as well as many duplications of rvm!


Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahqp87pcwx6edumwy6ueaao5m3gkyrqv6zeouumrnr...@mail.gmail.com



Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-30 Thread Anubhav Yadav
Yes that worked! Thanks a lot!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ah0b+swn6f3+frzy95jbwt8l-2rru_bfwpjju3ut2y...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-30 Thread Anubhav Yadav
 And including that one in the list gives:

 xterm*color1:   #f92672
 XTerm*VT100*color: #f92672?
 XTerm*color: #f92672
 *VT100*color1:  red3


Which should be the best option for me?

xterm*color1: #f92672

or

XTerm*VT100*color1: #f92672

And what is the difference between the resources
color1 and color?

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AGqvvzOTE9M4FT05x2YNa=LvAUM6i=v+vgkd0goij7...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-03-31 Thread Anubhav Yadav
 Okay, I got you.

 First of all, if you want your i3wm to have the right PATH variable, you
 should set it before him to run, i.e. in ~/.xsession file. Here's my

Right now I have lightdm installed. In my lightdm.conf file I have this
setting:
user-session: i3

And lightdm starts my i3.

So If I make a .~/.xsession will it clash with my setup right now?

I will try your method and report again! Thanks!



-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahdtuxk19_rp0v37kzuo98jcuyan4bzhugvaead8nh...@mail.gmail.com



Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Anubhav Yadav
 The default ~/.profile on Debian already has:

 # set PATH so it includes user's private bin if it exists
 if [ -d $HOME/bin ] ; then
 PATH=$HOME/bin:$PATH
 fi


I think I am really messed up in that situation. If I run 'echo $PATH'
in a terminal session then this is the output that I get:

/home/neo1691/bin:/home/neo1691/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin:/home/neo1691/.rvm/gems/ruby-2.0.0-p451@global/bin:/home/neo1691/.rvm/rubies/ruby-2.0.0-p451/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/neo1691/.rvm/bin:/home/neo1691/bin:/home/neo1691/.rvm/bin:/home/neo1691/.rvm/bin

As you can see there is a lot of repetition over there.

So to be precise, I first used my ~/.bashrc file to export the PATH variable.
export PATH=${PATH}:/home/neo1691/bin

I remember that when I did this, there was no file called .profile in my home
directory. As I can see now, there exists one maybe because I installed rvm
and maybe rvm created a .profile

Here are the contents of my ~/.profile

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n $BASH_VERSION ]; then
# include .bashrc if it exists
if [ -f $HOME/.bashrc ]; then
. $HOME/.bashrc
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d $HOME/bin ] ; then
PATH=$HOME/bin:$PATH
fi


PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

I also saw that there is a  ~/.bash_profile whose contents are

[[ -s $HOME/.profile ]]  source $HOME/.profile # Load the default .profile


[[ -s $HOME/.rvm/scripts/rvm ]]  source $HOME/.rvm/scripts/rvm #
Load RVM into a shell session *as a function*


 Now you just have to make sure whatever method you use to start X is
 also sourcing ~/.environment.


There is no such file called ~/.environment

 Depends on what you want to achieve. Because you put $HOME/bin at the
 end of $PATH (instead of in front as ~/.environment does) a script with
 the same name in one of the other directories will take precedence over
 yours, which may or may not be what you want.

I created the script i3exit, and I believe that there is no such other script
by that name in the system

 [1] according to apt-file there is no 'i3exit' file in Debian.
Yes thats right!

Now I would really like to know as to what is the best
practice to export a PATH variable?

I mean as a linux user, I should know what happens when the
operating system boots? What files are read? What are the uses of
.xsession?
.xinitrc?
.profile?
.bash_profile?
.environment?
/etc/X11/Xsession?

And what changes when I use lightdm to startup my system?

And what again changes if I install replace my default shell
from bash to zsh?

Right now what is happening is that I am not able to run the
script i3exit with i3 window manager?

If I run this command:
`tr '\0' '\n' /proc/$(pidof i3)/environ | grep PATH`

I get the output as:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

And there is no mention of my local bin directory (~/bin)

So please guide me in this regards!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9afckosmpcpo0gj5ed_g2ctg06zuiik5m38e7pbeenq...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-03-31 Thread Anubhav Yadav
 Lightdm also uses /etc/X11/Xsession, which does a lot more than starting
 a window manager. However, it does source ~/.xsession.

I created an .xsession and the contents were as follows:

#!/bin/bash
# Set PATH
PATH=$HOME/bin:$PATH

Yet I am not able to call my i3exit script ( which I have stored in
~/bin directory)
from i3. Because somehow the PATH variable is not set according to either i3
or according to lightdm. I also have other problems with lightdm, which I would
like to discuss but lets stay on the topic for now.

 Once you feel you have to alter a system file to do something (which WM
 to use?) which affects only one user you have lost it. Your ~/.xsession
 is perfectly alright. Adding to /usr/share/xsessions or altering
 lightdm.conf are not actions to be taken as a matter of course and are
 usually not warranted.

Yes that's the lesson you taught me when I messed up with my global
.Xresources directory. ( Remember ) :)

I somehow need to get /home/neo1691/bin into my PATH variable before
starting i3, or before starting lightdm.

Thanks for hearing me out!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHjWfLV2DrpiwZ0jc=y41guk5cc+xyg11z4r0hs5ar...@mail.gmail.com



Re: .Xresources not loading on start

2014-03-31 Thread Anubhav Yadav
On Mon, Mar 31, 2014 at 9:22 PM, Brian a...@cityscape.co.uk wrote:
 On Mon 31 Mar 2014 at 05:03:14 +0530, Anubhav Yadav wrote:

 Which should be the best option for me?

 xterm*color1: #f92672

 or

 XTerm*VT100*color1: #f92672

 Both override what is in /etc/X11/app-defaults/XTerm-color. The first
 option is best for me.

Thanks that should be enough to mark this thread as solved :)

 For example, DIR is 01;34. This corresponds to color12.

 I'd suggest we are now going well beyond your original (solved) problem.

That brings to light another problem that I am facing now. I am not
able to set the
dircolors right for the ls command. But I think I should start a new
thread for the same.

Thanks for helping me out everyone. Cheers :)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AF3EDHTbvY7+z50a3o=ug8gyu2m6qc_tlg26wxxcj8...@mail.gmail.com



Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-03-31 Thread Anubhav Yadav
 Don't know what rvm is, but I'm quite sure it didn't create your
 ~/.profile.

rvm is ruby version manager[1]. I installed it recently when I started
learning ruby on rails.

 But it did change yours. I don't like it when programs mess with my
 files.

That's what, Did you see how i got so many repetitions in my $PATH.
At this moment if I just echo $PATH and place each directory on one line,
this is the repetition that I get:

/home/neo1691/bin  [*]
:/home/neo1691/.rvm/gems/ruby-2.0.0-p451@railstutorial_rails_4_0/bin
/home/neo1691/.rvm/gems/ruby-2.0.0-p451@global/bin
/home/neo1691/.rvm/rubies/ruby-2.0.0-p451/bin
/usr/local/bin
/usr/bin
/bin
/usr/local/games
/usr/games
/home/neo1691/.rvm/bin  [**]
/home/neo1691/bin  [*]
/home/neo1691/.rvm/bin  [**]
/home/neo1691/.rvm/bin  [**]

There you see the repetitions. I am really concerned about that.

 Sorry, my mistake, I meant ~/.profile. ~/.environment is where I keep
 environment variables and I source it from ~/.profile.

That is a really good idea. But I loved the idea of .profile

 If I recall correctly lightdm does not source ~/.profile, so I do it in
 ~/.xsessionrc.

So I need to create this one.

 The logical place for that would be ~/.profile (or a file sourced in
 ~/.profile to not clutter it), since that should be read on login.

So the practice is to store all your variables in ~/.profile?

 Except that it's not read by some display managers so I had to use
 ~/.xsessionrc for that.

And assuming that I have my .profile set up with my PATH variable that I want to
use, I can create a ~/.xsessionrc and just source ~/.profile in it?
That should work right?

[1]http://www.rvm.io
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agpxsnda_vxxlsgm5n1l4psg+6shrymownpqdolo6k...@mail.gmail.com



Re: Unable to execute a script without asking for sudo password, even after editing sudoers file.

2014-04-01 Thread Anubhav Yadav
 Works For Me (tm).

Thanks! It Worked! :)


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahepinxcuhaq8ej7xtgmthfvxrkfktuy1su-oqhshq...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-01 Thread Anubhav Yadav
 The basic problem is that lightdm in Debian hard-codes the path

   https://launchpadlibrarian.net/94971962/01_set-default-path.patch

Yes now I know why this is happening. Thanks!

 and there appears to be no system-wide way to alter it from within
 lightdm. It doesn't matter what WM is used - a *user* has little choice
 but to alter $PATH by employing the facilities provided by X.

Here are some settings that I found in lightdm.conf that may be of
interest here?

# General configuration
#
# start-default-seat = True to always start one seat if none are
defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# user-authority-in-system-dir = True if session authority should be
in the system location
# guest-account-script = Script to be run to setup guest account
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# xsessions-directory = Directory to find X sessions
# xgreeters-directory = Directory to find X greeters

Anything that can help me? I am interested in the xsessions-directory line

 Personally I would follow the suggestion given in

   https://lists.debian.org/debian-user/2014/03/msg01691.html

Yes that helped me, I am able to now use the script thanks to xsessionrc.

 to use .xsessionrc to hold 'export PATH=$HOME/bin:$PATH' because it is
 an environment variable. Please see Xsession(5)

I used my ~/.profile to export path variable. Here are the contents of
my ~/.profile:


# if running bash
if [ -n $BASH_VERSION ]; then
# include .bashrc if it exists
if [ -f $HOME/.bashrc ]; then
. $HOME/.bashrc
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d $HOME/bin ] ; then
PATH=$HOME/bin:$PATH
fi


PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

And then I used ~/.xsesionrc to source ~/.profile. Here are the contents of
.xsessionrc:

#! /bin/sh

if [ -f $HOME/.profile ]; then
. $HOME/.profile
fi

 There is another approach: If it was decided by the *administrator* that
 *all* users were to have access to suspending, shutting down etc the
 machine then the script could reside in /usr/local/bin.

I am the only user of my laptop, but I would love to be an administrator one
day and learn how things work in such an environment!


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AH6TJ9QMzF4gXn3itHXko_bZSmRd22YMM=bko1mvzm...@mail.gmail.com



Re: I don't receive mails from the list anymore

2014-04-01 Thread Anubhav Yadav
On Tue, Apr 1, 2014 at 11:30 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 Hi,

 this isn't an April Fools' joke. The last mail I received is from Sun,
 30 Mar 2014 00:18:46 -0400 (03/30/2014 06:18:46 AM), the archive
 documents that there was traffic after this date. Anybody experiencing
 the same? I tested my email address, it does receive emails.

 How can I find out, if I'm unsubscribed or banned?

I got this mail of yours, And I am not facing the same problem!
Good luck!


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHC6-pYpjtuSoDwkX9QB=rjgjrjntg4kb-rzeeujts...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-01 Thread Anubhav Yadav
 $HOME/.bashrc is executed when you log into X. Then its contents are
 sourced once agiain in your .xsessionrc. A double invocation seems a
 trifle inelegant.

 # set PATH so it includes user's private bin if it exists
 if [ -d $HOME/bin ] ; then
 PATH=$HOME/bin:$PATH
 fi


 PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

 It's possible you may want different paths on the console and in X.

 It's also possible that portions of your customised .profile relate
 only to things relevant to the console and which are not needed or
 wanted in X.

 And then I used ~/.xsesionrc to source ~/.profile. Here are the contents of
 .xsessionrc:

 #! /bin/sh

 if [ -f $HOME/.profile ]; then
 . $HOME/.profile
 fi

 Four lines. Compare with the single line

   export PATH=$HOME/bin:$PATH

 in ~/.xsessionrc. The configuration is aimed exactly at the target. It
 gives you what you want without having to reuse an existing file which
 has a different purpose.

 And, if we read /etc/X11/Xsession.d/40x11-common_xsessionrc we see

   #Source user defined xsessionrc (locales and other environment variables)

 Is your entry a locale or an environment variable?

My entry is an environment variable. So you suggest that I should
use .xsessionrc to export my $PATH by not my .profile?


 I am the only user of my laptop, but I would love to be an administrator one
 day and learn how things work in such an environment!

 There are many users on your laptop. Have you met 'nobody' yet? A bit
 shy but she can do a lot for you.

 You are the administrator of your machine. You are also a user. You have
 two personalities. This only user of my laptop is a cop out because it
 places the user's requirements as more important than the system's.

I still need to learn those user and groups concepts in linux yet.
It should be next on my to-do list. :)

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9afdmvgiedfui5znmcw0l2usra_bpyj8baug_oud1us...@mail.gmail.com



Unable to start nm-applet

2014-04-01 Thread Anubhav Yadav
Hi, I am using i3 windows manager and I need nm-applet to show in
i3status bar. I have added this line in my ~/.i3/config

exec --no-startup-id nm-applet

Also NetworkManager is running in the background.

If I start nm-applet as a normal user, I get lot of gtk theme warnings
regarding px, and then one final message

** Message: applet now removed from the notification area:

Here the process is still waiting to be finished but nothing happens,
so I need to press ctrl-c to interrupt.

If I run the command with sudo ie sudo nm-applet I get no gtk warnings
but I get this:




-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AF+0BKv0QrnGaL7iUOU3ZNiWev1B3HMpf3yx+Gv=V5Y=a...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-01 Thread Anubhav Yadav
Hi, I am using i3 windows manager and I need nm-applet to show in
i3status bar. I have added this line in my ~/.i3/config

exec --no-startup-id nm-applet

Also NetworkManager is running in the background.

If I start nm-applet as a normal user, I get lot of gtk theme warnings
regarding px, and then one final message

** Message: applet now removed from the notification area:

Here the process is still waiting to be finished but nothing happens,
so I need to press ctrl-c to interrupt.

If I run the command with sudo ie sudo nm-applet I get no gtk warnings
but I get this:

** Message: applet now removed from the notification area

** (nm-applet:19095): WARNING **: Failed to register as an agent: (32)
No session found for uid 0

And if I login as root, and run nm-applet, I get this:

(nm-applet:19416): GConf-WARNING **: Client failed to connect to the
D-BUS daemon:
Did not receive a reply. Possible causes include: the remote
application did not send a reply, the message bus security policy
blocked the reply, the reply timeout expired, or the network
connection was broken.
GConf Error: No D-BUS daemon running


** (nm-applet:19416): WARNING **: Failed to initialize D-Bus: Did not
receive a reply. Possible causes include: the remote application did
not send a reply, the message bus security policy blocked the reply,
the reply timeout expired, or the network connection was broken.

(nm-applet:19416): GConf-WARNING **: Directory `/apps/nm-applet' was
not being monitored by GConfClient 0x2510760

Any help. Sorry for the incomplete first message in the thread.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aey7aivudbzw_cvz11xzrtnvwga27n6r+fzfgaa_s6...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-01 Thread Anubhav Yadav
 Solution No. 1: Source ~/.profile in ~/.xsessionrc.
 Solution No. 2: Put 'export PATH=$HOME/bin:$PATH' in ~/.xsessionrc.

 The first solution gives a path including ~/bin. It also reloads an
 already loaded file, which is a waste of time, and loads other things
 which may or not be wanted. It achieves its ends with a scattergun
 approach. It works but that is about all which can said of it.

 The second solution also gives a path including ~/bin but its technique
 is surgical. It does exactly one thing and does it well. There are no
 side effects and the outcome is completely predictable.

 What you choose is up to you.

I got you, just one last question, Should I modify my .profile?
More precisely, should I remove the exporting of PATH in .profile?

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AFB3j8sCRBM=S73Et==tpnaeph9kydgztvnwmbufqa...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-01 Thread Anubhav Yadav
 If you don't need the VPN support that nm has, take a look at wicd.  Wicd
 has the advantage of also having a cli and a curses interface.

Hi, thanks for helping me out, I tried wicd.
But wicd only contained a gui to manage wireless networks, not wireless.

And I am looking an alternative for something like the xfce-panel network
applet, through which I can switch between my various profiles for
eth0 and also switch different wifi networks!


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ae9ao9padh6mr2fubw5rlzlm0rdy9okvxj4cl+ab3q...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 Seems like problems related to D-Bus. Either it's not started at all
 (check 'ps aux') or your session is not setup with the necessary
 privileges to access D-Bus. How do you start i3?

I use lightdm. It starts i3. In /etc/lightdm/lightdm.conf I have set the option
'user-session=i3' so that by default i3 is selected in the session
menu of lightdm
and not xfce, or default xsession.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AFeHMjccS3K+QOyxdE_x++rUSvhOsmTMvqhkVP=aht...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 dbus daemon is not something you start by hand, and not something that a
 window manager have to handle.

 To know if dbus is started, the easier is to run this command:
 $/usr/sbin/service dbus status.

[ ok ] dbus is running


-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agry8+l2od_80nbo_3to+5xh+gkqcljgtpyt+z1itm...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 You need an active ConsoleKit session (if you run stable) or a logind
 session (if you run unstable). Apparently this is not the case

 Assuming you run unstable, do you have libpam-systemd installed? What's
 the output of loginctl list-sessions?

Hi, I am running stable debian wheezy 64 bit. Sorry for not putting
that up in the OP
loginctl is not available in stable repositories.

and libpam-systemd is not installed on my system although it is
available in the stable
repositories!
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahvj6jbb6hfxwdl71effgtjzq6tvuusxosupggngta...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 I just took a moment to read your 2nd initial post. The errors you
 get when starting it as root are probably because the default
 configuration is to not accept ( via policy kit I guess ) using this
 applet as root. VLC have the same kind of restrictions.

 The question is, why when you start it a


 Humpf... sorry for the truncated mail... I just hit the tab key just before
 space, and it send the mail...

The same thing happened to me and hence I had to send the second
mail. I just hope that other guys are getting to read the second mail.

 so: The question is, why when you start it as a normal user? The package
 depends on lot of things ( well...gnome's bloatwares often does... ) , if
 one of those is not started correctly, it might cause the error.
 We know that it's not dbus, but IIRC, gconf, keyring, notify, and other
 stuff like that are runnable softwares. Are they started correctly?

I will just run ps aux | grep command to see if they are started correctly or
not. Is there is any other better way to see if they are started correctly or
not.

neo1691@Innovator:~$ ps aux | grep gconf
neo1691   5202  0.0  0.0  53144  2516 ?S20:26   0:00
/usr/lib/x86_64-linux-gnu/gconf/gconfd-2

neo1691@Innovator:~$ ps aux | grep keyring
neo1691   6255  0.0  0.0  15296  1036 pts/1S+   20:38   0:00 grep
--color=auto keyring
so keyring is not there, I remember I stopped the keyring service
because it was bringing up
the gnome-keyring warning whenever I used to run git commands.

neo1691@Innovator:~$ ps aux | grep notify
root33  0.0  0.0  0 0 ?S20:19   0:00 [fsnotify_mark]
neo1691   6323  0.0  0.0  15300  1032 pts/1S+   20:39   0:00 grep
--color=auto notify




-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9af_hpqaxecdaobp5jnzr3eoptvtzhdzk3q7de6x7zx...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 And please attach the ck-list-sessions output for completeness sake.

ck-list-sessions
Session5:
unix-user = '1000'
realname = 'Anubhav'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2014-04-02T14:53:20.817379Z'
login-session-id = '3'
Session2:
unix-user = '1000'
realname = 'Anubhav'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2014-04-02T14:51:39.700753Z'
login-session-id = '4294967295'

 You also need to make sure to have PolicyKit agent running in your
 session. KDE and GNOME have them integrated in their desktop shell.
 There a stand-alone versions like policykit-1-gnome or mate-polkit which
 you can use, though


neo1691@Innovator:~$ ps aux | grep policykit
root  3162  0.0  0.0 131964  4236 ?Sl   20:20   0:00
/usr/lib/policykit-1/polkitd --no-debug
neo1691   6444  0.0  0.0  15300  1036 pts/1S+   20:42   0:00 grep
--color=auto policykit

So I assume that it is running.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9afax8z4geiwmnee4dhmra11grwgjp38nsdanogmdff...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 That looks ok.
 I completely missed though that apparently nm-applet complains about a
 missing session id for uid=0.

 I hope you aren't trying to run it as root?

No, I just ran nm-applet as normal user, as sudo and as root, to show
the different
log messages. But yes I want to run it as a normal user.

In that case, the output is

(nm-applet:8313): Gtk-WARNING **: Theme parsing error:
gnome-applications.css:86:22: Not using units is deprecated. Assuming
'px'.

(nm-applet:8313): Gtk-WARNING **: Theme parsing error:
gnome-applications.css:87:19: Not using units is deprecated. Assuming
'px'.

(nm-applet:8313): Gtk-WARNING **: Theme parsing error:
gnome-applications.css:110:19: Not using units is deprecated. Assuming
'px'.

(nm-applet:8313): Gtk-WARNING **: Theme parsing error:
gnome-applications.css:110:21: Not using units is deprecated. Assuming
'px'.
...
...
...
...

** Message: applet now removed from the notification area



-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AGK-gTn4po5R=aand3fk_euon3v9kuvaluuyqqcnok...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 What theme are you using?
 Does it help if you use the default Adwaita theme (gnome-themes-standard)?

I am using the Elegant_Revisited theme , the warning comes with all
the other gtk applications.

 ** Message: applet now removed from the notification area

 Is nm-applet still running?
 Can you strace it and see if that reveals anything.

Yes the applet is still running, I need to send the interrupt ctrl-c to kill it.
How can I use strace? I have no idea what is it!

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHvsUmVr=1muh8Ued4EL_s=wyjdbaoj2awi88sjpgm...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-02 Thread Anubhav Yadav
 Oh, apparently you use sudo to start nm-applet.

 You really shouldn't do that. All the D-Bus and GConf related error
 messages etc are because you are trying to start it as root from within
 a user session.

 I'd probably try with another desktop environment. Maybe it's actually
 an issue with i3 or more specifically i3bar not showing the notification
 icon of nm-applet.

And yes xfce, and nm-applet is already there in the xfce4 panel. And
then If I run nm-applet again in a terminal in xfce session, it adds another
nm-applet there on the xfce panel. So I guess yes, something is wrong with
i3

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agwogx7+icqrnpyy24ztakiorjp9bbbc6rwyo_mqpd...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-02 Thread Anubhav Yadav
 I'll back down on that. ~/.profile tests for $BASH_VERSION, which is
 empty. Therefore $HOME/.bashrc isn't sourced through ~/.xsessionrc.
 Is this because dash is the shell being used, I wonder?


echo $BASH_VERSION
4.2.37(1)-release

So it's not empty.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9agntdyetqf0a_vyxhtzsmmymx5yvjxc6m13atqwy3v...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-02 Thread Anubhav Yadav
On Thu, Apr 3, 2014 at 12:03 AM, Brian a...@cityscape.co.uk wrote:
 On Wed 02 Apr 2014 at 23:30:10 +0530, Anubhav Yadav wrote:

  I'll back down on that. ~/.profile tests for $BASH_VERSION, which is
  empty. Therefore $HOME/.bashrc isn't sourced through ~/.xsessionrc.
  Is this because dash is the shell being used, I wonder?
 

 echo $BASH_VERSION
 4.2.37(1)-release

 So it's not empty.

 It is when ~/.profile is sourced from ~/.xsessionrc. The testing
 procedure is available on request but any response from me may be
 very slow to arrive due to the deep thought I am giving as to why
 'export PATH=$HOME/bin:$PATH' in ~/.xsessionrc should not be the
 the definitive, untroublesome, uncomplicated and trustworthy way
 of getting a path set with lightdm.

 If you or anyone else have any thoughts on this it would be most
 welcome.


No I got no problems with your solution, I only wanted to ask you that
should I let this part:

# set PATH so it includes user's private bin if it exists
if [ -d $HOME/bin ] ; then
PATH=$HOME/bin:$PATH
fi

Still be in .profile or should I delete it from it? If I am already
exporting my PATH in .xsessionrc
in one single line using export command just as you said.

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHn0EM-zz7=f+eujdg-zwgzmq+czl5p7gnm-dpmsam...@mail.gmail.com



Re: [i3]Not able to get the reboot/suspend script work.

2014-04-02 Thread Anubhav Yadav
 Leave it. Do not delete it.

Thanks! Mission accomplished.



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 https://lists.debian.org/03042014002035.9f494f9d2...@desktop.copernicus.demon.co.uk




-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9aer-21uesrqapgh6orp1xyowq5zolwoefyrdwcteqi...@mail.gmail.com



Re: Unable to start nm-applet

2014-04-05 Thread Anubhav Yadav
 install xfce
 run xfce
 kill xfwm and start i3 instead ( in the same command, or you might be
 annoyed because not having any wm will make things a lot harder to control
 your system. ).

I killed xfwm4 using kill and killall command but xfwm4 respawns itself back as
soon as I kill it.
-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9afwmq-wrjcqtxv-gw-w_ztovka2ar4eelh7votvtaz...@mail.gmail.com



Re: Ad-Hoc Configuration

2014-04-19 Thread Anubhav Yadav
On Sat, Apr 19, 2014 at 10:11 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 I have given up to get a working ad-hoc on my Linux PC to have Internet
 access for an iPad.

I am going to make you happy then.
I am using an adhoc connection successfully on my nexus 7 and nokia 79.

Download the ap-hotspot deb package here
https://launchpad.net/~nilarimogard/+archive/webupd8/+sourcepub/3958646/+listing-archive-extra

Before using dpkg to install the package make sure you have hostapd
and dnsmasq installed on your
system. They are found in the official debian repositories.

Its very easy to use,
sudo ap-hotspot start will start the script. The script will
automatically identify your network source, be it
usb or ethernet connection. And then you can use your laptop as a
makeshift router.

More info about the script can be found here.
http://www.webupd8.org/2013/06/how-to-set-up-wireless-hotspot-access.html

Working flawlessly here

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahrshhjywb4dvt1ibgqngq3qyrj2bfglukp2-xk2yf...@mail.gmail.com



Re: Ad-Hoc Configuration

2014-04-20 Thread Anubhav Yadav
On Sun, Apr 20, 2014 at 5:03 PM, Xiánwén Chén xianwen.c...@gmail.com wrote:
 Anubhav, thank you for the tip. Unfortunately, the two WiFi adapters on my
 laptop do not support AP mode either. However, I did find the script
 interesting. I followed the web page you provided, and went back to the
 original post which inspired the script you suggested, which is here:
 http://forum.xda-developers.com/showthread.php?t=2009381
 From that page, I learned how to enable NAT forwarding. So now my cellphone
 can access internet through my laptop, which the laptop is set in Ad-Hoc
 mode.


Happy to help :)

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahrz918ludo3bf47plr5vyjrlbdbcrtigstva0hbqj...@mail.gmail.com



How can I benchmark my brand new usb 3.0 WD My Passport hdd

2014-05-29 Thread Anubhav Yadav
I have purchased a WD my passport 2.5 inch external portable usb 3.0 hdd.
I wanted to benchmark the drive after connecting it to my usb 3.0 port.

I did the following two test already.


sudo hdparm -Tt /dev/sdc

/dev/sdc:
 Timing cached reads:   10856 MB in  2.00 seconds = 5431.12 MB/sec
 Timing buffered disk reads: 304 MB in  3.01 seconds = 101.00 MB/sec

and also this one:

dd if=/dev/zero of=/media/My\ Passport/output bs=8k count=10k; rm -f
/media/My\ Passport/output
10240+0 records in
10240+0 records out
83886080 bytes (84 MB) copied, 2.03511 s, 41.2 MB/s

I tried gnome-disk-utility but it says that since the disk contains a
GPT, it cannot benchmark the disk.

Are there any better ways to find out about the read-write speeds of my disk?

-- 
Regards,
Anubhav Yadav
Imperial College of Engineering and Research,
Pune.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CA+Jf9AHJLYodSshxVnQY5jVtCjqdS1NZ=4yvzkjogb5vmhx...@mail.gmail.com



Re: How can I benchmark my brand new usb 3.0 WD My Passport hdd

2014-05-29 Thread Anubhav Yadav
 It's not exactly obvious what you're trying to achieve. You already
 bought the drive. Do you intend to return it if the tested speeds are
 not to your liking?

 Or maybe you just want to know what speeds to expect when doing
 real-life transfers? Then the best test is to actually time those
 transfers...

Sorry for not being more clear before. I would like to know
1) If I am benchmarking the right way?
2) Is what I am getting is the standard speed?
3) If no then is this problem OS related or Device related?

Some extra things I would like to point out about the hdd:-
1) It is partitioned to ntfs by default.
2) Its model no is WDBZFP0010BBK


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/ca+jf9ahe4pzbjoco1nmxehhx7fhswomvapfbk4chnm24rdr...@mail.gmail.com



<    1   2