Re: su chmod -755 /usr
Julian Brooks writes: >Hey all, >Yes I'm an idiot... >Not very experienced user here - 1st post: >I mistakenly ran 'chmod -755 /usr'. >How can I fix my permissions? Run 'chmod 755 /usr'. All your command did was remove permissions from the /usr directory. Just set them back the default. No need to reboot. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/48fc.5577ba04.18...@xdna.net
Re: reading an empty directory after reboot is very slow
Vincent Lefevre writes: >On 2015-04-13 16:28:27 -0600, Bob Proulx wrote: >> Without dir_index an ext filesystem with large directories is slow due >> to the linear nature of directories. But with dir_index it should be >> using a B-tree data structure and should be much faster. >So, why is it slow? I don't think dir_index has anything to do with it. An index speeds up lookups. You are not doing lookups; you are traversing the entire data structure. A B-tree data structure can take longer to traverse than a contiguous array data structure due to prefetching generally being beneficial to arrays, but less so to pointer-based structures. It's slow because every block of the directory needs to be read to get the contents, even if every block contains empty entries. You don't know that until you've read it. >I also notice slowness with a large maildir directory: >drwx-- 2 vlefevre vlefevre 8409088 2015-03-24 14:04:33 Mail/oldarc/cur/ >In this one, the files are real (145400 files), but I have a Perl >script that basically reads the headers and it takes a lot of time >(several dozens of minutes) after a reboot or dropping the caches >as you suggested above. With a second run of this script, it just >takes 8 seconds. Your large directory is about 3.5 times the size of this one, so we would expect all things being equal that it would take 30s to read the larger directory based on the time of reading your maildir. One thing that is likely not equal is fragmentation. It is quite possible that your 30MB directory is fragmented across the disk and involves many seeks to read it all. If you really want to know if this is the case, use debugfs(8) to have a look: # debugfs /dev/sda1 # sub sda1 with your device debugfs: blocks /path/to/directory # path relative to root of filesystem That will output all the blocks used by the directory, in the order of the blocks in the directory. You'll be able to see how much seeking would be needed to read those blocks linearly. e.g. # debugfs /dev/mapper/m500-var debugfs 1.42.5 (29-Jul-2012) debugfs: blocks /lib/dpkg/info 8236 8207 8204 8221 8222 8223 8231 8232 8234 8333 8394 8395 8393 8396 8399 8400 8402 8747 8913 9258 9289 9311 9433 9405 9432 9452 9407 32084 32237 32238 32236 32245 32254 9555 9978 9908 You can see the blocks are reasonable contiguous until it jumps up to the 32000's, and then back to the 9000's. If you see a lot of that in your large empty directory, you'll find it slow to seek around the whole lot. (In my case, that's on an SSD, so I don't care). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/4206.552d9c3f.b4...@xdna.net
Re: How does exec work with systemd?
Steve Litt writes: >The only thing is, Daemontools has no way of telling it which order to >load things, so, for instance, I'll need to load the dns server >before Dovecot and Apache, so the dns server will continue to be >loaded by the init system. I've been using runit for some time, which is a clone of daemontools (from the time when DJB licensing was an issue). I have a small set of shell functions in /lib/sv/utils.sh that I source in my run scripts. Some of these are: temp_fail() { sleep 5; exit ${1:-1}; } depend_on_net() { [ -n "$1" ] || return 0 ip addr show dev "$1" 2>&- | grep -qs "inet.*$1" || temp_fail return 0 } depend_on_ip_addr() { [ -n "$1" ] || return 0 [ "$1" = '0.0.0.0' ] && return 0 ip addr show 2>&- | grep -qs "inet $1[/ ]" || temp_fail return 0 } depend_on_sv() { [ -n "$1" ] || return 0 sv status "$1" | grep -qs "^run:" || temp_fail 2 return 0 } These allow you to put commands such as: depend_on_sv apache depend_on_net eth0 in the run script. If the dependency is not yet ready, it will sleep for 5 seconds and exit, leaving runsv to restart it to try again. These will need to be adapted for daemontools, but the principle is the same. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5a35.54111928.cf...@xdna.net
Re: vlan not tagging packets | no reply to vlan
"Podrigal, Aron" writes: >Hi there, >I'm trying to setup vlans on debian wheezy 7.6. But I can't get it to work. >Is there something special I'm missing out there? I tried searching around, >but I didn't get any further. >I couldn't figure out where this is going wrong. Looks like either the >packets going out the vlan is not being tagged, or something unknown is >happening. >I have 2 hosts directly connected to each other, both have intel i350Gb >ethernet cards. >host 1 physical interface eth1 = 10.0.10.68 >host 2 physical interface has no ip, and vlan has assigned 10.0.10.70 I cannot see how this setup would work. Host 2 will be sending 802.11Q encapsulated packets, but host 1 will not be expecting that so it will ignore them. This would lead to the exact results you are seeing. So to counter your subject line, I would say vlan *is* tagging packets, it's just that one host is not expecting tagged packets. You will need to set up vlan 10 on host 1 and assing 10.100.110.68 to eth1.10 for it to receive packets. >root@host1:~# tcpdump -vv -i eth1 -s 1500 ether proto not 0x88cc Try running that tcpdump command with "-e" to show link level headers. Perhaps that will show the VLAN tag on the packet. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/2f99.5406b415.37...@xdna.net
Re: /etc/mailname file permission
Andrei POPESCU writes: >On Vi, 13 iun 14, 06:10:11, ML mail wrote: >> Thanks for your feedback. I believe my puppet changed the mode of this >> file for some unknown reason and I will reset it back to 644. >There's always a reason (whether intentional or bug or whatever). Do you >specify file mode in your modules? Furthermore, if the reason is not identified and fixed, puppet will likely just set the mode back to 0600 the next time it runs. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/39ff.539b885d.a9...@xdna.net
Re: [ask] awk - passing for loop bash variables to awk
Morning Star writes: >here is the desired output: >line_1 >line_2 >line_3 >here is what i do: >cat input | for (( i=1;i<=3;i++ )); do gawk -v var=$i 'NR == var { print}'; >done >but, the result is always: >line_1 When awk runs, it reads its input until EOF. In your loop, the first run of awk is consuming all the input from stdin (cat input) and printing the first line. For the subsequent iterations through the loop, awk no longer has anything to read - it gets EOF when attempting to read the first line. This means the script never matches anything and will not print anything. You will need to have awk re-read the input each time: for (( i=1;i<=3i++ )) ; do cat input | gawk -v var=$i 'NR == var { print; exit }' done I've added an "exit" to the awk script since after the action is executed, there is clearly no more work to be done for the rest of the file, so it make sense to terminate early. "cat input | " is not needed - it's a useless use of cat, but I don't know if you have it here as a representation of a more complex pipeline that is not relevant to your question. If you are literally using "cat input | ", you can replace it with either: gawk -v var=$1 '...' input (i've remove the script for brevity). -- 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/5f17.50567574.c2...@xionine.xdna.net
Re: dev pts mystery
Henrique de Moraes Holschuh writes: >On Mon, 03 Sep 2012, songbird wrote: >> somehow (i can't say what happened or i'd >> have the answer), now it looks like: >> >> crw--w 1 me tty 136, 0 Sep 3 20:05 0 >> crw--w 1 me tty 136, 1 Sep 3 20:10 1 >> crw--w 1 root tty 136, 2 Sep 4 2012 2 >> crw--w 1 me tty 136, 3 Sep 3 20:05 3 >> crw--w 1 me tty 136, 4 Sep 3 20:05 4 >> c- 1 root root 5, 2 Sep 3 14:53 ptmx >"ps auxwww | grep pts/2" could tell you more about whatever has pts/2 open. The "a" and "x" arguments to ps(1) select all processes. ps also has the option to select processes by tty(and 3 w's does nothing more than 2): $ ps uwwt pts/2 -- 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/53d9.5046ff97@xionine.xdna.net
Re: Transferring files between Samsung tablet and a Debian box
Ken Heard writes: >Can anyone tell me how I can transfer files between my Samsung tablet >with Honeycomb and my Debian boxes with Lenny or Squeeze, using either a >USB or Bluetooth connection between them? I know I can transfer them by >e-mail, but that method is cumbersome. As others have mentioned in this thread, Honeycomb and onwards use MTP as the protocol for communicating with a USB host instead of MSC (mass storage class). I have not found a reliable MTP stack on linux, possibly because the MTP protocol itself is not very general, so treating the device as a filesystem is an abstraction mismatch. Instead, I have install an app called AirDroid on my tablet. This lets me communicate with the tablet via my browser, and supports transferring files that way. It does not give the flexibility of treating the device as a mounted filesystem, but works well enough for my purposes. I know that's not USB or bluetooth, but hopefully it is still suitable. -- 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/634.4fff98d9.41...@xionine.xdna.net
Re: virt-manager fails to connect to remote server
Gary Dale writes: >On 08/07/12 09:01 PM, Davi Garcia wrote: >> Hey, >> >> On Sun, Jul 8, 2012 at 5:45 PM, Gary Dale wrote: >>> Any ideas? >> This looks similar to bug #590649 [1]. Have you tried to install >> "ssh-askpass"? >> >> [1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590649 >> >> []s, >> >When I run it with ssh-askpass installed, I get: >Unable to connect to libvirt. >Cannot recv data: Host key verification failed. : Connection reset by peer Given what you have said in your other email, where you have reinstalled Debian on the server, and the above error message, it looks like you have an old host key in your ~/.ssh/known_hosts or /etc/ssh/ssh_known_hosts (you may not have the latter). Is it possible that when you manually ssh to test, you are using a different host name to what you are using in the qemu+ssh url? e.g. one is a fully-qualified host name, and one is not? Regardless, check your known_hosts files for all references to the server hostname and IP address, delete those lines and manually ssh in again using the same hostname as is in your qemu+ssh URL. -- 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/4b99.4ffa86fc.ef...@xionine.xdna.net
Re: Using the find command
Alan Chandler writes: >At one point it does > clean /run "! -xtype d ! -name utmp ! -name innd.pid" || ES=1 > clean /run/lock "! -type d" || ES=1 > clean /run/shm "! -type d" || ES=1 >which looks as though (with the "! - xtype d...") that its trying not to >recurse down the subdirectories of /run (otherwise why follow the clean >/run with clean /run/lock) No, that does not stop find recursing into directories. It will just stop it performing its action on directories. That is, it will not delete directories. To stop recursion into directories, there would have to be a -prune in there somewhere. >what in effect is happening is its cd to /run >then calls find >find . "! -xtype d ! -name utmp ! -name innd.pid" -delete This is not correct. It will run find without those quotes since the invocation of the find(1) command in the clean() function does not use quotes around the variable expansion. >I tried running >find . "! -xtype d ! -name utmp ! -name innd.pid" That is trying to treat the whole part within the quotes as a single filename, which is why you get the error: >b) it finishes up with a line which says find: `! -xtype d ! -name utmp >! -name innd.pid': No such file or directory It is the same as running: find dir1 dir2 which will then just print out all the files/directories under these two directories. -- 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/32f3.4fe16f30.6f...@xionine.xdna.net
Re: Bash script problem [OT?]
Chris Davies writes: >Cam Hutchison wrote: >> BK_LIST=() >> Append to the array with += >> BK_LIST+="${PARAM}" >This += syntax appears not to work with my version of bash >("4.1.5(1)-release" from package bash 4.1-3). Instead I have >to do this: > BK_LIST+=("${PARAM}") >Was yours a typo, or is it something that now works in yet newer >versions of the shell? Sigh. Sorry, it was a typo. That explains why it did not work for the OP. I though that was strange, since I've successfully used arrays to maintain argument vectors with arguments containing spaces. I was so sure it worked that I focussed on testing the wrong part. -- 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/1039.4f979796.52...@xionine.xdna.net
Re: Bash script problem [OT?]
Soare Catalin writes: >Thank you everyone for replying, but unfortunately, nothing seems to work >for the moment, although all the answers appear to make sense. >First, the array solution appears to work, but when tar gets all the >parameters, they become a long string without spaces :), obviously "cannot >stat: No such file or directory". Please post the code you have ended up with. The array method I posted will work, but you may be using it incorrectly. From the bash man page: If the word is double-quoted, ${name[*]} expands to a single word with the value of each array member separated by the first character of the IFS special variable, and ${name[@]} expands each element of name to a separate word. That is, the literal "${name[@]}" expands to each element of the array "name" as a separate word. Not one long word as you have experienced. I've used this method plenty of times in the past, so I know it does work. What version of bash are you using? (bash --version) -- 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/7c06.4f95ff7c.e7...@xionine.xdna.net
Re: Bash script problem [OT?]
Soare Catalin writes: >The script will take files or dirs as parameters and will back them up in a >presefined location, using tar. Problems arise when it will encounter files >or directories which contain spaces in their names. >then #is it an existing directory? >BK_LIST="$BK_LIST ${PARAM}" here... >else >if [ -f "$PARAM" ]; then #is it an existing file? >BK_LIST="$BK_LIST ${PARAM}" and here. As you build up BK_LIST, you lose the ability to tell which spaces are the ones you added, or were already in $PARAM. You end up treating all spaces as word separators. To fix this, you want to make BK_LIST an array: BK_LIST=() # or declare -a BK_LIST, but I prefer the former Append to the array with += BK_LIST+="${PARAM}" Expand the array, preserving spaces: tar -cjf $BK_FULLPATH "${BK_LIST[@]}" -- 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/52a8.4f93b476.21...@xionine.xdna.net
Re: how to refrain only use certain number of processors
lina writes: >Yes. the ultimate goal is: >for i in {0..108} >do >cat A_$i.txt B_$i.txt C_$i.txt -o ABC_$i.txt (output as ABC_$i.txt) >done >but here I wish to use only 8 processors at most, total is 16. >the administrator of the cluster asked me not to use whole, cause >someone else needs SMP server. seq 0 108 | xargs -I@ -P8 cat A_@.txt B_@.txt C_@.txt -o ABC_@.txt Most people use the character sequence {} where I have used @. I find @ to be simpler to type, so I use that instead. I don't think you need -n1 in this case as it is somewhat implied by the use of -I. -- 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/22a7.4f274fb6.c...@xionine.xdna.net
Re: start-stop-daemon: stop several processes
hvw59601 writes: >This process is started at boot by 'do_chk_ip' in /etc/init.d which has: > stop) > start-stop-daemon --stop --verbose --exec $DAEMON > ;; >where $DAEMON=/usr/bin/do_tail_chk which has: >tail -s 1 -n 60 -f /var/log/syslog | /usr/bin/do_chk_ip >but that starts 3 processes: >28739 tty5 00:00:00 do_tail_chk >28740 tty5 00:00:00 tail >28741 tty5 00:00:00 do_chk_ip >My stop) statement only kills 28739, how do I specify that also 28740 >and 28741 ought to be killed? Put "exec" before tail: exec tail -s 1 -n 60 -f /var/log/syslog | /usr/bin/do_chk_ip If you use exec, then the shell process that is do_tail_chk will be replaced by the tail process which will get the same pid, so start-stop-daemon will send the TERM signal to tail. When tail exits, the reader on the pipe that tail was writing to will get an EOF and will itself exit. This all assumes that there is nothing after the "tail -s 1..." line in the do_tail_chk script that will need to run after tail exits. -- 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/7206.4f0e530b.2b...@getafix.xdna.net
Re: single device to replace ADSL router, WiFi/Ethernet router, SIP router?
Paul Wise writes: >I'm looking for a single device (to reduce cabling) to replace this: > * it needs to run Debian or have at least some potential to do >that. I don't want to have to deal with any pre-installed OSes, >custom old OpenWRT builds running Linux 2.4 or other stupidity. > * it needs either FXO/FXS ports or some sort of cordless phone >integrated with it. > * it needs to have ADSL2+ support, > * it needs WiFi, preferably something supported by ath5k/ath9k or >OpenFWWF > * it needs 4 Ethernet ports, speed isn't too important > * it needs to either support coreboot or not be x86 (ARM/MIPS/etc) > * it needs to be unbrickable, via semi-read-only secondary >bootloader or whatever. > * internal SATA or eSATA would be nice so that it has useful >amounts of storage and can be used as a NAS > * a few USB ports would be nice > * some hardware expandability would be nice, miniPCI or whatever One device that comes close is the FritzBox 7390: http://www.fritzbox.eu/en/products/FRITZBox_Fon_WLAN_7390/index.php The big problem holding me back from this is that there does seem to be a hacking community, but it's all in German (not surprising, since AVM is a German manufacturer). I've lost track of this product over the last year or so, so I'm not sure where the hacking community is on it - perhaps there's more English resources by now. I don't know where in the world you live, so this may not be available to you. It came to Australia earlier this year (2011). -- 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/1763.4ef7d60c.5e...@getafix.xdna.net
How can I get GNOME 2 back
I have tried GNOME 3. I have tried it with fallback mode. I've now tried xfce, kde and my own hacked together xsession with gnome components. I don't like any of it. What I like is the setup I had. I had GNOME 2 set up just the way I wanted it, and there was nothing wrong with it. Is there any way to get this back, while still using Debian? I've been using Debian (sid) a long time and I'm not changing distros. Are the debian patches for the last of the GNOME 2 releases still available? Can I build my own packages? -- 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/7f48.4ed21938.82...@getafix.xdna.net
Re: Is GNOME 2 panel still in unstable?
Camaleón writes: >On Sat, 12 Nov 2011 05:15:42 +0000, Cam Hutchison wrote: >> I'd like to keep using the panel from GNOME 2. I like its world clock, >> the menu and a couple of applets. >> >> Is this still in unstable at all? The replacement seems to be less >> functional (at the moment). >Yes, you can still launch the "fallback" mode from login manager. There >you can add the applets and put the panels in a similar way that GNOME2 >allowed. I have tried fallback mode, but even in that mode I cannot configure the panels, and it does not have the GNOME 2 world clock. I like to have a single panel at the bottom of the screen with a few useful things on it. I also have two monitors so I need a panel on each, and each is configured differently. It appears that the GNOME 3 panel is completely locked down with no way to configure it, whether standard or fallback mode. I accept that for my uses, I cannot use GNOME 3, which is why I'm looking for a replacement panel for the GNOME 2 panel. I run fvwm under GNOME 2, with a configuration that has evolved over 15 years. GNOME 3 model is so far away from my current desktop model that there's no chance of giving it a go. GNOME 3 wont work with a different window manager. There's a chance I could move from fvwm to compiz, if that will work with GNOME 3, but so far, no other window manager lets me configure it in the way I currently use fvwm. I have tried xfce and kde, neither of which are to my taste. I could elaborate, but it's really just personal preference and things I just think are done poorly or incompletely. I expect I will be going back to an .xinitrc/.xsession based setup, cherry-picking the parts I like from existing tools. It looks like I will need to find replacements for: * gnome-panel: There's a number of panels, most of which would probably be ok, except that the gnome world clock is not a separate component, but part of gnome-panel. Perhaps I'll look at what can be done to split it out into it's own component that can be used on any panel. * gnome-settings-daemon: I have a love-hate relationship with this at the moment - it mostly does things well but occasionally does things contrary to what I want and refuses to budge, or just seems to flake out sometimes. Since xsettings is a fdo spec, there's hope for drop-in replacements. * nautilus: I mostly use the command line, but I like the auto-mounting, and I'm one of those few users that like the spatial mode of nautilus. * gnome-bluetooth: This gives a nice easy way to set up bluetooth devices. I hope it can be run mostly independently of GNOME. * pulseaudio: I like it, and always have. I like being to easily move audio from my little USB speakers to my internal sound card connected to my amp and good speakers, and then to my bluetooth headphones. I've been living with a hobbled Debian version of GNOME for some time, since they've ripped out pulseaudio support from gnome-settings-daemon making my keyboard volume and mute keys non-functional. * system-config-printer-applet: Oh how I hate having to manually configure CUPS, and this tool seems to work most of the time. On the plus side, it will be nice to get rid of the evolution mail client and components altogether. I tried it for a while, but could not adjust. I'm happy with a combination of mutt and gmail. >> Otherwise is there a compatible panel available that can use the GNOME 2 >> world clock? >World clock should available in gnome-shell 3.2. Perhaps I'll revisit GNOME 3 then. It certainly has potential, but I'm disappointed that it was released without being a superset of GNOME 2. Thanks for your input. -- 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/1149.4ebefb6f.a3...@getafix.xdna.net
Is GNOME 2 panel still in unstable?
I'd like to keep using the panel from GNOME 2. I like its world clock, the menu and a couple of applets. Is this still in unstable at all? The replacement seems to be less functional (at the moment). Otherwise is there a compatible panel available that can use the GNOME 2 world clock? -- 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/725.4ebe00fe.f...@getafix.xdna.net
Re: Cruft in /var/lib/dpkg/status
David Baron writes: >On Sunday 18 Tishrey 5772 19:32:50 debian-user-digest-requ...@lists.debian.org >wrote: >> What is the output of the command >> >> grep 'Status:' /var/lib/dpkg/status | grep -v installed >> >A bunch of lines: >Status: deinstall ok config-files If you just need to purge all packages that just have their config installed, the easiest way I know of is to use the aptitude. # aptitude purge ~c This will purge all packages that have been removed but have left config files around. If you want to see what those packages are, run # aptitude search ~c -- 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/71b3.4e9baa99.b0...@getafix.xdna.net
Re: Reducing kernel compilation time
David Witbrodt writes: >(My goal was to >produce a kernel that boots without an initrd; most people will not >share that goal.) I would have thought that most people would share that goal, since building an initrd is useful for only two reasons I can think of: 1) You are building a distro kernel that needs to run on many different types of machines, since you don't know what modules would need to be built in to find the root filesystem. 2) You have a complex method of getting the root filesystem mounted - perhaps encrypted LVM on top of a network block device, etc, etc, etc. Since most people who are building their own kernels probably do not have either of these requirements, building without an initrd would make things a lot simpler. I looked into building an initrd with my kernel builds, but it just made things more complicated and I could not see the point. Is there some other reason to use an initrd when building your own customized kernels? -- 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/6334.4e7fd836.76...@getafix.xdna.net
Re: bash script fails in squeeze
"Bonno Bloksma" writes: [...snip...] >ping3.sh -- >default gateway >status=0 >ping4.sh -- >status=1 [...snip...] >ping3.sh -- ># test of $PINGHOST pingt ># pingt hij niet, test dan nog een keer ># pingt hij dan nog niet, verwijder dan de defaultroute >[ `pingtest $PINGHOST` == NOK ] && \ >[ `pingtest $PINGHOST2` == NOK ] && \ > sleep 2 && \ > [ `pingtest $PINGHOST` == NOK ] && \ > [ `pingtest $PINGHOST2` == NOK ] && \ > echo no default gateway || echo default gateway >ping4.sh -- ># test of $PINGHOST pingt ># pingt hij niet, test dan nog een keer ># pingt hij dan nog niet, verwijder dan de defaultroute >[ `pingtest $PINGHOST` == NOK ] && \ >[ `pingtest $PINGHOST2` == NOK ] && \ > sleep 2 && \ > [ `pingtest $PINGHOST` == NOK ] && \ > [ `pingtest $PINGHOST2` == NOK ] && \ > nodefaultgw [...snip...] >I hope someone can find a reason why for instance ping4 fails and ping3 does >not. ping3 does not fail because you have '|| echo default gateway' on the end, and this is the branch that is being taken. echo(1) returns true so you get a status of zero from the whole list. ping4 does not have an '|| cmd' branch, so the whole list retuns false (non-zero). These results are consistent with one of the pingtest commands returning OK (or not returning NOK, technically) I think you are looking in the wrong place. -- 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/76a9.4e1523de.e4...@getafix.xdna.net
Re: Accented chars in filenames issue
Ralf Mardorf writes: >$ echo test > \* >$ ls >* Desktop Downloads hdsp.1 >Any idea how I can get rid of the file named *? Exactly the same way you created it. With a backslash. $ rm \* -- 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/5d92.4e05f078.14...@getafix.xdna.net
Re: Translate user names with NFS
Dan writes: >If you have the same user (ex. pedro) with the same name but >different UID and GID NFS4 will do the conversion. Therefore I am just >going to sync the names between the two machines. To do that I guess >that I just need to change the file /etc/passwd and /etc/group Should >I update the names somewhere else? /etc/shadow and /etc/gshadow Other specific application configs may have already recorded a username in a config/state file somewhere. You will probably also want to rename the home directory for the user and update that in /etc/passwd too. -- 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/3990.4df93151.3b...@getafix.xdna.net
SSD partition alignment considerations
I'm about to do a fresh install of Debian onto a new box with a Crucial M4 128GB SSD. I want to ensure that I get the best performance I can out of the SSD so I want to make sure I take care of any partition alignment issues. I have read tytso's blog post (http://ldn.linuxfoundation.org/blog-entry/aligning-filesystems-ssd%E2%80%99s-erase-block-size) but that post is a couple of years old now and may not be relevant. Also, I cannot find any specific information on the M4's erase block size but some hints suggest it may be 512kiB, not the 128kiB used in that blog post (and the c/h/s settings no longer work for 512kiB alignment). It is necessary to worry about alignment anymore with modern SSDs? The Debian installer did not seem to have any special handling that I could see, so I suspect I would have to pre-partition the drive and tell the installer to use the existing partitions. -- 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/f97.4de462f3.b4...@getafix.xdna.net