ducasse 2017-02-01 04:45:44
NDBoosty: ask in #bash
anddam 2017-02-01 04:46:15
no love for UEFI?
MWM 2017-02-01 04:46:38
Ive got a program that autostarts (and it shouldnt). It isnt listed in the autostarts and I havent set it to in any other way
MWM 2017-02-01 04:46:48
Any idea how I would stop this from happening
ducasse 2017-02-01 04:47:00
NDBoosty: but given that a user can change their shell i can't really see how to do this
NDBoosty 2017-02-01 04:47:03
thx ducasse ill ask there
NDBoosty 2017-02-01 04:47:37
ducasse maybe is there some place that you can place a script to run after the .bashrc or .bash_profile
anddam 2017-02-01 04:47:42
MWM: who is its PPID?
NDBoosty 2017-02-01 04:47:51
and then just override the PS1
ducasse 2017-02-01 04:48:07
NDBoosty: what if the user switches to fish or zsh?
MWM 2017-02-01 04:48:10
checking...
NDBoosty 2017-02-01 04:48:18
we dont have those installed
NDBoosty 2017-02-01 04:48:23
just bash is installed.
ducasse 2017-02-01 04:48:36
NDBoosty: they can install in their homedir
NDBoosty 2017-02-01 04:48:41
and we dont provide those OOB if they are installed we start asking questions
NDBoosty 2017-02-01 04:49:06
im not worried about them changing prompts because we never do...
NDBoosty 2017-02-01 04:49:25
sorry shells*
BianryDragon 2017-02-01 04:51:04
test
BianryDragon 2017-02-01 04:51:10
Hello team
BianryDragon 2017-02-01 04:51:11
how are we doing
ducasse 2017-02-01 04:51:34
NDBoosty: you _can_ 'chattr +i' their bashrc and set the prompt there, but that will prevent them from changing the file at all
MWM 2017-02-01 04:53:24
Im using TOP to find the PPID... cant seem to find the sort option quickly
NDBoosty 2017-02-01 04:53:42
not a help with TOP but i prefer htop
NDBoosty 2017-02-01 04:53:46
filtering, sorting etc
NDBoosty 2017-02-01 04:53:57
i think top is z or h to show
NDBoosty 2017-02-01 04:54:50
nope its ?
MWM 2017-02-01 04:54:55
Found my PPID... just had to do it the old fashioned way with my eyes :)
NDBoosty 2017-02-01 04:55:06
o Set primary sort key to : [+-]keyname.
NDBoosty 2017-02-01 04:55:06
Keyname may be:{pid|command|cpu|csw|time|threads|
NDBoosty 2017-02-01 04:55:06
ports|mregion|rprvt|rshrd|rsize|vsize|vprvt|pgrp|
NDBoosty 2017-02-01 04:55:06
ppid|state|uid|wq|faults|cow|user|msgsent|msgrecv|
NDBoosty 2017-02-01 04:55:06
sysbsd|sysmach|pageins}.
NDBoosty 2017-02-01 04:55:25
so o, then +keyname
dagold 2017-02-01 04:57:33
Hi guys, I'm trying to mount my second hardrive in my ubuntu server and I get this message https://paste.ubuntu.com/23905809/
MWM 2017-02-01 04:58:46
dagold what options are you using to mount ? also are you certain that everything is okay with the drive (no bad blocks or errors and that it is partitioned properly?)
k1l 2017-02-01 04:58:50
dagold: mount this there. and what FS is on that partition? can you show the dmesg output on paste.ubuntu.com ?
dagold 2017-02-01 05:00:03
MWM I used sudo mount
MWM 2017-02-01 05:00:50
mount needs more options than that. http://manpages.ubuntu.com/manpages/zesty/man8/mount.8.html
ducasse 2017-02-01 05:01:06
not if that mount is in fstab
dagold 2017-02-01 05:01:21
MWM it is partitioned correctly but I don't know about about blocks. How do I check it ? K1l I'm a noob, what is FS ?
nicomachus 2017-02-01 05:01:28
whoa.
MWM 2017-02-01 05:01:55
FS is filesystem. Is the drive going to be mounted at every boot?
MWM 2017-02-01 05:02:54
if you want to mount every boot then you will need to put it in the fstab https://help.ubuntu.com/community/Fstab
dagold 2017-02-01 05:05:06
MWM yes It will be mounted at everyboot
MWM 2017-02-01 05:07:46
dagold to automount you will need to edit the fstab (/etc/fstab). It can be tough at first, but it will amke sense the more you work with it
MWM 2017-02-01 05:09:21
Ive still got a program that is running at every startup and shouldnt. It is not listed in Autostarts or in anywhere else. Anyone got a clue?
pavlos 2017-02-01 05:10:51
MWM, can you use 'locate' to find all occurrences of that file?
MWM 2017-02-01 05:11:49
Im gonna have to do some reading on locate, but what will I be looking for?
compdoc 2017-02-01 05:13:03
MWM, mi9ght check /etc/crontab
pavlos 2017-02-01 05:13:23
MWM, first ... sudo updatedb to get an updated db, then locate you can also grep for bin like, locate | grep bin
pavlos 2017-02-01 05:14:09
MWM, there may be a /bin/myfile which if you dont want to run at startup, drop the execution bit
MWM 2017-02-01 05:14:51
Im going to have to sort out the output here, but right now I dont se any /bin entries
MWM 2017-02-01 05:14:58
also no entry in /etc/crontab
ducasse 2017-02-01 05:15:18
MWM: what is it that runs on startup exactly?
MWM 2017-02-01 05:15:42
Handbrake is what is running at startup... odd right?
pavlos 2017-02-01 05:16:06
MWM, anything in /etc/rc.local ?
MWM 2017-02-01 05:16:49
nothing in /etc/rc.local
ducasse 2017-02-01 05:18:57
MWM: try a recursive grep through ~/.local and ~/.config
MWM 2017-02-01 05:20:14
sudo locate | grep _R ~/.local ~/.config ?
ikevin 2017-02-01 05:20:22
MWM, do a grep -ri "handbrake" on the whole /
BianryDragon 2017-02-01 05:20:55
locate might be outdatd
ikevin 2017-02-01 05:21:00
locate is needed only if you know the script name
BianryDragon 2017-02-01 05:21:00
should prob use find
ikevin 2017-02-01 05:21:13
grep -rni "handbrake" ~/
waltman 2017-02-01 05:22:35
Is this a problem with this post? It's not showing up under "my activity" and it's only had 1 view in 13 hours. https://ubuntuforums.org/showthread.php?t=2351181
MWM 2017-02-01 05:22:45
grep -ri "ghb" ~/ is bringing up everything Ive ever encoded with it
MWM 2017-02-01 05:22:59
been going for a couple minutes now
waltman 2017-02-01 05:23:02
I had an error when I originally posted it. I'm wondering if something happened to that only I can view it.
BianryDragon 2017-02-01 05:24:18
.
MWM 2017-02-01 05:26:49
still going. I guess I dont quite understand how grep works because I dont see why it is going through all these files
gimpy 2017-02-01 05:26:55
it
EriC^^ 2017-02-01 05:27:15
grep is a fun command
BianryDragon 2017-02-01 05:27:55
sure
fiter 2017-02-01 05:27:55
I am getting this error E: Sub-process /usr/bin/dpkg returned an error code (1)
BianryDragon 2017-02-01 05:28:03
wa
ikevin 2017-02-01 05:28:16
fiter, can you pastebin the entire log?
MWM 2017-02-01 05:28:21
yeah it seems pretty versatile. I rarely need it so its kinda foreign
erm3nda 2017-02-01 05:28:22
Hi. I have problem with Login from last session. A message is telling me that "bashrc cant read .profile file". Profile file exists. What can i check?
pavlos 2017-02-01 05:28:34
MWM, handbrake has a /usr/bin/ghb and /usr/bin/handbrake and other files
EriC^^ 2017-02-01 05:28:44
erm3nda: try checking the permissions of ~/.profile
ikevin 2017-02-01 05:28:45
erm3nda, check the owner
pavlos 2017-02-01 05:29:12
MWM, you can install apt-file, then apt-file list handbrake
erm3nda 2017-02-01 05:29:15
owner me, perms like other files
erm3nda 2017-02-01 05:29:37
i also had been removed from sudoers. So i have enter "solo" mode then add me back to sudo group
erm3nda 2017-02-01 05:29:55
seems i broke something with a wrong useradd command last time
EriC^^ 2017-02-01 05:30:04
erm3nda: what was the command?
fiter 2017-02-01 05:30:05
ikevin: here it is https://paste.ofcode.org/wN6Gv8g3Q6N2YKhmcMPAk2
al8989 2017-02-01 05:30:11
hello i just installed kubuntu 16.04 and I am trying to install drivers for my rtl8187b based usb wireless adapter but forget how i did it in ubuntu 14.04 a few years ago does anyone have instructions? I am trying to do this without connecting the computer to wired internet.
al8989 2017-02-01 05:30:16
I did it before, but I forgot how i did it.
erm3nda 2017-02-01 05:30:44
EriC^^, i think was useradd m3nda wireshark or somewhat similar
ikevin 2017-02-01 05:30:57
fiter, you have an error while downloading a file from oracle server
erm3nda 2017-02-01 05:30:57
finally i used usermod m3nda -a -G wireshark
erm3nda 2017-02-01 05:31:13
that's the only thing i could figure that broke system. i didn't anything more thatn that
MWM 2017-02-01 05:31:15
well whatdya know there is a usr/bin/handbrake. I had wrongly thought everything was listed under ghb
fiter 2017-02-01 05:31:16
ikevin: yes but how to solve it ?
ikevin 2017-02-01 05:32:07
fiter, it look like package oracle-jdk8-installer is broken
erm3nda 2017-02-01 05:32:35
whats the appropiate log to start searching?
fiter 2017-02-01 05:32:43
so is there any alternate ? ikevin
EriC^^ 2017-02-01 05:32:49
erm3nda: check /etc/passwd to see if it looks fine
erm3nda 2017-02-01 05:32:49
could i just create my user with the most default data?
erm3nda 2017-02-01 05:32:52
ok
EmberCrest 2017-02-01 05:33:14
So I've got a 500gb WD MyPassport device plugged into my computer, to store my workplace's source code.
EmberCrest 2017-02-01 05:33:19
I've encrypted the device with LUKS
erm3nda 2017-02-01 05:33:23
m3nda:x:1000:1000:m3nda,,,:/home/m3nda:/bin/bash
ikevin 2017-02-01 05:33:27
fiter, you can use the install method from oracle, or uninstall jdk if you don't need it
erm3nda 2017-02-01 05:33:36
gid sounds ok. what should i search for?
EmberCrest 2017-02-01 05:33:51
what precautions should I take with this device if its encrypted with LUKS?
EmberCrest 2017-02-01 05:34:09
in terms of preventing data loss upon removing the USB
erm3nda 2017-02-01 05:34:15
EmberCrest, don't try to modify its partition with gparted :-)
EriC^^ 2017-02-01 05:34:15
erm3nda: it looks good, is the ~/.profile "sane" ?
ikevin 2017-02-01 05:34:25
erm3nda, try if "source .profile" return an error
erm3nda 2017-02-01 05:34:26
EmberCrest, use dd for that kind of Partitions
EmberCrest 2017-02-01 05:34:36
I used the Disks utility but alright, I've taken note of that precaution
erm3nda 2017-02-01 05:34:48
i did it few minutes ago, source just ok
erm3nda 2017-02-01 05:34:51
no problems shown
erm3nda 2017-02-01 05:35:06
is the .profile file the one "not found"
EriC^^ 2017-02-01 05:35:16
erm3nda: how about /etc/profile?
erm3nda 2017-02-01 05:35:31
source it?
EriC^^ 2017-02-01 05:35:37
yeah give it a shot
erm3nda 2017-02-01 05:35:46
is ok too, i see it seems ok
EmberCrest 2017-02-01 05:35:51
When you unlock the device, and it mounts, is all data passing into it automatically encrypted?
EriC^^ 2017-02-01 05:36:07
erm3nda: when do you get this error msg?
MWM 2017-02-01 05:36:10
finally got a list of all the handbrake files apt-file is pretty nifty :)
EmberCrest 2017-02-01 05:36:12
And does it need to be locked before you remove the device?
erm3nda 2017-02-01 05:36:18
at Login stage
erm3nda 2017-02-01 05:36:23
let me verify what if relogin
littlebenj 2017-02-01 05:37:04
hi
MWM 2017-02-01 05:37:06
looks like there is a .desktop for it. Ill have a look and see if that is why it is autostarting. Is there anything else I should look for?
littlebenj 2017-02-01 05:37:18
how dod i know the last installl date of my package ?
EriC^^ 2017-02-01 05:37:42
MWM: ~/.config/autostart has files for starting up programs
EriC^^ 2017-02-01 05:37:56
if you're on unity open the dash and type "startup"
littlebenj 2017-02-01 05:38:24
how do i know the last installl date of my package ?
MWM 2017-02-01 05:38:35
Eric^^ Handbrake is autostarting but it shouldnt be. Nothing in Autostarts, nohing in rc.local or ~/.config
EriC^^ 2017-02-01 05:39:13
MWM: just your user?
MWM 2017-02-01 05:39:13
nothing in crotab either
MWM 2017-02-01 05:39:27
I am the only user
EriC^^ 2017-02-01 05:39:27
!info handbrake
ubottu 2017-02-01 05:39:30
handbrake (source: handbrake): versatile DVD ripper and video transcoder (GTK+ GUI). In component universe, is optional. Version 0.10.5+ds1-2 (yakkety), package size 5456 kB, installed size 10520 kB (Only available for any-amd64; any-i386; powerpc)
EriC^^ 2017-02-01 05:39:42
does it start if you try the guest session?
ikevin 2017-02-01 05:39:51
littlebenj, you can use "dpkg -L " to get a list of files, then do a ls -l on one file to see the last modified date
MWM 2017-02-01 05:41:39
Im set to autologin... I just tried to logout to the login screen but Im getting a black screen. Ill need a minute
erm3nda 2017-02-01 05:42:36
EriC^^, was totally my fault
erm3nda 2017-02-01 05:42:45
was not the bashrc who called the .profile
erm3nda 2017-02-01 05:43:01
seems the system sources all finles in a single command
erm3nda 2017-02-01 05:43:21
and i added an alias with $1 outside the alias="" pattern
erm3nda 2017-02-01 05:43:37
so seems that $1 becomed the file itself or something like that
EriC^^ 2017-02-01 05:43:57
erm3nda: oh ok
erm3nda 2017-02-01 05:43:57
i've added the $1 on it's place and now is working. thank you for your time
EriC^^ 2017-02-01 05:44:05
erm3nda: cool, np
EriC^^ 2017-02-01 05:44:23
MWM: ok
erm3nda 2017-02-01 05:44:24
alias srecord=" avconv -f x11grab -r 25 -s 1366x768 -i :0.0 -c:v libx264 $1 "
erm3nda 2017-02-01 05:44:36
so i can record screen without more app's install :-)
MWM 2017-02-01 05:44:45
I guess I dont have an option to login as a guest? I finally got to the login screen and there is 0 guest options
MWM 2017-02-01 05:45:03
Kubuntu 16.04 BTW