Go to advanced search

by bls
Tue Jan 21, 2020 11:00 pm
Forum: Raspbian
Topic: Setting up multiple VNC desktops for multiple users on boot
Replies: 3
Views: 111

Re: Setting up multiple VNC desktops for multiple users on boot

I've now tried tightvncserver again, as it seems I can't do what I want with RealVNC, but now I have a couple of new problems: The VNC desktops for my new users have empty menus, with only Run... and Shutdown... The background is grey, and it also doesn't have the same menu as the main desktop (alt...
by bls
Sat Jan 18, 2020 3:02 pm
Forum: Raspbian
Topic: Raspbian/SSH security
Replies: 9
Views: 329

Re: Raspbian/SSH security

You could also hide it a bit more by using "port knocking" but to do it you also need client side software that supports it. Remember though, it is only adding a bit more obscurity. https://wiki.archlinux.org/index.php/Port_knocking I had port knocking set up for a while. It works well, but I went ...
by bls
Fri Jan 17, 2020 7:43 pm
Forum: Raspbian
Topic: Raspbian/SSH security
Replies: 9
Views: 329

Re: Raspbian/SSH security

rpdom wrote:
Fri Jan 17, 2020 6:55 pm
bls wrote:
Fri Jan 17, 2020 6:33 pm
Curious that you are getting hit so hard.
Indeed. I use denyhosts instead of fail2ban
Thanks for mentioning denyhosts. Not saying that fail2ban isn't good, but I'm going to have a look at it, since I'm always on the hunt for solutions that improve my solutions :lol:
by bls
Fri Jan 17, 2020 6:33 pm
Forum: Raspbian
Topic: Raspbian/SSH security
Replies: 9
Views: 329

Re: Raspbian/SSH security

