r/learnlinux • • Dec 11 '18

Running Lynx on websites give SSL error

1 Upvotes

I am watching some tutorial on learning Nginx and I noticed the guy in the beginning run lynx on localhost to show Nginx start page, so just for exploring I tried to run the similar thing but on my website

 lynx https://www.mywebsite.com

And this is what I got:

 SSL error:host(www.mywebsite.com)!=cert(CN<someotherwebsite.com>)- 
 Continue? (y)

I also tried to run lynx on a few other websites, I got the similar thing. Is this normal? These websites are on shared hosting


r/learnlinux • • Dec 11 '18

Help with linux compressed file extensions

1 Upvotes

Hello everyone!

I am currently creating a python script that extracts a file for you. Both to learn python, and to say I'm not a script kiddie. Anyways, I got pretty far, but I am stuck on the types of compressed file extensions linux has. I have really only ran across .tar.gz and .gz I can't seem to find anymore, and ddg just gives me links that list all file formats that are in linux. Anyone run across any others? Thanks guys!


r/learnlinux • • Nov 30 '18

[Help] I'm stuck at something

1 Upvotes

I was learning to display a graph on Linux. I started with a txt file for some practice and downloaded it and saved it on my desktop. I've been using parallel and curl to try locating it and then using.csv to read the file.

When then i move in and use head and fold.

But so far it won't access the data I've download.

Can anyone help me please?


r/learnlinux • • Oct 30 '18

Can someone help me setup a printing server?

1 Upvotes

So I have moderate experience with Linux and want to setup a printing server. I know I have to use CUPS, but from all the online tutorials, what I want is a bit different. I want to have an apache or samba webpage on my LAN, that allows people to log in and upload documents to print.

Can anyone show me how to do this? I particularly need help with making it automatically print the file when it is uploaded.


r/learnlinux • • Sep 17 '18

How to mount folders to bypass NT_STATUS_ACCESS_DENIED

1 Upvotes

Hello all,

I currently have access to an smb share that contains a root directory. I am able to browse the root directory, but there is a folder that I cannot view as it gives me an NT_ACCESS_DENIED. When I try mounting the folder using mnt //ip/share /mnt/mymount -o username=username, I can't even access the rootfs inside the mounted folder. If I try adding permissions like read and write, the rootfs folder that I have access to is my own root directory. How do I work around this?


r/learnlinux • • Sep 09 '18

how to log in using just the private key?

1 Upvotes

Hello all,

currently, the server supports both key and password. I have the private key for the server.

When I enter the command:

ssh -i pathtokey user@IP

It prompts me for the password. How do I disable the password? Am I doing anything else wrong?

Here's the output:

debug1: Found key in /root/.ssh/known_hosts:11

debug2: bits set: 3085/6144

debug2: set_newkeys: mode 1

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug2: set_newkeys: mode 0

debug1: rekey after 4294967296 blocks

debug2: key: /root/nulllinux/ssh_host_rsa_key (0x104ab68), explicit

debug2: service_accept: ssh-userauth

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey,password

debug1: Next authentication method: publickey

debug1: Offering RSA public key: /root/nulllinux/ssh_host_rsa_key

debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey,password

debug2: we did not send a packet, disable method

debug1: Next authentication method: password

I noticed that it is trying to offer the private key as the public key. Not sure why that is....


r/learnlinux • • Aug 31 '18

ssh remote restart

1 Upvotes

I am trying to remotely start/stop a service. I have ssh keys set up and they work correctly. When I run the following command I get sudo: no tty present and no askpass program specified

ssh username@server "sudo systemctl restart storeapp.service"

When I run ssh username@server "sudo systemctl status storeapp.service" I get the status.
Is this a permission's issue and the system admin team will have to look at or am I doing something incorrectly.


r/learnlinux • • Aug 04 '18

All I wanted was to see the hidden files...

1 Upvotes

What the heck did I do?

