Re: [gentoo-user] Raspberry Pi, gentoo and FritzCard USB2.1
Am Samstag, 25. Januar 2014, 06:01:32 schrieb Jens Reinemuth: Hi everybody... [...] Hi again... as there was no response and i did again a lot of googling there really seems to exist no way to use a usb fritzcard with a kernel 2.6.x and no one ported a driver... Now i have the problem that i have to use a 20m cable to use an fritzcard pci in my main server at least that one seems to work with newer kernels. regards, Jens -- If you think things can't get worse it's probably only because you lack sufficient imagination.
[gentoo-user] Re: Portage performance dropped considerably
Andrew Savchenko birc...@gmail.com wrote: Another challenge is to make dependency resolution parallel It's a challange but won't solve the problem: On fast processors portage's speed is not so much a big issue. Moreover, the factor you can obtain this way is in the (unrealistic) best case at most the number of cores. Realistically, on a dual core perhaps the factor 1.3 (and at the price of blocking parallel running applications correspondingly more).
Re: [gentoo-user] Re: Portage performance dropped considerably
On Mon, Feb 3, 2014 at 2:55 AM, Martin Vaeth mar...@mvath.de wrote: On fast processors portage's speed is not so much a big issue. What kind of processor have you got, and where can I get one? -gmt
[gentoo-user] Net work cards
Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this?
Re: [gentoo-user] Net work cards
Am 03.02.2014 13:36, schrieb Stephen Reynolds: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this? Are the kernel modules for your network desvices loaded? What's the output of ifconfig -a? signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Net work cards
On 03/02/2014 14:36, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel hassupport for both. Please advise me as to what steps I can take to fix this? If you are doing an install, you are probably following the handbook. The relevant chapter is: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1chap=7 For the folks here to be of much use to you, you'll have to describe what parts of this process work, what doesn't, and what parts you are stuck on. As worded, your question is too vague to answer properly, you haven't given enough information. A good start would be the output of lspci, plus a list of which drivers you enabled in the kernel. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Net work cards
Thanks for the quick response, I will check and get back to you. I am not in front of my pc right now. On Mon, Feb 3, 2014 at 2:57 PM, Michael Hampicke m...@hadt.biz wrote: Am 03.02.2014 13:36, schrieb Stephen Reynolds: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this? Are the kernel modules for your network desvices loaded? What's the output of ifconfig -a?
[gentoo-user] Re: Portage performance dropped considerably
Greg Turner g...@malth.us wrote: On Mon, Feb 3, 2014 at 2:55 AM, Martin Vaeth mar...@mvath.de wrote: On fast processors portage's speed is not so much a big issue. What kind of processor have you got, and where can I get one? I run gentoo on i3 (double core), c2 (double core), athlon, and pentium3. Only on athlon and pentium3 the speed is really annoying. So increasing the speed on the two faster processors by a factor 1.3 by parallelization, probably even at the cost of slightly decreasing the speed on the slower processors (perhaps even dramatically if the algorithm then needs more swap usage which already occurs now with 512MB RAM) will altogether be perhaps even counterproductive for my use case.
Re: [gentoo-user] Re: Portage performance dropped considerably
On Jan 28, 2014 5:57 AM, Neil Bothwick n...@digimed.co.uk wrote: On Mon, 27 Jan 2014 22:54:28 +0100, hasufell wrote: If it's about performance (in the sense of speed), then paludis is worse, because dependency calculation is more complex/complete there. That makes no sense at all. Paludis is written in a different language using different algorithms. It's not about the amount of work it does so much as how efficiently it does it. That's exactly what I was saying. I was talking about speed, not efficiency. But the efficiency of the algorithm, and the language, affects the speed. You can't presume it does more, therefore it takes longer if the two programs do things in very different ways. I was thinking: is it feasible, to precalculate the dependency tree? Or, at least preprocess all the sane (and insane) dependencies to help portage? Rgds, --
Re: [gentoo-user] Net work cards
On Mon, Feb 03, 2014 at 02:36:29PM +0200, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this? You should comfirm that the drivers of the adapters are compiled and loaded correctly. And for the wireless network, relys on you AP settings you may need the application like the net_wireless/wpa_supplicant.
Re: [gentoo-user] Re: Portage performance dropped considerably
On 03/02/2014 16:04, Pandu Poluan wrote: On Jan 28, 2014 5:57 AM, Neil Bothwick n...@digimed.co.uk mailto:n...@digimed.co.uk wrote: On Mon, 27 Jan 2014 22:54:28 +0100, hasufell wrote: If it's about performance (in the sense of speed), then paludis is worse, because dependency calculation is more complex/complete there. That makes no sense at all. Paludis is written in a different language using different algorithms. It's not about the amount of work it does so much as how efficiently it does it. That's exactly what I was saying. I was talking about speed, not efficiency. But the efficiency of the algorithm, and the language, affects the speed. You can't presume it does more, therefore it takes longer if the two programs do things in very different ways. I was thinking: is it feasible, to precalculate the dependency tree? Or, at least preprocess all the sane (and insane) dependencies to help portage? I thought that's what the portage cache does, as far as it can. True, the cache reflects the state of the tree and not the parts of the tree a given machine is using, so how big a diff does that give? And don't forget overlays - they can slow things down immensely as more often than not there's no cache for them unless the user knows to do it manually. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Re: Portage performance dropped considerably
On Feb 3, 2014 9:17 PM, Alan McKinnon alan.mckin...@gmail.com wrote: On 03/02/2014 16:04, Pandu Poluan wrote: On Jan 28, 2014 5:57 AM, Neil Bothwick n...@digimed.co.uk mailto:n...@digimed.co.uk wrote: On Mon, 27 Jan 2014 22:54:28 +0100, hasufell wrote: If it's about performance (in the sense of speed), then paludis is worse, because dependency calculation is more complex/complete there. That makes no sense at all. Paludis is written in a different language using different algorithms. It's not about the amount of work it does so much as how efficiently it does it. That's exactly what I was saying. I was talking about speed, not efficiency. But the efficiency of the algorithm, and the language, affects the speed. You can't presume it does more, therefore it takes longer if the two programs do things in very different ways. I was thinking: is it feasible, to precalculate the dependency tree? Or, at least preprocess all the sane (and insane) dependencies to help portage? I thought that's what the portage cache does, as far as it can. True, the cache reflects the state of the tree and not the parts of the tree a given machine is using, so how big a diff does that give? And don't forget overlays - they can slow things down immensely as more often than not there's no cache for them unless the user knows to do it manually. Well, AFAIK, portage needs to kind of simulate everything going on in an ebuild to get the list of dependencies/blockers... If this can be 'pre-simulated' resulting in a simpler to parse 'database' of dependencies... Rgds, --
[gentoo-user] Setting up shorewall
Hello list, I'm in the process of setting up shorewall on my LAN server, and shorewall.conf asks for the location of the tc utility. Can anyone tell me what this program is? Google results suggest it's a traffic control program, but what package is it in? -- Regards Peter
Re: [gentoo-user] Setting up shorewall
Peter Humphrey schrieb am 03.02.2014 17:56: Hello list, I'm in the process of setting up shorewall on my LAN server, and shorewall.conf asks for the location of the tc utility. Can anyone tell me what this program is? Google results suggest it's a traffic control program, but what package is it in? /sbin/tc in sys-apps/iproute2 found by e-file tc /usr/bin/e-file in app-portage/pfl -- Regards Daniel signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Setting up shorewall
On Monday 03 Feb 2014 18:02:11 Daniel Pielmeier wrote: Peter Humphrey schrieb am 03.02.2014 17:56: Hello list, I'm in the process of setting up shorewall on my LAN server, and shorewall.conf asks for the location of the tc utility. Can anyone tell me what this program is? Google results suggest it's a traffic control program, but what package is it in? /sbin/tc in sys-apps/iproute2 found by e-file tc /usr/bin/e-file in app-portage/pfl Thanks Daniel. Found it OK - tc that is. -- Regards Peter
[gentoo-user] Tcp Listener
I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it.
[gentoo-user] re: ADSL+WiFi modem router possibly compromised
Howdy, I connect to the Internet via a TP-LINK TD-W8101G Wireles ADSL2+ model router. It has been set up to acquire IP addresses via DHCP. My '/etc/resolve.conf' has been getting populated like so from the word go: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 192.168.1.1 # /etc/resolv.conf.tail can replace this line This morning, I discovered that the nameserver IP address in my '/etc/resolve.conf' had changed: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 5.45.75.11 # /etc/resolv.conf.tail can replace this line I contacted my ISP about it. They said the nameserver in question was not theirs. The whole thing began to smell fishy. What I've done so far is, I've reset my router to the default settings and set it up again. I've also changed the admin console password, as well as the WiFi access point password. As a result, my nameserver IP address has been defined as 192.168.1.1. Anything else I can do to ensure my system has not been compromised? Thanks. Alexander Kapshuk.
[gentoo-user] Re: Tcp Listener
On 2014-02-03, xarman manousidis@gmail.com wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. My initial advice would be to use Python instead of C. If you want to use C: man socket man select man poll man pthreads http://en.wikipedia.org/wiki/POSIX_Threads http://www.amazon.com/UNIX-Network-Programming-Richard-Stevens/dp/0139498761 http://www.amazon.com/Advanced-UNIX-Programming-2nd-Edition/dp/0131411543 -- Grant Edwards grant.b.edwardsYow! My mind is a potato at field ... gmail.com
Re: [gentoo-user] Net work cards
if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. eth0: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500 inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::be5f:f4ff:fee8:5914 prefixlen 64 scopeid 0x20link ether bc:5f:f4:e8:59:14 txqueuelen 1000 (Ethernet) RX packets 435 bytes 234999 (229.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 476 bytes 90064 (87.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73UP,LOOPBACK,RUNNING mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10host loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 300 (300.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 300 (300.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099UP,BROADCAST,MULTICAST mtu 1500 ether 00:0e:2e:e4:fb:cd txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 On 2/3/14, Amankwah amankw...@gmail.com wrote: On Mon, Feb 03, 2014 at 02:36:29PM +0200, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this? You should comfirm that the drivers of the adapters are compiled and loaded correctly. And for the wireless network, relys on you AP settings you may need the application like the net_wireless/wpa_supplicant.
Re: [gentoo-user] Net work cards
- Original Message - From: Stephen Reynolds Sent: 02/03/14 11:15 AM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Net work cards if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. You can get the info on what modules are loaded for the cards with `lspci -k`. For instance, the lines for my network card are:01:01.0 Network controller: Ralink corp. RT2760 Wireless 802.11n 1T/2R Subsystem: Edimax Computer Co. Device 7727 Kernel driver in use: rt2800pci It may also be relevant to post the output of `dmesg | grep -i firmware`.
Re: [gentoo-user] Net work cards
On 02/03/2014 09:15 PM, Stephen Reynolds wrote: if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. eth0: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500 inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::be5f:f4ff:fee8:5914 prefixlen 64 scopeid 0x20link ether bc:5f:f4:e8:59:14 txqueuelen 1000 (Ethernet) RX packets 435 bytes 234999 (229.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 476 bytes 90064 (87.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73UP,LOOPBACK,RUNNING mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10host loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 300 (300.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 300 (300.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099UP,BROADCAST,MULTICAST mtu 1500 ether 00:0e:2e:e4:fb:cd txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 On 2/3/14, Amankwah amankw...@gmail.com wrote: On Mon, Feb 03, 2014 at 02:36:29PM +0200, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1) eth0 = Realtek RLTl8111e 2) wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise me as to what steps I can take to fix this? You should comfirm that the drivers of the adapters are compiled and loaded correctly. And for the wireless network, relys on you AP settings you may need the application like the net_wireless/wpa_supplicant. Here's what I've got: lspci -k Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01) Subsystem: Gigabyte Technology Co., Ltd Motherboard Kernel driver in use: r8169 Kernel modules: r8169 Hope this helps.
Re: [gentoo-user] Net work cards
dmesg | grep -i firmware I get nothing. dmesg | grep eth0 i get this below. [ 50.931566] r8169 :02:00.0: eth0: RTL8168evl/8111evl at 0xc9000467e000, bc:5f:f4:e8:59:14, XID 0c900800 IRQ 42 [ 50.931568] r8169 :02:00.0: eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] [ 102.775702] r8169 :02:00.0: eth0: link down [ 102.775719] r8169 :02:00.0: eth0: link down [ 104.330871] r8169 :02:00.0: eth0: link up [ 144.845438] r8169 :02:00.0: eth0: link down [ 144.845448] r8169 :02:00.0: eth0: link down [ 144.845470] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 145.104677] r8169 :02:00.0: eth0: link down [ 145.104706] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 146.650141] r8169 :02:00.0: eth0: link up [ 146.650150] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready On 2/3/14, Chris Stout chris.st...@gmx.com wrote: - Original Message - From: Stephen Reynolds Sent: 02/03/14 11:15 AM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Net work cards if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. You can get the info on what modules are loaded for the cards with `lspci -k`. For instance, the lines for my network card are:01:01.0 Network controller: Ralink corp. RT2760 Wireless 802.11n 1T/2R Subsystem: Edimax Computer Co. Device 7727 Kernel driver in use: rt2800pci It may also be relevant to post the output of `dmesg | grep -i firmware`.
[gentoo-user] Re: ADSL+WiFi modem router possibly compromised
On 02/03/2014 10:25 AM, Alexander Kapshuk wrote: Howdy, I connect to the Internet via a TP-LINK TD-W8101G Wireles ADSL2+ model router. It has been set up to acquire IP addresses via DHCP. My '/etc/resolve.conf' has been getting populated like so from the word go: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 192.168.1.1 # /etc/resolv.conf.tail can replace this line This morning, I discovered that the nameserver IP address in my '/etc/resolve.conf' had changed: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 5.45.75.11 # /etc/resolv.conf.tail can replace this line I contacted my ISP about it. They said the nameserver in question was not theirs. The whole thing began to smell fishy. What I've done so far is, I've reset my router to the default settings and set it up again. I've also changed the admin console password, as well as the WiFi access point password. As a result, my nameserver IP address has been defined as 192.168.1.1. Anything else I can do to ensure my system has not been compromised? Google the number 32764 and you'll find a lot of info on a particular router bug. You'll see a link to Steve Gibson's grc.com, where you can scan for port 32764 on your router to see if it's listening.
Re: [gentoo-user] How to remove a single binary package
On Sunday 02 Feb 2014 11:36:31 Neil Bothwick wrote: On Sat, 1 Feb 2014 13:45:27 +, Mick wrote: If I use rm to manually get rid of a single package, all its metadata will still be left in /usr/portage/packages/Packages. Does this matter? Which function uses the information this file and how might it be affected if the binary package has been removed manually? It probably doesn't matter, but emaint -f binhost will clean it up. Thanks! I can't recall last time I used emaint - had forgotten about this command. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: ADSL+WiFi modem router possibly compromised
On Feb 3, 2014 10:02 PM, walt w41...@gmail.com wrote: On 02/03/2014 10:25 AM, Alexander Kapshuk wrote: Howdy, I connect to the Internet via a TP-LINK TD-W8101G Wireles ADSL2+ model router. It has been set up to acquire IP addresses via DHCP. My '/etc/resolve.conf' has been getting populated like so from the word go: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 192.168.1.1 # /etc/resolv.conf.tail can replace this line This morning, I discovered that the nameserver IP address in my '/etc/resolve.conf' had changed: cat /etc/resolv.conf # Generated by dhcpcd from enp4s0 # /etc/resolv.conf.head can replace this line nameserver 5.45.75.11 # /etc/resolv.conf.tail can replace this line I contacted my ISP about it. They said the nameserver in question was not theirs. The whole thing began to smell fishy. What I've done so far is, I've reset my router to the default settings and set it up again. I've also changed the admin console password, as well as the WiFi access point password. As a result, my nameserver IP address has been defined as 192.168.1.1. Anything else I can do to ensure my system has not been compromised? Google the number 32764 and you'll find a lot of info on a particular router bug. You'll see a link to Steve Gibson's grc.com, where you can scan for port 32764 on your router to see if it's listening. Thanks. I'll look into that.
[gentoo-user] Latest perl update has conflicts
Im updating some boxes after a few months and keep hitting the same conflicts: WARNING: One or more updates have been skipped due to a dependency conflict: dev-lang/perl:0 (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/PlRPC-0.202.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/HTTP-Negotiate-6.0.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/WWW-RobotRules-6.10.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/Net-Daemon-0.480.0::gentoo, installed) Someone has probably come across the same problem - how to fix ? -- A
Re: [gentoo-user] Latest perl update has conflicts
On 03/02/2014 23:22, Ajai Khattri wrote: Im updating some boxes after a few months and keep hitting the same conflicts: WARNING: One or more updates have been skipped due to a dependency conflict: dev-lang/perl:0 (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/PlRPC-0.202.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/HTTP-Negotiate-6.0.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/WWW-RobotRules-6.10.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/Net-Daemon-0.480.0::gentoo, installed) Someone has probably come across the same problem - how to fix ? None of the module versions in that output are in the tree, and current perl does not have a build USE flag (but used to). Are you running arch or ~arch? I suspect you might have disabled some of the newer features of portage, or make.conf needs some tender lovin' to bring it up to date. It looks like portage is complaining that the modules you have are not compatible with the perl it wants to install. Easiest fix is to unmerge those modules and let a world update bring them in fresh. If any get missed, and them back manually after the update finishes. You could also share your make.conf so folks here can look it over and see if any modern features are missing. Those modern features DO make life so much simpler :-) -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Tcp Listener
On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Tcp Listener
On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking?
Re: [gentoo-user] Tcp Listener
On 04/02/14 05:51, xarman wrote: On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking? He is asking because its one of the common C/C++ computer science assignments! In practice, perl, python are usually simpler and easier to use. and the google-fu needed is to search for a TCP echo server to use as a staring point. BillK
[gentoo-user] search and replace carriage return
I have a text file. How do I search and replace carriage return? -- Joseph
[gentoo-user] Re: search and replace carriage return
On 2014-02-03, Joseph syscon...@gmail.com wrote: I have a text file. How do I search and replace carriage return? man sed man tr man dos2unix man unix2dos -- Grant Edwards grant.b.edwardsYow! Hello? Enema Bondage? at I'm calling because I want gmail.comto be happy, I guess ...
Re: [gentoo-user] Tcp Listener
On 03/02/2014 23:51, xarman wrote: On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking? It's worded like one, and it's your first post to this list I can find. Google the topic do my homework for me. There's always a chance it's a genuine question though. If so, you are unlikely to get decent answers here, this is a user-based support list for users of Gentoo. Your question is better directed to forums that deal with C programming as their core topic. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] search and replace carriage return
On 02/03/14 16:14, Joseph wrote: I have a text file. How do I search and replace carriage return? I've tried: cat 16.txt | tr -d \r \n 17.txt but it removes all the spaces as well. I need to replace carriage retrn with space. -- Joseph
Re: [gentoo-user] search and replace carriage return
On 04/02/2014 01:14, Joseph wrote: I have a text file. How do I search and replace carriage return? That is a horrible one to solve :-) All the usual tools (grep, sed, tr) are line oriented so they will take one line and replace the CR at the end with something else plus a CR! i.e. they don't do multi-line search and replace easily. I usually end up resorting to using a text-editor But sed can be persuaded to do it, if your really need a programmatic solution: http://sed.sourceforge.net/sedfaq4.html#s4.23.3 -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Tcp Listener
Thank you Grant and William. I wasn't aware of python programming and now that I have looked some stuff it seems indeed much simpler to implement it with. I'll look into it. On Tue, Feb 4, 2014 at 12:04 AM, William Kenworthy bi...@iinet.net.auwrote: On 04/02/14 05:51, xarman wrote: On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking? He is asking because its one of the common C/C++ computer science assignments! In practice, perl, python are usually simpler and easier to use. and the google-fu needed is to search for a TCP echo server to use as a staring point. BillK
Re: [gentoo-user] Tcp Listener
Well it's actually a project for a company that needs a tcp listener for the data sent by the devices. You are right about my question. It's a bit irrelevant with gentoo but I'm working on gentoo and I'm asking this list because I consider its users have wide knowledge on general programming. In fact I got a good suggestion and I believe my search is done. Thank you anyway. On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon alan.mckin...@gmail.comwrote: On 03/02/2014 23:51, xarman wrote: On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking? It's worded like one, and it's your first post to this list I can find. Google the topic do my homework for me. There's always a chance it's a genuine question though. If so, you are unlikely to get decent answers here, this is a user-based support list for users of Gentoo. Your question is better directed to forums that deal with C programming as their core topic. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] search and replace carriage return
On Mon, Feb 3, 2014 at 6:14 PM, Joseph syscon...@gmail.com wrote: I have a text file. How do I search and replace carriage return? Do you mean carriage return (decimal 13) or line feed (decimal 10)? The former is pretty simple: sed -e 's:\r: :g' foo.txt
Re: [gentoo-user] search and replace carriage return
On 02/03/14 18:52, Mike Gilbert wrote: On Mon, Feb 3, 2014 at 6:14 PM, Joseph syscon...@gmail.com wrote: I have a text file. How do I search and replace carriage return? Do you mean carriage return (decimal 13) or line feed (decimal 10)? The former is pretty simple: sed -e 's:\r: :g' foo.txt I've found this worked for me: cat 16.txt | tr '\n' ' ' 18.txt -- Joseph
Re: [gentoo-user] Tcp Listener
Check out what I consider to be a fantastic guide: http://beej.us/guide/bgnet/ On Mon, Feb 3, 2014 at 3:50 PM, Xar Man manousidis@gmail.com wrote: Well it's actually a project for a company that needs a tcp listener for the data sent by the devices. You are right about my question. It's a bit irrelevant with gentoo but I'm working on gentoo and I'm asking this list because I consider its users have wide knowledge on general programming. In fact I got a good suggestion and I believe my search is done. Thank you anyway. On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon alan.mckin...@gmail.comwrote: On 03/02/2014 23:51, xarman wrote: On 02/03/2014 11:43 PM, Alan McKinnon wrote: On 03/02/2014 20:15, xarman wrote: I'm interested in making a TCP Listener in C / C++ on Linux to accept many connections simultaneously. I did a relative search on the Web and although I am aware of the C language as to a certain extent, I struggle to find a model program. Essentially, it is the listener of a server that receives a signal and stores it in a database and do some other functions. I know how to do the functions but I'm looking for a way to fix the basic skeleton of listener that will be always active. I'm not sure if I need multi threading or multi socketing for multi connections. If you have any knowledge on the subject or have a simple example or even some reference in order to work on that, I'd appreciate it. Is this a school homework question? No. Why are you asking? It's worded like one, and it's your first post to this list I can find. Google the topic do my homework for me. There's always a chance it's a genuine question though. If so, you are unlikely to get decent answers here, this is a user-based support list for users of Gentoo. Your question is better directed to forums that deal with C programming as their core topic. -- Alan McKinnon alan.mckin...@gmail.com -- () The ASCII Ribbon Campaign - against HTML Email, /\ vCards, and proprietary formats.
Re: [gentoo-user] Latest perl update has conflicts
On Mon, 3 February 2014, at 9:22 pm, Ajai Khattri a...@bway.net wrote: ... WARNING: One or more updates have been skipped due to a dependency conflict: dev-lang/perl:0 (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/PlRPC-0.202.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/HTTP-Negotiate-6.0.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/WWW-RobotRules-6.10.0::gentoo, installed) (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) conflicts with dev-lang/perl[-build] required by (dev-perl/Net-Daemon-0.480.0::gentoo, installed) Someone has probably come across the same problem - how to fix ? I had this problem the other day. I don't know that it applied to the same package names, but the blocking, the :0 slot and the conflics… build parts were the same - I remember them distinctly. All I did was unmerge the affected packages - i.e. dev-perl/PlRPC, dev-perl/HTTP-Negotiate c in your case - and then reemerged Perl. Worked like a charm. I think genlop depended on a Perl date module that I removed, and I had to remerge it again afterwards. To be sensible you should probably remerge all 4 of these packages after resolving your conflict. Stroller.
[gentoo-user] linux command for file ownership and flag by creation ?!
Hi people! I have asked myself if there are set of commands on Linux or Gentoo, that if a file locally created it belongs to a special group. Let us say: /var/folderX folderX belong to tamer:daemon I want every file I create inside automatically belongs to: tamer:daemon and not tamer:tamer For any advises, I would thank you Tamer
Re: [gentoo-user] linux command for file ownership and flag by creation ?!
Looks like you're looking for setgid functionality. Check out http://en.wikipedia.org/wiki/Setuid#setgid_on_directories On Mon, Feb 3, 2014 at 4:47 PM, Tamer Higazi th9...@googlemail.com wrote: Hi people! I have asked myself if there are set of commands on Linux or Gentoo, that if a file locally created it belongs to a special group. Let us say: /var/folderX folderX belong to tamer:daemon I want every file I create inside automatically belongs to: tamer:daemon and not tamer:tamer For any advises, I would thank you Tamer -- () The ASCII Ribbon Campaign - against HTML Email, /\ vCards, and proprietary formats.
Re: [gentoo-user] search and replace carriage return
On 02/03/14 18:52, Mike Gilbert wrote: On Mon, Feb 3, 2014 at 6:14 PM, Joseph syscon...@gmail.com wrote: I have a text file. How do I search and replace carriage return? Do you mean carriage return (decimal 13) or line feed (decimal 10)? The former is pretty simple: sed -e 's:\r: :g' foo.txt The command I tried: cat 15.txt | tr '\n' ' ' 18.txt worked on one file but not on other files. I've tried sed -e 's:\r: :g' 15.txt as well doesn't work. Here is text example from that file: ... Their skulls were very blocky. Teeth were very small and leaf shaped. In some, but not all ankylosaurs the end of the tail was modified to form a tail club with the huge osteoderms at the tip. ... -- Joseph
Re: [gentoo-user] search and replace carriage return
On 02/03/14 18:52, Mike Gilbert wrote: On Mon, Feb 3, 2014 at 6:14 PM, Joseph syscon...@gmail.com wrote: I have a text file. How do I search and replace carriage return? Do you mean carriage return (decimal 13) or line feed (decimal 10)? The former is pretty simple: sed -e 's:\r: :g' foo.txt OK here is the text output (last few lines) of the command: cat 15.txt | sed 's/\r$//' | od -c ... 0017460 o w t h e m a j o r g r o 0017500 u p i n g s o f \n d i n o s a 0017520 u r s . \n L e t ' s m o v e 0017540 o n f r o m d i n o s a u r 0017560 s k e l e t o n s t o \n o u 0017600 t w a r d a p p e a r a n c e 0017620 s . \n the actual text: ow the major groupings of dinosaurs. Let's move on from dinosaur skeletons to outward appearances. so it seems to me the carriage return is represented by: \n I've tried sed -e 's:\n: :g' 15.txt makes no difference. How to replace the \n with space. -- Joseph
Re: [gentoo-user] search and replace carriage return
On 02/03/2014 06:14 PM, Joseph wrote: I have a text file. How do I search and replace carriage return? a (singular)? Emacs will happily let you enter a carriage return into the find/replace buffer with C-q C-m, i.e. quote (C-q) a control-M character (carriage return).
Re: [gentoo-user] Net work cards
On Mon, Feb 03, 2014 at 07:15:34PM +, Stephen Reynolds wrote: if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. eth0: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500 inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::be5f:f4ff:fee8:5914 prefixlen 64 scopeid 0x20link ether bc:5f:f4:e8:59:14 txqueuelen 1000 (Ethernet) RX packets 435 bytes 234999 (229.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 476 bytes 90064 (87.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73UP,LOOPBACK,RUNNING mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10host loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 300 (300.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 300 (300.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099UP,BROADCAST,MULTICAST mtu 1500 ether 00:0e:2e:e4:fb:cd txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 According to your result of the ifconfig -a, your device dirver should be OK. First, the eth0 interface, that is your wired connection, has already been configured. If it's done automaticly, it should be worked. If it doesn't work, you should check your network setting and if the cable is connected in right way. Second, the wlan0, the wirelesss adpater, maybe you need a wireless network management application. you can just check the basic configurations by the command iwconfig and iwlist first, if it's OK, and your wireless has encryption, you should configrue the wpa_supplicant correctly or using the NetworkManager to manage your wirless connection. On 2/3/14, Amankwah amankw...@gmail.com wrote: On Mon, Feb 03, 2014 at 02:36:29PM +0200, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1)?eth0 =??Realtek RLTl8111e 2)?wlan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise?me as to what steps I can take to fix this? You should comfirm that the drivers of the adapters are compiled and loaded correctly. And for the wireless network, relys on you AP settings you may need the application like the net_wireless/wpa_supplicant.
Re: [gentoo-user] Net work cards
Okay thanks, I got network working it was just a cable issue. thanks for all the help On Tue, Feb 4, 2014 at 6:23 AM, Amankwah amankw...@gmail.com wrote: On Mon, Feb 03, 2014 at 07:15:34PM +, Stephen Reynolds wrote: if I run ifconfig -a this currently what I get. I have completed the installtion, but Kernel Modules I am not sure about. eth0: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500 inet 192.168.1.105 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::be5f:f4ff:fee8:5914 prefixlen 64 scopeid 0x20link ether bc:5f:f4:e8:59:14 txqueuelen 1000 (Ethernet) RX packets 435 bytes 234999 (229.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 476 bytes 90064 (87.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73UP,LOOPBACK,RUNNING mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10host loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 300 (300.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 300 (300.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4099UP,BROADCAST,MULTICAST mtu 1500 ether 00:0e:2e:e4:fb:cd txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 According to your result of the ifconfig -a, your device dirver should be OK. First, the eth0 interface, that is your wired connection, has already been configured. If it's done automaticly, it should be worked. If it doesn't work, you should check your network setting and if the cable is connected in right way. Second, the wlan0, the wirelesss adpater, maybe you need a wireless network management application. you can just check the basic configurations by the command iwconfig and iwlist first, if it's OK, and your wireless has encryption, you should configrue the wpa_supplicant correctly or using the NetworkManager to manage your wirless connection. On 2/3/14, Amankwah amankw...@gmail.com wrote: On Mon, Feb 03, 2014 at 02:36:29PM +0200, Stephen Reynolds wrote: Hi all I am doing a new Gentoo installation and I cannot get my network cards to work. I have two cards 1)爀th0 =牋Realtek RLTl8111e 2)爓lan0 = RaLink RT2561/RT61 Gen Kernel has support for both. Please advise爉e as to what steps I can take to fix this? You should comfirm that the drivers of the adapters are compiled and loaded correctly. And for the wireless network, relys on you AP settings you may need the application like the net_wireless/wpa_supplicant.
[gentoo-user] Re: Portage performance dropped considerably
Pandu Poluan pa...@poluan.info wrote: I was thinking: is it feasible, to precalculate the dependency tree? I thought that's what the portage cache does, as far as it can. Well, AFAIK, portage needs to kind of simulate everything going on in an ebuild to get the list of dependencies/blockers... If this can be 'pre-simulated' resulting in a simpler to parse 'database' of dependencies... This *is* the portage cache: Execute e.g. cat /usr/portage/metadata/md5-cache/sys-apps/portage- You see that DEPEND, RDEPEND, PDEPEND are readily available. If metadata/md5-cache should not be up-to-date (e.g. if you use an overlay without that data and without calling egencache), portage generates a similar cache in /var/cache/edb/dep (checksums and/or filestamps are used to verify that the caches are up-to-date - this also takes somewhat time but not very much and cannot be avoided to guarantee correct behaviour).
[gentoo-user] Re: Minimal (fast and cool)
On 29/01/14 02:06, James wrote: I'm interested in aggregating tips, tricks, ebuild suggestions and config file snippets and examples, related to going minimal on your system, regardless if your system in resource constrained or not. The benefit is not limited to resource constrained systems. The idea is when a person ditches KDE (or other bloated environments?) they can look at a single gentoo-specific document to get a list of addtional ebuilds and config files to install resulting in but one possible fast, cool, feature-rich minimal environment. with a mininmal of setup time and effort. If you are uncomfortable posting here, just drop me some private email. TIA, James # These instructions are for installing Gentoo on Oracle VirtualBox with # Oracle VirtualBox Extentions installed on the host PC. # I allocate 1GB during intallation and change to 512KB after competing the installation. # I can still work with 255 KB but slow. # My local setup is a LAN with several Linux and Win$ boxes with fixed IP addresses. # My local domain name: itw.lan # My Gentoo VM FQDN: gentoo.itw.lan # IP address: 192.168.0.32 # Nameserver-1: 192.168.0.2 # Nameserver-2: 192.168.0.1 (my Router has a very basic build in Name Server.) # Route:192.168.0.1 # Locale Australia/Brisbane # Change these at the approbriate places in below text to yours. # The text without # in front are commands to be entered or copied into # the terminal followed by hitting the Enter Key. # Preparation: # Download Gentoo Install CD from: # distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20140130.iso # Configure a Gentoo x86_64 virtual maschine to boot with Gentoo CD.iso as CD Drive, # a virtual 30GB dard drive and Network Adapter as Bridged Adapter . # Boot your new virtual maschine with kernel option net.ifnames=0. ## type on Gentoo Installer Screen ifconfig # write down the IP address and name of your ethernet card like eth0 net-setup eth0 #For manual setup if your Router does not have a DHCP server. # Create a password for ssh access. passwd abc123 abc123 time /etc/init.d/sshd start ping -c 3 google.com # This completes configiration of the installation system for ssh access from a second PC. # # Open a terminal on your second or Host PC and log by ssh into Gentoo ssh r...@gentoo.itw.lan abc123 # Manally, step by step partition your Hard drive with these keybord commands: # If you make a mistake, exit fdisk by 'q' and start again. fdisk /dev/sda n p 1 (Enter) +500M n e 2 (Enter) (Enter) n l (Enter) +2G (Enter) t 5 82 n l (Enter) +20G n l (Enter) (Enter) a 1 p w # DONE! # -- # Now proceed by copying below texts to your terminal followed by Enter. # You can copy line by line, section by section or several saections at a time #--- # Create the File System: mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda6 mkfs.ext4 /dev/sda7 mkswap /dev/sda5 swapon /dev/sda5 # Mount the Filesystem: mount /dev/sda6 /mnt/gentoo mkdir /mnt/gentoo/boot mkdir /mnt/gentoo/home mount /dev/sda1 /mnt/gentoo/boot mount /dev/sda7 /mnt/gentoo/home # Check the date date # Get Gentoo files from the internet cd /mnt/gentoo links http://www.gentoo.org/main/en/mirrors.xml # Select and download stage3tar.bz2 ls -l tar xvjpf stage3-*.tar.bz2 # Change Root mount -t proc none /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash source /etc/profile export PS1=gentoo.itw.lan $PS1 #Set root Password passwd root abc123 abc123 # Configure make.conf: echo CFLAGS=\-O2 -march=native -pipe\ /etc/portage/make.conf echo CXXFLAGS=\${CFLAGS}\ /etc/portage/make.conf # Change -j5 to the numbe rof your processors plus 1. echo MAKEOPTS=\-j2\ /etc/portage/make.conf echo FEATURES=\-preserve-libs\ /etc/portage/make.conf echo CHOST=\x86_64-pc-linux-gnu\ /etc/portage/make.cof echo ACCEPT_KEYWORDS=\amd64\ /etc/portage/make.conf echo ACCEPT_LICENSE=\*\ /etc/portage/make.conf echo LINGUAS=\en\ /etc/portage/make.conf echo INPUT_DEVISES=\evdev virtualbox\ /etc/portage/make.conf echo VIDEO_CARDS=\vesa\ /etc/portage/make.conf echo USE_PYTHON=\2.7\ /etc/portage/make.conf echo PYTHON_TARGETS=\python2_7\ /etc/portage/make.conf # change http://ftp.swin.edu.au/gentoo\; to you mirror echo GENTOO_MIRRORS=\http://ftp.swin.edu.au/gentoo\; /etc/portage/make.conf # change rsync://rsync1.au.gentoo.org/gentoo-portage\ echo SYNC=\rsync://rsync1.au.gentoo.org/gentoo-portage\ /etc/portage/make.conf # Create package.* files echo ### package.keywords ### /etc/portage/package.keywords echo ### package.unmask ### /etc/portage/package.unmask echo ### package.mask ### /etc/portage/package.mask # Select Timezone emerge --config sys-libs/timezone-data # Replace Australia/Brisbane with your Timezone and Location cp