You could also install fail2ban, which can be configured to block probes after a single attempt. Install fail2ban ( sudo apt install fail2ban ). Then edit /etc/fail2ban/jail.local (or create it if it doesn't exist) and add: [DEFAULT] ignoreip = 127.0.0.1/8 192.168.92.0/24 #change 192.168.92 to your ...
by bls
Thu Jan 16, 2020 3:08 pm
Forum: Networking and servers
Topic: [SOLVED ] protect acces site by using fail2ban against bruteforce and DDOS attack
Replies: 2
Views: 137

Re: protect acces site by using fail2ban against bruteforce and DDOS attack

Hello i' ve tried more things but seems to not working : pi@raspberrypi:~ $ sudo fail2ban-client status Failed to access socket path: /var/run/fail2ban/fail2ban.sock. Is fail2ban running? pi@raspberrypi:~ $ in the file /etc/fail2ban/jail.conf the first lines are : YOU SHOULD NOT MODIFY THIS FILE so...
by bls
Tue Jan 14, 2020 8:34 pm
Forum: Troubleshooting
Topic: Raspberry Pi 4 different internet speeds
Replies: 1
Views: 66

Re: Raspberry Pi 4 different internet speeds

I'll respond, even though I'm extremely jealous of your 1Gb FiOS connection (mine's "only" 250Mb) :lol: When you do a speed test to different endpoints on the internet, you're testing not only your connection to the internet, but the speed of every device that your connection passes through on the w...
by bls
Tue Jan 14, 2020 7:22 pm
Forum: Advanced users
Topic: MS Onedrive
Replies: 14
Views: 8409

Re: MS Onedrive

I got the same result by following bls step-by-step, screenshot bellow: https://i.imgur.com/Ez5AneD.png I m trying to run this on headless OS, does it have any impact? Huh. the directions that I posted were from an actual installation on a headless Buster. What version of Raspbian are you using?
by bls
Tue Jan 14, 2020 7:20 pm
Forum: Troubleshooting
Topic: VNC Viewer LXTerminal not loading bashrc Raspbian Buster
Replies: 1
Views: 37

Re: VNC Viewer LXTerminal not loading bashrc Raspbian Buster

Not sure if this will do it, but...try creating ~/.bash_profile with the single line in it:

Code: Select all

source /home/<username>/.bashrc
make sure it's protected o=rwx (sudo chmod 755 .bash_profile) and then take it for a spin.
by bls
Tue Jan 14, 2020 3:04 pm
Forum: General discussion
Topic: Video Editor for Pi4 that can crop a video
Replies: 6
Views: 450

Re: Video Editor for Pi4 that can crop a video

Search twice, install once? :lol:

'sudo apt search openshot' reveals that openshot IS in Buster. 'sudo apt install openshot-qt' might get it for you.
by bls
Mon Jan 13, 2020 8:32 pm
Forum: General discussion
Topic: Killall not "seeing" chromium-browser process?
Replies: 1
Views: 74

Re: Killall not "seeing" chromium-browser process?

/usr/bin/chromium-browser is a script that runs (via exec) the real chromium binary, which happens to be named /usr/lib/chromium-browser/chromium-browser-v7. It appears that killall matches the command name starting at the beginning of the command, and chromium-browsser does not match "/usr/lib/chro...
by bls
Sun Jan 12, 2020 5:28 pm
Forum: Advanced users
Topic: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?
Replies: 49
Views: 1927

Re: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?

I wouldn't exactly say "slick". Whenever you see multiple invocations of what I call the "basic Unix tools" (things like cat, grep, cut, sed, join, comm, etc), you know that somebody just kinda cobbled it together on the command line without any real design. Anyway, ... mawk '/MemTotal/ { print "Me...
by bls
Sun Jan 12, 2020 3:20 pm
Forum: General discussion
Topic: Window snapping on Raspberry Pi (4)
Replies: 4
Views: 612

Re: Window snapping on Raspberry Pi (4)

i am also looking for how to set up this window snapping feature. but i am on a raspberry pi 3 b+ and dont have any idea how to go about this. im quite new. someone please give advice? There are other window managers on Raspbian, and some of them (icewm for example) support window snapping. I use i...
by bls
Sun Jan 12, 2020 3:11 pm
Forum: Off topic discussion
Topic: is there *realy* an xkcd for everything?
Replies: 2
Views: 503

Re: is there *realy* an xkcd for everything?

This one is applicable to this forum fairly often: https://xkcd.com/627/ :lol:
by bls
Sun Jan 12, 2020 3:06 pm
Forum: Advanced users
Topic: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?
Replies: 49
Views: 1927

Re: How to Differentiate RPI4 - 1 vs. 2 vs. 4 GB ?

HermannSW wrote:
Sat Jan 11, 2020 11:54 pm
andrum99 wrote:
Sat Jan 11, 2020 10:03 pm
You might also be able to figure out the memory size from what is printed on the top of it.
This expression results in 1, 2 or 4:

Code: Select all

$ echo $((`grep -i MemTotal /proc/meminfo | cut -f1 -dk | cut -f2 -d:` / (1024*1024) + 1))
4
$
Slick!
by bls
Sat Jan 11, 2020 8:30 pm
Forum: Advanced users
Topic: MS Onedrive
Replies: 14
Views: 8409

Re: MS Onedrive

how did you surpass this? It's fairly well documented on https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md , but can be a bit of a pain to follown if Linux isn't your primary language :lol:. Here's what I did based on the above link: cd /home/pi sudo apt install libcurl4-openssl-dev...
by bls
Sat Jan 11, 2020 3:54 pm
Forum: Troubleshooting
Topic: Curl not working to Foscam R4 cam
Replies: 10
Views: 380

Re: Curl not working to Foscam R4 cam

@bls: you made my day, that indeed does the trick! Just for my education: can you explain in brief what this option does and why this is required on Buster and not on Strech? Thanks a lot! Here's an indirect answer to your question: I looked at wiresharks of doing the curl command from an RPi and f...
by bls
Sat Jan 11, 2020 1:39 am
Forum: Networking and servers
Topic: Using two PIs to stretch a network
Replies: 4
Views: 255

Re: Using two PIs to stretch a network

Wow, lots of config mucking to make that work :o I built a much easier solution using strongSwan (and yes, I consider myself pre-dissed by @epoch1970 on ipsec). There's an installer script (run once), a CA creation script (run once), and a management script. The only config file editing of any sort ...
by bls
Fri Jan 10, 2020 10:22 pm
Forum: Troubleshooting
Topic: Curl not working to Foscam R4 cam
Replies: 10
Views: 380

Re: Curl not working to Foscam R4 cam

I took my Foscam R2 offline, did some wiresharking, and found that adding '--tls-max 1.2' to your command line fixed the issue.
by bls
Fri Jan 10, 2020 2:09 pm
Forum: Troubleshooting
Topic: Troubleshooting systemd Failure
Replies: 4
Views: 159

Re: Troubleshooting systemd Failure

When it's in the failing state, look at the output of 'sudo systemctl list-timers' and see if there's anything useful and post here.
by bls
Thu Jan 09, 2020 7:19 pm
Forum: Troubleshooting
Topic: Curl not working to Foscam R4 cam
Replies: 10
Views: 380

Re: Curl not working to Foscam R4 cam

Don't know if this is relevant, but I was having a problem with using Raspbian curl against a website, getting an error about "dh key too small". The fix was to edit /etc/openssl/openssl.cnf and change the last line from

Code: Select all

CipherString = DEFAULT@SECLEVEL=2
to

Code: Select all

CipherString = DEFAULT@SECLEVEL=1
by bls
Thu Jan 09, 2020 4:19 pm
Forum: Networking and servers
Topic: running scripts each time the network comes up
Replies: 7
Views: 208

Re: running scripts each time the network comes up

epoch1970 wrote:
Thu Jan 09, 2020 3:58 pm
bls wrote:
Thu Jan 09, 2020 3:17 pm
1.1.1.1 and one.one.one.one
Hah! I didn't realize CloudFlare's DNS would resolve to one.one.one.one. Funny (and expensive?) trick.
I had exactly the same giggle when I discovered it :lol: :lol:
by bls
Thu Jan 09, 2020 3:17 pm
Forum: Networking and servers
Topic: running scripts each time the network comes up
Replies: 7
Views: 208

Re: running scripts each time the network comes up

I thought reaching network.target meant network is available, not internet is? If you want to run something when internet is reachable I think you need to run some kind of pinger script to an online host. Or have the WRT "ask" the Pi to run something every time it connects. Exactly! I threw a scrip...
by bls
Tue Jan 07, 2020 2:37 pm
Forum: Advanced users
Topic: 2 minutes Raspbian 10 boot on RPI4
Replies: 2
Views: 189

Re: 2 minutes Raspbian 10 boot on RPI4

Hello, I see 40 seconds boot time while my drive is SSD and like 120 seconds boot time while my drive is microSD card class4. That samplerbox tutorial talks about "8 seconds"... so i am wondering what i can do to improve boot time if i want to use web browser, Kodi A good starting point to seeing w...
by bls
Sat Jan 04, 2020 4:55 pm
Forum: Advanced users
Topic: MS Onedrive
Replies: 14
Views: 8409

Re: MS Onedrive

I've been using https://github.com/abraunegg/onedrive for syncing OneDrive for quite some time. Easy to set up and works well.
by bls
Mon Dec 30, 2019 8:47 pm
Forum: Python
Topic: output of shell/bash commands
Replies: 3
Views: 141

Re: output of shell/bash commands

Without weighing in on the security question, here's some code that may help. This works on Raspbian Buster with Python 3.7.3. See https://docs.python.org/3/library/subprocess.html for details on the subprocess module. import subprocess def dosystem(docmd, pout): ''' Executes command specified in ar...

Go to advanced search