Search #Ubuntu channel logs

Note: Use Ctrl+F to search through these logs

Friday, January 27, 2017

#ubuntu channel featuring TvL2386, andywang, BluesKaj, zerous, _jyo_, tomreyn, and 8 others.

TvL2386 2017-01-26 22:45:57
koen_, I would enable a NAT network in your VMWARE and then configure your Ubuntu VM to use dhcp
Rudemeister 2017-01-26 22:46:01
_jyo_: anyhting with tmp that might be causing it?
TvL2386 2017-01-26 22:46:03
koen_, you still here btw?
koen_ 2017-01-26 22:46:09
Yes
TvL2386 2017-01-26 22:46:12
:)
koen_ 2017-01-26 22:46:19
TvL2386: how to configure Ubuntu Vm to use dhcp
koen_ 2017-01-26 22:46:29
i chose the network adapter to be nat
TvL2386 2017-01-26 22:46:34
koen_, that's good
TvL2386 2017-01-26 22:46:49
according to your gist, your network interface in the VM is "ens33"
EriC^^ 2017-01-26 22:47:01
_jyo_: it should show the decrypted files in /tmp/ecryptfs..
TvL2386 2017-01-26 22:47:13
did you manually configure that 192.168.10.128/24 ? https://gist.github.com/anonymous/55bc8d905ff42919f77303d27f031ba8
EriC^^ 2017-01-26 22:47:22
_jyo_: can you show a pastebin of the whole process?
EriC^^ 2017-01-26 22:48:04
ls -l /home/$USER; sudo ecryptfs-recover-private /home/$USER/.Private ; ls -l /tmp/ecryptfs.whatever ?
TvL2386 2017-01-26 22:48:42
koen_, you should have something like: "auto ens33" and on the next line "iface ens33 inet dhcp"
koen_ 2017-01-26 22:48:56
TvL2386: Where?
TvL2386 2017-01-26 22:49:04
koen_, in /etc/network/interfaces
koen_ 2017-01-26 22:49:42
TvL2386: how long will u be here? m going for a meeting,can i ping u in a while
TvL2386 2017-01-26 22:50:05
I'll be here for a few hours
TvL2386 2017-01-26 22:50:23
not lurking 100% of the time though ;)
zerous 2017-01-26 22:50:45
If I wanted to compile coreutils without gcc optimization, what should I look into ?
tomreyn 2017-01-26 22:51:55
zerous: removing the -O ?
zerous 2017-01-26 22:52:22
tomreyn: yeah, I know, but from which file. I am really new to linux and with automake.
tomreyn 2017-01-26 22:53:12
zerous: if you're new to linux then this is probably not a good project to start with.
_jyo_ 2017-01-26 22:53:17
It is searching for private encrypted directories, that gives the same 'loop' error
_jyo_ 2017-01-26 22:53:42
EriC^^, yes I can make a pastbin, what would you like to see?
EriC^^ 2017-01-26 22:53:57
ls -l /home/$USER; sudo ecryptfs-recover-private /home/$USER/.Private ; ls -l /tmp/ecryptfs.whatever ?
_jyo_ 2017-01-26 22:54:21
ok ...
_jyo_ 2017-01-26 22:55:20
for the $USER, do you require ubuntu (this is from usb) or that I navigate to the user with the encrypted file?
EriC^^ 2017-01-26 22:55:35
_jyo_: the latter
_jyo_ 2017-01-26 22:55:48
EriC^^, ok
zerous 2017-01-26 22:57:53
tomreyn: I know. The truth is that I have been trying to chase the execution flow of echo (coreutils) by running it through gdb and I have come to see that a specific statement, line 38 precisely is getting executed even though the if clause that contains shouldn't allow it, as the condition should be false logically. So I wanted to see it run without optimization. Should I be looking into automake to
tomreyn 2017-01-26 22:57:57
zerous: the general approach would be to "apt-get source" it, cd into coreutils*, read INSTALL, add environment options as discussed there to modify the build as needed. build, and to dpkg-buildpackage it.
zerous 2017-01-26 22:57:59
understand more about the building process ?
tomreyn 2017-01-26 23:01:15
zerous: if you'd like to understand how automake works, looking at how it works would seem like a good idea. but you don't strictly need to just to build the software.
kazim59 2017-01-26 23:01:27
hateball: now it seems it has connected using both interfaces!!
_jyo_ 2017-01-26 23:01:28
EriC^^. Yes, that gives the full list of the directory as an output
kazim59 2017-01-26 23:01:34
is it possible?
tomreyn 2017-01-26 23:01:38
zerous: line 38 of what, /bin/echo's source code ?
zerous 2017-01-26 23:01:48
tomreyn: yes.
tomreyn 2017-01-26 23:02:22
zerous: be aware that many shells will just make you use their built-in implementations of basic commands such as echo. e.g. bash does.
tomreyn 2017-01-26 23:02:54
man bash -> SHELL BUILTIN COMMANDS -> echo
andywang 2017-01-26 23:03:07
anyone else?
tomreyn 2017-01-26 23:03:28
andywang: hmm? you just joined.
_jyo_ 2017-01-26 23:03:37
EriC^^, pastbin.com/RUp6C20W
zerous 2017-01-26 23:03:43
tomreyn: oh, that might be the reason. :) I never thought about it.
zerous 2017-01-26 23:03:48
recompiling now.
_jyo_ 2017-01-26 23:04:25
EriC^^, sorry there is an error in the link
hateball 2017-01-26 23:04:34
kazim59: sure, as I said you can use rfkill to block the internal device if you like
hateball 2017-01-26 23:04:45
kazim59: perhaps your laptop even has a physical switch to disable ti
_jyo_ 2017-01-26 23:05:52
EriC^^, http://pastebin.com/RUp6C20W
_jyo_ 2017-01-26 23:06:09
Though I guess I can do a cp dir/*
zerous 2017-01-26 23:06:45
tomreyn: nope that isn't the problem. I am running the right executable through gdb and it is doing the weird thing again.
_jyo_ 2017-01-26 23:07:33
EriC^^, yes I can, this looks very prommising
wayne23 2017-01-26 23:09:16
Hello, I'm setting a proxy via "gsettings set ... manual / host / port" . This fills the text input fields in "System Settings - Network - Network proxy" correctly. But I have to click on "Apply system wide" in the gui to fill /etc/environment with the correct proxy settings. Is there a way to do this via commandline?
_jyo_ 2017-01-26 23:09:30
EriC^^, thank you so very much; I have the files that I was working on.
EriC^^ 2017-01-26 23:10:23
_jyo_: if you want the hidden files as well use rsync to copy it
EriC^^ 2017-01-26 23:11:16
_jyo_: rsync -av /tmp/ecryptfs..../ /path/to/destination (trailing "/" after ecryptfs.... is important)
_jyo_ 2017-01-26 23:12:10
EriC^^, rsync is amazing, just clearing the space on my backup disk to copy over.
kazim59 2017-01-26 23:13:06
hateball: no, laptop doesn't have a physical switch. But I found a way to disable it through writing in interfaces file.
kazim59 2017-01-26 23:13:17
the realtek one is working now, and it looks like it has good signal strength
zerous 2017-01-26 23:16:35
tomreyn: thanks a lot for your suggestion. I changed the CFLAGS parameter and disabled optimization. Now the code runs just fine through gdb. :)
tomreyn 2017-01-26 23:18:29
zerous: welcome.
zerous 2017-01-26 23:20:44
tomreyn: Is it a bad practice to debug optimized code ?
ppf 2017-01-26 23:21:05
no, just difficult
zerous 2017-01-26 23:21:12
oh
zerous 2017-01-26 23:21:28
Are there any special flags or parameters to be set in gdb for such cases.
ppf 2017-01-26 23:21:38
no
ppf 2017-01-26 23:21:48
gdb shows you how the program looks like
zerous 2017-01-26 23:21:48
I am sorry, I haven't read gdb manual in full
ppf 2017-01-26 23:22:15
if all meta information has been optimized out then there's not much you can see
zerous 2017-01-26 23:22:27
oh I get it.
zerous 2017-01-26 23:23:34
so basically we debug it, make sure the software works the way we want it to and finally optimize it.
tomreyn 2017-01-26 23:24:23
right, to debug, you create builds with debug symbols included
ppf 2017-01-26 23:24:28
yes and no. Debug and Release programs behave differently. you have to test and subsequently debug both
zerous 2017-01-26 23:25:46
So I presume there are tools/procedures for debugging Release programs specifically ?
ppf 2017-01-26 23:25:57
no, not really
ppf 2017-01-26 23:27:15
you can include debug symbols in an optimized build. that still might affect behaviour though
zerous 2017-01-26 23:27:39
Is it a standard practice ?
ppf 2017-01-26 23:27:44
other tricks are no omitting the framepointer. you still won't be able to inspect variables, really, but at least you get some decent stack traces
ppf 2017-01-26 23:28:08
intel processors also have special stacktrace registers, you can those, too
zerous 2017-01-26 23:29:03
oh
ppf 2017-01-26 23:29:03
i don't think there really is a standard practise. if you've got an error that's specific to the release build only, then debugging is tricky
tomreyn 2017-01-26 23:29:04
that's if you don't target x platform or x cpu vendor
fedecupe 2017-01-26 23:30:45
Good evening, I'm looking for help in compiling a driver using a different module, can anyone lend a hand?
ppf 2017-01-26 23:30:56
and there's also printf-debugging, of course :)
tomreyn 2017-01-26 23:31:25
:))
tomreyn 2017-01-26 23:32:31
fedecupe: provide more context / be more specific. a linux kernel module IS a driver
fedecupe 2017-01-26 23:34:36
tomreyn sorry. I'm trying to install displaylink driver, but need to "repackage" (don't know if the word is correct) it with a different evdi moudle (because I'm using the kernel 4.9) Can I link something related?
tomreyn 2017-01-26 23:36:11
fedecupe: yuo can post links as long as it is about ubuntu support.
fedecupe 2017-01-26 23:36:57
tomreyn here we are (I post this because it has many relevant info, I don't want to flood the channel with pastebins XD ) http://askubuntu.com/questions/874558/cant-install-displaylink-driver-with-current-kernel
BluesKaj 2017-01-26 23:37:59
Hiyas all
tomreyn 2017-01-26 23:40:57
fedecupe: is that a mainline kernel on 16.04.1?
fedecupe 2017-01-26 23:41:47
tomreyn sorry I don't get what you are asking. The kernel was installed through deb packages from kernel.ubuntu.com
tomreyn 2017-01-26 23:44:24
fedecupe: right, that's roughly what i meant. is the 16.04.1 kernel too old for you needs then?