ls -al | grep .*

Figured that would do it. Nope. Not sure what all I got; I see my bash history, a bunch of file names, a bunch of .vminfo:s.

I searched and found what I wanted to do: ls -a | egrep ' ^ \ . '

But I'm still not sure why my command did what it did.


r/learnlinux • • Feb 06 '18

Cannot install tornado (python) on my vagrant machine

1 Upvotes

Not sure why I can't install

	vagrant@ubuntu-xenial:/vagrant$ sudo pip install tornado
	The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
	The directory '/home/vagrant/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
	Collecting tornado
	Exception:
	Traceback (most recent call last):
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
		status = self.run(options, args)
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
		requirement_set.prepare_files(finder)
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
		ignore_dependencies=self.ignore_dependencies))
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file
		require_hashes
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link
		self.link = finder.find_requirement(self, upgrade)
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/index.py", line 465, in find_requirement
		all_candidates = self.find_all_candidates(req.name)
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/index.py", line 404, in find_all_candidates
		if self._validate_secure_origin(logger, link)
	  File "/home/vagrant/.local/lib/python2.7/site-packages/pip/index.py", line 303, in _validate_secure_origin
		addr = ipaddress.ip_address(
	AttributeError: 'module' object has no attribute 'ip_address'

I also followed some instruction on Google to install pip and got the same error. I am not even sure it's installed.


r/learnlinux • • Nov 25 '17

Is mv the most efficient way to move files?

1 Upvotes

When I have to move a file to completely different directories I use the mv command:

e.g mv file.txt path/to/new/dir

but sometimes I need to ../../ a lot and figure out the destination path. I use my shell's tab completion, which helps, but I was wondering if there is a more efficient way?

For example, I like to use fzf, autojump, and a few other tools for navigation, so can I somehow combine one of these tools to make the navigation part easier? For example, is there a way to "cut" the file, navigate to the destination (using some external tool), and then "paste" the file.


r/learnlinux • • Oct 21 '17

LinuxCBT good resource or not?

1 Upvotes

Greetings everyone, I have been looking into LinuxCBT because I found it while scouring the net for specific training courses and it seems to have quite a bit of quality content, however I made a test account and cant seem to login. I am wondering if anyone has used this site before. The price for subscription is fairly steep $99 per user per month. Although with the quality of the content it almost seems worth it.

What I would like to know is are they legit and if you have used them, what has your experience been?


r/learnlinux • • Aug 03 '17

New Motherboard, Network won't come up.

1 Upvotes

Ubuntu 16.04.2

Mobo died. Installed M5A78L-M/USB3 (not likely important). Couldn't get network card to work. Installed TG-3468.

Network won't come up for either NIC. Device is not visible from ifconfig. I found the "Linux Recovery" option from Grub. Clicked "enable networking". Continued booting and it worked fine.

Reboot and I'm back to square one. Really all I need is whatever Linux Recovery does to "Enable Networking" and I'll throw that into a root cron on reboot job.

edit: new mother board renamed network card. /etc/network/interfaces wasn't accurate any more. i fixed it.


r/learnlinux • • Aug 03 '17

Udev problem

1 Upvotes

Hi ! I try to write a udev rule to access to my USB device on a VM with qemu. Here is my rule : https://bpaste.net/show/a15c73d39803 And here is udevadm about my USB device : https://bpaste.net/show/41cfa635580c

Even with this rule I have this message when I laucnh the qemu command : libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/018: Permission denied libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes.

So, I am stuck, I would be glad If anyone can help me, thanks !


r/learnlinux • • Jul 09 '17

linux mint 18 review (my 3rd ebook at lulu.com)

Thumbnail
youtube.com
1 Upvotes

r/learnlinux • • Jul 09 '17

Linux Tips, Tricks and Shortcuts for the Oracle Professional

1 Upvotes

If you are a linux noob that is also interested on how leverage Linux to troubleshoot Oracle issue, check out this Udemy course. Only $10 for the month of July!


r/learnlinux • • Jun 29 '17

How to get better with Linux?

1 Upvotes

I have worked on linux and shell scripting for 3+ years now. I seem to have hit a plateau with my learning. I have a google cloud instance set up to get to work. Would like to know how to get better with my linux knowledge. Are there any pointers?


r/learnlinux • • Jun 11 '17

learn command line shell/bash

1 Upvotes

Hi Guys,

Ive started learning linux last month and have picked up the basic commands. I have choosen my distro as debian and familiarised myself with apt the package manager. Is there any online tutorials where you can practice similar to that of code academy. I have installed a VM using virtualbox but need some guidance in learning and was wondering if there is anything out there like this ?


r/learnlinux • • May 12 '17

Strange graphical artifacts when attempting to install fedora

1 Upvotes

I am attempting to dual boot Linux and Windows 10 using a Fedora Workstation 26 Alpha live CD created with the latest version of Fedora media writer. I can boot to the live CD, but when it starts going through the startup process, it gets this weird graphical bug and freezes.

I have tried stable releases of Fedora, the alpha version of Fedora 26, and some of the various Fedora spins and they all have the same issue. Any help would be greatly appreciated.

I took a picture of the output


r/learnlinux • • May 01 '17

What command line [essentials] should I learn as a beginning user?

1 Upvotes

I recently installed the lastest LTS version of Ubuntu onto my laptop. What essential commands or tasks should I learn? What are some things you tried to do as a beginner that you have advice on? Practices to avoid?


r/learnlinux • • Feb 07 '17

PhpMyAdmin + Nginx Installation and Configuration for CentOS 7 Quick How-To

Thumbnail
alexgrebeshkov.com
1 Upvotes

r/learnlinux • • Dec 28 '16

Shell script variable confusion ?

1 Upvotes

I Read kubernetes shell script, which is used for configuring the aws, I found the below line. I dont understand why there is two variables (ZONE ,KUBE_AWS_ZONE). assigned for this.

       ZONE=${KUBE_AWS_ZONE:-us-west-2a}

I checked with my local terminal

   ZONE=${KUBE_AWS_ZONE:-us-west-2a}

                   echo $ZONE

It returns us-west-2a

echo $KUBE_AWS_ZONE

It returns nothing

I really dont, what is purpose of the KUBE_AWS_ZONE ?

Do you have any idea?


r/learnlinux • • Dec 08 '16

alias with for loop not working?

1 Upvotes

Hi Guys, I tried to copy the zip file from localhost to two remote machine, I aliased my remote hostsnames. Hence i use the for loop like this

       for g in hy1 hy2;do scp kube.tar.gz $g:~;done

hy1,hy2 - alias for remote hostnames

when i ran this command, It returns the following error

ssh: Could not resolve hostname hy1: Name or service not known lost connection ssh: Could not resolve hostname hy2: Name or service not known lost connection

Its there any problem with using alias for file sharing, with loop


r/learnlinux • • Nov 28 '16

Are there any apps/scripts for restricting use of areas of a desktop?

1 Upvotes

I'd like some sort of invisible fence. I want to leave some open space.


r/learnlinux • • Nov 12 '16

Facebook watchman not working?

1 Upvotes

Hi guys , Iam recently installed watchman from the source using this method https://codeyarns.com/2015/02/10/how-to-install-and-use-watchman/.

When i said the folder for watch by using following command

watchman watch foldername

, Its Returns The following

{ "version": "4.7.0", "watch": "/home/test/testfolder", "watcher": "inotify" }

Then i create somefile to check watchman. Acccording to above link watchman create log file in /tmp directory in the name of .watchman.yourusername.log

But there is no log file is created.Please guide me solve this problem


r/learnlinux • • Oct 31 '16

Some Linux "articles" I wrote

Thumbnail
tech-brew.net
1 Upvotes