after usermod can not su to root
Dear debian users, I used to use islanddancer as username to login to my sid laptop. and islanddancer is in sudoers file. today I changed it to zhengquan using sudo usermod -l zhengquan islanddancer I did nothing else. Now I can login using zhengquan but I was not able to su to root using the root password. also 'zhengquan' is not in sudoers file so now I can not edit /etc/sudoers to include zhengquan. Any help to save my system is greatly appreciated! Regards, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: after usermod can not su to root
2009/4/11 Harry Rickards hricka...@l33tmyst.com: On 11 Apr 2009, at 18:58, zhang zhengquan zhang.zhengq...@gmail.com wrote: Dear debian users, I used to use islanddancer as username to login to my sid laptop. and islanddancer is in sudoers file. today I changed it to zhengquan using sudo usermod -l zhengquan islanddancer I did nothing else. Now I can login using zhengquan but I was not able to su to root using the root password. also 'zhengquan' is not in sudoers file so now I can not edit /etc/sudoers to include zhengquan. Do you mean 'sudo su' is not working? If so just use 'su', and enter the I did su root.. root password, not your password. If you don't know the root password try I know the root password but now it does not work after I did the usermod.. pressing 'e' on the right GRUB entry, and adding 'single' to the end of the line. This boots up Debian as root. Thanks I will try this. -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
[solved] Re: after usermod can not su to root
pressing 'e' on the right GRUB entry, and adding 'single' to the end of the line. This boots up Debian as root. Thanks for the single user method, I did usermod -l islanddancer zhengquan in single user mode. and was able to su root again. Thank you so much, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: xterm font sizes choices?
2009/4/8 Rob Starling debian-u...@robstarling.org: On Tue, Apr 07, 2009 at 10:48:39PM -0500, Zhengquan Zhang wrote: On Wed, Apr 08, 2009 at 01:18:04AM +0200, Florian Kulzer wrote: On Tue, Apr 07, 2009 at 16:58:50 -0500, Zhengquan Zhang wrote: I think I have a pretty normal setting and I did touch anything, so how can I tell my dpi is low? Run xdpyinfo | grep -E 'dim|resol' dimensions: 1280x1024 pixels (376x301 millimeters) resolution: 86x86 dots per inch Thanks, Florian, so if the resolution is low, do you have any ideas to increase that? if the dimensions are right, then that is the correct resolution. 1280 / 14.8031496 = 86.4680851 dpi Thanks, then maybe 10x20 is just small for me... --Rob* -- /-\ | If we couldn't laugh we would all go insane | | --Jimmy Buffett, | | Changes in Latitudes, Changes in Attitudes | \-/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
unable to boot, how to install the package that cause problem?
Dear debian users, I have installed some boot splash related packages on my girlfriends laptop running sid, and it turned out that it is unable to boot after that, I have a system rescue cd that boots well in to another linux on the cdrom. I wonder if it is possible to uninstall the package installed on debian using the system rescue cd? Thank you very much, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: unable to boot, how to install the package that cause problem?
2009/4/5 Daniel Dalton d.dal...@iinet.net.au: On Sun, Apr 05, 2009 at 09:53:36PM -0500, zhang zhengquan wrote: Dear debian users, Good afternoon I have installed some boot splash related packages on my girlfriends laptop running sid, and it turned out that it is unable to boot after that, Ah damn! :) I have a system rescue cd that boots well in to another linux on the cdrom. Great. I wonder if it is possible to uninstall the package installed on debian using the system rescue cd? I'm sure it is... Perhaps not the best way: but you could mount the partition eg. mount /dev/sda1 /mountpoint Now just run a find command on /usr or whatever directory it is installed in and delete the binaries. Otherwise just find out which start up script is starting it and remove the call to start it on boot. This should allow you to boot the machine then use aptitude to remove it. Perhaps consult /etc/rcS.d/ or rcconf, or /etc/rc.local, but most likeley not... But I would first look in the boot scripts. Daniel. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknZic0ACgkQQCYsNYjKJVAJJQCfQyNAwvLAWabeXZEG20Q08Ecm 9LkAniUgLncUlUWdpl6hVn7dLLohpwjM =qRU/ -END PGP SIGNATURE- Thanks, Daniel, that is a good idea, I will take a look at the boot script I wonder if I can use aptitude to remove it though, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: how to purge unused softwares on servers
2009/4/4 Andrei Popescu andreimpope...@gmail.com: On Fri,03.Apr.09, 17:09:50, zhang zhengquan wrote: Dear debian users, I have now got several servers for different applications under debian, some are very old and previous admin have installed lots of packages on them. like Xorg... gnome... kde related. I really want to purge them and get some space. I would like to find out a way to make some statistics about which package has been used by which user at which time etc. Is that possible to do that? If you had popcon installed this might help: # popcon-largest-unused Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknXGF4ACgkQqJyztHCFm9kyVgCgtqs+yTHBKGszDbKCi0SThKue 8w4An0mfoEbaFek6Z9ZuPkVq6UM5zwKf =NxfV -END PGP SIGNATURE- Thanks, Andrei! -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apache log rotate
2009/4/4 michal krajcirovic konfere...@kraja.net: Hello, creating access.log from apache2. I want at the same time (namely, every minute) without restart / reload apache start either log into another file, or rename the existing log to another file and log to a file with the same name. Given that the number of logs up to 30 lines per second, it is not possible to make a copy. Then I reset the file. And each new minute, net log, and doesnt lost any line. Any tips on how to? Any experience with this problem? thank you mk -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org I have got the same problem here, I wonder if logrotate can do that. have not tried yet. -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
how to purge unused softwares on servers
Dear debian users, I have now got several servers for different applications under debian, some are very old and previous admin have installed lots of packages on them. like Xorg... gnome... kde related. I really want to purge them and get some space. I would like to find out a way to make some statistics about which package has been used by which user at which time etc. Is that possible to do that? Thanks, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
lvm and multiboot
Hello, Debian community, I have got a 250G harddisk that I can use for a debian lenny installation. I have met with partition size problems before so this time I would use LVM. and since it will be a server so /var /srv etc will grow in size later on. at the same time I would like to have 50G left untouched possibly for another OS such as Mac, windows, other linux distro, etc.. I read something that it is not good for /boot and / to reside on lvm partitions. So my question is that how to use debian installer to partition the harddrive to suit my purpose? I am pretty familiar with normal debian install process but I am new to lvm and am not aware of any unexpeced results from lvm Considering I may need to do multi boot later on. So could any one offer me some insights into this? Thanks a million, Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re : lvm and multiboot
2009/4/2 Eloillaf Mhamed m_eloil...@yahoo.fr: - Message d'origine De : zhang zhengquan zhang.zhengq...@gmail.com À : debian-user@lists.debian.org Envoyé le : Jeudi, 2 Avril 2009, 19h13mn 30s Objet : lvm and multiboot Hello, Debian community, I have got a 250G harddisk that I can use for a debian lenny installation. I have met with partition size problems before so this time I would use LVM. and since it will be a server so /var /srv etc will grow in size later on. at the same time I would like to have 50G left untouched possibly for another OS such as Mac, windows, other linux distro, etc.. I read something that it is not good for /boot and / to reside on lvm partitions. So my question is that how to use debian installer to partition the harddrive to suit my purpose? I am pretty familiar with normal debian install process but I am new to lvm and am not aware of any unexpeced results from lvm Considering I may need to do multi boot later on. So could any one offer me some insights into this? Thanks a million, Zhengquan Hi, In fact, if you want to use lvm you'v got to make sure that your volumes are activated before loading the kernel. This needs many handy and precise manipulations with grub. A better way is to create an ext3 or ext4 what ever (classic) /boot partition (with 250Mo for example) to boot then use the remaining disk space as lvm. This is than simply if using the lenny installer. Once at the patitionning phase choose lvm then the wisard take care of everything. Or at this phase go back and launch a shell from the menu of te installer, then do your partitionning using fdisk - don't forget to change the type of you lvm partition (I think 8e) with the commande (t ) from fdisk menu. After the partitionning done you can use pvcreate, vgcreate and lvcreate to construct your disk volume structure. This is a small picture but if you do googling you'll probably find more details. Hope it helps. bye. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Thanks Eloillaf, At least I know it is now feasible, I will google the rest of the details, -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: lvm and multiboot
2009/4/2 Celejar cele...@gmail.com: On Thu, 2 Apr 2009 23:18:36 -0500 zhang zhengquan zhang.zhengq...@gmail.com wrote: 2009/4/2 Stefan Monnier monn...@iro.umontreal.ca: I read something that it is not good for /boot and / to reside on lvm partitions. Only /boot needs to be on a non-LVM volume. I always partition my root drives with a 100-200MB /boot partition and the rest as a single partition devoted to LVM. Actually, I also do that for secondaryexternal drives, where the small boot partition is simply left unused (but can come in handy if I ever need to switch drives around). why is the boot partition left unused, it is supposed to contain kernel images, right? Besides, if you use the rest as a single partition, is that possible to create separate partitions for /var /usr etc? He means that the boot partitions of his secondary and external drives are unused, since /boot only exists on his root drive. /var and /usr can be created as logical volumes on top of the single partition used by LVM Celejar So if I understand it correctly it is not multiboot situation. That is great idea and really gives me lots of flexibility resizing partitions. If I use lvm for the rest of the drive except /boot, can I possibly reduce the size of the lvm volume group and get some free space unformatted not controlled by lvm? Thank you, Zhengquan -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: lvm and multiboot
2009/4/2 Stefan Monnier monn...@iro.umontreal.ca: I read something that it is not good for /boot and / to reside on lvm partitions. Only /boot needs to be on a non-LVM volume. I always partition my root drives with a 100-200MB /boot partition and the rest as a single partition devoted to LVM. Actually, I also do that for secondaryexternal drives, where the small boot partition is simply left unused (but can come in handy if I ever need to switch drives around). why is the boot partition left unused, it is supposed to contain kernel images, right? Besides, if you use the rest as a single partition, is that possible to create separate partitions for /var /usr etc? So my question is that how to use debian installer to partition the harddrive to suit my purpose? I am pretty familiar with normal debian install process but I am new to lvm and am not aware of any unexpeced results from lvm Considering I may need to do multi boot later on. I remember it took me a bit of time to figure out how Debian install's partitioner handles LVM, but it wasn't too terrible and it was pretty safe (carefully warning you before doing something that might wipe out valuable data, and also careful to only wipe out that data that really needs to be wiped out). Thanks for reminding, I need to be careful with that. Stefan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
installing debian on AMD opterons
Hello, debian community, Tomorrow I will install lenny on a server with two dual core AMD opteron cpus. I would like any debian users to confirm that this is what I need to download, burn and install? http://cdimage.debian.org/debian-cd/5.0.0/amd64/iso-cd/debian-500-amd64-CD-1.iso and I vaguely remember it is troublesome to install 64bit linux and it will have lots of compatibility issues? Is that still the case for lenny? Thanks for any pointers, Zhengquan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
[solved] Re: installing debian on AMD opterons
Thank you guys, deian rocks! Z 2009/4/1 Ron Johnson ron.l.john...@cox.net: On 2009-04-01 16:37, zhang zhengquan wrote: Hello, debian community, Tomorrow I will install lenny on a server with two dual core AMD opteron cpus. I would like any debian users to confirm that this is what I need to download, burn and install? http://cdimage.debian.org/debian-cd/5.0.0/amd64/iso-cd/debian-500-amd64-CD-1.iso Yup. and I vaguely remember it is troublesome to install 64bit linux and it will have lots of compatibility issues? Used to be. Is that still the case for lenny? Nope. -- Scooty Puff, Sr The Doom-Bringer -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
sudoer security problem on server
Hi, there, I am exposed to a sudoer security problem on a server. the server is running debian etch and every so often users on it would ask me for sudoer permissions. I would simply add username ALL=(ALL) ALL to the /etc/sudoers file. But now I am worried, it is a developement server that devs on it wants some privileges to install stuffs. but what I did is literally giving them root privileges. They can do anything they want on it although I guess they would not do anything malicious on it. I wonder if a sysadmin should keep the root privilege safe and not give sudo to anybody anybody else. and if there is more secure ways of enabling root privilege to normal users? Thanks for any pointers. Z -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: parallel programming on debian
Thank you, basically, I don't have access to IRIX machines and I wonder if there are counterparts or similar headers in linux that I can use for parallel programming. 2009/1/31 Micha Feigin mi...@post.tau.ac.il: On Sat, 31 Jan 2009 08:03:43 -0800 ow...@netptc.net wrote: Original Message From: ron.l.john...@cox.net To: debian-user@lists.debian.org Subject: Re: parallel programming on debian Date: Fri, 30 Jan 2009 23:08:15 -0600 On 01/30/2009 10:01 PM, zhang zhengquan wrote: Dear all debian users: I am taking a course on parallel programming and I wonder if anyone has encountered the same library problem, the code example the instructor provides has #include ulocks.h #include task.h and obviously the header files are not available in any packages for debian sid. Is there any way to get over this problem? Ask the teacher where to get the headers. -- Ron Johnson, Jr. Jefferson LA USA I am not surprised, for we live long and are celebrated poopers. The brackets around the header files usually indicate to the compiler that the files are part of the 'standard' libraries. Normally for non-standard header files you remove the braces and place the header files in some known location (e.g. in the same directory as your source code). Larry It means that they are installed in standard places, doesn't mean that they are standard headers, or otherwise it would also work if you pass -I. to the compiler. Trying to look for them together though it turns out that they are sgi/irix multi processing routines. Couldn't find linux exact equivalents http://nixdoc.net/man-pages/IRIX/m_fork.3p.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.d ebian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: parallel programming on debian
Thanks a lot. Now I know what I need to do now. 2009/1/31 Micha Feigin mi...@post.tau.ac.il: On Sat, 31 Jan 2009 12:44:58 -0600 zhang zhengquan zhang.zhengq...@gmail.com wrote: Thank you, basically, I don't have access to IRIX machines and I wonder if there are counterparts or similar headers in linux that I can use for parallel programming. The problem is not the headers, you can include them per system using an ifdef. The problem is that linux doesn't have the same functions as far as I can tell. The current linux standard is pthreads. There is also fork/vfork (create a child process) and there used to be light weight threads years ago, can't for the life of me remember the exact name and reference. I think it came from sysv but not sure. Maybe someone else has a better memory than me. In hpc (high performance computing), OpenMP and MPI are more prevalent as they are designed for mathematical parallel processing and takes care of a lot of the overhead specific to these aims, but they are probably what you are looking for at the moment. 2009/1/31 Micha Feigin mi...@post.tau.ac.il: On Sat, 31 Jan 2009 08:03:43 -0800 ow...@netptc.net wrote: Original Message From: ron.l.john...@cox.net To: debian-user@lists.debian.org Subject: Re: parallel programming on debian Date: Fri, 30 Jan 2009 23:08:15 -0600 On 01/30/2009 10:01 PM, zhang zhengquan wrote: Dear all debian users: I am taking a course on parallel programming and I wonder if anyone has encountered the same library problem, the code example the instructor provides has #include ulocks.h #include task.h and obviously the header files are not available in any packages for debian sid. Is there any way to get over this problem? Ask the teacher where to get the headers. -- Ron Johnson, Jr. Jefferson LA USA I am not surprised, for we live long and are celebrated poopers. The brackets around the header files usually indicate to the compiler that the files are part of the 'standard' libraries. Normally for non-standard header files you remove the braces and place the header files in some known location (e.g. in the same directory as your source code). Larry It means that they are installed in standard places, doesn't mean that they are standard headers, or otherwise it would also work if you pass -I. to the compiler. Trying to look for them together though it turns out that they are sgi/irix multi processing routines. Couldn't find linux exact equivalents http://nixdoc.net/man-pages/IRIX/m_fork.3p.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.d ebian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
parallel programming on debian
Dear all debian users: I am taking a course on parallel programming and I wonder if anyone has encountered the same library problem, the code example the instructor provides has #include ulocks.h #include task.h and obviously the header files are not available in any packages for debian sid. Is there any way to get over this problem? Thanks a lot, Zhang -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: vim like completion in bash?
Thanks, I'll try that. On Sun, Mar 04, 2007 at 12:22:09PM +0100, Franck Joncourt wrote: On Sun, Mar 04, 2007 at 05:47:43PM +0800, Zhengquan Zhang wrote: I mean bash can not expand the wildcard after I press tab. In a directory, there are two files: aaa and bbb I type vi *aa* in the command line and press tab it can not be expaned to vi aaa I want this kind of effect although it may not be possible. Thank you. I do not see any solution except for the writing of little bash script. Something like that : #!/bin/sh for file in *$1*; do echo $file; done ; vim $file; ./test.sh aaa should work if you have only one file. To make it easy to use you can add an alias in your .bashrc file. -- Franck Joncourt http://www.debian.org http://smhteam.info/wiki/ GPG server : pgpkeys.mit.edu Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE -- Zhang Zhengquan Department of Electronic Engineering Tsinghua University Beijing, P.R.China. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]