• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, April 18, 2018

    Linux Some newbie tips about globs (aka shell patterns) on Linux

    Linux Some newbie tips about globs (aka shell patterns) on Linux


    Some newbie tips about globs (aka shell patterns) on Linux

    Posted: 18 Apr 2018 12:54 PM PDT

    Ordinarily the shell (sh, dash, bash, zsh, etc.) will expand globbing characters such as ch*.

    bin$ echo ch* chacl chgrp chmod chown chvt 

    When you're not sure how a glob will be expanded, use printf '"%s\n"' GLOB to sample it.

    bin$ printf '"%s"\n' ch* "chacl" "chgrp" "chmod" "chown" "chvt" 

    This means programs and shell scripts don't have to bundle in their own globbing functions or call on external programs to do it for them. The shell is always the first program which parses your command lines. The shell expands globs into blank delimited argument lists.

    If you want to use a globbing character in a string, you must quote it.

    bin$ printf '"%s"\n' "ch*" 'ch*' ch\* "ch*" "ch*" "ch*" 

    A few programs do bundle in their own globbing functions. When you want the program to process globs instead of the shell, you must quote the globs as shown above! Two such programs are find and unzip, but there are many others. Check their man pages to learn how those programs process globs you quote to them.

    submitted by /u/unused_alias
    [link] [comments]

    Reverse ssh on startup

    Posted: 18 Apr 2018 12:14 PM PDT

    I've installed Ubuntu on the machines of a few friends and family, which is a good time to learn some IT support skills. SSH is my preferred method.

    So I want to create an ssh tunnel from their machines to my pi (I have a static IP).

    This link told me to use:

    ssh -f -N -T -R22222:localhost:22 pi@[publicip]

    ... from the friend's computer and:

    ssh -p 2222 username@localhost

    ... from the pi. This works when running the laptop through mobile tethering. I just need to run this as a startup script (people will have this on request, others will access the script through an alias or keyboard shortcut when they want help).

    But I can't get it to run on startup. I've tried:

    • making the startup-scrip /etc/network/if-up.d/phone-home, then chmod 755 on phone-home. The script is just #!/bin/bash;sleep 60;ssh -f -N -T -R22222:localhost:22 pi@[publicip]

    • Adding the same connection script to /etc/rc.local

    • Checking port numbers are all correct.

    The computer now takes an additional minute to startup. I presume that's the fault of /etc/rc.local's script.

    Any ideas where to go from here?

    submitted by /u/Andonome
    [link] [comments]

    Celebrate with Linux Academy - 1 year membership to linux & cloud training giveaway!

    Posted: 18 Apr 2018 01:51 PM PDT

    A few questions on Debian's testing nofree image

    Posted: 18 Apr 2018 10:52 AM PDT

    Hello there.

    I'm thinking about installing Debian testing on my machine.

    I played with the live image and I like it so far. It's clean, pure and can be used as a rolling distro which is a big plus for me.

    For someone who comes from ubuntu, it has some inconveniences tho, such as missing firmware, packages like bash-completion and command-not-found, localization, slightly different bashrc et al. but I can deal with all that.

    The image I tried was the official and therefore comes with only free software and that's ok but for my convenience I'd like to use the nonfree

    So I have 2 questions:

    • From your experience, is Debian testing stable enough for everyday use? Is its stability comparable at least to Ubuntu's non-LTS releases. If so I'm fine with that.
    • Since nonfree images are unofficial and I saw that they aren't built by the official Debian team, maybe I'm wrong with this, would it be a security concern or a stability issue? As I saw they have some extra packages preinstalled, mostly firmware which is something I need for my wireless card. Are there any other changes beyond this?

    Thanks in advance!

    submitted by /u/linuxman2
    [link] [comments]

    Bootable open source memtest?

    Posted: 18 Apr 2018 06:58 AM PDT

    Is there a bootable and open source memtest image?

    Memtest86+ wasn't updated in a long time and does not work with all computer or is really hard to make bootable for a modern system.

    This one: http://www.memtest.org/

    Is there an open source alternative?

    I only found https://www.memtest86.com which is only Freeware and not as simple as memtest86+.

    submitted by /u/sradm
    [link] [comments]

    Several software icons are not pining to the Docky dock.

    Posted: 18 Apr 2018 11:36 AM PDT

    I'm trying to pin the Atom icon to the Docky dock. When I right click on the icon there is no option to pin it. I also tried the Cairo-Dock. That gave me the option to pin it. When I selected that option it added a wite circle to the dock and when floating the mouse pointer over it, it said "Libre Office". I'm having this problem with several of programs as well, however, most of them are working properly.

    Edit: This is also happening with IDLE as well.

    submitted by /u/the_best_moshe
    [link] [comments]

    How to launch a program to the foreground from terminal?

    Posted: 18 Apr 2018 09:00 AM PDT

    Hi all. I'm mostly now using Ubuntu Budgie that like Solus Budgie has the annoying habit of frequently launching apps that have keyboard shortcuts behind already open windows.

    Is there a terminal command I can use to force app windows to launch to the foreground that I can use for keystroke binding? Thanks!

    submitted by /u/Iiari
    [link] [comments]

    fedora hotspot

    Posted: 18 Apr 2018 11:03 AM PDT

    im having trouble setting up the hotspot in fedora. the goal is, to have access to the internet via the ethernet connection by creating a wifi hotspot. i installed fedora with kde on a dell latitude 7250. i used the methods found on google to verify, that my wifi adapter is capable of the ap mode.

    My first idea was to create a hotspot with the network tool, but that wont give my client an ip adress. im not sure, wether that will by default use the bridge mode or dnsmasq(NAT).

    preferable would be to use dnsmasq, so that my client wont need a separate ip adress.

    also, im not sure if i have to use pfsense or iptables to manage the natting.

    does somebody know of a proper way to set this up? maybe a comprehensive guide about using the network settings?

    Also i dont know how much KDE plays a role in this.

    submitted by /u/sffilk0908
    [link] [comments]

    Question about KDE Kontact encryption protocols

    Posted: 18 Apr 2018 04:36 AM PDT

    I'm new to linux (just installed mint) and i was doing a bit of reading on what software to install. I currently use ThunderBird as an email client and StandardNotes as a note taking app, largely because of its encryption features. I discovered Kontact and the idea of a personal information manager and having my calendar, to do list, and journal integrated is appealing. Before i transition though i'd like to know how that data is stored. Basically are all of the calender's, notes, journals encrypted? and how would i go about backing them up?

    EDIT: Ok so I've done a bit more reading so i think I'll rephrase my question. It's my understanding that the calender, journal, and to do list are saved as an .ical file. does this remain encrypted when syncing with my phone? (i use buisness calender on stock android atm but intend to change over to LineageOS. is there a calender app on LineageOS that supports VJOURNAL?)

    I assume kjots and knotes save data seperately? what file type do they save as? and would i be able to sync them to an app on my phone? and again, would this be end to end encrypted?

    submitted by /u/ComplexIsomorphism
    [link] [comments]

    Linux Mint and Epson Printer XP-245

    Posted: 18 Apr 2018 07:16 AM PDT

    Hi folks, I have an Epson XP-245 and try to print there by using Linux Mint. In the beginning I had no problems to print in proper quality. Since the last weeks I get some stripes on grey-scaled pictures. It is very disgusting. I have an example test page, where you can see the problem. https://sharegallery.strato.com/u/RK2MOnfc/SJGrUi3h#epson/photo/120534032 What makes me angry: Microsoft and MacOS do not have the problem.

    I Installed the latest driver from Epson. I have no problem with the scanner. I am using the up to date version from Linux Mint too.

    I hope there is one who can help.

    Thanks allot

    submitted by /u/xtristrix
    [link] [comments]

    4K@60Hz ubuntu compatibility with CHOETECH HDMI2.0 compatible USB-C adapter

    Posted: 18 Apr 2018 03:01 AM PDT

    i need a Step by step to create an encrypted Debian System

    Posted: 18 Apr 2018 12:19 PM PDT

    I want to use the manual option to encrypt a new debian instalation

    submitted by /u/whoami1331
    [link] [comments]

    Print stuck on 'Pending'

    Posted: 18 Apr 2018 11:12 AM PDT

    I'm having some problems with my printer on Ubuntu 16.04 LTS, its an epson l375 Most of the time the print is stuck on 'pending' and won't print When it starts to print and runs out of paper it gets stuck there too..

    Tried reinstalling all drivers manually, removing and adding the printer again.. just won't work. Only thing that works is turning the printer off then on again

    submitted by /u/HeckGustavo
    [link] [comments]

    What are those weird partitions on my laptop?

    Posted: 18 Apr 2018 05:51 AM PDT

    I have a Dell Latitude E6530 and I'm currently shredding the disk because I want to sell it. There are two partitions /dev/cloop0 and /dev/cloop1. I can't shred those partitions. I if I try it says that their only for reading. What's on those partitions?

    Also there is /dev/ram0 - /dev/ram15 and /dev/zram0. I assume zram0 is one of the RAM sticks because it's 4GB. There should be a second one though because the laptop has 8 GB of RAM. ram0 - ram15 all have 4MiB. No idea what those are.

    What are those partitions?

    submitted by /u/PM-ME-all-Your-Tits
    [link] [comments]

    Going from ubuntu to mint (preferably without needing a USB)

    Posted: 18 Apr 2018 05:22 AM PDT

    I've got a completely clean computer, with a fresh install of ubuntu 16 LTS on it. Coming from windows, I like the look of mint's cinnamon as opposed to ubuntus unity.

    How do I go about swapping to another distribution in the easiest way possible? I did a few searches, but nothing really comes up.

    Cheers.

    submitted by /u/mattizie
    [link] [comments]

    Help me narrow down a distro

    Posted: 17 Apr 2018 06:02 PM PDT

    Hey,

    Looking to get into linux as I am familiar with programming but have only used windows and mac..(pls no kill)

    I'm not sure what distro I want, but I have been thinking I should either get ubuntu, mint or debian. Then theres also mint and ubuntu versions with different desktop environments that make it harder to choose...

    Just wanted something stable, easy to play around with and lets me explore a linux based OS while practicing programming... I know ubuntu is updating from 16.04 to 18.04 and is using unity and I've been hearing good things about that so maybe I should tackle the new Ubuntu release?

    Sorry for the post, theres no daily question thread for small questions like these...

    I'm running a i7 7700k with 16gb of ram at 2400mhz. SSD and 1060 6gb so I'm sure I could handle any distro.

    Thanks for reading!

    submitted by /u/NewAgeKook
    [link] [comments]

    College

    Posted: 17 Apr 2018 11:47 PM PDT

    Hey guys i benn studying cs and i have used linux for 3years now fell in love with it but i have got to use windows 10 for school work.. so the question is should i buy a small exterior ssd with usb3 to put fedora on so i can boot up from linux or should i dual boot?

    submitted by /u/wh1zx
    [link] [comments]

    [st] Where is the simple terminal config.h file located?

    Posted: 17 Apr 2018 07:37 PM PDT

    I installed st through $ sudo make clean install, but I have no idea where the config.h file that I have to configure to customize st is. There's a config.h file in ~/Downloads/st-0.7, but editing it doesn't do anything, so I assume that after installing st the real config.h file is somewhere else. Anyone know where I have to go to customize st?

    Sorry for noob question.

    submitted by /u/Klaviatur
    [link] [comments]

    Vpns as option on all the bigger distros?

    Posted: 17 Apr 2018 11:12 PM PDT

    Hi peoples! I got a q for yall. Why dont the bigger linux distros like debian or ubuntu & arch offer vpn as standard option for their users? Then they can trust the vpn and not even bother use it as its an option. Am i way off the mark here?

    submitted by /u/user_names_password
    [link] [comments]

    Picking my first Linux Distro for daily use

    Posted: 17 Apr 2018 07:08 PM PDT

    Basically, I'm seeking some advice picking out the first distro to use for my day to day use. I took a penetration testing class that was conducted entirely in a Kali Linux VM, so I'm not unfamiliar with Linux itself; I just know that Kali isn't designed for daily use. Since it was only a semester long I am far from an experienced user, but I have a firm grasp on moving between and navigating to different things via Terminal, updating applications via commands, etc. The basic stuff. In terms of what I'll be using it for, this will basically be used exclusively for school work/note taking on the go (something I will probably be able to use LibreOffice just fine for), so the distro doesn't need to meet anything super specific; just something reasonably intuitive. An added bonus would be a distro that I can use to learn more about linux systems in general or something that doesn't do everything for me (since I aspire to be a pen tester after college) but I get the sense I can use VMs or basically any distro to achieve that...

    Thanks in advance!

    submitted by /u/k0nKk
    [link] [comments]

    AMD-VI Errors on Boot

    Posted: 17 Apr 2018 08:47 PM PDT

    Details

    • Operating System: Debian Testing
    • Computer: Lenovo Ideapad 310-15ABR Type 80st

    Problem

    When booting, I get the following errors

    [ 0.000000] [Firmware Bug]: AMD-Vi: IOAPIC[4] not in IVRS table [ 0.000000] [Firmware Bug]: AMD-Vi: IOAPIC[5] not in IVRS table [ 0.000000] [Firmware Bug]: AMD-Vi: No southbridge IOAPIC found 

    and errors like this.

    Should I be concerned about this, and can someone help me fix it?

    submitted by /u/sakjdlks
    [link] [comments]

    What is your setup for a Linux HTPC

    Posted: 17 Apr 2018 04:04 PM PDT

    What OS and apps do you use as your Linux HTPC?

    submitted by /u/Learning_How_2_Learn
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel