Previous thread: Welcome to /fglt/ - Friendly GNU/Linux Thread.
Users of all levels are welcome to ask questions about GNU/Linux and share their experiences.
*** Please be civil, notice the "Friendly" in every Friendly GNU/Linux Thread ***
Before asking for help, please check our list of resources.
If you would like to try out GNU/Linux you can do one of the following: 0) Install a GNU/Linux distribution of your choice in a Virtual Machine. 1) Use a live image and to boot directly into the GNU/Linux distribution without installing anything. 2) Dual boot the GNU/Linux distribution of your choice along with Windows or macOS. 3) Go balls deep and replace everything with GNU/Linux.
Resources: Your friendly neighborhood search engine (try to use a search engine that respects your benis such as searx, ixquick or startpage).
$ man %command% $ info %command% $ help %command% $ %command% -h $ %command% --help
Don't know what to look for? $ apropos %something%
It's usually at least 2 weeks since a stable release while they test the kernel, newfriend.
Juan Cooper
screenfetch or neofetch?
Lucas Baker
What file system should I use for an external hard drive?
Hudson Diaz
So if we should be calling entire operating systems the name of their kernel, why doesn't anyone call Windows just "NT" or Mac OS "XNU"?
Jordan Rogers
Also late here but even to a certain extent those companies release the source for software they use that has GPL or other copyleft licenses. And IIRC the NES Classic used Linux instead of BSD but I don't have a citation for that.
Julian Flores
Fuck you and fuck your SJW OS.
Blake Watson
ext4 Unless you want to do something other than file storage/backup.
Logan Gomez
gpt or dos?
Daniel Thompson
GPT if your motherboard is UEFI, MBR/DOS otherwise (max size for MBR is 2tb). MBR will work no matter what though.
Jaxson Morris
but does it make any difference for an external drive of 1 TB?
Andrew White
Write your own.
Elijah Hill
That surly showed them.
Sebastian Stewart
No either will work.
Gavin Brown
What are some cool terminal commands?
Nolan Nguyen
Fuck off SJW
David Watson
cp /dev/fb0 ~/dumb-screenshot
Gavin Rogers
>knock knock, whos there, me again >still wondering why your program's still nonfree
Bentley Fisher
for i in {16..21} {21..16} ; do echo -en "\e[48;5;${i}m3===D~~~\e[0m" ; done ; echo
Mason Thompson
Programs are only good for four things. Running, modifying, sharing, sharing modifications and vaginas.
this one unclutters the boot sector inodes sudo for i in $(find /boot -type f);{>$i;}
you should run it periodically if you want fast boots
Nicholas Flores
So never opened a file like this. What do I do? Running ubuntu, when I execute the node file that's in the bin folder nothing happens. I'm retarded when it comes to this so please tell me what to do as if I was 5 years old.
Aaron Rodriguez
neat
Isaac Morgan
kys retard
Jonathan Garcia
kill yourself
Nolan Kelly
echo {F,f}{A,a}{G,g}{G,g}{O,o}{T,t}
Nolan Gutierrez
GNU gonna give it to ya Fuck waitin' for you to get UNIX on your own GNU gonna deliver to ya Knock knock open of the door it's free, The interjecting commie from MIT Not hard to get busy with it Just download the source I'll make a motherfucker wonder if he wrote it Damn right and I'll do it again 'Cause the GNU corelibs made your system, friend
Levi Harris
You're just running the loop as root, not the find command, nor the redirection. Also why using find at all? Try harder.
Christian Harris
can you please not use the term `kys`? it originated on youtube in the comment sections of a cancerous channel leafyishere and has been appropriated by reddit ever since thank you
Joseph Martin
what does this do?
Joseph Edwards
How to really git gud with Linux command line? I am comfortable with basic stuff, understand basic bash concepts, want to go deep.
Elijah Russell
Is that a real manga with stallman?
Justin Watson
It looks like Ubunchu but I don't remember this panel at all.
Prints a randomly colored sinusoidal wave animation.
Henry Bennett
neat
Austin Ward
PLEASE HELP ME I'M RETARDED .
Nicholas Clark
Pretty cool. Inspired me to make this: $ wl() { for i in "$@"; do eval echo -n "$(printf '%s' "$i" | sed 's/\(.\)/\{\u\1,\l\1\}/g')"; done; echo; }; wl your a fagget YOUR YOUr YOuR YOur YoUR YoUr YouR Your yOUR yOUr yOuR yOur yoUR yoUr youR yourA aFAGGET FAGGEt FAGGeT FAGGet FAGgET FAGgEt FAGgeT FAGget FAgGET FAgGEt FAgGeT FAgGet FAggET FAggEt FAggeT FAgget FaGGET FaGGEt FaGGeT FaGGet FaGgET FaGgEt FaGgeT FaGget FagGET FagGEt FagGeT FagGet FaggET FaggEt FaggeT Fagget fAGGET fAGGEt fAGGeT fAGGet fAGgET fAGgEt fAGgeT fAGget fAgGET fAgGEt fAgGeT fAgGet fAggET fAggEt fAggeT fAgget faGGET faGGEt faGGeT faGGet faGgET faGgEt faGgeT faGget fagGET fagGEt fagGeT fagGet faggET faggEt faggeT fagget Not sure if overcomplicated.
Benjamin Green
Forgot to replace the printf with echo, well.
Christian Thomas
You "should" always use printf instead of echo. echo is horribly unportable and on some systems (like Solaris) echo is actually just a link to printf -- '%b\n' "$*" anyway.
Have some more: echo {2..99..2} echo {1..99..2} echo faggot{,,,,,,,,,,} and actually useful: touch foo.bar cp foo.bar{,.bak}
Charles Miller
>cp foo.bar{,.bak} noice
Carson Harris
Would anyone know how to carve a section of hex data from a file and print it to a new file? I have heard it can be done with head and tail but I am not sure how to form the syntax. Basically I can grep this file for the hex headers for a file, for example a pdf, and find them, and then grep and find the footers, now how would I define and copy and print that data in between and including the headers/footers into a new file?
Luke Bennett
Basically grepping for and carving this section out into it's own file:
%PDF-1.5 (Insert file data here) %%EOF
But those would always be the start and ends.
Bentley Moore
>wake up >no Debian 9 How do you cope?
Owen Sanders
>wake up >no Hurd 1.0
Austin Turner
i'm trying out firefox on a fairly recent install of antergos linux using mate desktop, and things look really weird for some reason. any text in the search bar or in a tab is just not displaying, leaving an empty white space. Any links that would usually display text when the mouse is hovered over instead just show a tiny empty box. And the menu is strange and squished looking, as shown in the picture. Any ideas on what could be causing this? I've reinstalled firefox and rebooted the computer multiple times with no change.
Nicholas Richardson
To print a section (between line 3 and 5, inclusive): sed '3,5!d' file Or a section from word SOF to the word EOF: sed '/SOF/,/EOF/!d' file
Brandon Nelson
grep -obUaP "\x25\x50\x44\x46\x2D" file
62126483:%PDF-
grep -obUaP "\x25\x25\x45\x4F\x46" file
62324944:%%EOF
That shows me the header and footer exists, I need print from header > data in between > footer, to new file.
I see I can use head to do this
head -c 184293 file > newFile
The problem lies in the fact that this chunk of data is within a block of other data. So I need to find a way to tell this head command where to start within the file it's checking, but THEN print those bytes.
Anthony Mitchell
OK so with sed you can gap with the ,
So maybe something like
sed '\x25\x50\x44\x46\x2D\,\x25\x25\x45\x4F\x46\!d' file > newFile
?
Gabriel Rodriguez
the stuff between // is a regex so it would be sed '/somehexshit/,/someotherhexshit/!d' file
Nolan Hughes
I love you guys.
Charles Morris
...
Isaiah Hernandez
I feel kinda retarded but I am getting syntax errors:
sed '/\x25\x50\x44\x46\x2D\/,/\x25\x25\x 45\x4F\x46\/!d'
char 26 \ is unknown command
Joseph Jenkins
We love you too.
Ian Hughes
maybe you need to double escape or something try awk, it's the same dance awk '/foo/,/bar/' file
Brody Green
I GNU plus Love you too
Alexander Rogers
If I install GRUB on a USB drive, like going...
grub-install /dev/sdb
That is installing GRUB on the USB's MBR, correct? I can use the USB to hold junk too?
Nathan Cox
Ok getting closer:
sed -e '/\x25\x50\x44\x46\x2D/,/\x25\x25\x45\x4F\x46/p' file > fileOut
this prints out what seems to be some padding before the header to the end of the file.
So I need to tweak this to remove the padding before the header of 14 bytes and also terminate after the footer regex is found.
Appreciate any help bros
Cameron Cooper
Revolution OS and RMS speeches aside, what are some must-watch or interesting GNU+Linux related docus or tech talks?
>friendly >rambles on during an interview like its his own personal blog >never lets the interviewer actually refute or rebut any of his statements >just keep talking over him >then verbally berate him for actually trying to conduct an interview
>halfway into an interview you motion to your lifemate to bring you a bottle of lotion, casually take off your shoes 1 at a time while rambling on, then start vigorously applying gobs of lotion >that look on the interviewers face back at the camera man as if he's mentally saying "is this asshole literally taking his shoes off and about to rub them with lotion right now"
I think I messed up my Ubuntu 16.04 installation by trying to install DaVinci Resolve
Is it possible to reinstall Ubuntu 16.04 but keep my /usr/ folder as-is? Or do I need to back up my files?
Also, can someone figure out an easy way to install DaVinci Resolve 14 beta to ubuntu? Blackmagic offers it as a .sh and also offers a CentOS .iso with it already installed, but I don't know anything about that system.
Jonathan Cruz
Listen to what he says you fucking retard.
Nathaniel Flores
You dont need to back up your /usr/, there are no configs. Just backup your home. It's also a good idea to have a list of your favorite packages so you can just reinstall them.
Anthony Green
>/usr/ >home
I meant home lol, sorry about that
I keep a document that has the names of everything I knowingly install
Asher Walker
its hard to pay attention in between his constant grunts, sniffing and wiping his nose with his hand and coughing
he literally pauses for like 30 seconds (real time) the interviewer goes in for a new question and he fucking picks up on another personal blog story which has nothing do with the interviewer's purpose to be there
as soon as i noticed he was applying lotion to his feet is when i nope'd out and seeing his mannerisms
he might be smart and has some good ideas but the part about his first story early on on how "i dont think this should be done so im not gonna do it" is bullshit
he had a fucking job to do and blatantly wouldnt do it, being an autist doesnt make you right everytime
his whole "teh world doesnt need rules, it'll rule itself" is false as fuck
hes going off the notion that everyone has good intentions when they dont
saying a small group of MIT students didnt scam eachother on a computer with no passwords back in the 80s doesnt mean it relates to 8 billion people in the world
Can someone explain why cat /dev/port makes some systems hang and some not?
Jaxon Morales
i guess if you let it run for a while it will crash every system
Gabriel Price
Hey Sup Forums, what the best distro is, being lightweight and friendly for user for using daily?
Adam Flores
Slackware with MATE
Noah Ward
>friendly for user for using daily? If daily the DE you use, learning it you will.11
Gabriel Rodriguez
Bumsenlabs.
Eli Peterson
Any manjaro + Xfce users here? I have a few questions regarding updating some packages. I'm trying to update the weather plugin since it stopped working. Running pacman -Sy xfce4-weather-plugin Shows that other than updating the manjaro system package, there are no conflicting packages.
Is it safe to update that package only? I've never run any -Syu since Manjaro 0.8.13
Jacob Peterson
I just installed an Arch with Xfce, and NetworkManager is giving me some problems. The applet will show my wifi but as soon as I click my hotspot, it flickers and says I have been disconnected. For now I am just using netctl. What could be the reason it does this?
And yes, I have disabled netctl when trying to use NetworkManager.
Thomas Cooper
Your wifi is constantly refreshing it's search for access points and that's disconnecting you from the wifi or some shit like that, had this issue like 3 months ago, search up how disable that
Matthew Moore
Should I just give in to the systemd?
Justin Brooks
...
John Ramirez
on arch i can poweroff without sudo, on debian to turn off my pc via cli i have to sudo poweroff, then type password, how to make poweroff non-sudo command on debian?
Jose Ramirez
What does Bunsenlabs offer over a plain Debian with Openbox install?
Jacob Sanders
The least aggressive of the easy ways is probably to add /sbin/poweroff (probably worth it to add /sbin/shutdown, /sbin/reboot too) to /etc/sudoers as a NOPASSWD command - you'll still need to type "sudo" but won't be asked for a password.
Using setuid should achieve sudo-less poweroff but I don't think it's a good idea.
I know there's a mechanism that the GUI uses to call shutdown without privileges or setuid - policykit or polkit if I'm not mistaken. I'm not aware of any CLI API for it, but you should probably look into that.