How to detect what file was installed?
Hi debianer! I am rather new to linux and debian. Here is my stupid question: Usually I use aptitude to search for a package, and install and uninstall packages. My problem is, I can't figure out what files apt copied into my computer, and where were those files installed. I know I can use the which command to detect where a executable file reside in, but how about all the other stuff? Further, if I am not using apt but compile a software from source code, what is the proper way to find out what/where did the installation copied to my system? Thx in advance! -- 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/01bfd2fb-fcfa-4925-8b86-71ab8869a...@googlegroups.com
How to set display resolution manually?
Hi debianer! I installed debian-wheezy on my lenovo x121e laptop, and since it comes with a only 11.6 inch display, I plugged in a monitor through VGA port. Fortunately without any configuration I could got the same content display on both my laptop and the monitor I plugged. However the resolution are both 1366x768, which is not enough for my full HD monitor. So I don't want fancy dual-display, I just want to fix the resolution on my monitor to become 1920x1080. How can I do it? (I read several articles said about xorg.conf, and I re-write piece of my xorg.conf: Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 1 EndSubSection SubSection Display Viewport 0 0 Depth 4 EndSubSection SubSection Display Viewport 0 0 Depth 8 EndSubSection SubSection Display Viewport 0 0 Depth 15 EndSubSection SubSection Display Viewport 0 0 Depth 16 EndSubSection SubSection Display Viewport 0 0 Depth 24 Modes 1920x1080 EndSubSection EndSection Then I restart x by startx, what I got is a zoomed region which I guess is 1366x768 inside the monitor, and the left region is black.) Please help! -- 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/6203f7b6-2b46-422e-a569-043bf29e8...@googlegroups.com
Re: How to set display resolution manually?
Basically I don't use any desktop system, instead I use the windows manager: ratpoison. So unfortunately I don't have those utilities come with gnome... Yeah x121e is great, especially for light-weight linux :) 2012年11月7日水曜日 23時10分03秒 UTC+9 Jon Dowland: On Wed, Nov 07, 2012 at 05:37:06AM -0800, houkensjtu wrote: I installed debian-wheezy on my lenovo x121e laptop, and since it comes with a only 11.6 inch display, I plugged in a monitor through VGA port. Fortunately without any configuration I could got the same content display on both my laptop and the monitor I plugged. However the resolution are both 1366x768, which is not enough for my full HD monitor. So I don't want fancy dual-display, I just want to fix the resolution on my monitor to become 1920x1080. How can I do it? What desktop environment are you using? With GNOME 3, System Settings → Displays And what you set is re-used next time you attach the monitor. (I have the x121e! It's a great laptop.) -- 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/20121107140454.GE32758@debian -- 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/149d143f-ba74-4faf-90ac-f04f8c4ae...@googlegroups.com
Re: [Fwd: Re: How to set display resolution manually?]
Thanks for detailed reply! I tried out xrandr, it did the trick that I got 1920x1080 resolution. HOWEVER, I found still the problem: I can only got 1366x768 region usable on my monitor, which means, when I start out any application, for example konsole, chromium, whatever, they were displayed in a 1366x768 region and the rest region was black. Strange thing is, I can move my mouse cursor out of that region into the dark region... maybe I should read more articles on xrandr... Thx! -- 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/539a4db3-c6ec-4285-b0ae-fe2c7d303...@googlegroups.com
Re: [Fwd: Re: How to set display resolution manually?]
Thanks so much for your continuous reply! What you said was a little bit complicated to me, and I will spend some time to try each solution. As for konsole, I also noticed its huge size. My reason is simple and maybe stupid...because I found it's not straight forward to configure font and font size in xterm. I read several articles on this topic, each offers different solution so I got lost. Which kind of terminal do u use, btw? Ratpoison is great. It has a emacs-like key binding system, also if you want, you can customize everything. I think i3 can also do most of the job but why not have a try. Also search for stumpwm, really powerful wm, which I think is the father of ratpoison... -- 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/215858f9-c7e6-4d41-938f-fd2b665cc...@googlegroups.com
Re: [Fwd: Re: How to set display resolution manually?]
A quick result: I tried out change my wm from ratpoison to fluxbox. And it almost worked out. When I started up fluxbox, the tab bar is on the bottom of my screen now, left no black region. Still, when I started up application like konsole or chromium, it appears in 1366x768 resolution, but since now I am using fluxbox, I can drag the window to become full size... So your guess was accurate...I always hope myself could have such great ability...(Maybe just because i am just newbie:)) -- 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/f654e016-3398-43ca-b474-f589f7b5d...@googlegroups.com
finch key-binding doesnt work
Hi debianer! Recently I installed finch on my debian laptop. Here is my lsb_release -a: LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Debian Description:Debian GNU/Linux testing (wheezy) Release:testing Codename: wheezy I installed finch by apt-get install finch. Unfortunately all key-binding doesn't work in Xterm. Since xterm is the most frequently used term for me, it's quite annoying. I found on debian bug report log that also other people got same problem. Any idea to fix this? --I don't want to open another konsole just for using finch... -- 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/fa0ca28c-bce5-4d2d-a49b-f92c59c01...@googlegroups.com
More on port forwarding(ssh, netcat and amule!)
Hi debianer! I post a question about port forwarding yesterday and got quick reply, big thanks! Now I still have sth. not clear and it can be described as: I have a laptop in my home, which is connected to my router. Yesterday, I succeeded in open a ssh port(22) on router, and start ssh server on my laptop. Now I can access my laptop from office by ssh USER@my_home_external_ip. Also, scan port by using netcat from office: nc -vz my_home_external_ip 22 gives me: Connection to my_home_external_ip port [tcp/ssh] succeeded! Today, I tried to open another port on my router, let me call it 1234. And I set amule on my laptop to use port 1234 for both tcp and udp. Fortunatelly, I got a High ID as expected. And then I got confused. I tried to scan port 1234 from my office: nc -vz my_home_external_ip 1234 it says: nc: connect to my_home_external_ip port 1234 (tcp) failed: Connection refused However, after I remote access my laptop, launch amule on it, netcat now can: Connection to my_home_external_ip 1234 port [tcp/*] succeeded! It seems that, not only on the router, but also I should open a specific port on my laptop, otherwise netcat will not be able to connect from outside my home. I wonder why this happens and what is the mechanism behind it. Is it possible to open a port in debian, without launch certain software so I can netcat from outside to my home laptop? Thanks! -- 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/1ba8a1d0-b205-42a1-a9a3-393852fe4...@googlegroups.com
newbie question on port forwarding(and ssh, netcat)
Hi debianer! I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router, also I started ssh server on my home laptop. (suppose my username at home is USER, and my laptop is called DEBIAN) I did several experiment and I got confusing in some of its result. 1. ssh USER@DEBIAN works well!! 2. nc -vz my_home_external_ip 22 [my_home_external_ip] 22 (ssh) : Connection refused I cant understand why is it. Because I have actually succeeded in test 1! 3. ssh -l USER my_home_external_ip ssh: connect to host my_home_external_ip port 22: Connection refused This also doesnt work! I thought it should be equivalent to test 1, but things just dont work. Any one can explain this? -- 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/95c24d80-4052-429d-8658-cf3f447ff...@googlegroups.com
Re: newbie question on port forwarding(and ssh, netcat)
Hi Joe! Thank you for detailed reply! Actually I found a switch which solved my problem and now all my experiments works perfectly. The command is: echo 1/proc/sys/net/ipv4/ip_forward but...What is it?! Is there any other way to check and configure my laptop's status without writing directly to this file? ...well I know, linux is all about file... Joe於 2012年10月11日星期四UTC+9上午3時50分02秒寫道: On Wed, 10 Oct 2012 08:35:13 -0700 (PDT) houkensjtu houkens...@gmail.com wrote: Hi debianer! I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router, also I started ssh server on my home laptop. (suppose my username at home is USER, and my laptop is called DEBIAN) I did several experiment and I got confusing in some of its result. 1. ssh USER@DEBIAN works well!! 2. nc -vz my_home_external_ip 22 [my_home_external_ip] 22 (ssh) : Connection refused I cant understand why is it. Because I have actually succeeded in test 1! 3. ssh -l USER my_home_external_ip ssh: connect to host my_home_external_ip port 22: Connection refused This also doesnt work! I thought it should be equivalent to test 1, but things just dont work. Any one can explain this? Not yet. Many commercial networks operate firewalls affecting the connections leaving the network so as yet you don't know which end of the connection has an issue. Divide the problem into two parts: the simplest way to check port forwarding is to use an external website from home, that way you can change things without travelling from your office, and you know the other end will have no firewall problems. A simple and slightly alarming but fairly reliable site is http://grc.com. Click on Shields Up!!, scroll down over halfway and click the heading Shields Up!, then Proceed, and Continue, then Common Ports (you can enter 22 manually, but the Common Ports is a quick test and just one click is needed). You're looking for 22 shown as Open, and probably all others as Stealth. Ignore all the dire warnings, this is a site for Windows users and they need to be scared. If 22 is not shown as Open, then you either haven't got the forwarding right, or sshd isn't running as you expect. If the router looks right, from your laptop try ssh IP address of laptop. This isn't the same as ssh localhost, as the ssh server treats different interfaces separately. If all is well at this end, but there is still a problem from your office, then you need to ask about outgoing firewalling there. However you resolve the initial problem, the ssh server is very heavily targeted by the bad guys, using password checking bots. A quick and dirty security measure is to forward a non-standard high numbered external TCP port to laptop:22 (nearly all routers should be able to do that) or to forward it to the same port of the laptop, and reconfigure the ssh server to listen on that port (the Port xxx line(s) in /etc/sshd_config). Remember to restart the ssh server if you need to do this. Six people will now leap in and say that's not going to improve security, all the bad guys have to do is run a portscan to find your server. However, scanning 65,000 ports of the same IP address across the Internet is no small undertaking, and will certainly attract attention, and I've never yet seen a bot attempt it. I don't get *any* connection attempts to my ssh port, while 22 gets 10-100 a day. The long-term solution is to disable passwords and use public-private key pairs for authentication, which is not really difficult, but is not for a complete beginner, and can certainly not be tried until you have the system working reliably on passwords. A quick Google for ssh public key tutorial turns up a vast number of sites to help with this. If you need to work from Windows, by the way, the puTTY program is pretty much the industry standard. There is also a Portable Apps version of it, which does not write anything to the Windows machine. -- Joe -- 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/20121010194427.02ca4...@jretrading.com Joe於 2012年10月11日星期四UTC+9上午3時50分02秒寫道: On Wed, 10 Oct 2012 08:35:13 -0700 (PDT) houkensjtu houkens...@gmail.com wrote: Hi debianer! I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router
Re: newbie question on port forwarding(and ssh, netcat)
Brian於 2012年10月11日星期四UTC+9上午8時00分04秒寫道: On Wed 10 Oct 2012 at 08:35:13 -0700, houkensjtu wrote: I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router, also I started ssh server on my home laptop. (suppose my username at home is USER, and my laptop is called DEBIAN) I did several experiment and I got confusing in some of its result. 1. ssh USER@DEBIAN works well!! We assume this means you were able to log in with your password, so it very much looks like you have set up port forwarding to the home machine correctly. Would you please say how your office machine resolves the IP number for DEBIAN. 2. nc -vz my_home_external_ip 22 [my_home_external_ip] 22 (ssh) : Connection refused I cant understand why is it. Because I have actually succeeded in test 1! What do get with ssh USER@my_home_external_ip ? 3. ssh -l USER my_home_external_ip ssh: connect to host my_home_external_ip port 22: Connection refused This also doesnt work! I thought it should be equivalent to test 1, but things just dont work. 'Connection refused' would indicate there is a route to the host but there is no daemon running on port 22. -- 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/20121010225534.GJ30872@desktop Thanks for great reply!! I have to apologize for sth... I forgot to say that all these experiments were done in home on my laptop...omg So, now I solved the problem with echo 1/proc/sys/net/ipv4/ip_forward What is this file? Is there any other way to check or configure my laptop with out writing directly to this file? -- 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/46b9951a-dffd-4f59-aa06-f5e66332f...@googlegroups.com
Re: newbie question on port forwarding(and ssh, netcat)
Thanks Joe, Brian, Murphy As I post above, I forgot to say all these experiments were done in my home on my laptop... Now I am in my office and re-do all this experiment. To be short, now all experiment which is done with ip address works well, while if I do ssh USER@DEBIAN, it will say: ssh: Could not resolve hostname debian: Name or service not known I am wondering, who(or what device,server) will resolve the hostname? Is it possible to resolve my laptop's name from my office?? 2012年10月11日木曜日 1時00分03秒 UTC+9 houkensjtu: Hi debianer! I am a newbie both of debian and networking... Recently I am trying to connect my home laptop(I have a router in my home) from office. I read several articles on port forwarding. And I succeeded in opening an 22 port on my router, also I started ssh server on my home laptop. (suppose my username at home is USER, and my laptop is called DEBIAN) I did several experiment and I got confusing in some of its result. 1. ssh USER@DEBIAN works well!! 2. nc -vz my_home_external_ip 22 [my_home_external_ip] 22 (ssh) : Connection refused I cant understand why is it. Because I have actually succeeded in test 1! 3. ssh -l USER my_home_external_ip ssh: connect to host my_home_external_ip port 22: Connection refused This also doesnt work! I thought it should be equivalent to test 1, but things just dont work. Any one can explain this? -- 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/95c24d80-4052-429d-8658-cf3f447ff...@googlegroups.com -- 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/84255302-35f8-4009-9f05-af25a076d...@googlegroups.com
Laggy when viewing youtube video in fullscreen mode
Hi debianer! I installed debian on my new laptop, the lenovo x121e. I have no problem viewing 720p videos using vlc player. Everything is also fine when viewing youtube in window mode, however if I switch to fullscreen mode, it becomes quite laggy. I believe it's not because my hardware capability. Here is my lsb_release: LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Debian Description:Debian GNU/Linux testing (wheezy) Release:testing Codename: wheezy and I am using the Chromium browser. Any idea? -- 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/0ba6c2c3-6879-4d3f-95c3-50c7e292d...@googlegroups.com
how to vncviewer my home pc from office?
I have a debian laptop in my home, which is connected to a router(which is connected to my modem). I did ifconfig on my laptop and it gaves me a bunch of information and I noticed there is a ip addr. which is 192.168.1.3...And I opened a vncserver on my laptop. I tried to connect my laptop from my office by vncviewer 192.168.1.3:1 but things not work...by saying vncviewer: ConnectToTcpAddr: connect: No route to host Unable to connect to VNC server I know my question seems stupid but plz help me! -- 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/5ed779a1-dc72-4752-9778-d79a54413...@googlegroups.com
how to uninstall gnome totally?
I have been using ubuntu for a while and now I decided to switch to debian. Here is my question: If I download a debian CD with GNOME desktop system, how can I totally uninstall it? I found a lot relating package in aptitude and I was confused. -- 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/c27c2c8f-143b-4513-ae12-c826d3665...@googlegroups.com